[GRASS5] Re: [GRASSLIST:1956] TckTk problem

Hamish hamish_nospam at yahoo.com
Wed Dec 10 04:32:50 EST 2003


> I have a problem with the tcltk interface in grass5.3
> i do not use the GUI much but when i try to start it i get the 
> following message:
> 
> GRASS:~ > Error in startup script: window name "loading" already
> exists in parent
>      while executing
> "label .loading -text {Loading ...}"
>      (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1881)
>      invoked from within
> "source $env(TCLTKGRASSBASE)/main/gui.tcl"
>      invoked from within
> "if [catch {source $env(TCLTKGRASSBASE)/main/gui.tcl}] {
>      set env(TCLTKGRASSBASE) $env(GISBASE)/tcltkgrass
>      source $env(TCLTKGRASSBASE)/main/gui...."
>      (file "/usr/local/grass5/bin/tcltkgrass" line 26)
> 
> I use MacOS X 10.3.1 and i have the 8.4 native X11 version of Tcltk.


Same place, same setup, same problem here.



After typing "tcltkgrass &" both the menu *AND* a remembered monitor
both start up at once. Both windows have the handle "loading" ..


quick fix:
delete the ~/.tcltkgrass file and don't "save on exit" with a monitor
open. (hint: unclick the save on exit box, press cancel, then save in
the config menu)


I don't know if the "Loading.." window is really neccessary in this
age of really fast computers.. the window just blinks and is gone..


Also I (sometimes) would get this error when trying to start a monitor
from within the TclTk menu (sometimes), but the monitor still opens:

Error in startup script: open ttydev: Permission denied
    while executing
"exec xterm -geometry 40x5 -e d.mon start=$monitor"
    (procedure "start_monitor" line 17)
    invoked from within
"start_monitor $name"
    (procedure "start_monitors" line 5)
    invoked from within
"start_monitors"
    (file "/usr/local/grass5/tcltkgrass/main/gui.tcl" line 1897)
    invoked from within
"source $env(TCLTKGRASSBASE)/main/gui.tcl"
    invoked from within
"if [catch {source $env(TCLTKGRASSBASE)/main/gui.tcl}] {
    set env(TCLTKGRASSBASE) $env(GISBASE)/tcltkgrass
    source $env(TCLTKGRASSBASE)/main/gui...."
    (file "/usr/local/grass5/bin/tcltkgrass" line 26)


but now magically I don't.
Shrug.


Hamish




More information about the grass-dev mailing list