JDK-8353163 : [XWayland] Disable SwingNodePlatformExitCrashTest on wayland
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx25
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: linux_ubuntu
  • CPU: generic
  • Submitted: 2025-03-28
  • Updated: 2025-03-28
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
jfx25Unresolved
Related Reports
Relates :  
Description
We see that SwingNodePlatformExitCrashTest hangs and doesn't exit ans hows below stack trace when run using wayland on Ubuntu 24.04.

"Test worker" #3 [10090] prio=5 os_prio=0 cpu=251667.53ms elapsed=254.51s tid=0x000074f038033350 nid=10090 runnable  [0x000074f03fb16000]
   java.lang.Thread.State: RUNNABLE
	at sun.awt.screencast.ScreencastHelper.getRGBPixelsImpl(java.desktop@24/Native Method)
	at sun.awt.screencast.ScreencastHelper.getRGBPixels(java.desktop@24/ScreencastHelper.java:196)
	- locked <0x00000000c2200000> (a java.lang.Class for sun.awt.screencast.ScreencastHelper)
	at sun.awt.X11.XRobotPeer.getRGBPixel(java.desktop@24/XRobotPeer.java:122)
	at java.awt.Robot.getPixelColor(java.desktop@24/Robot.java:431)
	- locked <0x00000000c1d00000> (a java.awt.Robot)
	at test.robot.javafx.embed.swing.SwingNodeBase.testAbove(SwingNodeBase.java:215)
	at test.robot.javafx.embed.swing.SwingNodePlatformExitCrashTest.testPlatformExitBeforeShowHoldEDT(SwingNodePlatformExitCrashTest.java:49)
	at java.lang.invoke.LambdaForm$DMH/0x0000000004001000.invokeVirtual(java.base@24/LambdaForm$DMH)

If the same test is run using X org it passes.
So we need to disable this test on wayland until JDK-8350009 is fixed.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1745 Date: 2025-03-28 08:56:36 +0000
28-03-2025