[GRASS-dev] Suggestion: wxGUI as default in G6.4

Markus Neteler neteler at osgeo.org
Sat Feb 27 13:42:04 EST 2010


On Sat, Feb 27, 2010 at 9:14 AM, Markus Neteler <neteler at osgeo.org> wrote:
> On Fri, Feb 26, 2010 at 4:04 PM, Markus Neteler <neteler at osgeo.org> wrote:
>> On Fri, Feb 12, 2010 at 7:22 AM, Glynn Clements  wrote:
>>> Markus Neteler wrote:
>>>
>>>> ... as the subject indicate: any objections to change to wxGUI as default?
> ..
>>> AFAIK, it handles the case where these modules don't exist. But if
>>> they do exist and there's something wrong with them (binary
>>> compatibility issues), the whole GUI is toast.
>>
>> ... which is unacceptable and currently the case on my laptop.
>
> Good news: on a newly installed machine, same Mandriva distro, 64bit
> all *works*. I must have some bad libs or cruft on my laptop.

Looking further into this, I understand that "g.gui wxpython" calls effectively

python $GISBASE/etc/wxpython/wxgui.py

Doing so, I get a segmentation fault after the popup of the old map screen:

strace python $GISBASE/etc/wxpython/wxgui.py
fstat(10, {st_mode=S_IFREG|0644, st_size=1248, ...}) = 0
open("/usr/lib64/python2.6/encodings/ascii.pyc", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0644, st_size=2281, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f1831c26000
read(11, "\321\362\r\n\0\307GKc\0\0\0\0\0\0\0\0\4\0\0\0@\0\0\0s\273\0\0\0d\0"...,
4096) = 2281
fstat(11, {st_mode=S_IFREG|0644, st_size=2281, ...}) = 0
read(11, "", 4096)                      = 0
close(11)                               = 0
munmap(0x7f1831c26000, 4096)            = 0
close(10)                               = 0
brk(0x2ec6000)                          = 0x2ec6000
brk(0x2ee7000)                          = 0x2ee7000
brk(0x2f08000)                          = 0x2f08000
brk(0x2f29000)                          = 0x2f29000
read(9, "M. Either A: exact sun position "..., 32768) = 32768
brk(0x2f4a000)                          = 0x2f4a000
brk(0x2f6b000)                          = 0x2f6b000
brk(0x2f8c000)                          = 0x2f8c000
read(9, "ce</command>\n\t</menuitem>\n\t<menu"..., 32768) = 23999
read(9, "", 8192)                       = 0
brk(0x2fad000)                          = 0x2fad000
brk(0x2fce000)                          = 0x2fce000
brk(0x2fef000)                          = 0x2fef000
read(9, "", 32768)                      = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

Unfortunately I have no idea how to debug this (gdb and ddd refuse to do so).
Pointers welcome,

Markus


More information about the grass-dev mailing list