Hi,

I tried rebuilding autosuspend in Sid, and the build lead to this traceback in Java:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sphinxcontrib/plantuml.py", line 223, in html_visit_plantuml
    fnames = dict((e, render_plantuml(self, node, e))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinxcontrib/plantuml.py", line 223, in <genexpr>
    fnames = dict((e, render_plantuml(self, node, e))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sphinxcontrib/plantuml.py", line 116, in render_plantuml raise PlantUmlError('error while running plantuml\n\n' + serr.decode('utf-8'))
sphinxcontrib.plantuml.PlantUmlError: error while running plantuml

Exception in thread "main" java.lang.InternalError: java.lang.reflect.InvocationTargetException at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:87) at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:75) at java.desktop/sun.font.SunFontManager.getInstance(SunFontManager.java:248) at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:266) at java.desktop/sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:871)
        at net.sourceforge.plantuml.Run.forceOpenJdkResourceLoad(Run.java:230)
        at net.sourceforge.plantuml.Run.main(Run.java:137)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:85)
        ... 7 more
Caused by: java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1271) at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:224)
        at 
java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:106)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:706)
        at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:358)
        at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:315)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
        at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:315)
        at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
        at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)
        ... 13 more

so the issue seems to be in PlantUML rather than its sphinxcontrib wrapper in Python.

Please note that the part that raised the error in Python is probably broken, but when there's no error when starting PlantUML, the module should still be ok.

I'm reassigning the bug to PlantUML. Please deal between autosuspend and PlantUML.

Cheers,

Thomas Goirand (zigo)

Reply via email to