[GRASS-dev] nviz crashes on MacOSX

After compiling and installing latest cvs following William's readme, I got this error when trying nviz (itt works fine when using his binaries):
Date/Time: 2007-04-19 13:10:33.116 +0200
OS Version: 10.4.9 (Build 8P2137)
Report Version: 4

Command: nviz
Path: /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
Parent: wish8.4 [15392]

Version: ??? (???)

PID: 15397
Thread: 0

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

Thread 0 Crashed:
0 libX11.6.dylib 0x005dacd2 XQueryExtension + 51
1 libGL.1.dylib 0x005655f3 glXQueryExtension + 62
2 nviz 0x00016aa8 Togl_CreateWindow + 79
3 com.tcltk.tklibrary 0x9ad55131 Tk_MakeWindowExist + 120
4 nviz 0x00016992 Togl_Cmd + 1194
5 com.tcltk.tcllibrary 0x9ac5416f TclInvokeStringCommand + 121
6 com.tcltk.tcllibrary 0x9ac568e1 TclEvalObjvInternal + 733
7 com.tcltk.tcllibrary 0x9ac7965a TclExecuteByteCode + 3101
8 com.tcltk.tcllibrary 0x9ac7e442 TclCompEvalObj + 279
9 com.tcltk.tcllibrary 0x9aca5261 TclObjInterpProc + 524
10 com.tcltk.tcllibrary 0x9ac568e1 TclEvalObjvInternal + 733
11 com.tcltk.tcllibrary 0x9ac56be8 Tcl_EvalEx + 488
12 com.tcltk.tcllibrary 0x9ac94930 Tcl_FSEvalFile + 400
13 com.tcltk.tcllibrary 0x9ac94a14 Tcl_EvalFile + 47
14 com.tcltk.tklibrary 0x9ad2b291 Tk_MainEx + 835
15 nviz 0x0001517a main + 126
16 nviz 0x000023aa _start + 216
17 nviz 0x000022d1 start + 41

Thread 1:
0 libSystem.B.dylib 0x9001a0ec select + 12
1 libSystem.B.dylib 0x90024147 _pthread_body + 84

Thread 0 crashed with X86 Thread State (32-bit):
   eax: 0x6e614328 ebx: 0x005655c3 ecx: 0x00016a59 edx: 0x6e614320
   edi: 0xbfffcce4 esi: 0x01cd5008 ebp: 0xbfffcbd8 esp: 0xbfffcba0
    ss: 0x0000001f efl: 0x00010283 eip: 0x005dacd2 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

Binary Images Description:
     0x1000 - 0x26fff nviz /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
    0x34000 - 0x35fff libgrass_bitmap.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_bitmap.dylib
    0x39000 - 0x39fff libgrass_linkm.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_linkm.dylib
    0x3d000 - 0x3efff libgrass_form.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_form.dylib
    0x70000 - 0xc9fff libgrass_ogsf.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_ogsf.dylib
    0xe0000 - 0xe5fff libgrass_datetime.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_datetime.dylib
    0xea000 - 0xedfff libgrass_sites.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_sites.dylib
    0xf2000 - 0xf6fff libgrass_dbmiclient.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_dbmiclient.dylib
    0xfd000 - 0xfdfff com.kyngchaos.UnixImageIO 1.0.12 (UnixImageIO 1.0.13) /Library/Frameworks/UnixImageIO.framework/Versions/A/UnixImageIO
   0x205000 - 0x21efff libgrass_g3d.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_g3d.dylib
   0x228000 - 0x26bfff libgrass_gis.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_gis.dylib
   0x281000 - 0x289fff libgrass_dbmibase.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_dbmibase.dylib
   0x292000 - 0x2bffff libgrass_vect.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_vect.dylib
   0x2cb000 - 0x2dffff libgrass_dgl.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_dgl.dylib
   0x2e6000 - 0x2f6fff libgrass_dig2.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_dig2.dylib
   0x2fd000 - 0x301fff libgrass_rtree.dylib /Applications/GRASS-6.3.app/Contents/Resources/lib/libgrass_rtree.dylib
   0x305000 - 0x309fff libSM.6.dylib /usr/X11R6/lib/libSM.6.dylib
   0x30e000 - 0x31dfff libICE.6.dylib /usr/X11R6/lib/libICE.6.dylib
   0x325000 - 0x333fff libXmu.6.dylib /usr/X11R6/lib/libXmu.6.dylib
   0x33b000 - 0x343fff libXext.6.dylib /usr/X11R6/lib/libXext.6.dylib
   0x34a000 - 0x34afff net.refractions.geos 3.0.0 (GEOS 3.0.0-rc4) /Library/Frameworks/GEOS.framework/Versions/3.0/GEOS
   0x34d000 - 0x353fff libgeosc.dylib /Library/Frameworks/GEOS.framework/Versions/3.0/Libraries/libgeosc.dylib
   0x35f000 - 0x363fff libgif.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libgif.dylib
   0x4b0000 - 0x50bfff libGLU.1.dylib /usr/X11R6/lib/libGLU.1.dylib
   0x536000 - 0x590fff libGL.1.dylib /usr/X11R6/lib/libGL.1.dylib
   0x5c4000 - 0x681fff libX11.6.dylib /usr/X11R6/lib/libX11.6.dylib
   0x6a9000 - 0x6d5fff org.maptools.proj 4.5.0 (PROJ 4.5.0-4) /Library/Frameworks/PROJ.framework/Versions/4.5/PROJ
   0x6e1000 - 0x72bfff org.sqlite.sqlite3 3.3.14 (SQLite3 3.3.14-1) /Library/Frameworks/SQLite3.framework/Versions/3.3/SQLite3
   0x738000 - 0x751fff libjpeg.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libjpeg.dylib
   0x757000 - 0x78bfff libjasper.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libjasper.dylib
   0x79e000 - 0x7b8fff libpng.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libpng.dylib
0x1008000 - 0x12f7fff org.gdal.gdal 1.4.1 (GDAL 1.4.1-1) /Library/Frameworks/GDAL.framework/Versions/1.4/GDAL
0x14b8000 - 0x16d1fff Xerces /Library/Frameworks/Xerces.framework/Versions/A/Xerces
0x1919000 - 0x19d1fff libgeos.dylib /Library/Frameworks/GEOS.framework/Versions/3.0/Libraries/libgeos.dylib
0x1b0a000 - 0x1bb0fff libXpm.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libXpm.dylib
0x1bcc000 - 0x1c18fff libtiff.dylib /Library/Frameworks/UnixImageIO.framework/Versions/A/Libraries/libtiff.dylib
0x1c23000 - 0x1c5cfff libXt.6.dylib /usr/X11R6/lib/libXt.6.dylib
0x8fe00000 - 0x8fe4afff dyld 46.12 /usr/lib/dyld
0x90000000 - 0x90172fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901c2000 - 0x901c4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x901c6000 - 0x90203fff com.apple.CoreText 1.1.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x9022a000 - 0x90300fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90320000 - 0x90775fff com.apple.CoreGraphics 1.258.61 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x9080c000 - 0x908d4fff com.apple.CoreFoundation 6.4.7 (368.28) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90912000 - 0x90912fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90914000 - 0x90a07fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a57000 - 0x90ad6fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90aff000 - 0x90b63fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c66000 - 0x90c78fff libauto.dylib /usr/lib/libauto.dylib
0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.18 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x91008000 - 0x91046fff com.apple.CFNetwork 129.20 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x91059000 - 0x91069fff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91074000 - 0x910f3fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x9112d000 - 0x9114bfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x91157000 - 0x91165fff libz.1.dylib /usr/lib/libz.1.dylib
0x91168000 - 0x91307fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x91405000 - 0x9140dfff com.apple.DiskArbitration 2.1.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x91414000 - 0x9143afff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x9144c000 - 0x91453fff libbsm.dylib /usr/lib/libbsm.dylib
0x91457000 - 0x914cdfff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x9151e000 - 0x9151efff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x91520000 - 0x9154cfff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x9155f000 - 0x91633fff com.apple.ColorSync 4.4.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9166e000 - 0x916e1fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9170f000 - 0x917b8fff com.apple.QD 3.10.24 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x917de000 - 0x91829fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x91848000 - 0x9185efff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x9186a000 - 0x91885fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x91890000 - 0x918cdfff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x918e1000 - 0x918edfff com.apple.speech.synthesis.framework 3.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x918f4000 - 0x91933fff com.apple.ImageIO.framework 1.5.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91946000 - 0x919f8fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x91a3e000 - 0x91a54fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91a59000 - 0x91a77fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91a7c000 - 0x91adbfff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91aed000 - 0x91af1fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91af3000 - 0x91b77fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91b7b000 - 0x91bb8fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91bbe000 - 0x91bd8fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91bdd000 - 0x91bdffff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91be1000 - 0x91cbffff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x91cdc000 - 0x91cdcfff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91cde000 - 0x91d6cfff com.apple.vImage 2.5 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91d73000 - 0x91d73fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91d75000 - 0x91dcefff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x91dd7000 - 0x91dfbfff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x91e03000 - 0x9220cfff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x92246000 - 0x925fafff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92627000 - 0x92714fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92716000 - 0x92793fff com.apple.DesktopServices 1.3.6 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x927d4000 - 0x92a04fff com.apple.Foundation 6.4.8 (567.29) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92b1e000 - 0x92b35fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92b40000 - 0x92b98fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92bac000 - 0x92bacfff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x92bae000 - 0x92bbefff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x92bcd000 - 0x92bd5fff com.apple.speech.recognition.framework 3.6 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92bdb000 - 0x92be1fff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x92be7000 - 0x92c78fff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x92c8c000 - 0x92c90fff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x92c93000 - 0x92cb1fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x92cc3000 - 0x92cc9fff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x92ccf000 - 0x92d32fff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x92d59000 - 0x92d9afff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x92dc1000 - 0x92dcffff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x92dd6000 - 0x92ddbfff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x92de0000 - 0x930d5fff com.apple.HIToolbox 1.4.9 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x931db000 - 0x931e6fff com.apple.opengl 1.4.16 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x94293000 - 0x942a2fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x942a9000 - 0x942b4fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94300000 - 0x9431afff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9496d000 - 0x94992fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x97849000 - 0x97887fff libiodbc.2.dylib /usr/lib/libiodbc.2.dylib
0x97894000 - 0x9789dfff libiodbcinst.2.dylib /usr/lib/libiodbcinst.2.dylib
0x9a785000 - 0x9a790fff libXplugin.1.dylib /usr/lib/libXplugin.1.dylib
0x9ac47000 - 0x9acc5fff com.tcltk.tcllibrary 8.4.7 a /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
0x9acdf000 - 0x9ad8efff com.tcltk.tklibrary 8.4.7 a /System/Library/Frameworks/Tk.framework/Versions/8.4/Tk

