[GRASS5] nviz segfault with grass5.7.0

Dear developers,
i have a problem with nviz, if i try to visualize a rasterfile i get a
segmentationfault:

Loading Data
child killed: segmentation violation
    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?
I'm a skilled C-programmer, maybe i can help you?

Best regards
Sören Gebbert

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

On Sat, 6 Nov 2004, Hamish wrote:

> 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

yes, i tried differend regions.

Is the map's range != 0?
r.info -r rastermap

I have no "working" rastermap (and i have a lot), even the maps from 32Bit
systems are not working. But if i declare a constant in nviz (as map AND color), then it
works.

> 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

thanks

Best regards
Sören

Dear developers,
I have used the gdb and now i'm more confused than befor:

I tried to visualize this map:

| Type of Map: raster Number of Categories: 255
|
| Data Type: FCELL
|
| Rows: 1579
|
| Columns: 2257
|
| Total Cells: 3563803
|
| Projection: UTM (zone 29)
|
| N: 4121508.96 S: 4118161.48 Res: 2.12
|
| E: 558204.48 W: 553419.64 Res: 2.12
|
| Range of data: min = 13.817110 max = 196.461456
|
|
|
| Data Source:
|
| vector file Elevation
|

I get this error:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923337952 (LWP 17399)]
0x0000002a96640f33 in G_zero_raster_buf (rast=0xffffffff99a3f010,
data_type=4) at zero_cell.c:34
34 *ptr++ = 0 ;

The G_window_cols() routine in G_zero_raster_buf() says, the window has
2269 cols, so it is bigger than the map.
Ok, i zoomed in and now i get this error:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923337952 (LWP 17418)]
0x0000003ed19debd6 in xdr_float () from /lib64/tls/libc.so.6

Does someone has a hint?

Best regards
Sören

Soeren Gebbert wrote:

I have used the gdb and now i'm more confused than befor:

I tried to visualize this map:

| Type of Map: raster Number of Categories: 255
| Data Type: FCELL
| Rows: 1579
| Columns: 2257
| Total Cells: 3563803
| Projection: UTM (zone 29)
| N: 4121508.96 S: 4118161.48 Res: 2.12
| E: 558204.48 W: 553419.64 Res: 2.12
| Range of data: min = 13.817110 max = 196.461456
|
| Data Source:
| vector file Elevation

I get this error:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923337952 (LWP 17399)]
0x0000002a96640f33 in G_zero_raster_buf (rast=0xffffffff99a3f010,
data_type=4) at zero_cell.c:34

The data_type parameter should be one of 0, 1 or 2 (CELL_TYPE,
FCELL_TYPE or DCELL_TYPE respectively). You need to obtain a backtrace
and determine how G_zero_raster_buf() comes to be called with
data_type equal to 4.

--
Glynn Clements <glynn@gclements.plus.com>

You may try to build all the packages out of sources / CVS; in particular when using a 64bit platform.

Mit freundlichen Grüßen / With kindest regards

Stefan Paulick

http://www.urbeli.com
mailto://stefan.paulick@urbeli.com
/*----------------------*/

Soeren Gebbert schrieb:

Dear developers,
I have used the gdb and now i'm more confused than befor:

I tried to visualize this map:

| Type of Map: raster Number of Categories: 255
|
| Data Type: FCELL
|
| Rows: 1579
|
| Columns: 2257
|
| Total Cells: 3563803
|
| Projection: UTM (zone 29)
|
| N: 4121508.96 S: 4118161.48 Res: 2.12
|
| E: 558204.48 W: 553419.64 Res: 2.12
|
| Range of data: min = 13.817110 max = 196.461456
|
|
|
| Data Source:
|
| vector file Elevation
|

I get this error:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923337952 (LWP 17399)]
0x0000002a96640f33 in G_zero_raster_buf (rast=0xffffffff99a3f010,
data_type=4) at zero_cell.c:34
34 *ptr++ = 0 ;

The G_window_cols() routine in G_zero_raster_buf() says, the window has
2269 cols, so it is bigger than the map.
Ok, i zoomed in and now i get this error:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182923337952 (LWP 17418)]
0x0000003ed19debd6 in xdr_float () from /lib64/tls/libc.so.6

Does someone has a hint?

Best regards
Sören

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5