AdoptOpenJDK / jitwatch

Log analyser / visualiser for Java HotSpot JIT compiler. Inspect inlining decisions, hot methods, bytecode, and assembly. View results in the JavaFX user interface.
Other
3.09k stars 438 forks source link

In Ubuntu 24.04, window (such as Sandbox) are displayed with a width of 1px. #392

Open YujiSoftware opened 1 month ago

YujiSoftware commented 1 month ago

In Ubuntu 24.04, when I click the Sandbox button, a window appears with a width of 1px.
The white area in the upper left of this capture is the Sandbox window. ubuntu24

This seems to be a bug in JavaFX (OpenJFX), and it works fine with version 22 or later. (Is this bug perhaps JDK-8316423?) https://github.com/AdoptOpenJDK/jitwatch/blob/8234257a320174aa59be7e9fd1ebccba312c58ba/ui/pom.xml#L17

        <properties>
-               <openjfx.version>19.0.2.1</openjfx.version> <!-- https://mvnrepository.com/artifact/org.openjfx/javafx -->
+               <openjfx.version>22</openjfx.version> <!-- https://mvnrepository.com/artifact/org.openjfx/javafx -->
        </properties>

NOTE: JavaFX 22 requires JDK 17 or later.

chriswhocodes commented 1 month ago

Hi @YujiSoftware thanks for the report.

I've read the JBS bug and it seems to occur under a specific combination of OS and window manager.

I'm afraid I don't think it justifies changing the requirements for JITWatch from JDK8 up to JDK17 but I will see if I can mitigate it by resizing the stage after it has opened.

Kind regards,

Chris