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 230823 - org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.removeNotify
Summary: org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException at ...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
: 230822 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-06 08:13 UTC by Vladimir Voskresensky
Modified: 2013-06-18 15:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201216


Attachments
stacktrace (1.25 KB, text/plain)
2013-06-06 08:13 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2013-06-06 08:13:44 UTC
Build: NetBeans IDE Dev (Build 20130606-9d7b11177f45)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Linux

User Comments:
vv159170: deadlock after opening file with ctlr+click navigation




Stacktrace: 
org.netbeans.modules.deadlock.detector.Detector$DeadlockDetectedException
   at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.removeNotify(NavigatorModel.java:173)
   at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent.detachFromModel(NavigatorComponent.java:253)
   at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent.resultChanged(NavigatorComponent.java:149)
   at org.openide.util.lookup.ProxyLookup$1Notify.run(ProxyLookup.java:181)
   at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:190)
   at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:126)
Comment 1 Vladimir Voskresensky 2013-06-06 08:13:45 UTC
Created attachment 135425 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2013-06-06 09:10:57 UTC
*** Bug 230822 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Krasny 2013-06-18 14:22:54 UTC
Relevant stack is (#8bc7ff0b3d4b):
"org.netbeans.modules.navigator.NavigatorController" daemon prio=3 tid=0x087afc00 nid=0x73 in Object.wait() [0xa3bff000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:503)
        at org.openide.util.Mutex$QueueCell.sleep(Mutex.java:1623)
        - locked <0xa50f7c08> (a org.openide.util.Mutex$QueueCell)
        at org.openide.util.Mutex.enterImpl(Mutex.java:729)
        at org.openide.util.Mutex.enter(Mutex.java:636)
        at org.openide.util.Mutex.writeEnter(Mutex.java:614)
        at org.openide.util.Mutex.writeAccess(Mutex.java:471)
        at org.openide.util.Mutex$1R.run(Mutex.java:1315)
        at org.openide.nodes.Children$ProjectManagerDeadlockDetector.execute(Children.java:1921)
        at org.openide.util.Mutex.doWrapperAccess(Mutex.java:1328)
        at org.openide.util.Mutex.writeAccess(Mutex.java:463)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.setChildren(NavigatorModel.java:182)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.removeNotify(NavigatorModel.java:174)
        - locked <0xa68c2008> (a org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel$Lock)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent.detachFromModel(NavigatorComponent.java:253)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent.resultChanged(NavigatorComponent.java:149)
        - locked <0xbc0c9118> (a org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent$Lock)
        at org.openide.util.lookup.ProxyLookup$1Notify.run(ProxyLookup.java:181)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:190)
        at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:126)
        at org.netbeans.modules.navigator.NavigatorController$ClientsLookup.beforeLookup(NavigatorController.java:972)
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:215)
        at org.netbeans.modules.navigator.NavigatorController.findMimeForContext(NavigatorController.java:793)
        at org.netbeans.modules.navigator.NavigatorController.access$300(NavigatorController.java:101)
        at org.netbeans.modules.navigator.NavigatorController$1.run(NavigatorController.java:412)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

"AWT-EventQueue-0" prio=3 tid=0x0859b000 nid=0x15 waiting for monitor entry [0xa0ffd000]
   java.lang.Thread.State: BLOCKED (on object monitor)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent.getLookup(NavigatorComponent.java:162)
        - waiting to lock <0xbc0c9118> (a org.netbeans.modules.cnd.qnavigator.navigator.NavigatorComponent$Lock)
        at org.netbeans.modules.navigator.NavigatorController.getSelectedPanelLookup(NavigatorController.java:841)
        at org.netbeans.modules.navigator.NavigatorController.access$1200(NavigatorController.java:101)
        at org.netbeans.modules.navigator.NavigatorController$PanelLookupWrapper.getLookup(NavigatorController.java:861)
        at org.openide.util.lookup.SimpleProxyLookup.checkLookup(SimpleProxyLookup.java:80)
        at org.openide.util.lookup.SimpleProxyLookup.access$200(SimpleProxyLookup.java:61)
        at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.checkResult(SimpleProxyLookup.java:188)
        at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.allItems(SimpleProxyLookup.java:275)
        at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.allItems(SimpleProxyLookup.java:318)
        at org.openide.util.lookup.ProxyLookup$LazyCollection.computeSingleResult(ProxyLookup.java:1276)
        at org.openide.util.lookup.ProxyLookup$LazyCollection.computeDelegate(ProxyLookup.java:1105)
        at org.openide.util.lookup.ProxyLookup$LazyCollection.delegate(ProxyLookup.java:1072)
        at org.openide.util.lookup.ProxyLookup$LazyCollection.delegate(ProxyLookup.java:1055)
        at org.openide.util.lookup.ProxyLookup$LazyList.delegateList(ProxyLookup.java:1300)
        at org.openide.util.lookup.ProxyLookup$LazyList.listIterator(ProxyLookup.java:1325)
        at java.util.AbstractList.equals(AbstractList.java:519)
        at java.util.Collections$UnmodifiableList.equals(Collections.java:1208)
        at org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:608)
        at org.openide.util.lookup.ProxyLookup$WeakResult.collectFires(ProxyLookup.java:767)
        at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:568)
        at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.collectFires(SimpleProxyLookup.java:308)
        at org.openide.util.lookup.SimpleProxyLookup$WeakResult.collectFires(SimpleProxyLookup.java:343)
        at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:568)
        at org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:641)
        at org.openide.util.lookup.ProxyLookup$WeakResult.collectFires(ProxyLookup.java:767)
        at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:568)
        at org.openide.util.lookup.AbstractLookup$R.collectFires(AbstractLookup.java:1033)
        at org.openide.util.lookup.AbstractLookup$NotifyListeners.<init>(AbstractLookup.java:527)
        at org.openide.util.lookup.AbstractLookup.notifyIn(AbstractLookup.java:311)
        at org.openide.util.lookup.AbstractLookup.setPairs(AbstractLookup.java:307)
        at org.openide.util.lookup.AbstractLookup$Content.setPairs(AbstractLookup.java:1314)
        at org.openide.util.lookup.InstanceContent.set(InstanceContent.java:147)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorPanelUI.propertyChange(NavigatorPanelUI.java:172)
        at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
        at org.openide.explorer.ExplorerManager$2.run(ExplorerManager.java:876)
        at org.openide.util.Mutex.doEvent(Mutex.java:1343)
        at org.openide.util.Mutex.readAccess(Mutex.java:350)
        at org.openide.explorer.ExplorerManager.fireInAWT(ExplorerManager.java:873)
...
Comment 4 Andrew Krasny 2013-06-18 14:28:50 UTC
To reproduce:

- b/p: NavigatorModel.java:173
- start & attach
- open cnd project with (at least) 2 files
- double click file 1 to open it in Editor
- click on a file 2 => b/p hit (not in EDT)
- right-click on a Navigator
- release b/p
=> deadlock