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

Deadlock in AWTTreeLock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.2_03
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_9

      Description

      I have a deadlock when lauching a graphical application based on swing.
      It seems related to 4345999 : deadlock in java/awt/Component$AWTTreeLock and motif
      STACKS:
      Java stack information for the threads listed above:
      ===================================================
      "AWT-EventQueue-0":
      at sun.awt.X11Renderer.devFillSpans(Native Method)
      at sun.awt.X11Renderer.draw(X11Renderer.java:243)
      at sun.java2d.pipe.PixelToShapeConverter.drawLine(PixelToShapeConverter.java:34)
      at sun.java2d.pipe.ValidatePipe.drawLine(ValidatePipe.java:34)
      at sun.java2d.SunGraphics2D.drawLine(SunGraphics2D.java:1954)
      at javax.swing.plaf.basic.BasicProgressBarUI.paintDeterminate(BasicProgressBarUI.java:651)
      at javax.swing.plaf.metal.MetalProgressBarUI.paintDeterminate(MetalProgressBarUI.java:45)
      at javax.swing.plaf.basic.BasicProgressBarUI.paint(BasicProgressBarUI.java:335)
      at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
      at javax.swing.JComponent.paintComponent(JComponent.java:541)
      at javax.swing.JComponent.paint(JComponent.java:808)
      at javax.swing.JComponent.paintChildren(JComponent.java:647)
      - locked <f33acd50> (a java.awt.Component$AWTTreeLock)
      at javax.swing.JComponent.paint(JComponent.java:817)
      at javax.swing.JComponent.paintChildren(JComponent.java:647)
      - locked <f33acd50> (a java.awt.Component$AWTTreeLock)
      at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4778) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
      at javax.swing.JComponent.paint(JComponent.java:798)
      at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21) at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
      at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
      at java.awt.Container.paint(Container.java:1309)
      at sun.awt.RepaintArea.paint(RepaintArea.java:177)
      at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:374)
      at java.awt.Component.dispatchEventImpl(Component.java:3658)
      at java.awt.Container.dispatchEventImpl(Container.java:1623)
      at java.awt.Window.dispatchEventImpl(Window.java:1585)
      at java.awt.Component.dispatchEvent(Component.java:3439)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      "main":
      at java.awt.Container.getComponents_NoClientCode(Container.java:256)
      - waiting to lock <f33acd50> (a java.awt.Component$AWTTreeLock)
      at java.awt.Container.getComponents(Container.java:248)
      at javax.swing.SortingFocusTraversalPolicy.enumerateCycle(SortingFocusTraversalPolicy.java:156)
      at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(SortingFocusTraversalPolicy.java:87)
      at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(SortingFocusTraversalPolicy.java:331)
      at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(LayoutFocusTraversalPolicy.java:143)
      at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(SortingFocusTraversalPolicy.java:391)
      at java.awt.Window.isFocusableWindow(Window.java:1410)
      at sun.awt.motif.MWindowPeer.pShow(Native Method)
      at sun.awt.motif.MWindowPeer.toFront(MWindowPeer.java:140)
      at java.awt.Window.toFront(Window.java:623)
      at jam.SplashScreen.setText(SplashScreen.java:68)
      at jam.Jam.setupScreen(Jam.java:193)
      at jam.Jam.<init>(Jam.java:102)
      at jam.Jam.main(Jam.java:1279)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yan Yuri Nesterenko
              Reporter:
              jfdenise Jean-Francois Denise (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: