Skip to content

Lite installer crashes on Linux #513

@Nevon

Description

@Nevon

Describe the bug
Running the Lite setup jar using openjdk 24.0.1 on Arch Linux fails with a nullpointer exception.

Exception in thread "main" java.lang.ExceptionInInitializerError
        at installer.tree.JarEntryNode.getRenderer(JarEntryNode.java:294)
        at installer.tree.JarFileTreeRenderer.getTreeCellRendererComponent(JarFileTreeRenderer.java:22)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(Unknown Source)
        at java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(Unknown Source)
        at java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(Unknown Source)
        at java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(Unknown Source)
        at java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(Unknown Source)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(Unknown Source)
        at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(Unknown Source)
        at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
        at java.desktop/java.awt.Component.firePropertyChange(Unknown Source)
        at java.desktop/javax.swing.JTree.setCellRenderer(Unknown Source)
        at installer.screens.BrowseFilesPanel.<init>(BrowseFilesPanel.java:68)
        at installer.mainframe.InstallerTabs.<init>(InstallerTabs.java:48)
        at installer.mainframe.InstallerTabs.main(InstallerTabs.java:192)
Caused by: java.lang.NullPointerException: Cannot invoke "javax.swing.Icon.getIconHeight()" because the return value of "javax.swing.UIManager.getIcon(Object)" is null
        at installer.tree.JarEntryRenderer.<clinit>(JarEntryRenderer.java:38)
        ... 17 more

To Reproduce
Download the latest Lite release from the Releases page and run it in Arch Linux using java -jar <jar> .

Expected behavior
The installer should run without crashing.

Desktop (please delete as appropriate):

  • Linux

Additional context
I looked into the installer code where it was crashing, and noticed that 2 years ago there was a fix for this nullpointer exception, so perhaps the releases were built using an older version of the installer. It doesn't seem like the releases are built through CI, and I'm not familiar enough with these built tools to easily figure out how they are built.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions