JDK-8321625 : ContextMenuNPETest fails intermittently on Linux
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-12-08
  • Updated: 2025-09-11
  • Resolved: 2025-09-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
jfx26 masterFixed
Related Reports
Relates :  
Relates :  
Description
The following headful system test fails intermittently on Linux. We see this failure quite often in our automated test runs.

ContextMenuNPETest > testContextMenuNPE FAILED
    java.lang.AssertionError: Timeout: Failed to hide context menu.
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at test.util.Util.waitForLatch(Util.java:400)
        at test.robot.javafx.scene.ContextMenuNPETest.selectSubmenuItem(ContextMenuNPETest.java:105)
        at test.robot.javafx.scene.ContextMenuNPETest.testContextMenuNPE(ContextMenuNPETest.java:111)

Comments
Changeset: 569682ca Branch: master Author: Ziad El Midaoui <zelmidaoui@openjdk.org> Committer: Andy Goryachev <angorya@openjdk.org> Date: 2025-09-11 15:37:04 +0000 URL: https://git.openjdk.org/jfx/commit/569682ca4688614e949f6b914355976035de6e32
11-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1893 Date: 2025-09-10 14:43:11 +0000
10-09-2025

Not able to reproduce this issue in my local ubuntu 22.04 VM even after running many times. Since it was intermittent issue and I don't see any changes which would have fixed the issue, keeping the bug open.
18-03-2024

This is causing a lot of noise in our CI headful test runs, so we will mark this test as unstable on Linux. See JDK-8321626.
09-12-2023