JDK-8298496 : IconifyTest fails intermittently on Linux
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: openjfx19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-12-09
  • Updated: 2022-12-23
  • Resolved: 2022-12-15
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
openjfx20 b12Fixed
Related Reports
Relates :  
Relates :  
Description
IconifyTest is not robust on Linux. It fails occasionally on most distros and frequently on others. The problem is related to the way the Stages are created. The test creates a bottom stage and a top stage to verify that the top stage is not visible when that stage is iconfied (meaning that the bottom stage will be visible), and is visible when not iconified.

The problem arises on Linux due to the fact that both stages are created always-on-top. This sometimes causes the bottom stage to actually be on top. One potential problem is definitely a testbug, in that both stages are shown one after another -- meaning that the top stage doesn't wait for the bottom stage to be shown. There seems to also be a product bug where even if we do wait for the bottom stage to be shown before creating the top stage, it sometimes will still end up on top (I'll file a separate bug).

Since this test doesn't need to rely on having both stages be always-on-top, the fix is to change the bottom stage to not set that property. See the attached patch (which also removed the call to topStage.toFront() which was likely there as an earlier attempt to workaround this problem, but is not needed if topStage is the only always-on-top stage).
Comments
Changeset: 30147d2f Author: Kevin Rushforth <kcr@openjdk.org> Date: 2022-12-15 16:27:34 +0000 URL: https://git.openjdk.org/jfx/commit/30147d2f8dfd3fe32f9ea6e70431efe90b015080
15-12-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/975 Date: 2022-12-14 13:48:21 +0000
14-12-2022

NOTE: I made this a P3 since it is interfering with the evaluation of various Linux changes (e.g., JDK-8260528), and will cause problems with Linux headful test runs, which we hope to start doing on a regular basis soon.
09-12-2022