[GRASS-user] most recent kyngesburye build for osx tiger error

Greetings all,
I recently installed Grass 6.3.0-3-Tig on my mac running Tiger, after updating all necessary frameworks listed by William Kyngesburye. Grass seems to start normally (though with lots of text at startup in the terminal window, included at the end of this email), and it opens the standard startup screen. I click Enter Grass, it spins a bit, then this error in an X11 window: "Error setting region (Problem with g.region?): child killed: trace trap", folled by this text in the terminal window after I click the 'ok' button on the error window:
GRASS 6.3.0 (Brandon):~ > Error in startup script: can't read "parts(w)": no such variable
     while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
     (procedure "MapCanvas::zoom_gregion" line 16)
     invoked from within
"MapCanvas::zoom_gregion $mon"
     (procedure "MapCanvas::create" line 40)
     invoked from within
"MapCanvas::create"
     (procedure "Gm::startmon" line 11)
     invoked from within
"Gm::startmon"
     (procedure "Gm::create" line 79)
     invoked from within
"Gm::create"
     (procedure "main" line 30)
     invoked from within
"main $argc $argv"
     (file "/Applications/GRASS-6.3.app/Contents/MacOS/etc/gm/gm.tcl" line 541)

This occurs with multiple locations that have different projections, bounds, etc.

I still have my older version, so I'm not in a pinch, but it would be nice to get the newest version working and I'm lost on where to start.

Thanks much, and here is the text from startup (mentioned above) that appears in the terminal window before the location selection screen appears.

Last login: Thu Dec 18 12:42:51 on ttyp1
'/Applications/GRASS-6.3.app/Contents/MacOS/grass.sh'; exit
Welcome to Darwin!
brandon-gablers-computer:~ StrayHawk$ '/Applications/GRASS-6.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
2008-12-18 12:43:30.271 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32b5c0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32e760 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x313570 of class NSCFString autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32e4e0 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x313c00 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32df40 of class NSConcreteData autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.278 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32df60 of class NSCFArray autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.287 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x332730 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.287 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x32e2d0 of class NSBundle autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x330720 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x330930 of class NSCFString autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x330810 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x330a90 of class NSPathStore2 autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3131b0 of class NSConcreteData autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3301c0 of class NSCFArray autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.291 osascript[10651] LCC Scroll Enhancer loaded
2008-12-18 12:43:30.291 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x331200 of class NSMachPort autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.292 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x333c70 of class NSCFNumber autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.292 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3341c0 of class NSCFString autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.292 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3341d0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Cleaning up temporary files.....
Starting GRASS ...
GISDBASE='/Users/StrayHawk/Murray_NZ';
LOCATION_NAME='NZ';
MAPSET='new_zealand';
GRASS GUI should be tcltk

On Dec 18, 2008, at 1:46 PM, Brandon M.Gabler wrote:

Greetings all,
I recently installed Grass 6.3.0-3-Tig on my mac running Tiger, after updating all necessary frameworks listed by William Kyngesburye. Grass seems to start normally (though with lots of text at startup in the terminal window, included at the end of this email), and it opens the standard startup screen. I click Enter Grass, it spins a bit, then this error in an X11 window: "Error setting region (Problem with g.region?): child killed: trace trap", folled by this text in the terminal window after I click the 'ok' button on the error window:
GRASS 6.3.0 (Brandon):~ > Error in startup script: can't read "parts(w)": no such variable
   while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
   (procedure "MapCanvas::zoom_gregion" line 16)
   invoked from within
"MapCanvas::zoom_gregion $mon"
   (procedure "MapCanvas::create" line 40)
   invoked from within
"MapCanvas::create"
   (procedure "Gm::startmon" line 11)
   invoked from within
"Gm::startmon"
   (procedure "Gm::create" line 79)
   invoked from within
"Gm::create"
   (procedure "main" line 30)
   invoked from within
"main $argc $argv"
   (file "/Applications/GRASS-6.3.app/Contents/MacOS/etc/gm/gm.tcl" line 541)

Not sure about this part, I don't know much about the GUI internals.

This occurs with multiple locations that have different projections, bounds, etc.

I still have my older version, so I'm not in a pinch, but it would be nice to get the newest version working and I'm lost on where to start.

Does a d.mon (without the GUI) work to display anything?

Thanks much, and here is the text from startup (mentioned above) that appears in the terminal window before the location selection screen appears.

Last login: Thu Dec 18 12:42:51 on ttyp1
'/Applications/GRASS-6.3.app/Contents/MacOS/grass.sh'; exit
Welcome to Darwin!
brandon-gablers-computer:~ StrayHawk$ '/Applications/GRASS-6.3.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...

...

2008-12-18 12:43:30.288 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3301c0 of class NSCFArray autoreleased with no pool in place - just leaking
2008-12-18 12:43:30.291 osascript[10651] LCC Scroll Enhancer loaded

...

2008-12-18 12:43:30.292 osascript[10651] *** _NSAutoreleaseNoPool(): Object 0x3341d0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Cleaning up temporary files.....
Starting GRASS ...
GISDBASE='/Users/StrayHawk/Murray_NZ';
LOCATION_NAME='NZ';
MAPSET='new_zealand';
GRASS GUI should be tcltk

That noise is either from some 3rd-party AppleScript scripting addition you have installed, or from a system hack/extension (that LCC Scroll Enahncer mentioned, maybe?) that may be a bit old, or poorly programmed. It is probably not affecting GRASS (CLI programs), since AppleScript is only briefly used to start GRASS. But it may negatively affect X11 for the GUI...

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

All generalizations are dangerous, even this one.

Brandon M. Gabler wrote:

Greetings all,
I recently installed Grass 6.3.0-3-Tig on my mac running Tiger, after
updating all necessary frameworks listed by William Kyngesburye.
Grass seems to start normally (though with lots of text at startup in
the terminal window, included at the end of this email), and it opens
the standard startup screen. I click Enter Grass, it spins a bit,
then this error in an X11 window: "Error setting region (Problem with
g.region?): child killed: trace trap", folled by this text in the
terminal window after I click the 'ok' button on the error window:
GRASS 6.3.0 (Brandon):~ > Error in startup script: can't read "parts
(w)": no such variable
     while executing
"set $parts(w) [expr round($parts(w)/$parts(ewres))*$parts(ewres)]"
     (procedure "MapCanvas::zoom_gregion" line 16)

This normally indicates that g.region failed. The most common reason
for that is a problem with GDAL. GDAL depends upon various other
libraries; if any of those libraries are missing or incompatible,
anything which links against GDAL (e.g. g.region) fails.

You may get a more informative error message by starting GRASS in text
mode ("grass63 -text", or even "grass63 /path/to/database/location/mapset")
then running "g.region -p" from the command line.

Actually, simply running "gdalinfo" from the command line (without starting
GRASS) may provide the same information with less effort. It depends upon
whether the problem is between GDAL and its dependencies or between GRASS
and GDAL (or between GRASS and GDAL's dependencies).

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