-
Bug
-
Resolution: Fixed
-
P3
-
11, 12
-
b26
-
linux_ubuntu
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8215997 | 13 | Pankaj Bansal | P3 | Resolved | Fixed | b03 |
JDK-8216119 | 12.0.1 | Pankaj Bansal | P3 | Resolved | Fixed | master |
JDK-8229390 | 11.0.6-oracle | Pankaj Bansal | P3 | Resolved | Fixed | b01 |
JDK-8221167 | 11.0.4 | Pankaj Bansal | P3 | Resolved | Fixed | b01 |
JDK-8219595 | openjdk8u212 | Paul Hohensee | P3 | Resolved | Fixed | b01 |
JDK-8218236 | 8u221 | Pankaj Bansal | P3 | Resolved | Fixed | b01 |
JDK-8217444 | 8u212 | Pankaj Bansal | P3 | Resolved | Fixed | b03 |
JDK-8224362 | emb-8u221 | Pankaj Bansal | P3 | Resolved | Fixed | master |
JavaFX uses both X11 and gtk code and gtk3 uses Wayland backend while running Ubuntu 18.04 in Wayland mode. This results in crash in JavaFX. This crash is being done under https://bugs.openjdk.java.net/browse/JDK-8210411 by setting the gtk3 backend to x11 on all systems by setting GDK_BACKEND=x11. This fixes the JavaFX crash.
However, while using the a JFXPanel inside Swing components in Swing-FX interop with GTKLookAndFeel set, the AWT loads the gtk3 first and as the GDK_BACKEND=x11 is not yet set even after the fix for [1], the gtk3 starts using the Wayland backend. Then while initializing the JFXPanel, JavaFX uses the same gtk library loaded by AWT and this results in crash.
Fix:
The fix is to set the gtk backend to x11 in AWT as well by setting the GDK_BACKEND=x11. This fixes the Swing-FX interop crash as well.
To overcome this issue while using Swing-FX interop, the GDK_BACKEND=x11 needs to be set in AWT also, so that gtk3 will use x11 backend even when loaded from AWT.
- backported by
-
JDK-8215997 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8216119 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8217444 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8218236 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8219595 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8221167 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8224362 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
-
JDK-8229390 JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop
-
- Resolved
-
- relates to
-
JDK-8210411 JavaFX crashes on Ubuntu 18.04 with Wayland
-
- Resolved
-