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.
[dev 041019] 1. create freeform project (<nb_root>/monitor) 2. open customizer 3. set the 'Build and Run' property to 'netbeans' 4. close the customizer -> deadlock appears (2 times in a row, 3rd attempt passed)
Created attachment 18432 [details] thread dump
This bug was already fixed (by David) six days ago. Perhaps you forgot to update your sources? The stack trace refers to lines in the old version of View.java. *** This issue has been marked as a duplicate of 50328 ***
Ok, I'm going to verify it on a new build.
Created attachment 18493 [details] new thread dump from jrechtacek
Jirka was able to reproduce it with latest build and there is valid problem. It is what I mentioned in issue 50328: "The problem is in FreeformSources.initSources() and its ProjectManager.mutex().postWriteRequest() call. There are two threads: EQ and RP. The FreeformSources.initSources() is called in RP, but EQ already is in ProjectManager.mutex().readAccess(). That means that ProjectManager.mutex().postWriteRequest() call in FreeformSources.initSources() is blocking." Perhaps the solution could be to move ProjectManager.mutex().postWriteRequest() out of the FreeformSources's synchronized block?
I would rather change FreeformSources to use PM.mutex rather than ad-hoc synchronization. I think that should solve it.
Think I fixed. Cannot reproduce a deadlock using your instructions, anyway. Would be nice if you could verify. committed Up-To-Date 1.5 ant/freeform/src/org/netbeans/modules/ant/freeform/FreeformSources.java