GNU bug report logs -
#46532
plantuml in pure environment does not find X11
Previous Next
To reply to this bug, email your comments to 46532 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#46532
; Package
guix
.
(Mon, 15 Feb 2021 12:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Dr. Arne Babenhauserheide" <arne_bab <at> web.de>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 15 Feb 2021 12:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear Guix hackers,
when installing plantuml in a pure environment, it throws an java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
To reproduce:
$ guix environment --ad-hoc --pure plantuml -- plantumlNo protocol specified
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
at net.sourceforge.plantuml.FileFormat.<clinit>(FileFormat.java:93)
at net.sourceforge.plantuml.Option.<init>(Option.java:97)
at net.sourceforge.plantuml.Run.main(Run.java:93)
When I leave out --pure, it works, so I assume that a dependency on X11
might be missing.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46532
; Package
guix
.
(Mon, 15 Feb 2021 15:13:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 46532 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Mon, 2021-02-15 at 13:52 +0100, Dr. Arne Babenhauserheide wrote:
> Dear Guix hackers,
>
> when installing plantuml in a pure environment, it throws an java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
Is the environment variable XAUTHORITY set?
Compare the value inside the environment and outside the environment.
Perhaps "XAUTHORITY" should be added to %precious-variables in
guix/scripts/environment.scm. An untested patch is attached,
I'll test it now.
Greetings,
Maxime.
[0001-scripts-preserve-XAUTHORITY-in-pure-environments.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46532
; Package
guix
.
(Mon, 15 Feb 2021 15:19:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 46532 <at> debbugs.gnu.org (full text, mbox):
self-proposed patch works for me
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46532
; Package
guix
.
(Tue, 16 Feb 2021 09:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 46532 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Mon, Feb 15, 2021 at 01:52:42PM +0100, Dr. Arne Babenhauserheide wrote:
> Dear Guix hackers,
>
> when installing plantuml in a pure environment, it throws an java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
>
> To reproduce:
>
> $ guix environment --ad-hoc --pure plantuml -- plantumlNo protocol specified
> Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
> at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
> at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
> at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
> at net.sourceforge.plantuml.FileFormat.<clinit>(FileFormat.java:93)
> at net.sourceforge.plantuml.Option.<init>(Option.java:97)
> at net.sourceforge.plantuml.Run.main(Run.java:93)
>
> When I leave out --pure, it works, so I assume that a dependency on X11
> might be missing.
>
I have the following scriptlet that someone shared for running eolie in
a container. I'm guessing it could be modified to run platuml if needed.
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[guix-container (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 4 years and 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.