[GRASS-dev] trying to compile wxPython NVIZ
Michael Barton
michael.barton at asu.edu
Wed Jul 16 11:30:20 EDT 2008
On Jul 16, 2008, at 12:58 AM, Glynn Clements wrote:
>
> 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.
I tried this but I think I got ambiguous results. I tried to run this
from the command line and maybe didn't get it right in this format.
Anyway, here is the result.
(gdb) run -f /path/to/etc/nviz2.2/scripts/nviz2.2_script
elev=elevation.dem
Starting program: /Applications/Grass/GRASS-7.0.app/Contents/MacOS/etc/
nviz2.2/nviz -f /path/to/etc/nviz2.2/scripts/nviz2.2_script
elev=elevation.dem
Reading symbols for shared libraries . done
Reading symbols for shared libraries ....... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Loading raster map <elevation.dem at PERMANENT>...
Loading raster map <elevation.dem at PERMANENT>...
Translating colors from raster map <elevation.dem at PERMANENT>...
Error in startup script: couldn't read file "/path/to/etc/nviz2.2/
scripts/nviz2.2_script": no such file or directory
Program exited with code 01.
Michael
More information about the grass-dev
mailing list