[GRASS-dev] trying to compile wxPython NVIZ
Glynn Clements
glynn at gclements.plus.com
Wed Jul 16 03:58:27 EDT 2008
Michael Barton wrote:
> Forgot to give the nviz error. Here it is:
>
> Process: nviz [64828]
> Path: /Applications/Grass/GRASS-7.0.app/Contents/MacOS/etc/
> nviz2.2/nviz
> Identifier: nviz
> Version: ??? (???)
> Code Type: X86 (Native)
> Parent Process: wish8.5 [64804]
>
> Date/Time: 2008-07-15 22:36:04.896 -0700
> OS Version: Mac OS X 10.5.4 (9E17)
> Report Version: 6
>
> Exception Type: EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000029
> Crashed Thread: 0
>
> Thread 0 Crashed:
> 0 nviz 0x00012abf Togl_CreateWindow + 1371
Is it possible to run it under GDB and find exactly where it crashed?
Note that "nviz" itself can't be debugged, as it's a shell script.
However, the script is essentially just:
exec $GISBASE/etc/nviz2.2/nviz -f $GISBASE/etc/nviz2.2/scripts/nviz2.2_script ${1+"$@"}
So you can debug it with e.g.:
gdb $GISBASE/etc/nviz2.2/nviz
run -f /path/to/etc/nviz2.2/scripts/nviz2.2_script
I wonder if this might be an issue with Tcl/Tk 8.5; Togl depends quite
heavily upon Tcl/Tk internals, so it's likely to be quite
version-sensitive.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list