[GRASS-user] Problem grass-6.4.0 error setting region: child process exited abnormally

Hi,
          I'm getting some errors when trying to use some basic grass-6.4.0 operations.

I click on Add a Raster Layer and select the aspect file from the spearfish60 permanent dataset.

After that I click on Display Active Layers and I get an error message "Error setting region: child process exited abnormally"

(attachments)

pastedGraphic.png
pastedGraphic.png

Hi,
I built grass-6.4.0 using the following configure command:

./configure --with-cxx --prefix=/Applications/GRASS --enable-macosx-app --with-x --with-opengl=x11 --without-readline --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-opengl-includes=/usr/X11/include --with-opengl-libs=/usr/X11/lib

Does this have something to do with me not starting the X11 display server? How do I do this on Mac OS X?

Is there a way to get grass to compile with Carbon bindings?

Best regards,

Elvis Dowson

On Sep 30, 2008, at 1:15 AM, Elvis Dowson wrote:

Hi,
I’m getting some errors when trying to use some basic grass-6.4.0 operations.

I click on Add a Raster Layer and select the aspect file from the spearfish60 permanent dataset.

After that I click on Display Active Layers and I get an error message “Error setting region: child process exited abnormally”

<pastedGraphic.png>

After that I get an error message saying" Error can’t read parts(projection)": no such variable

<pastedGraphic.png>

If I click on the details button, I get the following error information:

can’t read “parts(projection)”: no such variable
can’t read “parts(projection)”: no such variable
while executing
“regexp -nocase {^([0-9]+)} $parts(projection) trash parts(projection)”
(procedure “MapCanvas::runprograms” line 46)
invoked from within
“MapCanvas::runprograms $mon [expr {$mymodified != 0}]”
(procedure “MapCanvas::drawmap” line 38)
invoked from within
“MapCanvas::drawmap $mon”
(procedure “MapCanvas::display_server” line 9)
invoked from within
“MapCanvas::display_server”
(“after” script)

What could be causing it? I just built grass-6.4.0 on Mac OS X 10.5.5.

Best regards,

Elvis Dowson

Elvis Dowson wrote:

> I click on Add a Raster Layer and select the aspect file from the
> spearfish60 permanent dataset.
>
> After that I click on Display Active Layers and I get an error
> message "Error setting region: child process exited abnormally"
>
> <pastedGraphic.png>
>
>
> After that I get an error message saying" Error can't read
> parts(projection)": no such variable

> What could be causing it?

99.9% of the time, this error is related to the GDAL library.

If you start GRASS in text mode then run "g.region -p", you may get a
more informative error message.

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

Hi Glynn,
                     Running this command yeilds the following output:

GRASS 6.4.svn (spearfish60):~ > g.region -p
projection: 1 (UTM)
zone: 13
datum: nad27
ellipsoid: clark66
north: 4928010
south: 4913700
west: 589980
east: 609000
nsres: 150.63157895
ewres: 149.76377953
rows: 95
cols: 127
cells: 12065
GRASS 6.4.svn (spearfish60):~ >

Best regards,

Elvis Dowson

On Sep 30, 2008, at 4:14 AM, Glynn Clements wrote:

Elvis Dowson wrote:

I click on Add a Raster Layer and select the aspect file from the
spearfish60 permanent dataset.

After that I click on Display Active Layers and I get an error
message "Error setting region: child process exited abnormally"

<pastedGraphic.png>

After that I get an error message saying" Error can't read
parts(projection)": no such variable

What could be causing it?

99.9% of the time, this error is related to the GDAL library.

If you start GRASS in text mode then run "g.region -p", you may get a
more informative error message.

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

Hi,
        I fixed it !! :slight_smile: I had originally downloaded Tcl & Tk 8.5.4 and built it. However, when I launched grass-6.4.0, it kept using the Mac OS 10.5.5 supplied versions of Tcl and Tk 8.4.

So, I explictly specified the environment variables to help grass use the correct versions of the Tcl Tk library and it worked.

export GRASS_TCLSH=/usr/local/bin/tclsh8.5
export GRASS_WISH=/usr/local/bin/wish8.5

Best regards,

Elvis