This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216500 - Deadlock while loading open projects
Summary: Deadlock while loading open projects
Status: RESOLVED DUPLICATE of bug 213926
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-08 00:57 UTC by 280Z28
Modified: 2012-10-04 11:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 280Z28 2012-08-08 00:57:12 UTC
This deadlock occurred right after opening the IDE with build 89a66906fa008ccbeec9fb3a9f0eece84e285d3e.

Deadlock:


AWT-EventQueue-1 is waiting to lock sun.awt.PostEventQueue@69914d0d which is held by Load Open Projects
Load Open Projects is waiting to lock java.util.concurrent.locks.ReentrantLock$NonfairSync@681b9018 which is held by AWT-EventQueue-1


Thread stacks


AWT-EventQueue-1 [BLOCKED; waiting to lock sun.awt.PostEventQueue@69914d0d]
sun.awt.PostEventQueue.noEvents(SunToolkit.java:2104)
sun.awt.SunToolkit.isPostEventQueueEmpty(SunToolkit.java:577)
java.awt.EventQueue.detachDispatchThread(EventQueue.java:1048)
java.awt.EventDispatchThread.run(EventDispatchThread.java:103)


Load Open Projects [WAITING]
sun.misc.Unsafe.park(native method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:867)
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1197)
java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:214)
java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
java.awt.EventQueue.postEventPrivate(EventQueue.java:235)
java.awt.EventQueue.postEvent(EventQueue.java:221)
sun.awt.PostEventQueue.flush(SunToolkit.java:2116)
sun.awt.SunToolkit.flushPendingEvents(SunToolkit.java:563)
java.awt.EventQueue.postEvent(EventQueue.java:220)
java.awt.EventQueue.invokeLater(EventQueue.java:1188)
org.openide.util.Mutex.doEvent(Mutex.java:1345)
org.openide.util.Mutex.readAccess(Mutex.java:350)
org.netbeans.modules.project.ui.actions.NewFile.refresh(NewFile.java:120)
org.netbeans.modules.project.ui.actions.NewFile.propertyChange(NewFile.java:287)
org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:196)
java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:439)
org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:312)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)
Comment 1 Milos Kleint 2012-08-13 07:14:05 UTC
could be related to issue 192354,

however I'm not clearly seeing what the deadlock is, have you posted all there was? what jdk are you using?
Comment 2 Milos Kleint 2012-10-02 11:43:00 UTC
reassigning to platform's utilities, from the limited information presented the problem is in Mutex.EVENT
Comment 3 Antonin Nebuzelsky 2012-10-04 11:49:25 UTC

*** This bug has been marked as a duplicate of bug 213926 ***