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
Snap not runnable due to NullPointerException in java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262) #4
Comments
Adding the following prime scriptlet to the main part: # Fix Java runtime crashes with java.lang.NullPointerException in
# java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java)
# https://github.com/adoptium/adoptium-support/issues/70
printf \
'version=1\nsequence.allfonts=default\n' \
>usr/lib/jvm/java-11-openjdk-${SNAPCRAFT_TARGET_ARCH}/lib/fontconfig.properties does resolve the error, however, another error is triggered when launching:
Adding the |
Would packing our own custom fonts work? I've been considering adding Noto Font support - https://fonts.google.com/noto/specimen/Noto+Sans+Mono If we supply these fonts and load them, would this possibly resolve this error? I can build a prototype if this might resolve it. I'll do some more research on my end to attempt to fix this. Thank you for your assistance / help in fixing this! |
I don't think so as snap applications should already have access to the font files in the host system, the problem smells like a packaging bug which I suspect will be resolved via #5. |
Run the 4 revision of the snap resulted in the following error:
Seems to be related to NPE at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264) when using install4j caused by font config missing · Issue #693 · adoptium/temurin-build.
The text was updated successfully, but these errors were encountered: