[GRASS-dev] NVIZ problem on Intel Macs

William Kyngesburye woklist at kyngchaos.com
Wed May 31 21:04:43 EDT 2006


That shouldn't be necessary - an Intel Mac has Intel builds of X11  
and OpenGL.

How did you build your Intel GRASS Lorenzo - on a PPC Mac with the  
Universal SDK?  Or on an Intel Mac?

I tried my build of GRASS CVS 5-27 (built on Intel).  NVIZ starts for  
me - I get the NVIZ Options/Output screen.  But when I select a  
raster and try to Run it, then it crashes, with nothing in the output  
window except the raster and the X icon to remove it, like so  
(sometimes the Please Wait window briefly appears):

Command: nviz
Path:    /usr/local/grass-6.1.cvs/bin/nviz
Parent:  wish8.4 [612]

Version: ??? (???)

PID:    648
Thread: 0

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                 	0x000115ab Togl_CreateWindow + 56
3   com.tcltk.tklibrary  	0x9ad191ad Tk_MakeWindowExist + 120
4   nviz                 	0x00012663 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                 	0x0000ca44 Ninit + 199
17  nviz                 	0x00002570 NVIZ_AppInit + 210
18  com.tcltk.tklibrary  	0x9acef2eb Tk_MainEx + 761
19  nviz                 	0x0001118a main + 97
20  nviz                 	0x00002446 _start + 228 (crt.c:272)
21  nviz                 	0x00002361 start + 41


Still looks like some OpenGL problem.  And, I get the exact same  
crash on my PowerBook, except that NVIZ processes the data a little -  
this appears in the output winodw below the raster names:

Loading Data
Update elev null mask
Loading Data
building color table

and the raster names item has an additional printer icon.


This is the first time I've run NVIZ, so I'm not sure what to expect,  
but certainly not a crash.


On May 31, 2006, at 4:47 PM, Michael Barton wrote:

> Lorenzo,
>
> See Glynn's response below. I'm wondering if perhaps you need to  
> install a
> new version of x11?? Or maybe get a new version of OpenGL?? to go  
> with the
> Intel Macs
>
> Michael
> __________________________________________
> Michael Barton, Professor of Anthropology
> School of Human Evolution & Social Change
> Center for Social Dynamics and Complexity
> Arizona State University
>
> phone: 480-965-6213
> fax: 480-965-7671
> www: http://www.public.asu.edu/~cmbarton
>
> ------ Forwarded Message
>> From: Glynn Clements <glynn at gclements.plus.com>
>> Date: Wed, 31 May 2006 22:44:12 +0100
>> To: Michael Barton <michael.barton at asu.edu>
>> Cc: GRASS developers list <grass-dev at grass.itc.it>
>> Subject: Re: [GRASS-dev] NVIZ problem on Intel Macs
>>
>>
>> Michael Barton wrote:
>>
>>> Lorenzo Moretti is reporting that NVIZ locks up when it tries to  
>>> start on
>>> the new Intel Macs. The error is listed below. Anyone have a  
>>> suggestion? Has
>>> anyone else had a problem? Should this go to the bug list? We do  
>>> want to run
>>> GRASS on the new Macs
>>
>>>>> X Error of failed request: BadRequest (invalid request code or  
>>>>> no such
>>>>> operation)
>>>>>   Major opcode of failed request: 129 (Apple-DRI)
>>>>>   Minor opcode of failed request: 1 ()
>>>>>   Serial number of failed request: 192
>>
>> This indicates the OpenGL library isn't compatible with the X server.
>>
>> There isn't anything which we can do to fix this, although adding the
>> "-indirect" switch to the "togl" commands in nviz2.2_script might
>> eliminate the error at the expense of performance (indirect rendering
>> doesn't use hardware acceleration on the stock X.org servers).
>>
>> -- 
>> Glynn Clements <glynn at gclements.plus.com>
>

-----
William Kyngesburye <kyngchaos at kyngchaos.com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those  
least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy




More information about the grass-dev mailing list