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

MediaTracker freezes whilst getting a disabled icon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • client-libs
    • 2d
    • x86
    • windows_nt



      Name: boT120536 Date: 03/12/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      I'd like to see bug 4332685 reopened, as I am still seeing it, even though it
      has been marked as closed.

      Occasionally, perhaps one time in twenty, the JVM will completely freeze, and
      have to be killed manually. Looking through a full stack dump shows that the
      MediaTracker class is waiting forever:

      "AWT-EventQueue-0" prio=7 tid=0x7748e0 nid=0x5df waiting on monitor [0x8fbf000..0x8fbfdc8]
      at java.lang.Object.wait(Native Method)
      at java.awt.MediaTracker.waitForID(Unknown Source)
      at javax.swing.ImageIcon.loadImage(Unknown Source)
      at javax.swing.ImageIcon.<init>(Unknown Source)
              [snip]
      at java.awt.EventDispatchThread.run(Unknown Source)

      The problem has only ever been seen when running our application on a dual
      processor NT4 machine.
      (Review ID: 118460)
      ======================================================================


      thomas.lenz@Germany 2001-04-02
      ------------------------------
      Customer seems to have run into the same problem. Application is completely
      hung and has to be "^C"-ed. Here is a snippet from a stacktrace, that was
      drawn while hung:

      "AWT-EventQueue-0" prio=7 tid=0x778560 nid=0x242 waiting on monitor [0x8fbf000..0x8fbfdc8]
              at java.lang.Object.wait(Native Method)
              at java.awt.MediaTracker.waitForID(MediaTracker.java:632)
              at javax.swing.ImageIcon.loadImage(ImageIcon.java:226)
              at javax.swing.ImageIcon.<init>(ImageIcon.java:161)
              at javax.swing.AbstractButton.getDisabledIcon(AbstractButton.java:542)
              at javax.swing.plaf.basic.BasicButtonUI.paintIcon(BasicButtonUI.java:284)
              at javax.swing.plaf.basic.BasicButtonUI.paint(BasicButtonUI.java:252)
              at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39)
              at javax.swing.JComponent.paintComponent(JComponent.java:398)
              at javax.swing.JComponent.paint(JComponent.java:739)
              at javax.swing.JComponent.paintChildren(JComponent.java:523)
              at javax.swing.JComponent.paint(JComponent.java:748)
              at javax.swing.JComponent.paintChildren(JComponent.java:523)
              at javax.swing.JComponent.paint(JComponent.java:748)
              at javax.swing.JComponent.paintWithBuffer(JComponent.java:4393)
              at javax.swing.JComponent._paintImmediately(JComponent.java:4336)
              at javax.swing.JComponent.paintImmediately(JComponent.java:4187)
              at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
              at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:205)
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)


      All other theads named "Thread-<n>" show: "waiting on monitor"

            tdv Dmitri Trembovetski (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: