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

java/awt/Debug/DumpOnKey/DumpOnKey.java times out on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10, 11
    • Fix Version/s: 18
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      java/awt/Debug/DumpOnKey/DumpOnKey.java often times out on windows.
      The test is invoked 8 times with different arguments and it is not
      always the same parameter combination that times out.
      And the stack trace from jtreg shows it waiting for idle after
      a key press .. but different key press invocations for different hangs :
      One at line 70 and another at line 72
      ----
      "MainThread" #14 prio=5 os_prio=0 tid=0x0000000030b37800 nid=0x1954 in Object.wait() [0x00000000333ce000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@11-internal/Native Method)
      - waiting on <0x000000074bc8f418> (a java.lang.Object)
      at java.lang.Object.wait(java.base@11-internal/Object.java:328)
      at sun.awt.SunToolkit.waitForIdle(java.desktop@11-internal/SunToolkit.java:1565)
      - waiting to re-lock in wait() <0x000000074bc8f418> (a java.lang.Object)
      at sun.awt.SunToolkit.realSync(java.desktop@11-internal/SunToolkit.java:1500)
      at sun.awt.SunToolkit.realSync(java.desktop@11-internal/SunToolkit.java:1402)
      at java.awt.Robot.waitForIdle(java.desktop@11-internal/Robot.java:692)
      - locked <0x000000074b9fbc88> (a java.awt.Robot)
      at java.awt.Robot.autoWaitForIdle(java.desktop@11-internal/Robot.java:628)
      at java.awt.Robot.afterEvent(java.desktop@11-internal/Robot.java:601)
      at java.awt.Robot.keyPress(java.desktop@11-internal/Robot.java:358)
      - locked <0x000000074b9fbc88> (a java.awt.Robot)
      at DumpOnKey.main(DumpOnKey.java:70)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@11-internal/Method.java:569)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.lang.Thread.run(java.base@11-internal/Thread.java:832)

      =================


      "MainThread" #14 prio=5 os_prio=0 tid=0x0000000030625800 nid=0xb7c in Object.wait() [0x00000000322ae000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(java.base@11-internal/Native Method)
      - waiting on <0x000000074bc108a8> (a java.lang.Object)
      at java.lang.Object.wait(java.base@11-internal/Object.java:328)
      at sun.awt.SunToolkit.waitForIdle(java.desktop@11-internal/SunToolkit.java:1565)
      - waiting to re-lock in wait() <0x000000074bc108a8> (a java.lang.Object)
      at sun.awt.SunToolkit.realSync(java.desktop@11-internal/SunToolkit.java:1489)
      at sun.awt.SunToolkit.realSync(java.desktop@11-internal/SunToolkit.java:1402)
      at java.awt.Robot.waitForIdle(java.desktop@11-internal/Robot.java:692)
      - locked <0x000000074b9d3410> (a java.awt.Robot)
      at java.awt.Robot.autoWaitForIdle(java.desktop@11-internal/Robot.java:628)
      at java.awt.Robot.afterEvent(java.desktop@11-internal/Robot.java:601)
      at java.awt.Robot.keyPress(java.desktop@11-internal/Robot.java:358)
      - locked <0x000000074b9d3410> (a java.awt.Robot)
      at DumpOnKey.main(DumpOnKey.java:72)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@11-internal/Method.java:569)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.lang.Thread.run(java.base@11-internal/Thread.java:832)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kizune Alexander Zuev
              Reporter:
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: