Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333097

DnD DragOverDropTargetPerformanceTest.java test timed out

XMLWordPrintable

      The following test times out intermittently in JDK 21 CI:

      java/awt/dnd/DragOverDropTargetPerformanceTest.java

      Excerpt from the log file:

      #section:main
      ----------messages:(9/379)----------
      command: main DragOverDropTargetPerformanceTest
      reason: Assumed action based on file name: run main DragOverDropTargetPerformanceTest
      started: Tue May 28 08:14:15 UTC 2024
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      Timeout information:
      --- Timeout information end.
      finished: Tue May 28 10:19:32 UTC 2024
      elapsed time (seconds): 7517.211

      ----------System.out:(1/37)----------
      Timeout signalled after 240 seconds
      ----------System.err:(12/904)----------
      java.lang.RuntimeException: The test failed.Over drag source: 3058.Over drop target: 1716884060207
      at DragOverDropTargetPerformanceTest.start(DragOverDropTargetPerformanceTest.java:135)
      at DragOverDropTargetPerformanceTest.main(DragOverDropTargetPerformanceTest.java:75)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: The test failed.Over drag source: 3058.Over drop target: 1716884060207
      JavaTest Message: shutting down test

      result: Error. Program `...\jdk-21.0.5\bin\java' timed out (timeout set to 240000ms, elapsed time including timeout handling was 7517201ms).

      So the test failed by throwing an exception but it failed to shut down the JVM. A timeout was raised after 240000ms (4 minutes) yet the test shut down after 7517201ms (125 minutes = 2 hours and 5 minutes).


      This test has JavaThread dumps

      "name": "main",
      "stack": [
          "java.base/java.lang.Object.wait0(Native Method)",
          "java.base/java.lang.Object.wait(Object.java:366)",
          "java.base/java.lang.Thread.join(Thread.java:2078)",
          "java.base/java.lang.Thread.join(Thread.java:2154)",
          "com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:85)"
      ]

      "name": "MainThread",
      "stack": [
          "java.base/java.lang.Object.wait0(Native Method)",
          "java.base/java.lang.Object.wait(Object.java:366)",
          "java.base/java.lang.Thread.join(Thread.java:2078)",
          "java.base/java.lang.Thread.join(Thread.java:2154)",
          "java.base/java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:114)",
          "java.base/java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:47)",
          "java.base/java.lang.Shutdown.runHooks(Shutdown.java:130)",
          "java.base/java.lang.Shutdown.exit(Shutdown.java:167)",
          "java.base/java.lang.Runtime.exit(Runtime.java:188)",
          "java.base/java.lang.System.exit(System.java:1920)",
          "com.sun.javatest.regtest.agent.AStatus.exit(AStatus.java:198)",
          "com.sun.javatest.regtest.agent.MainWrapper.handleTestException(MainWrapper.java:106)",
          "com.sun.javatest.regtest.agent.MainWrapper.access$000(MainWrapper.java:36)",
          "com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:147)",
          "java.base/java.lang.Thread.run(Thread.java:1583)"
      ]

      "name": "AWT-Shutdown",
      "stack": [
          "java.base\/java.lang.Object.wait0(Native Method)",
          "java.base\/java.lang.Object.wait(Object.java:366)",
          "java.base\/java.lang.Object.wait(Object.java:339)",
          "java.desktop\/sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:291)",
          "java.base\/java.lang.Thread.run(Thread.java:1583)"
      ]

      "name": "ToolkitShutdown",
      "stack": [
          "java.desktop/sun.awt.windows.WToolkit.shutdown(Native Method)",
          "java.base/java.lang.Thread.run(Thread.java:1583)"
      ]

      Complete thread dumps are available in DragOverDropTargetPerformanceTest-JavaThread-dumps.7z.

            honkar Harshitha Onkar
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: