[GRASS5] nviz segfault with grass5.7.0
Hamish
hamish_nospam at yahoo.com
Fri Nov 5 17:38:07 EST 2004
> i have a problem with nviz, if i try to visualize a rasterfile i get a
> segmentationfault:
>
> Loading Data
> child killed: segmentation violation
[rest is Tcl cruft]
> while executing
> "exec /usr/local/grass-5.7.0/etc/nviz2.2/NVWISH2.2 -f
> /usr/local/grass-5.7.0/etc
> /nviz2.2/scripts/nviz2.2_script -q -name NVIZ >&@stdout"
> ("eval" body line 1)
> invoked from within
> "eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
> $env(GISBASE)/etc/nviz2.2/scri
> pts/nviz2.2_script $argv -name NVIZ >&@stdout"
> invoked from within
> "if {$argv == ""} {
> #no arguments
> eval exec $env(GISBASE)/etc/nviz2.2/NVWISH2.2 -f
> $env(GISBASE)/etc/nviz2.2/scrip
> ts/nviz2.2_script -name NVIZ >&@stdo..."
> (file "/usr/local/grass-5.7.0/bin/nviz" line 16)
>
> The problem shows up only with rasterfiles.
> I think the reason is, that i running a 64Bit
> Linux on AMD 3000+ 64Bit. Do you have any hints to solve the problem?
some things to try first:
Set the region to include data?
g.region rast=rastermap
Is the map's range != 0?
r.info -r rastermap
> I'm a skilled C-programmer, maybe i can help you?
Debugging NVIZ hints from Glynn
http://article.gmane.org/gmane.comp.gis.grass.devel/2010
> > AFAICT from the error message, it's the core NVIZ process which
> > crashed; i.e. not the "nviz" script, but the NVWISH2.2 binary
> > interpreting nviz2.2_script. To debug that, you would need to emulate
> > the "nviz" script by setting up the various environment variables,
> > then running NVWISH2.2 under gdb, e.g.:
> >
> > export GISDBASE=`g.gisenv get=GISDBASE`
> > export LOCATION_NAME=`g.gisenv get=LOCATION_NAME`
> > export MAPSET=`g.gisenv get=MAPSET`
> > gdb /usr/local/grass5/etc/nviz2.2/NVWISH2.2
> > > run -f /usr/local/grass5/etc/nviz2.2/scripts/nviz2.2_script
> > > -name NVIZ
good luck,
Hamish
More information about the grass-dev
mailing list