[GRASS-dev] wxgui problem (grass -r 39224 linux x86_64 "sidux" )
sasha
massimodisasha at gmail.com
Wed Sep 16 12:49:13 EDT 2009
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-motif
wx-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 :
########
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 450, in OnPaint
self.pdc.DrawToDCClipped(dc, rgn)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 393, in DrawToDCClipped
def DrawToDCClipped(self, *args): return
_grass6_wxvdigit.PseudoDC_DrawToDCClipped(self, *args)
TypeError
:
in method 'PseudoDC_DrawToDCClipped', argument 2 of type
'void *'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 542, in OnIdle
self.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 2510, in OnZoomToMap
self.ZoomToMap()
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 2561, in ZoomToMap
self.UpdateMap()
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 2510, in OnZoomToMap
self.ZoomToMap()
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 2561, in ZoomToMap
self.UpdateMap()
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1017, in MouseActions
self.OnLeftUp(event)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1809, in OnLeftUp
self.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1017, in MouseActions
self.OnLeftUp(event)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1809, in OnLeftUp
self.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1017, in MouseActions
self.OnLeftUp(event)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1809, in OnLeftUp
self.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1017, in MouseActions
self.OnLeftUp(event)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 1809, in OnLeftUp
self.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 628, in OnRender
self.MapWindow.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 628, in OnRender
self.MapWindow.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
Traceback (most recent call last):
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp.py", line 628, in OnRender
self.MapWindow.UpdateMap(render=True)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 667, in UpdateMap
self.Draw(self.pdc, self.img, drawid=id)
File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
pdisp_window.py", line 271, in Draw
pdc.SetBackground(bg)
File "/usr/local/grass-6.5.svn/etc/wxpython/vdigit/grass6_
wxvdigit.py", line 384, in SetBackground
def SetBackground(self, *args): return
_grass6_wxvdigit.PseudoDC_SetBackground(self, *args)
TypeError
:
in method 'PseudoDC_SetBackground', argument 2 of type
'wxBrush const &'
########
i also tried to run g.gui wxpython using "strace", i had :
########
strace g.gui wxpython
execve("/usr/local/grass-6.5.svn/bin/g.gui", ["g.gui", "wxpython"], [/
* 48 vars */]) = 0
brk(0) = 0x10e5000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7fbb6b49b000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7fbb6b499000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/usr/local/grass-6.5.svn/lib/tls/x86_64/libgrass_gis.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/grass-6.5.svn/lib/tls/x86_64", 0x7fff6647d510) = -1
ENOENT (No such file or directory)
open("/usr/local/grass-6.5.svn/lib/tls/libgrass_gis.so", O_RDONLY) =
-1 ENOENT (No such file or directory)
stat("/usr/local/grass-6.5.svn/lib/tls", 0x7fff6647d510) = -1 ENOENT
(No such file or directory)
open("/usr/local/grass-6.5.svn/lib/x86_64/libgrass_gis.so", O_RDONLY)
= -1 ENOENT (No such file or directory)
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20090916/edcbd689/attachment-0001.html
More information about the grass-dev
mailing list