The-OpenROAD-Project / alpha-release

Builds, flow and designs for the alpha release
Other
53 stars 17 forks source link

Problems launching magic gui #41

Open oharboe opened 5 years ago

oharboe commented 5 years ago

Normally, I can launch a GUI from within Docker on my desktop by running the command below, but I get an error message.

I run Ubuntu 18.04.

$ docker run --volume="/run/user/$UID/gdm/Xauthority:/root/.Xauthority:rw" --env="DISPLAY" --net=host --interactive -t openroad/alpha-release
[root@davos /]# magic
Error in startup script: 
    (default value for "-font" in widget ".text")
    invoked from within
"text $con -wrap char -yscrollcommand [list $w.sy set]  -foreground $COLOR(stdin)  -insertbackground $COLOR(cursor)"
    (procedure "InitUI" line 16)
    invoked from within
"InitUI $title"
    (procedure "::tkcon::Init" line 243)
    invoked from within
"::tkcon::Init"
    invoked from within
"if {![info exists ::tkcon::PRIV(root)] || \
    ![winfo exists $::tkcon::PRIV(root)]} {
    ::tkcon::Init
}"
    (file "/openroad/OpenROAD-2019-08-15_12-11/lib/magic/tcl/tkcon.tcl" line 5327)
tajayi commented 5 years ago

@RTimothyEdwards Any quick pointers you can think of? Not sure if it's related to the changes I made.

I'll continue looking into this

RTimothyEdwards commented 5 years ago

I don't even see a specific error listed "(default value for "-font" in widget ".text")" does not sound like an error. My best guess is that the container is missing fonts for Tk, meaning a problem with the Tcl/Tk install. But Tk should be able to fall back on X11 fonts, and it would be surprising to find that the container didn't have X11 fonts installed somewhere. . .

RTimothyEdwards commented 5 years ago

FYI, the error occurs inside the "tkcon.tcl" script, which is magic's console window in interactive mode under the Tcl/Tk interpreter. Since you have been using magic in batch for OpenROAD applications, you may not have noticed if anything was wrong with the interactive version. Technically, I would not suppose that OpenROAD is under any obligation to support interactive use of Magic within OpenROAD, but it would be nice to have that ability.

tajayi commented 5 years ago

Thanks for the hints. I'll do some more debugging. I have been able to run the GUI as packaged on CentOS 6/7. I wonder if this something to do with docker or the docker image configuration.

@oharboe Does the docker image have tk installed? Also is the docker image running ubuntu 18 or is it the docker host.

oharboe commented 5 years ago

the docker image is openroad/alpha-release, so you probably know what it has installed.

i am running the command from nondocker ubuntu 18.04 desktop.

ohAitch commented 3 years ago

Ran into this, got past it by via yum install xorg-x11-fonts*, now have magic successfully running in Docker on macOS!

Screen Shot 2020-11-29 at 8 10 11 PM (3)

(Trying to compile natively met problems, also related to X. )