[GRASS-dev] Mac OS X frameworks for support libraries

On Jul 28, 2006, at 5:06 PM, Michael Barton wrote:

William,

I’ll wait for your next beta to try it. I and many others would like to exit
both gism and grass together, but this is more complicated than it seems. No
one has figured it out yet. The easiest way would be to start gism then
grass, rather than grass then gism. But this is another issue.

Normally exiting grass kills wish, and hence gism. But gism could keep
running if started within grass (it needs grass environmental variables to
get going).

Hm, tried it again with latest snapshot. GRASS.app starts GRASS in Terminal, and starts GUI in X11 Wish. Quit GRASS in Terminal and GUI stays running in X11 Wish. Any attempt to do stuff in GUI then gives Location not set error.

I looked at process ownership - Wish starts out with the GRASS shell as the parent. After quitting GRASS with the Wish GUI still running, Wish now has launchd (process 1) as the parent. Happens with both X11 Wish and Aqua Wish. GRASS doesn’t seem to be killing Wish, just letting it go on with its life. hehe, some parenting and animal behaviours come to mind…

In Lorenzo’s app, I’ve successfully started gism in TclTk aqua and used the
bash terminal. It all works without x11–except of course v.digit, nviz, and
a couple other modules.

I’ve found an odd problem. First, with X11 Wish (don’t set GRASS_WISH or GRASS_TCLSH in .bash_profile), start GRASS.app. GUI starts in X11. Select mapset and start NVIZ from GUI. All OK - NVIZ works normally and starts directly in NVIZ with no rasters or vectors selected. Quit everything.

Change GRASS_WISH and GRASS_TCLSH to Aqua version in /usr/local/bin. Start GRASS.app, GUI opens in Aqua Wish. Select mapset and start NVIZ. NVIZ GUI startup dialog shows to select initial data. Select something and Run. NVIZ progress shows, then disappears. No display. NVIZ has a crashlog with something completely different from any previous crashes - it’s crashing in G__open_cell_old.

BUT, while still in the Aqua Wish GUI, if I start NVIZ from the Terminal, it works.

So, now NVIZ doesn’t work from the Aqua GUI. But otherwise works normally.

Haven’t tried Aqua NVIZ again, but thanks to Amilcar Challu, I’ve verified that NVIZ Aqua doesn’t work on Intel Macs at all - it’s not the graphics card difference.


William Kyngesburye <kyngchaos@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

William’s comments explain me what is going on a IBook, grass doesn’t work and the terminal keeps giving a message about location not being initialized (I don’t remember the exact message now). This weird behavior happens only in the main user. It seems that somehow
Sad to hear that NVIZ doesn’t work at all in MacIntel I want to buy a MacBookPro.
In some of my several attempts to compile grass, NVIZ was working when started from X11 terminal, but after get rid of the problems the errors messages when compiling nviz doesn’t work.
Agustin

On Jul 28, 2006, at 5:06 PM, Michael Barton wrote:

William,

I’ll wait for your next beta to try it. I and many others would like to exit
both gism and grass together, but this is more complicated than it seems. No
one has figured it out yet. The easiest way would be to start gism then
grass, rather than grass then gism. But this is another issue.

Normally exiting grass kills wish, and hence gism. But gism could keep
running if started within grass (it needs grass environmental variables to
get going).

Hm, tried it again with latest snapshot. GRASS.app starts GRASS in Terminal, and starts GUI in X11 Wish. Quit GRASS in Terminal and GUI stays running in X11 Wish. Any attempt to do stuff in GUI then gives Location not set error.

I looked at process ownership - Wish starts out with the GRASS shell as the parent. After quitting GRASS with the Wish GUI still running, Wish now has launchd (process 1) as the parent. Happens with both X11 Wish and Aqua Wish. GRASS doesn’t seem to be killing Wish, just letting it go on with its life. hehe, some parenting and animal behaviours come to mind…

In Lorenzo’s app, I’ve successfully started gism in TclTk aqua and used the
bash terminal. It all works without x11–except of course v.digit, nviz, and
a couple other modules.

I’ve found an odd problem. First, with X11 Wish (don’t set GRASS_WISH or GRASS_TCLSH in .bash_profile), start GRASS.app. GUI starts in X11. Select mapset and start NVIZ from GUI. All OK - NVIZ works normally and starts directly in NVIZ with no rasters or vectors selected. Quit everything.

Change GRASS_WISH and GRASS_TCLSH to Aqua version in /usr/local/bin. Start GRASS.app, GUI opens in Aqua Wish. Select mapset and start NVIZ. NVIZ GUI startup dialog shows to select initial data. Select something and Run. NVIZ progress shows, then disappears. No display. NVIZ has a crashlog with something completely different from any previous crashes - it’s crashing in G__open_cell_old.

BUT, while still in the Aqua Wish GUI, if I start NVIZ from the Terminal, it works.

So, now NVIZ doesn’t work from the Aqua GUI. But otherwise works normally.

