[GRASS-user] Tcl/Tk gui and nviz errors

Hi

I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?

Thanks

Craig

$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

nviz -q

ERROR: unknown color name "red"

That's strange. It's there for ages and I don't see any changes on
TCL/Tk side about supported color names.

Can You provide information about Your TCL and Tk versions?

Maris.

2009/7/30, Craig Leat <craig.leat@gmail.com>:

Hi

I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?

Thanks

Craig

$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

nviz -q

ERROR: unknown color name "red"
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Maris Nartiss:

That's strange. It's there for ages and I don't see any changes on
TCL/Tk side about supported color names.

Can You provide information about Your TCL and Tk versions?

$ dpkg -l | grep tk8
ii tk8.5 8.5.6-3
                  Tk toolkit for Tcl and X11, v8.5 - run-time
ii tk8.5-dev 8.5.6-3
                  Tk toolkit for Tcl and X11, v8.5 - developme

$ dpkg -l | grep tcl
ii tcl8.5 8.5.6-3
                  Tcl (the Tool Command Language) v8.5 - run-t
ii tcl8.5-dev 8.5.6-3
                  Tcl (the Tool Command Language) v8.5 - devel
ii tcllib 1.10-dfsg-3
                  the Standard Tcl Library

Thanks

Craig

On Thu, Jul 30, 2009 at 5:27 PM, Craig Leat<craig.leat@gmail.com> wrote:

Hi

I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?

Thanks

Craig

$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

nviz -q

ERROR: unknown color name "red"

Here it works... could you try:
http://www.linux-archive.org/centos/188344-help-tcl-tk-centos-5-2-unknown-color-black.html
?

Markus

Markus, You seem to be right. Only problem - that thread is missing
solution: http://lists.centos.org/pipermail/centos/2008-November/067397.html

Citing here for history:

check your /etc/X11/xorg.conf on the differents machines.
-> RgbPath "/usr/share/X11/rgb"

It was different between the two machines...

On the machine that worked the RgbPath was not specified.
It was specified on the machine that did not work...
I commented it out and rebooted and it started working.

Thanks,

Jerry

Maris.

2009/7/31, Markus Neteler <neteler@osgeo.org>:

On Thu, Jul 30, 2009 at 5:27 PM, Craig Leat<craig.leat@gmail.com> wrote:

Hi

I am getting errors (after updating and re-compiling) trying to start
the Tcl/Tk gui and nviz, as shown below. I am using GRASS 6.5 r38466
on ubuntu 9.04. Any ideas on what I have done wrong?

Thanks

Craig

$ grass65 -tcltk
Cleaning up temporary files ...
Starting GRASS ...
Error in startup script: unknown color name "black"
(processing "-foreground" option)
invoked from within
"$path configure $realopt $value"
(procedure "Widget::_test_tkresource" line 6)
invoked from within
"$_optiontype($type) $option $value [lindex $optdesc 3]"
(procedure "Widget::configure" line 32)
invoked from within
"Widget::configure $_top $args"
(procedure "DynamicHelp::configure" line 5)
invoked from within
"DynamicHelp::configure -font balloon-help -fg black -bg "#FFFF77""
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gtcltk/options.tcl"
line 46)
invoked from within
"source $env(GISBASE)/etc/gtcltk/options.tcl"
(file
"/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/gis_set.tcl"
line 28)
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

nviz -q

ERROR: unknown color name "red"

Here it works... could you try:
http://www.linux-archive.org/centos/188344-help-tcl-tk-centos-5-2-unknown-color-black.html
?

Markus
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

This seems to be a bug with newer ubuntu versions because they no
longer ship with /etc/X11/rgb.txt. See the following bug report for
details:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/300935

I copied /usr/share/pixmap/rgb.txt to /etc/X11/ and restarted X. Now
Tcl/Tk gui works, but there are still problems with nviz:

nviz -q

Error in startup script: Togl: couldn't get visual
    while executing
"togl $Nv_(TOP).canvas -rgba true -double true -depth true"
    (procedure "Nv_makeGUI" line 56)
    invoked from within
"Nv_makeGUI $Nv_(AREA)"
    (file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/nviz2.2/scripts/nviz2.2_script"
line 1052)

Thanks for the tips, I'm making progress. Any more ideas about the
remaining nviz error?

Craig

nviz -q

Error in startup script: Togl: couldn't get visual
while executing
"togl $Nv_(TOP).canvas -rgba true -double true -depth true"
(procedure "Nv_makeGUI" line 56)
invoked from within
"Nv_makeGUI $Nv_(AREA)"
(file "/usr/local/src/grass6_devel/dist.i686-pc-linux-gnu/etc/nviz2.2/scripts/nviz2.2_script"
line 1052)

Solved by removing the package libgl1-mesa-dri. You can't do direct
rendering on a remote display!

Craig

Note to self: First check if glxgears works before blaming GRASS :slight_smile: