← Back to team overview

ubuntustudio-bugs team mailing list archive

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

 

** Package changed: libreoffice (Ubuntu) => ttf-ancient-fonts (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to ttf-ancient-fonts in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/2084412

Title:
  fonts-symbola breaks plantuml and other java apps

Status in ttf-ancient-fonts package in Ubuntu:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ttf-ancient-fonts/+bug/2084412/+subscriptions