JDK-8353556 : RestoreSceneSizeTest fails in Ubuntu 24.04
  • Type: Bug
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: jfx25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_ubuntu
  • CPU: generic
  • Submitted: 2025-04-02
  • Updated: 2025-04-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
RestoreSceneSizeTest fails on Ubuntu 24.04 and same test doesn't fail in Ubuntu 22.04 with same FX code.

RestoreSceneSizeTest > testUnfullscreenSize() FAILED
    org.opentest4j.AssertionFailedError: Scene got wrong height ==> expected: <255.0> but was: <218.0>
        at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
        at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
        at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
        at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:86)
        at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1024)
        at app//test.javafx.scene.RestoreSceneSizeTest.testUnfullscreenSize(RestoreSceneSizeTest.java:123)

Increasing sleep times in test has no effect and it looks like we have some product bug for Ubuntu24.04.
This behaviour is seen in both Wayland and Xorg in Ubuntu 24.04.
Comments
Fails with same exception on Ubuntu 24.04.1 but not on Ubuntu 22.04.5.
11-04-2025

Looks like when we change full screen window back to non-full screen one it is not returning to its original dimension.
03-04-2025