Skip to main content

Deadlock in JDK 6 update 12 build 02 running NetBeans 6.5 & GUI Builder

7 replies [Last post]
mikael
Offline
Joined: 2004-03-04

Running 64bit Fedora 10
From jconsole

Name: AWT-XAWT
State: BLOCKED on sun.awt.X11.XDialogPeer@25ec1ff7 owned by: AWT-EventQueue-1
Total blocked: 29 Total waited: 1,837

Stack trace:
sun.awt.X11.XWindow.setMouseAbove(XWindow.java:789)
sun.awt.X11.XWindowPeer.setMouseAbove(XWindowPeer.java:1012)
sun.awt.X11.XWindow.leaveNotify(XWindow.java:799)
sun.awt.X11.XWindow.handleXCrossingEvent(XWindow.java:812)
sun.awt.X11.XWindowPeer.handleXCrossingEvent(XWindowPeer.java:1765)
sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1119)
sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1079)
sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
sun.awt.X11.XToolkit.run(XToolkit.java:588)
sun.awt.X11.XToolkit.run(XToolkit.java:523)
java.lang.Thread.run(Thread.java:619)

Name: AWT-EventQueue-1
State: WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@48f2d715 owned by: AWT-XAWT
Total blocked: 18,133 Total waited: 19,299

Stack trace:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
sun.awt.SunToolkit.awtLock(SunToolkit.java:241)
sun.awt.X11.XDropTargetRegistry.unregisterDropSite(XDropTargetRegistry.java:569)
sun.awt.X11.XWindowPeer.removeDropTarget(XWindowPeer.java:1634)
- locked sun.awt.X11.XDialogPeer@25ec1ff7
sun.awt.X11.XComponentPeer.removeDropTarget(XComponentPeer.java:1511)
java.awt.dnd.DropTarget.removeNotify(DropTarget.java:517)
java.awt.Component.removeNotify(Component.java:6721)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
java.awt.Container.removeNotify(Container.java:2611)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
org.openide.explorer.view.ListView$NbList.removeNotify(ListView.java:834)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
org.openide.explorer.view.ListView.removeNotify(ListView.java:607)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
javax.swing.JComponent.removeNotify(JComponent.java:4699)
javax.swing.JRootPane.removeNotify(JRootPane.java:750)
java.awt.Container.removeNotify(Container.java:2604)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
java.awt.Window.removeNotify(Window.java:685)
- locked java.awt.Component$AWTTreeLock@69d8ad6a
org.netbeans.core.windows.services.NbPresenter.removeNotify(NbPresenter.java:349)
java.awt.Window$1DisposeAction.run(Window.java:1013)
java.awt.Window.doDispose(Window.java:1025)
java.awt.Dialog.doDispose(Dialog.java:1248)
java.awt.Window.dispose(Window.java:972)
org.openide.explorer.propertysheet.PropertyDialogManager.actionPerformed(PropertyDialogManager.java:543)
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1137)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
java.awt.Component.processMouseEvent(Component.java:6213)
javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
java.awt.Component.processEvent(Component.java:5978)
java.awt.Container.processEvent(Container.java:2036)
java.awt.Component.dispatchEventImpl(Component.java:4580)
java.awt.Container.dispatchEventImpl(Container.java:2094)
java.awt.Component.dispatchEvent(Component.java:4410)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4551)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4215)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4145)
java.awt.Container.dispatchEventImpl(Container.java:2080)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4410)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
java.awt.Dialog$1.run(Dialog.java:1051)
java.awt.Dialog$3.run(Dialog.java:1103)
java.security.AccessController.doPrivileged(Native Method)
java.awt.Dialog.show(Dialog.java:1101)
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
org.openide.util.Mutex.readAccess(Mutex.java:268)
org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
java.awt.Component.show(Component.java:1513)
java.awt.Component.setVisible(Component.java:1465)
java.awt.Window.setVisible(Window.java:841)
java.awt.Dialog.setVisible(Dialog.java:991)
org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:318)
org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:710)
java.awt.Component.processEvent(Component.java:5978)
java.awt.Container.processEvent(Container.java:2036)
java.awt.Component.dispatchEventImpl(Component.java:4580)
java.awt.Container.dispatchEventImpl(Container.java:2094)
java.awt.Component.dispatchEvent(Component.java:4410)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4551)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4212)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4145)
java.awt.Container.dispatchEventImpl(Container.java:2080)
java.awt.Window.dispatchEventImpl(Window.java:2475)
java.awt.Component.dispatchEvent(Component.java:4410)
java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24

Hello mikael,

I've just submitted the following bug:

http://bugs.sun.com/view_bug.do?bug_id=6786210

(it should appear on the web in a day). We hope we'll be able to fix it in 6u12b04. Thanks for reporting the issue!

--
best regards,
Anthony

mikael
Offline
Joined: 2004-03-04

Thanks, thats great!

jacobdk
Offline
Joined: 2008-04-21

This issue just seems very familiar to this issue I got logged:

http://bugs.sun.com/view_bug.do?bug_id=6784816

Is there any connection between these?

Jacob

anthony_p
Offline
Joined: 2006-07-24

Hi Jacob,

No, this is a completely different issue.

--
best regards,
Anthony

mbien
Offline
Joined: 2007-04-29

the bug re-appeared in u14 early access builds, hasn't it been integrated in u12 already?
http://www.netbeans.org/issues/show_bug.cgi?id=159376

trembovetski
Offline
Joined: 2003-12-31

It should be in 6u14 b02 according to workspace history. Are you absolutely positive that you're using b02? The fix definitely wasn't in 6u14-b01..

Dmitri

mbien
Offline
Joined: 2007-04-29

i think i was using 14b01 (i am actually not sure since i reinstalled it recently), I switched now to 14b02 after two days without a deadlock on u12. Thanks for your fast reply.