JDK-8324423 : Wrong height in dialog with TitledPane and resizing under Gnome
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx21,jfx22
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2024-01-06
  • Updated: 2024-08-17
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
jfx24Unresolved
Related Reports
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Ubuntu 22.04.3 x64
Gnome 42.9 Wayland
JDK 21.0.1

A DESCRIPTION OF THE PROBLEM :
See the reproducer example. When clicking on the other titled pane, the pane expands and the dialog buttons are no longer visible. The height does get calculated correctly. 
Terminal prints 
(java:28148): Gtk-CRITICAL **: 16:52:40.137: gtk_window_resize: assertion 'width > 0' failed 

See screenshots for javafx 21 and javafx 20 
https://github.com/Siedlerchr/javafxreproducer/issues/2 

REGRESSION : Last worked in version 20

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the reproducer example with ./gradlew run or use the precompiled jlnk binary from the 
To compare with javafx 20 simply replace the javafx version in the build.gradle 

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The dialog buttons should be still visible after expanding
ACTUAL -
The dialog buttons are no longer visible

---------- BEGIN SOURCE ----------
https://github.com/Siedlerchr/javafxreproducer/tree/main 
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Downgrade to javafx20

FREQUENCY : always



Comments
It is a regression of JDK-8260528. Confirmed that issue occurs with JDK-8260528 and does not occur with one previous commit. Note: For build, need to downgrade boot jdk to 19(.x.y) and gradle to 7.6
31-01-2024

It is a regression, reproduces with JavaFX21.0.2 but not with JavaFX20.0.2
30-01-2024

Checked with attached testcase in Ubuntu 20.04, issue is reproducible in jfx21 and later Test Result ================ 8u401: Pass jfx11: Pass jfx17: Pass jfx20: Pass jfx21: Fail <- Regression jfx22ea25: Fail Console output ============ $ java --module-path /Downloads/javafx/openjfx-22-ea+25/javafx-sdk-22/lib --add-modules=javafx.controls,javafx.web,javafx.fxml HelloApplication (java:14604): Gtk-CRITICAL **: 10:53:47.033: gtk_window_resize: assertion 'width > 0' failed
23-01-2024