Model: iMac5,1, BootROM IM51.0090.B03, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB
Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 128 MB
Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz
Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x87), Broadcom BCM43xx 1.0 (4.80.79.1)
Bluetooth: Version 1.7.14f14, 2 service, 1 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
Network Service: Parallels Host-Guest, Ethernet, en2
Network Service: Parallels NAT, Ethernet, en3
Serial ATA Device: ST3160812AS Q, 149.05 GB
Parallel ATA Device: MATSHITADVD-R UJ-85J
USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
USB Device: USB HUB, Up to 12 Mb/sec, 500 mA
USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
USB Device: USB-PS/2 Optical Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA
USB Device: HASP 2.17, AKS, Up to 1.5 Mb/sec, 100 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA
FireWire Device: LaCie Hard Drive FireWire+, LaCie Group SA, Up to 400 Mb/sec
FireWire Device: LaCie d2 Extreme LUN 0, LaCie Group SA, Up to 400 Mb/sec

grass-dev@grass.itc.it

Looks like for some reason it's using the system TclTk instead of the one bundled in the GRASS app package.

Make sure your X11 build of TclTk got bundled in the app package. It's possible the automatic detection of the TclTk prefix isn't working for the bundling stage, like we discussed offlist, and you would have to set TCLTKPREFIX before building GRASS. If you used the universal tcltk build instructions in the readme, then that would be /usr/local/tcltk.

On Apr 19, 2007, at 8:24 AM, Agustin Diez Castillo wrote:

After compiling and installing latest cvs following William's readme, I got this error when trying nviz (itt works fine when using his binaries):
Date/Time: 2007-04-19 13:10:33.116 +0200
OS Version: 10.4.9 (Build 8P2137)
Report Version: 4

Command: nviz
Path: /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
Parent: wish8.4 [15392]

Version: ??? (???)

PID: 15397
Thread: 0

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

Thread 0 Crashed:
0 libX11.6.dylib 0x005dacd2 XQueryExtension + 51

...

0x9ac47000 - 0x9acc5fff com.tcltk.tcllibrary 8.4.7 a /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
0x9acdf000 - 0x9ad8efff com.tcltk.tklibrary 8.4.7 a /System/Library/Frameworks/Tk.framework/Versions/8.4/Tk

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

"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."

- Marvin

Agustin Diez Castillo wrote:

After compiling and installing latest cvs following William's readme,
I got this error when trying nviz (itt works fine when using his
binaries):
Date/Time: 2007-04-19 13:10:33.116 +0200
OS Version: 10.4.9 (Build 8P2137)
Report Version: 4

Command: nviz
Path: /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
Parent: wish8.4 [15392]

Version: ??? (???)

PID: 15397
Thread: 0

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

Thread 0 Crashed:
0 libX11.6.dylib 0x005dacd2 XQueryExtension + 51
1 libGL.1.dylib 0x005655f3 glXQueryExtension + 62
2 nviz 0x00016aa8 Togl_CreateWindow + 79

Note that you are using X11 OpenGL (I think that William's binaries
use native Mac OpenGL). You need to also be using X11 Tcl/Tk (not
native Mac Tcl/Tk) for this to work.

If you want to use the native Tcl/Tk, you need --with-opengl=mac (any
of aqua, mac, osx, macosx, or agl will work).

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

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses to launch grass, if the terminal was already open nothing happened otherwise I got this:


GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/Resources > gis.m &
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/Resources > Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

Application initialization failed: couldn’t connect to display “:0.0”
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

Error in startup script: couldn’t connect to display “:0.0”
while executing
“load /Applications/GRASS-6.3.app/Contents/Resources/lib/tk8.4/…/libtk8.4.dylib Tk”
(“package ifneeded” script)
invoked from within
“package require Tk 8.0”
(“package ifneeded” script)
invoked from within
“package require -exact BWidget 1.2.1”
(file “/Applications/GRASS-6.3.app/Contents/Resources/etc/gm/gm.tcl” line 24)


After fixing .grassrc GRASS_GUI=tcltk (as expected it changes to text after failure) it starts either the aqua tclktk or the x11 one (arbitrarily as far as I can say); after several tryouts I got what I want grass started from x11 but nviz still crashes, I have tried from both the icon and the terminal. Now everything I try but nviz is working

On Apr 19, 2007, at 5:15 PM, William Kyngesburye wrote:

Looks like for some reason it’s using the system TclTk instead of the one bundled in the GRASS app package.

Make sure your X11 build of TclTk got bundled in the app package. It’s possible the automatic detection of the TclTk prefix isn’t working for the bundling stage, like we discussed offlist, and you would have to set TCLTKPREFIX before building GRASS. If you used the universal tcltk build instructions in the readme, then that would be /usr/local/tcltk.

On Apr 19, 2007, at 8:24 AM, Agustin Diez Castillo wrote:

After compiling and installing latest cvs following William’s readme, I got this error when trying nviz (itt works fine when using his binaries):
Date/Time: 2007-04-19 13:10:33.116 +0200
OS Version: 10.4.9 (Build 8P2137)
Report Version: 4

Command: nviz
Path: /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
Parent: wish8.4 [15392]

Version: ??? (???)

PID: 15397
Thread: 0

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

Thread 0 Crashed:
0 libX11.6.dylib 0x005dacd2 XQueryExtension + 51

0x9ac47000 - 0x9acc5fff com.tcltk.tcllibrary 8.4.7 a /System/Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
0x9acdf000 - 0x9ad8efff com.tcltk.tklibrary 8.4.7 a /System/Library/Frameworks/Tk.framework/Versions/8.4/Tk


William Kyngesburye <kyngchaosatkyngchaosdotcom>
http://www.kyngchaos.com/

“Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life.”

  • Marvin

On Apr 19, 2007, at 12:47 PM, Agustin Diez Castillo wrote:

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses to launch grass, if the terminal was already open nothing happened otherwise I got this:

How are you starting the GRASS-6.3.app? From the path you are in when you fire up gis.m, it looks like you may have started it from a Terminal?

***********************************
After fixing .grassrc GRASS_GUI=tcltk (as expected it changes to text after failure) it starts either the aqua tclktk or the x11 one (arbitrarily as far as I can say); after several tryouts I got what I want grass started from x11 but nviz still crashes, I have tried from both the icon and the terminal. Now everything I try but nviz is working

Does the NVIZ crashlog show the system TclTk still? If so, NVIZ itself may have linked to the wrong TclTk, even though the rest of GRASS uses the X11 TclTk. Try this in a new Terminal window:

otool -L /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz

/usr/local/tcltk/lib/libtcl8.4.dylib and /usr/local/tcltk/lib/libtk8.4.dylib should be listed, not the Tcl or Tk frameworks from the system.

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

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

Agustin Diez Castillo wrote:

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses
to launch grass, if the terminal was already open nothing happened
otherwise I got this:
************************************************************************
*******************
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > gis.m &
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Application initialization failed: couldn't connect to display ":0.0"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

This implies that no X server is running.

If you want to use the Aqua Tcl/Tk, set the environment variable
GRASS_WISH to the full path to the Aqua "wish" (or "wish8.4" etc)
executable.

After fixing .grassrc GRASS_GUI=tcltk (as expected it changes to text
after failure) it starts either the aqua tclktk or the x11 one
(arbitrarily as far as I can say);

The default setting for GRASS_WISH is just "wish", so gis.m will use
whichever "wish" program comes first in $PATH.

after several tryouts I got what I
want grass started from x11 but nviz still crashes, I have tried from
both the icon and the terminal. Now everything I try but nviz is working

Whereas gis.m is written entirely in Tcl/Tk, and uses the standard
"wish" Tcl/Tk interpreter, NVIZ is a hybrid C + Tcl/Tk application
which links against the Tcl/Tk libraries.

Consequently, the Tcl/Tk implementation used by NVIZ is determined at
compile-time. As NVIZ also uses OpenGL, the Tcl/Tk implementation has
to match the OpenGL implementation. If it uses the X11 Tcl/Tk, it must
also use X11 OpenGL (GLX); if it uses native (Aqua) Tcl/Tk, it must
use native OpenGL (AGL).

The default OpenGL implementation is the X11 one; if you want the
native version, you must use --with-opengl=mac.

The Tcl/Tk implementation is determined by the
--with-tcltk-{libs,headers} switches. However, if you use other
libraries from a directory which contains the X11 Tcl/Tk libraries
(e.g. /usr/local/lib), it's possible that it will end up using the X11
version even if you point --with-tcltk-libs at the Aqua version.

Ultimately, there's no way to tell the linker to link specific
libraries from specific directories. You specify a list of directories
and a list of libraries, and all libraries are located using the same
list of directories.

If you have multiple versions of a particular library, this can cause
problems. Sometimes, the only solution is to create a separate
directory, populate it with symlinks to the libraries which you
actually wish to use, then specify that directory instead of e.g.
/usr/local/lib etc.

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

On Apr 19, 2007, at 2:19 PM, Glynn Clements wrote:

Agustin Diez Castillo wrote:

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses
to launch grass, if the terminal was already open nothing happened
otherwise I got this:
************************************************************************
*******************
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > gis.m &
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Application initialization failed: couldn't connect to display ":0.0"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

This implies that no X server is running.

And supports my suspicion that Agustin started GRASS.app from the Terminal. GRASS.app is meant to be double-clicked to start. The GRASS.app startup adds some convenience items to start X11 and setup some environment var defaults appropriate for OSX. It should be possible to run this startup from the Terminal, but I haven't tested that and there may be problems.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*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

I did NOT start from the terminal, I doubled click on the application. The Xlib message only showed up once, the tcltk messages several times but they are gone now. However nviz still crashes.

http://smigol2.uv.es/nviz_crashing.mov

On Apr 19, 2007, at 10:03 PM, William Kyngesburye wrote:

On Apr 19, 2007, at 2:19 PM, Glynn Clements wrote:

Agustin Diez Castillo wrote:

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses
to launch grass, if the terminal was already open nothing happened
otherwise I got this:



GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > gis.m &
GRASS 6.3.cvs (Projecte):/Applications/GRASS-6.3.app/Contents/
Resources > Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

Application initialization failed: couldn’t connect to display “:0.0”
Xlib: connection to “:0.0” refused by server
Xlib: No protocol specified

This implies that no X server is running.

And supports my suspicion that Agustin started GRASS.app from the Terminal. GRASS.app is meant to be double-clicked to start. The GRASS.app startup adds some convenience items to start X11 and setup some environment var defaults appropriate for OSX. It should be possible to run this startup from the Terminal, but I haven’t tested that and there may be problems.


William Kyngesburye <kyngchaosatkyngchaosdotcom>
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

On Apr 19, 2007, at 8:55 PM, William Kyngesburye wrote:

On Apr 19, 2007, at 12:47 PM, Agustin Diez Castillo wrote:

I did compile with TCLTKPREFIX=/usr/local/tcltk. At first it refuses to launch grass, if the terminal was already open nothing happened otherwise I got this:

