Fontconfig head is null
Description:
The upgrade 2:2.15.0-3: Modernize, use libxml2
breaks java application.
Additional info:
The bisect process to conclude which is the first bad commit is:
java application was working before upgrading
[2025-01-20T11:09:31+0100] [ALPM] upgraded fontconfig (2:2.15.0-2 -> 2:2.16.0-1)
java application broken
[2025-01-21T13:09:51+0100] [ALPM] downgraded fontconfig (2:2.16.0-1 -> 2:2.15.0-3)
java application broken
[2025-01-21T13:11:50+0100] [ALPM] downgraded fontconfig (2:2.15.0-3 -> 2:2.15.0-2)
java application working
fontconfig 2:2.16.0-1 is from the official archlinux mirrors.
I have built fontconfig 2:2.15.0-3 from d7144e8 2:2.15.0-3: Modernize, use libxml2
I have built fontconfig 2:2.15.0-2 from 27936e3 add nvchecker.toml
When it fails, the reported messages are:
$ ./FPGAs_AdaptiveSoCs_Unified_2024.2_1113_1001_Lin64.bin
Verifying archive integrity... All good.
Uncompressing AMD Installer for FPGAs and Adaptive SoCs...
This is a fresh install.
INFO Could not detect the display scale (hDPI).
If you are using a high resolution monitor, you can set the installer scale factor like this:
export XINSTALLER_SCALE=2
setenv XINSTALLER_SCALE 2
ERROR: Installer could not be started. Fontconfig head is null, check your fonts or fonts configuration
java.lang.RuntimeException: Fontconfig head is null, check your fonts or fonts configuration
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1263)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:221)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:105)
at java.desktop/sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:696)
at java.desktop/sun.font.SunFontManager$2.run(SunFontManager.java:352)
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/java.awt.Font.getFont2D(Font.java:526)
at java.desktop/java.awt.Font.getFamily(Font.java:1433)
at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1407)
at java.desktop/java.awt.Font.getFamily(Font.java:1399)
at com.xilinx.installer.gui.r.c(Unknown Source)
at com.xilinx.installer.gui.r.<init>(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.C(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.B(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.<init>(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.<clinit>(Unknown Source)
at com.xilinx.installer.api.InstallerLauncher.main(Unknown Source)
Steps to reproduce:
Unfortunately, the issue appears on a closed source application. It is free to download, but requires registration: