Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk16 aarch64 extended.openjdk: NPE "sun.awt.FontConfiguration.head" is null #2373

Closed
andrew-m-leonard opened this issue Mar 11, 2021 · 3 comments
Assignees
Milestone

Comments

@andrew-m-leonard
Copy link
Contributor

Failing testcases:

19:02:36  java.lang.InternalError: java.lang.reflect.InvocationTargetException
19:02:36  	at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:86)
19:02:36  	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
19:02:36  	at java.desktop/sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
19:02:36  	at java.desktop/java.awt.Font.getFont2D(Font.java:524)
19:02:36  	at java.desktop/java.awt.Font$FontAccessImpl.getFont2D(Font.java:264)
19:02:36  	at java.desktop/sun.font.FontUtilities.getFont2D(FontUtilities.java:147)
19:02:36  	at java.desktop/sun.java2d.SunGraphics2D.checkFontInfo(SunGraphics2D.java:672)
19:02:36  	at java.desktop/sun.java2d.SunGraphics2D.getFontInfo(SunGraphics2D.java:838)
19:02:36  	at java.desktop/sun.java2d.pipe.GlyphListPipe.drawString(GlyphListPipe.java:46)
19:02:36  	at java.desktop/sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2936)
19:02:36  	at ImageWriterCompressionTest.main(ImageWriterCompressionTest.java:82)
19:02:36  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
19:02:36  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
19:02:36  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
19:02:36  	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
19:02:36  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
19:02:36  	at java.base/java.lang.Thread.run(Thread.java:853)
19:02:36  Caused by: java.lang.reflect.InvocationTargetException
19:02:36  	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
19:02:36  	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
19:02:36  	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
19:02:36  	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
19:02:36  	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
19:02:36  	at java.desktop/sun.font.FontManagerFactory$1.run(FontManagerFactory.java:84)
19:02:36  	... 16 more
19:02:36  Caused by: java.lang.NullPointerException: Cannot load from short array because "sun.awt.FontConfiguration.head" is null
19:02:36  	at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1260)
19:02:36  	at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:223)
19:02:36  	at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:106)
19:02:36  	at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:711)
19:02:36  	at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
19:02:36  	at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:309)
19:02:36  	at java.base/java.security.AccessController.doPrivileged(AccessController.java:682)
19:02:36  	at java.desktop/sun.font.SunFontManager.<init>(SunFontManager.java:309)
19:02:36  	at java.desktop/sun.awt.FcFontManager.<init>(FcFontManager.java:35)
19:02:36  	at java.desktop/sun.awt.X11FontManager.<init>(X11FontManager.java:56)

Node: build-docker-ubuntu1804-armv8-2

Same issue as seen here: #2137 (comment)
@smlambert exclude maybe?

@smlambert
Copy link
Contributor

Yes @andrew-m-leonard, excluding makes sense until it can be addressed.

@andrew-m-leonard
Copy link
Contributor Author

Possibly now fixed, just tried a new grinder on the same node and passes: https://ci.adoptopenjdk.net/job/Grinder/7789/console

@karianna karianna added this to the March 2021 milestone Mar 23, 2021
@karianna
Copy link
Contributor

@andrew-m-leonard safe to close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants