[GRASSLIST:1214] tcltkgrass crash on startup

Hi,

I'm getting this when I try and start up tcltkgrass from within grass 5.0.2 running on Mac OS 10.2.6:

GRASS 5.0.2 > tcltkgrass &
[1] 869
Mapset <dorme> in Location <global-latlong>
GRASS 5.0.2 > Error in startup script: xwininfo: error: No such window with id 0x1847188.
    while executing
"exec xwininfo -id [winfo id .w_g] | grep -i Corners"
    invoked from within
"scan [exec xwininfo -id [winfo id .w_g] | grep -i Corners] {%*s %d%d} dx dy"
    (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1887)
    invoked from within
"source $env(TCLTKGRASSBASE)/main/gui.tcl"
    (file "/usr/local/grass5/bin/tcltkgrass" line 21)

[1] Exit 1 tcltkgrass
Mapset <dorme> in Location <global-latlong>
GRASS 5.0.2 >

It previously worked fine - I'm fairly sure (but not certain - I mostly use command line) that it worked directly after I upgraded to 5.0.2. Any suggestions? My suspicion is an environmental variable so I've appended the output on printenv in case anyone can spot something suspicious.

Thanks in advance.
David

GRASS 5.0.2 > printenv
PWD=/Users/dorme
WINDOWID=4194318
LD_LIBRARY_PATH=/usr/local/grass5/lib
GRASS_GUI=text
GISBASE=/usr/local/grass5
USER=dorme
GISRC=/Users/dorme/.grassrc5
LANG=en_US
GIS_LOCK=688
GRASS_WISH=wish
DISPLAY=:0.0
SHLVL=3
LOGNAME=dorme
GRASS_PAGER=less
SHELL=/bin/tcsh
HOME=/Users/dorme
TERM=xterm
GRASS_TCLSH=tclsh
PATH=/usr/local/grass5/bin:/usr/local/grass5/scripts:/usr/bin:/bin:/usr/sbin:/sbin:/Users/dorme:/usr/X11R6/bin
__CF_USER_TEXT_ENCODING=0x1F5:0:0
GRASS_GNUPLOT=gnuplot -persist
GRASS_PERL=PERL_COMMAND
_=/usr/local/grass5/etc/run
HOSTTYPE=macintosh
VENDOR=apple
OSTYPE=darwin
MACHTYPE=powerpc
GROUP=staff
HOST=doibook.bio.ic.ac.uk

---------------------------------------
Dr. David Orme

Department of Biological Sciences
Imperial College London
Silwood Park Campus
Ascot, Berkshire SL5 7PY UK.

Tel: +44 (0)20 759 42358
Fax: +44 (0)20 759 42339
e-mail: d.orme@imperial.ac.uk

David Orme wrote:

I'm getting this when I try and start up tcltkgrass from within grass
5.0.2 running on Mac OS 10.2.6:

> GRASS 5.0.2 > tcltkgrass &
> [1] 869
> Mapset <dorme> in Location <global-latlong>
> GRASS 5.0.2 > Error in startup script: xwininfo: error: No such window
> with id 0x1847188.
> while executing
> "exec xwininfo -id [winfo id .w_g] | grep -i Corners"

This suggests that you're trying to use the stock[1] tcltkgrass with
the native MacOSX version of Tcl/Tk. That won't work; the stock
tcltkgrass requires an X11 version of Tcl/Tk. OpenOSX made some
changes to tcltkgrass to get it to work with the native MacOSX Tcl/Tk,
but those changes aren't in the stock tcltkgrass.

[1] The version in the GRASS packages on grass.itc.it and its mirrors.

You will have to either:

1. Figure out how to get tcltkgrass to use the X11 version of Tcl/Tk;
if the X11 "wish" program has a different name to the native MacOSX
version, you can do this by setting GRASS_WISH accordingly. OTOH, if
they are both called e.g. "wish", then that won't work (specifying a
complete path doesn't work). Instead, you would have to change the
value of PATH so that the X11 wish comes first.

2. Locate the OpenOSX changes (IIRC, there's something on the GRASS
site, but I don't recall what), and apply them.

--
Glynn Clements <glynn.clements@virgin.net>