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.
Several times, with a Maven project that is already open when NetBeans starts. NetBeans will say it is opening the project and just hang. I can minimize the window to the task bar and open it again and then the whole window is black. I have to kill the process and restart. See attached thread dump. Product Version: NetBeans IDE Dev (Build 201503030001) Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07 Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Created attachment 152384 [details] VisualVM Thread Dump
org.netbeans.modules.javascript.nodejs.ui.NpmLibraries refreshing children in a thread which locks against EDT thread. Reassigning to javascript libraries for evaluation.
The deadlock is between "Active Reference Queue Daemon" and "org.netbeans.spi.project.ui.support.NodeFactorySupport" threads. Active Reference Queue Daemon thread enters Children.PR/MUTEX at EntrySupportDefault.finalizedChildrenArray:765 and then attempts to acquire NodeFactorySupport$DelegateChildren lock at NodeFactorySupport$DelegateChildren.removeNotify:249. On the other hand, org.netbeans.spi.project.ui.support.NodeFactorySupport thread acquires NodeFactorySupport$DelegateChildren lock at NodeFactorySupport$DelegateChildren$1.run:196 and then attempts to enter Children.MUTEX at NpmLibraries$NpmLibrariesChildren.refreshDependencies:272. In other words, these two threads attempt to acquire two locks in an opposite order. It seems that (at least for project node's sub-nodes) one should not call setKeys() from keys(). Tomas, this is in code that you wrote recently. Could you, please, look at it and ensure that NpmLibrariesChildren.setKeys() is not called from NpmLibrariesNodeList.keys()? Thank you in advance.
Will fix it ASAP for all ImportantLibraries nodes, thanks Honzo for perfect evaluation.
Should be fixed for all libraries nodes (npm, Bower, CDNJS), I hope. Please verify, if possible. Thanks. http://hg.netbeans.org/web-main/rev/f8196d1759b1
Integrated into 'main-silver', will be available in build *201503060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f8196d1759b1 User: Tomas Mysik <tmysik@netbeans.org> Log: #250881 - NetBeans may hang on start with open Maven project