← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2084412] [NEW] fonts-symbola breaks plantuml and other java apps

 

You have been subscribed to a public bug:

Since the upgrade to 24.10 plantuml (and at least one other java app)
crashes with the exception:

$ java -jar /usr/share/plantuml/plantuml.jar plantuml_test.txt 
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "platName" is null
        at java.desktop/sun.awt.X11FontManager.getFileNameFromPlatformName(X11FontManager.java:161)
        at java.desktop/sun.font.SunFontManager.initCompositeFonts(SunFontManager.java:3102)
        at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:445)
        at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
        at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
        at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
        at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:55)
        at java.desktop/sun.font.PlatformFontInfo.createFontManager(PlatformFontInfo.java:37)
        at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:51)
        at java.desktop/sun.font.SunFontManager.getInstance(SunFontManager.java:242)
        at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:260)
        at java.desktop/sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:870)
        at net.sourceforge.plantuml.Run.forceOpenJdkResourceLoad(Run.java:230)
        at net.sourceforge.plantuml.Run.main(Run.java:137)

Searching for the exception brought me to this page:
https://forum.portswigger.net/thread/could-not-start-burp-java-lang-nullpointerexception-cannot-invoke-string-startswith-string-because-platname-is-null-2b23b80f

which suggests to remove and purge font-symbola. This solves the problem
for planuml as well.

** Affects: ttf-ancient-fonts (Ubuntu)
     Importance: Undecided
         Status: New

-- 
fonts-symbola breaks plantuml and other java apps
https://bugs.launchpad.net/bugs/2084412
You received this bug notification because you are a member of Ubuntu Studio Bugs, which is subscribed to ttf-ancient-fonts in Ubuntu.