I don’t know how to debug this weird problem,
but now i have set grass debug level to 5
and when i open grass in tcltk gui i hade this message :
http://img3.imageshack.us/i/tcltklog.png/
can be usefull to undstand what appens on my computer?
please, thanks for any help!
Massimo.
Il giorno 16/set/09, alle ore 20:31, grass-dev-request@lists.osgeo.org ha scritto:
Hi,
i’m compiling grass from svn source using the 6.5 version,
i’m on a debian sid derived distro “sidux”i used this configure to build grass :
CFLAGS=“-ggdb -Wall -Werror-implicit-function-declaration” ./configure --with-tcltk-includes=/usr/include/tcl8.5/
–with-freetype --with-freetype-includes=/usr/include/freetype2/ --with-cxx --enable-64bit --with-geos --with-ffmpeg
–with-mysql --with-postgres --with-postgres-includes=/usr/include/postgresql/ --with-mysql-includes=/usr/include/mysql/
–with-ffmpeg-includes=/usr/include/ffmpeg/ --with-odbc --with-python --with-sqlite --with-wxwidgets=/usr/bin/wx-config
–with-readline --enable-largefile --with-proj-share=/usr/share/proj --with-cairo --with-motifwx-config --version-full
give me :
2.8.7.1
i used :
g.gisenv set=“DEBUG=5”
Tring to tun the wxgui it starts without errors, but try to add a raster map in the canvas, i'm not able to display it zoom to selected map do nothing, and the coordinates under the mouse movment are not displayer in the output window i can see this log details : ######## 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 450, in OnPaint ``` 1. ``` ``` 1. ``` self.pdc.DrawToDCClipped(dc, rgn) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 393, in DrawToDCClipped ``` 1. ``` ``` 1. ``` def DrawToDCClipped(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_DrawToDCClipped(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_DrawToDCClipped', argument 2 of type ``` 1. ``` 'void *' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 542, in OnIdle ``` 1. ``` ``` 1. ``` self.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 2510, in OnZoomToMap ``` 1. ``` ``` 1. ``` self.ZoomToMap() ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 2561, in ZoomToMap ``` 1. ``` ``` 1. ``` self.UpdateMap() ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 2510, in OnZoomToMap ``` 1. ``` ``` 1. ``` self.ZoomToMap() ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 2561, in ZoomToMap ``` 1. ``` ``` 1. ``` self.UpdateMap() ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1017, in MouseActions ``` 1. ``` ``` 1. ``` self.OnLeftUp(event) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1809, in OnLeftUp ``` 1. ``` ``` 1. ``` self.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1017, in MouseActions ``` 1. ``` ``` 1. ``` self.OnLeftUp(event) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1809, in OnLeftUp ``` 1. ``` ``` 1. ``` self.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1017, in MouseActions ``` 1. ``` ``` 1. ``` self.OnLeftUp(event) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1809, in OnLeftUp ``` 1. ``` ``` 1. ``` self.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1017, in MouseActions ``` 1. ``` ``` 1. ``` self.OnLeftUp(event) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 1809, in OnLeftUp ``` 1. ``` ``` 1. ``` self.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp.py", line 628, in OnRender ``` 1. ``` ``` 1. ``` self.MapWindow.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp.py", line 628, in OnRender ``` 1. ``` ``` 1. ``` self.MapWindow.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` 1. ``` Traceback (most recent call last): ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp.py", line 628, in OnRender ``` 1. ``` ``` 1. ``` self.MapWindow.UpdateMap(render=True) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 667, in UpdateMap ``` 1. ``` ``` 1. ``` self.Draw(self.pdc, self.img, drawid=id) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma ``` 1. ``` pdisp_window.py", line 271, in Draw ``` 1. ``` ``` 1. ``` pdc.SetBackground(bg) ``` 1. ``` File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_ ``` 1. ``` wxvdigit.py", line 384, in SetBackground ``` 1. ``` ``` 1. ``` def SetBackground(self, *args): return ``` 1. ``` _grass6_wxvdigit.PseudoDC_SetBackground(self, *args) ``` 1. ``` TypeError ``` 1. ``` : ``` 1. ``` in method 'PseudoDC_SetBackground', argument 2 of type ``` 1. ``` 'wxBrush const &' ``` ######## i also tried to run g.gui wxpython using "strace", i had : ######## 1. ``` strace g.gui wxpython ``` 1. ``` execve("/usr/local/grass-6.5.svn/bin/g.gui", ["g.gui", "wxpython"], [/* 48 vars */]) = 0 ``` 1. ``` brk(0) = 0x10e5000 ``` 1. ``` mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbb6b49b000 ``` 1. ``` access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) ``` 1. ``` mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbb6b499000 ``` 1. ``` access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) ``` 1. ``` open("/usr/local/grass-6.5.svn/lib/tls/x86_64/libgrass_gis.so", O_RDONLY) = -1 ENOENT (No such file or directory) ``` 1. ``` stat("/usr/local/grass-6.5.svn/lib/tls/x86_64", 0x7fff6647d510) = -1 ENOENT (No such file or directory) ``` 1. ``` open("/usr/local/grass-6.5.svn/lib/tls/libgrass_gis.so", O_RDONLY) = -1 ENOENT (No such file or directory) ``` 1. ``` stat("/usr/local/grass-6.5.svn/lib/tls", 0x7fff6647d510) = -1 ENOENT (No such file or directory) ``` 1. ``` open("/usr/local/grass-6.5.svn/lib/x86_64/libgrass_gis.so", O_RDONLY) = -1 ENOENT (No such file or directory) ``` 1. ``` stat("/usr/local/grass-6.5.svn/lib/x86_64", 0x7fff6647d510) = -1 ENOENT (No such file or directory) ``` ######## I have no clue on how to debug this weird situation, a friend on grass irc using the same wxpython version on the same grass revision on ubuntu (i suppose) X86_64 has not problems to run the wxpython gui. i enabled the debug symbols but i need to learn how to use gdb on the g.gui executable. Any suggestion can make me happy! thanks to All, Massimo.