RFR: 8224968: javax/swing/JColorChooser/Test6827032.java times out in Windows 10
Sergey Bylokhov
serb at openjdk.org
Mon Mar 3 19:23:04 UTC 2025
On Fri, 28 Feb 2025 15:42:51 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> **Problem:**
>
> The test hangs intermittently when run on Windows. (In some cases, handling the timeout takes 2 hours.)
>
> Thread dump shows no AWT threads, yet jtreg harness still waits for the test thread to finish, in particular it waits for [`StreamCopier`](https://github.com/openjdk/jtreg/blob/759946dedbafa423552851ecb98bc3bb8dcf30ec/src/share/classes/com/sun/javatest/regtest/exec/ProcessCommand.java#L279-L281). See `threaddump.log` attached to the bug and [my comment](https://bugs.openjdk.org/browse/JDK-8224968?focusedId=14757188&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14757188) for more details.
>
> **Fix, or Workaround:**
>
> Drag mouse for a short while.
>
> In my testing on CI, the `javax/swing/JColorChooser/Test6827032.java` failed on Windows *3 times* out of 6 runs with 20 repeats (`JTREG=REPEAT_COUNT=20`) without the fix.
>
> There have been no failures after the fix in 10 runs with 20 repeats.
It looks like the test was updated at some point (see [commit c0084100](https://github.com/openjdk/jdk/commit/c0084100)), as discussed in the PR [#2220](https://github.com/openjdk/jdk/pull/2220). It seems we worked around a product bug by changing the test. It was promised that the bug would be addressed in [JDK-8261016](https://bugs.openjdk.org/browse/JDK-8261016), but it has been closed as "Cannot Reproduce."
I can still reproduce it if that commit is reverted.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23846#issuecomment-2695330926
More information about the client-libs-dev
mailing list