[GRASS-dev] [bug #4768] (grass) nviz segfault on startup when creating display window

this bug's URL: http://intevation.de/rt/webrt?serial_num=4768
-------------------------------------------------------------------------

Subject: nviz segfault on startup when creating display window

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: CVS 2006_06_24

Even with a simple quickstart: nviz -q, nviz is crashing with a segfault when it tries to create the
output window. From the OSX crashlog:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x5c637273

Thread 0 Crashed:
0 libX11.6.dylib 0x9bd35fa1 XQueryExtension + 24
1 libGL.1.dylib 0x9be2edab glXQueryExtension + 62
2 nviz 0x000115eb Togl_CreateWindow + 56
3 com.tcltk.tklibrary 0x9ad191ad Tk_MakeWindowExist + 120
4 nviz 0x000126a3 Togl_Cmd + 1046
5 com.tcltk.tcllibrary 0x9ac181a3 TclInvokeStringCommand + 121
6 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
7 com.tcltk.tcllibrary 0x9ac3d666 TclExecuteByteCode + 3101
8 com.tcltk.tcllibrary 0x9ac4244e TclCompEvalObj + 279
9 com.tcltk.tcllibrary 0x9ac6926d TclObjInterpProc + 524
10 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
11 com.tcltk.tcllibrary 0x9ac1ac1c Tcl_EvalEx + 488
12 com.tcltk.tcllibrary 0x9ac5893a Tcl_FSEvalFile + 400
13 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
14 com.tcltk.tcllibrary 0x9ac1ac1c Tcl_EvalEx + 488
15 com.tcltk.tcllibrary 0x9ac1b03a Tcl_Eval + 42
16 nviz 0x0000cac0 Ninit + 199
17 nviz 0x00002614 NVIZ_AppInit + 210
18 com.tcltk.tklibrary 0x9acef2eb Tk_MainEx + 761
19 nviz 0x000111ca main + 97
20 nviz 0x000024ea _start + 228 (crt.c:272)
21 nviz 0x00002405 start + 41

If I add an elevation raster from spearfish6 demo, it shows some status, then crashes with the same
thread trace when trying to create the window.

Loading Data
Update elev null mask
Loading Data
translating colors from fp

GRASS CVS 06-6-24, TclTk 8.4.13 (unix, not Aqua), Mac OS 10.4.6/GCC 4.0.1

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=4768
-------------------------------------------------------------------------

Subject: nviz segfault on startup when creating display window

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: CVS 2006_06_24

Even with a simple quickstart: nviz -q, nviz is crashing with a segfault when it tries to create the
output window. From the OSX crashlog:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x5c637273

Thread 0 Crashed:
0 libX11.6.dylib 0x9bd35fa1 XQueryExtension + 24
1 libGL.1.dylib 0x9be2edab glXQueryExtension + 62
2 nviz 0x000115eb Togl_CreateWindow + 56
3 com.tcltk.tklibrary 0x9ad191ad Tk_MakeWindowExist + 120
4 nviz 0x000126a3 Togl_Cmd + 1046
5 com.tcltk.tcllibrary 0x9ac181a3 TclInvokeStringCommand + 121
6 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
7 com.tcltk.tcllibrary 0x9ac3d666 TclExecuteByteCode + 3101
8 com.tcltk.tcllibrary 0x9ac4244e TclCompEvalObj + 279
9 com.tcltk.tcllibrary 0x9ac6926d TclObjInterpProc + 524
10 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
11 com.tcltk.tcllibrary 0x9ac1ac1c Tcl_EvalEx + 488
12 com.tcltk.tcllibrary 0x9ac5893a Tcl_FSEvalFile + 400
13 com.tcltk.tcllibrary 0x9ac1a915 TclEvalObjvInternal + 733
14 com.tcltk.tcllibrary 0x9ac1ac1c Tcl_EvalEx + 488
15 com.tcltk.tcllibrary 0x9ac1b03a Tcl_Eval + 42
16 nviz 0x0000cac0 Ninit + 199
17 nviz 0x00002614 NVIZ_AppInit + 210
18 com.tcltk.tklibrary 0x9acef2eb Tk_MainEx + 761
19 nviz 0x000111ca main + 97
20 nviz 0x000024ea _start + 228 (crt.c:272)
21 nviz 0x00002405 start + 41

If I add an elevation raster from spearfish6 demo, it shows some status, then crashes with the same
thread trace when trying to create the window.

This is a bug in the system's OpenGL implementation; there isn't
anything we can do about it.

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

Should people using Intel Macs install a different version of OpenGL?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Glynn Clements <glynn@gclements.plus.com>
Date: Sat, 1 Jul 2006 20:01:06 +0100
To: Request Tracker <grass-bugs@intevation.de>
Cc: <grass-dev@grass.itc.it>
Subject: Re: [GRASS-dev] [bug #4768] (grass) nviz segfault on startup when
creating display window

If I add an elevation raster from spearfish6 demo, it shows some status, then
crashes with the same
thread trace when trying to create the window.

This is a bug in the system's OpenGL implementation; there isn't
anything we can do about it.

Michael Barton wrote:

>> If I add an elevation raster from spearfish6 demo, it shows some status, then
>> crashes with the same
>> thread trace when trying to create the window.
>
> This is a bug in the system's OpenGL implementation; there isn't
> anything we can do about it.

Should people using Intel Macs install a different version of OpenGL?

It's worth a try. Even if nothing else works, Mesa should (although it
will be a lot slower).

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