How are you starting the GRASS-6.3.app? From the path you are in when you fire up gis.m, it looks like you may have started it from a Terminal?

Double click


After fixing .grassrc GRASS_GUI=tcltk (as expected it changes to text after failure) it starts either the aqua tclktk or the x11 one (arbitrarily as far as I can say); after several tryouts I got what I want grass started from x11 but nviz still crashes, I have tried from both the icon and the terminal. Now everything I try but nviz is working

Does the NVIZ crashlog show the system TclTk still? If so, NVIZ itself may have linked to the wrong TclTk, even though the rest of GRASS uses the X11 TclTk. Try this in a new Terminal window:

Yes it does

otool -L /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz

/usr/local/tcltk/lib/libtcl8.4.dylib and /usr/local/tcltk/lib/libtk8.4.dylib should be listed, not the Tcl or Tk frameworks from the system.

is pointing to Frameworks
/System/Library/Frameworks/Tk.framework/Versions/8.4/Tk
I will try from the beginning following Glynn suggestions.


William Kyngesburye <kyngchaosatkyngchaosdotcom>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don’t know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don’t know either. Wretched, isn’t it?

-HitchHiker’s Guide to the Galaxy

On Apr 20, 2007, at 6:03 AM, Agustin Diez Castillo wrote:

I did NOT start from the terminal, I doubled click on the application. The Xlib message only showed up once, the tcltk messages several times but they are gone now. However nviz still crashes.
http://smigol2.uv.es/nviz_crashing.mov

Sorry. But now it's making sense - as Glynn suggested, somehow during the build NVIZ is linking to /usr/libtcl and /usr/libtk. These are the symlinks in the system to the system Tcl and Tk frameworks. As far as Glynn's suggestion of creating these symlinks to /usr/local/tcltk copies, you shouldn't mess with system stuff (/usr/lib).

What is the link command show for nviz when you build grass? it's built as nvwish so search for that in the make output.

There should be no -L/usr/lib in there. That's a default dir for GCC and manually adding it somehow can mess up linking priorities, like what is happening here.

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

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

Now it's working, after cvs update, make distclean, make, sudo make install.
Same flags, same machine and
export SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk; export CFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export CXXFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export LDFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
not tcltkprefix.
**********************************************
./configure --with-freetype --with-freetype-includes="/Library/Frameworks/FreeType.framework/unix/include/freetype2 /Library/Frameworks/FreeType.framework/unix/include" --with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib --with-gdal=/Library/Frameworks/GDAL.framework/Programs/gdal-config --with-proj --with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/Library/Frameworks/PROJ.framework/Resources/proj --with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-png-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-postgres-includes=/usr/local/pgsql/include --with-postgres-libs=/usr/local/pgsql/lib --without-mysql --with-odbc --with-sqlite --with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib --with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include --with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include --with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib --with-cxx --with-tcltk-includes=/usr/local/tcltk/include --with-tcltk-libs=/usr/local/tcltk/lib --with-x --with-motif --without-glw --with-opengl=x11 --with-opengl-libs=/usr/X11R6/lib --without-readline --prefix=/Applications --enable-macosx-app

On Apr 20, 2007, at 6:03 AM, Agustin Diez Castillo wrote:

I did NOT start from the terminal, I doubled click on the application. The Xlib message only showed up once, the tcltk messages several times but they are gone now. However nviz still crashes.
http://smigol2.uv.es/nviz_crashing.mov

Sorry. But now it's making sense - as Glynn suggested, somehow during the build NVIZ is linking to /usr/libtcl and /usr/libtk. These are the symlinks in the system to the system Tcl and Tk frameworks. As far as Glynn's suggestion of creating these symlinks to /usr/local/tcltk copies, you shouldn't mess with system stuff (/usr/lib).

What is the link command show for nviz when you build grass? it's built as nvwish so search for that in the make output.

There should be no -L/usr/lib in there. That's a default dir for GCC and manually adding it somehow can mess up linking priorities, like what is happening here.

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

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

Cool.

I tend to get focused on the details of a problem, but make distclean is always a good place to start.

On Apr 20, 2007, at 11:59 AM, Agustin Diez Castillo wrote:

Now it's working, after cvs update, make distclean, make, sudo make install.
Same flags, same machine and
export SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk; export CFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export CXXFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export LDFLAGS="-arch ppc -arch i386 -isysroot $SDKROOT"; export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
not tcltkprefix.

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

"Time is an illusion - lunchtime doubly so."

- Ford Prefect