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 184415

Summary: Deadlock when initializing projects
Product: php Reporter: Petr Jiricka <pjiricka>
Component: ProjectAssignee: Tomas Mysik <tmysik>
Status: RESOLVED FIXED    
Severity: normal Keywords: THREAD
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Petr Jiricka 2010-04-19 07:46:03 UTC
Created attachment 97593 [details]
Thread dump

After the IDE startup, I expanded the project node of a Maven JavaSE project. The "Initializing project" subnode was displayed, and the IDE froze.
Comment 1 Jesse Glick 2010-04-19 16:45:44 UTC
	at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.propertyChange(ClassPathProviderImpl.java:315)
	- waiting to lock <0x000000010ac57118> (a java.util.HashMap)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:193)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at org.netbeans.spi.project.support.ant.SequentialPropertyEvaluator.stateChanged(SequentialPropertyEvaluator.java:205)

	at org.openide.util.Mutex.readAccess(Mutex.java:282)
	at org.netbeans.spi.project.support.ant.SequentialPropertyEvaluator.getProperty(SequentialPropertyEvaluator.java:114)
	at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.getDirs(ClassPathProviderImpl.java:120)
	- locked <0x000000010ac57118> (a java.util.HashMap)
	at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.getPlatformPath(ClassPathProviderImpl.java:151)
Comment 2 Tomas Mysik 2010-04-21 15:02:53 UTC
BTW JavaEEServerModuleFactory thread is quite suspicious - it removes and adds some libraries during startup. I will check whether this happens on every startup.
Comment 3 Tomas Mysik 2010-04-22 08:37:33 UTC
Should be fixed.
http://hg.netbeans.org/web-main/rev/9939ba3d4a45
Comment 4 Quality Engineering 2010-04-23 04:32:13 UTC
Integrated into 'main-golden', will be available in build *201004230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9939ba3d4a45
User: Tomas Mysik <tmysik@netbeans.org>
Log: #184415: Deadlock when initializing projects