Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems launching magic gui #41

Open
oharboe opened this issue Aug 30, 2019 · 6 comments
Open

Problems launching magic gui #41

oharboe opened this issue Aug 30, 2019 · 6 comments

Comments

@oharboe
Copy link
Contributor

oharboe commented Aug 30, 2019

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
Copy link
Contributor

tajayi commented Sep 5, 2019

@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
Copy link

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
Copy link

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
Copy link
Contributor

tajayi commented Sep 5, 2019

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
Copy link
Contributor Author

oharboe commented Sep 5, 2019

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
Copy link

ohAitch commented Nov 30, 2020

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. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants