Harmony
  1. Harmony
  2. HARMONY-1823

[drlvm][unit] VM throws RuntimeException in AWT-EventDispatchThread

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None

      Description

      Problems:

      VM throws RuntimeException in AWT-EventDispatchThread with JET and OPT on all platforms

      Code for reproducing:

      import java.awt.*;

      public class Test {

      public static void main(String argv[])

      { new TestA().testTest(); }

      public void testTest()

      { new ScrollPane(); new Button(); }

      }

      Output on Harmony:

      Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
      java version "1.5.0"
      pre-alpha : not complete or compatible
      svn = r454551, (Oct 11 2006), Windows/ia32/msvc 1310, release build
      http://incubator.apache.org/harmony
      java.lang.RuntimeException: Shutdown thread was interrupted while stopping
      at org.apache.harmony.awt.wtk.ShutdownThread.shutdown(ShutdownThread.java:72)
      at org.apache.harmony.awt.wtk.ShutdownWatchdog.shutdown(ShutdownWatchdog.java:81)
      at org.apache.harmony.awt.wtk.ShutdownWatchdog.checkShutdown(ShutdownWatchdog.java:61)
      at org.apache.harmony.awt.wtk.ShutdownWatchdog.setAwtQueueEmpty(ShutdownWatchdog.java:42)
      at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:82)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
      Uncaught exception in AWT-EventDispatchThread:
      java.lang.RuntimeException: Shutdown thread was interrupted while stopping
      at org.apache.harmony.awt.wtk.ShutdownThread.shutdown(ShutdownThread.java:72)
      at org.apache.harmony.awt.wtk.ShutdownWatchdog.shutdown(ShutdownWatchdog.java:81)
      at org.apache.harmony.awt.wtk.ShutdownWatchdog.forceShutdown(ShutdownWatchdog.java:52)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:53)

      1. ThreadInterruptTest.java
        3 kB
        Alexei Fedotov
      2. ThreadInterruptTest.java
        3 kB
        Alexei Fedotov
      3. InterruptTest.java
        1 kB
        Nikolay Kuznetsov
      4. states.patch
        0.8 kB
        Nikolay Kuznetsov
      5. interrupt_fix.patch
        2 kB
        Nikolay Kuznetsov
      6. SingleInterruptTest.java
        0.7 kB
        Dmitry A. Durnev

        Issue Links

          Activity

          Maxim Makarov created issue -
          Dmitry A. Durnev made changes -
          Field Original Value New Value
          Attachment SingleInterruptTest.java [ 12342785 ]
          Nikolay Kuznetsov made changes -
          Attachment interrupt_fix.patch [ 12342802 ]
          Geir Magnusson Jr made changes -
          Assignee Geir Magnusson Jr [ geir ]
          Nikolay Kuznetsov made changes -
          Attachment states.patch [ 12343067 ]
          Nikolay Kuznetsov made changes -
          Attachment InterruptTest.java [ 12343284 ]
          Alexei Fedotov made changes -
          Link This issue is duplicated by HARMONY-1923 [ HARMONY-1923 ]
          Alexei Fedotov made changes -
          Attachment ThreadInterruptTest.java [ 12343297 ]
          Alexei Fedotov made changes -
          Attachment ThreadInterruptTest.java [ 12343348 ]
          Geir Magnusson Jr made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Geir Magnusson Jr made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Alexei Fedotov made changes -
          Link This issue incorporates HARMONY-2126 [ HARMONY-2126 ]

            People

            • Assignee:
              Geir Magnusson Jr
              Reporter:
              Maxim Makarov
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development