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: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2024-01-06
  • Updated: 2025-03-03
  • Resolved: 2024-12-04
Related Reports
Duplicate :  
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
In that case, this can be closed as a duplicate of JDK-8344372.
04-12-2024

Same problem of [JDK-8344372]
04-12-2024

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