OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000450OMNeT++runtime / Tkenvpublic2011-11-21 10:072011-12-15 14:06
michael 
andras 
normalcrashalways
resolvedfixed 
4.2 
4.2.1 
0000450: Can not start any GUI simulation on linux (Tkenv: bad option "iconphoto")
OMNeT++ Discrete Event Simulation (C) 1992-2011 Andras Varga, OpenSim Ltd.
Version: 4.2, build: 111116-7631e2d, edition: Academic Public License -- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Tkenv...
Loading NED files from ..: 23
Loading NED files from ../../src: 78
Loading NED files from ../../tests: 46

End.

<!> Tkenv: bad option "iconphoto": must be aspect, attributes, client, colormapwindows, command, deiconify, focusmodel, frame, geometry, grid, group, iconbitmap, iconify, iconmask, iconname, iconposition, iconwindow, maxsize, minsize, overrideredirect, positionfrom, protocol, resizable, sizefrom, stackorder, state, title, transient, or withdraw
.

Simulation terminated with exit code: 1
It is a RHEL4 64-bit on windows there are no problem with the simulation!?
No tags attached.
Issue History
2011-11-21 10:07michaelNew Issue
2011-11-21 11:10andrasNote Added: 0000606
2011-11-21 12:44michaelNote Added: 0000615
2011-11-21 13:34michaelNote Added: 0000619
2011-11-21 23:28andrasNote Added: 0000631
2011-11-21 23:29andrasStatusnew => resolved
2011-11-21 23:29andrasFixed in Version => 4.3b1
2011-11-21 23:29andrasResolutionopen => fixed
2011-11-21 23:29andrasAssigned To => andras
2011-12-15 14:06rhornigFixed in Version4.3b1 => 4.2.1

Notes
(0000606)
andras   
2011-11-21 11:10   
Which RHEL version? More important, what is the Tcl/Tk version?
(0000615)
michael   
2011-11-21 12:44   
RHEL4: is version 4

>uname -a
Linux compute-0-12.local 2.6.9-55.0.2.ELsmp 0000001 SMP Tue Jun 12 17:58:20 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

>type tclsh
tclsh is /usr/bin/tclsh
>tclsh
% puts $tcl_version
8.4
% info patchlevel
8.4.7
(0000619)
michael   
2011-11-21 13:34   
it is RHEL 4.3
(0000631)
andras   
2011-11-21 23:28   
Thanks! Version comparison was implemented wrong in tkenv/main.tcl, fixed.

Workaround: find the following lines in main.tcl, around line 121, and remove them:

        # On linux, 8.4.19 was tested and known to be working.
        if {[is_tk_at_least "8.4.19"]} {
            wm iconphoto . -default $iconphoto_other
            wm iconphoto . $iconphoto_main
        }