On Fri, 28 Feb 2025 15:42:51 GMT, Alexey Ivanov <[email protected]> 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.

That is from the description of the bug:

jib > at 
java.lang.ApplicationShutdownHooks.runHooks([java.base@13-internal](mailto:java.base@13-internal)/ApplicationShutdownHooks.java:107)
jib > at 
java.lang.ApplicationShutdownHooks$1.run([java.base@13-internal](mailto:java.base@13-internal)/ApplicationShutdownHooks.java:46)
jib > at 
java.lang.Shutdown.runHooks([java.base@13-internal](mailto:java.base@13-internal)/Shutdown.java:130)
jib > at 
java.lang.Shutdown.exit([java.base@13-internal](mailto:java.base@13-internal)/Shutdown.java:174)
jib > - locked <0x00000000ebc91040> (a java.lang.Class for java.lang.Shutdown)
jib > at 
java.lang.Runtime.exit([java.base@13-internal](mailto:java.base@13-internal)/Runtime.java:113)
jib > at 
java.lang.System.exit([java.base@13-internal](mailto:java.base@13-internal)/System.java:1781)
jib > at com.sun.javatest.regtest.agent.AStatus.exit(AStatus.java:199)
jib > at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:84)



ib > "AWT-Windows" #17 daemon prio=6 os_prio=0 cpu=119281.25ms elapsed=119.91s 
tid=0x000001ba2f2e7000 nid=0x1ff0 runnable [0x0000002df5fff000]
jib > java.lang.Thread.State: RUNNABLE
jib > at 
sun.awt.windows.WToolkit.eventLoop([java.desktop@13-internal](mailto:java.desktop@13-internal)/Native
 Method)
jib > at 
sun.awt.windows.WToolkit.run([java.desktop@13-internal](mailto:java.desktop@13-internal)/WToolkit.java:312)
jib > at 
java.lang.Thread.run([java.base@13-internal](mailto:java.base@13-internal)/Thread.java:830)



jib > "ToolkitShutdown" #18 daemon prio=6 os_prio=0 cpu=0.00ms elapsed=119.24s 
tid=0x000001ba33531000 nid=0x29ec runnable [0x0000002df71fe000]
jib > java.lang.Thread.State: RUNNABLE
jib > at 
sun.awt.windows.WToolkit.shutdown([java.desktop@13-internal](mailto:java.desktop@13-internal)/Native
 Method)
jib > at 
sun.awt.windows.WToolkit$$Lambda$27/0x0000000800bc0840.run([java.desktop@13-internal](mailto:java.desktop@13-internal)/Unknown
 Source)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23846#issuecomment-2695092486

Reply via email to