Bug#1032506: plantuml: crashes on startup

2023-03-08 Thread Victor Westerhuis

Control: severity -1 important

Hi Andrej,

Thanks for the quick response.

Andrej Shadura schreef op 08.03.2023 10:44:

Hi,

On Wed, 8 Mar 2023, at 10:36, Victor Westerhuis wrote:

Package: plantuml
Version: 1:1.2020.2+ds-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: vic...@westerhu.is

Hi maintainer,

Plantuml immediately crashes on startup with the following stacktrace:


The requested library, 
/usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so,
is found in openjdk-17-jre, which is not a dependency of 
default-jre-headless.
It is, however, a dependency of default-jre. Manually installing 
default-jre

does indeed solve the error.


Thanks for the bug report. Does this happen always, or with some
specific command-line options? I was told before that plantuml is
known to work headless as well, although I hadn’t tested it myself.


The issue is in 
https://salsa.debian.org/debian/plantuml/-/blob/master/debian/plantuml.sh#L29-32: 
if the DISPLAY environment variable is unset the headless AWT backend is 
requested, which is correct. However, the opposite is not necessarily 
true: if DISPLAY is set, default-jre is not necessarily installed.


I have downgraded the severity, because explicitly unsetting DISPLAY 
before calling /usr/bin/plantuml fixes the crash.


--
Groet, Regards,

Victor Westerhuis



Bug#1032506: plantuml: crashes on startup

2023-03-08 Thread Victor Westerhuis

Hi (again) Andrej,

Victor Westerhuis schreef op 08.03.2023 10:56:

Control: severity -1 important

Hi Andrej,

Thanks for the quick response.

Andrej Shadura schreef op 08.03.2023 10:44:

Hi,

On Wed, 8 Mar 2023, at 10:36, Victor Westerhuis wrote:

Package: plantuml
Version: 1:1.2020.2+ds-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: vic...@westerhu.is

Hi maintainer,

Plantuml immediately crashes on startup with the following 
stacktrace:


The requested library, 
/usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so,
is found in openjdk-17-jre, which is not a dependency of 
default-jre-headless.
It is, however, a dependency of default-jre. Manually installing 
default-jre

does indeed solve the error.


Thanks for the bug report. Does this happen always, or with some
specific command-line options? I was told before that plantuml is
known to work headless as well, although I hadn’t tested it myself.


The issue is in
https://salsa.debian.org/debian/plantuml/-/blob/master/debian/plantuml.sh#L29-32:
if the DISPLAY environment variable is unset the headless AWT backend
is requested, which is correct. However, the opposite is not
necessarily true: if DISPLAY is set, default-jre is not necessarily
installed.
I have opened a MR on Salsa with a fix at 
https://salsa.debian.org/debian/plantuml/-/merge_requests/3.


I have downgraded the severity, because explicitly unsetting DISPLAY
before calling /usr/bin/plantuml fixes the crash.

--
Groet, Regards,

Victor Westerhuis

--
Groet, Regards,

Victor Westerhuis



Bug#1032506: plantuml: crashes on startup

2023-03-08 Thread Andrej Shadura
Hi,

On Wed, 8 Mar 2023, at 10:36, Victor Westerhuis wrote:
> Package: plantuml
> Version: 1:1.2020.2+ds-2
> Severity: grave
> Justification: renders package unusable
> X-Debbugs-Cc: vic...@westerhu.is
>
> Hi maintainer,
>
> Plantuml immediately crashes on startup with the following stacktrace:

> The requested library, /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so,
> is found in openjdk-17-jre, which is not a dependency of default-jre-headless.
> It is, however, a dependency of default-jre. Manually installing default-jre
> does indeed solve the error.

Thanks for the bug report. Does this happen always, or with some specific 
command-line options? I was told before that plantuml is known to work headless 
as well, although I hadn’t tested it myself.

-- 
Cheers,
  Andrej



Bug#1032506: plantuml: crashes on startup

2023-03-08 Thread Victor Westerhuis
Package: plantuml
Version: 1:1.2020.2+ds-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: vic...@westerhu.is

Hi maintainer,

Plantuml immediately crashes on startup with the following stacktrace:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: 
/usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at 
java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at 
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at 
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at 
java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:315)
at 
java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:285)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:210)
at java.desktop/java.awt.image.ColorModel$1.run(ColorModel.java:208)
at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at 
java.desktop/java.awt.image.ColorModel.loadLibraries(ColorModel.java:207)
at java.desktop/java.awt.image.ColorModel.(ColorModel.java:220)
at 
java.desktop/java.awt.image.BufferedImage.(BufferedImage.java:286)
at net.sourceforge.plantuml.FileFormat.(FileFormat.java:90)
at net.sourceforge.plantuml.Option.(Option.java:94)
at net.sourceforge.plantuml.Run.main(Run.java:88)

The requested library, /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so,
is found in openjdk-17-jre, which is not a dependency of default-jre-headless.
It is, however, a dependency of default-jre. Manually installing default-jre
does indeed solve the error.

--
Groet, Regards,

Victor Westerhuis

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.14+ (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages plantuml depends on:
ii  default-jre-headless  2:1.17-74
ii  libavalon-framework-java  4.2.0-10
ii  libbatik-java 1.16+dfsg-1
ii  libcommons-io-java2.11.0-2
ii  libcommons-logging-java   1.2-3
ii  libfop-java   1:2.8-2
ii  libjlatexmath-java1.0.7-3
ii  libxml-commons-external-java  1.4.01-5
ii  libxmlgraphics-commons-java   2.8-2

Versions of packages plantuml recommends:
ii  graphviz  2.42.2-7+b3

plantuml suggests no packages.

-- no debconf information