Haven’t tried Aqua NVIZ again, but thanks to Amilcar Challu, I’ve verified that NVIZ Aqua doesn’t work on Intel Macs at all - it’s not the graphics card difference.


William Kyngesburye <kyngchaos@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

grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

NVIZ does work on Intel in X11. I only had problems when trying to start the X11 NVIZ from gis.m running in an Aqua Tcl/Tk. In an X11 Tcl/Tk NVIZ will start from gis.m. NVIZ will start from the Terminal no matter which Tcl/Tk is used by gis.m.

Have you tried the new version of GRASS.app and the frameworks from today? The previous one had some startup issues in certain cases.

On Jul 29, 2006, at 3:39 PM, Agustin Diez Castillo wrote:

William's comments explain me what is going on a IBook, grass doesn't work and the terminal keeps giving a message about location not being initialized (I don't remember the exact message now). This weird behavior happens only in the main user. It seems that somehow
Sad to hear that NVIZ doesn't work at all in MacIntel I want to buy a MacBookPro.
In some of my several attempts to compile grass, NVIZ was working when started from X11 terminal, but after get rid of the problems the errors messages when compiling nviz doesn't work.
Agustin

On Jul 28, 2006, at 5:06 PM, Michael Barton wrote:

William,

I'll wait for your next beta to try it. I and many others would like to exit
both gism and grass together, but this is more complicated than it seems. No
one has figured it out yet. The easiest way would be to start gism then
grass, rather than grass then gism. But this is another issue.

Normally exiting grass kills wish, and hence gism. But gism could keep
running if started within grass (it needs grass environmental variables to
get going).

Hm, tried it again with latest snapshot. GRASS.app starts GRASS in Terminal, and starts GUI in X11 Wish. Quit GRASS in Terminal and GUI stays running in X11 Wish. Any attempt to do stuff in GUI then gives Location not set error.

I looked at process ownership - Wish starts out with the GRASS shell as the parent. After quitting GRASS with the Wish GUI still running, Wish now has launchd (process 1) as the parent. Happens with both X11 Wish and Aqua Wish. GRASS doesn't seem to be killing Wish, just letting it go on with its life. hehe, some parenting and animal behaviours come to mind...

In Lorenzo's app, I've successfully started gism in TclTk aqua and used the
bash terminal. It all works without x11--except of course v.digit, nviz, and
a couple other modules.

I've found an odd problem. First, with X11 Wish (don't set GRASS_WISH or GRASS_TCLSH in .bash_profile), start GRASS.app. GUI starts in X11. Select mapset and start NVIZ from GUI. All OK - NVIZ works normally and starts directly in NVIZ with no rasters or vectors selected. Quit everything.

Change GRASS_WISH and GRASS_TCLSH to Aqua version in /usr/local/bin. Start GRASS.app, GUI opens in Aqua Wish. Select mapset and start NVIZ. NVIZ GUI startup dialog shows to select initial data. Select something and Run. NVIZ progress shows, then disappears. No display. NVIZ has a crashlog with something completely different from any previous crashes - it's crashing in G__open_cell_old.

BUT, while still in the Aqua Wish GUI, if I start NVIZ from the Terminal, it works.

So, now NVIZ doesn't work from the Aqua GUI. But otherwise works normally.

Haven't tried Aqua NVIZ again, but thanks to Amilcar Challu, I've verified that NVIZ Aqua doesn't work on Intel Macs at all - it's not the graphics card difference.

-----
William Kyngesburye <kyngchaos@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

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

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

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

William, I did it but with no success
GRASS 6.1.cvs (spearfish):/Users/Shared/src/grass6 > Error in startup script: ERROR: default region is invalid
        line 7: <e-w res: 50.00>
     while executing
"close $input"
     (procedure "MapCanvas::zoom_gregion" line 13)
     invoked from within
"MapCanvas::zoom_gregion $mon"
     (procedure "MapCanvas::create" line 46)
     invoked from within
"MapCanvas::create"
     (procedure "Gm::startmon" line 11)
     invoked from within
"Gm::startmon"
     (procedure "Gm::create" line 74)
     invoked from within
"Gm::create"
     (procedure "main" line 30)
     invoked from within
"main $argc $argv"
     (file "/usr/local/grass-6.1.cvs/etc/gm/gm.tcl" line 528)

On 29/07/2006, at 11:07 PM, William Kyngesburye wrote:

NVIZ does work on Intel in X11. I only had problems when trying to start the X11 NVIZ from gis.m running in an Aqua Tcl/Tk. In an X11 Tcl/Tk NVIZ will start from gis.m. NVIZ will start from the Terminal no matter which Tcl/Tk is used by gis.m.

Have you tried the new version of GRASS.app and the frameworks from today? The previous one had some startup issues in certain cases.

On Jul 29, 2006, at 3:39 PM, Agustin Diez Castillo wrote:

William's comments explain me what is going on a IBook, grass doesn't work and the terminal keeps giving a message about location not being initialized (I don't remember the exact message now). This weird behavior happens only in the main user. It seems that somehow
Sad to hear that NVIZ doesn't work at all in MacIntel I want to buy a MacBookPro.
In some of my several attempts to compile grass, NVIZ was working when started from X11 terminal, but after get rid of the problems the errors messages when compiling nviz doesn't work.
Agustin

On Jul 28, 2006, at 5:06 PM, Michael Barton wrote:

William,

I'll wait for your next beta to try it. I and many others would like to exit
both gism and grass together, but this is more complicated than it seems. No
one has figured it out yet. The easiest way would be to start gism then
grass, rather than grass then gism. But this is another issue.

Normally exiting grass kills wish, and hence gism. But gism could keep
running if started within grass (it needs grass environmental variables to
get going).

Hm, tried it again with latest snapshot. GRASS.app starts GRASS in Terminal, and starts GUI in X11 Wish. Quit GRASS in Terminal and GUI stays running in X11 Wish. Any attempt to do stuff in GUI then gives Location not set error.

I looked at process ownership - Wish starts out with the GRASS shell as the parent. After quitting GRASS with the Wish GUI still running, Wish now has launchd (process 1) as the parent. Happens with both X11 Wish and Aqua Wish. GRASS doesn't seem to be killing Wish, just letting it go on with its life. hehe, some parenting and animal behaviours come to mind...

In Lorenzo's app, I've successfully started gism in TclTk aqua and used the
bash terminal. It all works without x11--except of course v.digit, nviz, and
a couple other modules.

I've found an odd problem. First, with X11 Wish (don't set GRASS_WISH or GRASS_TCLSH in .bash_profile), start GRASS.app. GUI starts in X11. Select mapset and start NVIZ from GUI. All OK - NVIZ works normally and starts directly in NVIZ with no rasters or vectors selected. Quit everything.

Change GRASS_WISH and GRASS_TCLSH to Aqua version in /usr/local/bin. Start GRASS.app, GUI opens in Aqua Wish. Select mapset and start NVIZ. NVIZ GUI startup dialog shows to select initial data. Select something and Run. NVIZ progress shows, then disappears. No display. NVIZ has a crashlog with something completely different from any previous crashes - it's crashing in G__open_cell_old.

BUT, while still in the Aqua Wish GUI, if I start NVIZ from the Terminal, it works.

So, now NVIZ doesn't work from the Aqua GUI. But otherwise works normally.

Haven't tried Aqua NVIZ again, but thanks to Amilcar Challu, I've verified that NVIZ Aqua doesn't work on Intel Macs at all - it's not the graphics card difference.

-----
William Kyngesburye <kyngchaos@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

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

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

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

First, make sure your spearfish data is up to date. I was using an older one with an old window file format for some of the saved regions, and I got errors reading those. The old format used 'e-w res:', now it's 'e-w resol:'. The latest spearfish 0.2 has this corrected.

On Jul 29, 2006, at 4:46 PM, Agustin Diez Castillo wrote:

William, I did it but with no success
GRASS 6.1.cvs (spearfish):/Users/Shared/src/grass6 > Error in startup script: ERROR: default region is invalid
       line 7: <e-w res: 50.00>
    while executing
"close $input"
    (procedure "MapCanvas::zoom_gregion" line 13)
    invoked from within
"MapCanvas::zoom_gregion $mon"
    (procedure "MapCanvas::create" line 46)
    invoked from within
"MapCanvas::create"
    (procedure "Gm::startmon" line 11)
    invoked from within
"Gm::startmon"
    (procedure "Gm::create" line 74)
    invoked from within
"Gm::create"
    (procedure "main" line 30)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.1.cvs/etc/gm/gm.tcl" line 528)

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

"Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....

- the wisdom of Tarzan

Agustin,

It’s not as bad as it seems for you. I’ll explain.

  1. I think your problem about the location means that your gis database is incorrectly set. You can either fix this by editing .grassrc6 or starting GRASS in text mode and setting it there. The fact that you only have a problem with the main user is a clue.
  2. I think (and I’m copying William here to clarify) that NVIZ works OK on Intel MacBooks if you run it in x11 mode. It does not work in TclTk aqua mode. But maybe this is incorrect.

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: Agustin Diez Castillo adiez@uv.es
Date: Sat, 29 Jul 2006 22:39:59 +0200
To: William Kyngesburye kyngchaos@kyngchaos.com
Cc: grass-dev@grass.itc.it, Michael Barton michael.barton@asu.edu
Subject: Re: [GRASS-dev] Mac OS X frameworks for support libraries

William’s comments explain me what is going on a IBook, grass doesn’t work and the terminal keeps giving a message about location not being initialized (I don’t remember the exact message now). This weird behavior happens only in the main user. It seems that somehow
Sad to hear that NVIZ doesn’t work at all in MacIntel I want to buy a MacBookPro.
In some of my several attempts to compile grass, NVIZ was working when started from X11 terminal, but after get rid of the problems the errors messages when compiling nviz doesn’t work.