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.
I happened to me twice. I chose to open the javacvs/cvsmodule project without dependencies. The Opening project modal progress comes up and stays at 0%. There is no CPU/disk activity and I have to kill the IDE.
Created attachment 26632 [details] Thread dump
Thread "ProjectChooserAccesoryModelUpdater" is waiting to enter the ProjectManager.mutex() in read access. But according to the stack trace, no one is in write access. So it should not be waiting. Bug in Mutex?
Petr I think you're the only one with detailed knowledge of Mutex internals...
I see nothing wrong on the callers's side. There used to be a similar problem (#49466), but it is fixed and covered by test. I'll try to write a test for this scenario.
Confirming a bug in mutex. See MutexTest,v1.3 Anybody wants to play with it?
Now it happened again: http://beetle.czech/automatedtests/xtest/netbeans_5.1/200601081900/qa-unit/qa-linux-s1.czech.sun.com/testrun_060109-160732/testbag_8/htmlresults/suites/TEST-org.openide.util.MutexTest.html#org.openide.util.MutexTest.testStarvation68106
Created attachment 29098 [details] I love challenges
Imho this is the fix. 27 mutex tests passes ok, now I am running ant -f nbbuild/build.xml unit-validation to see if everything works.
There seems to be nothing special during the run of unit-validation: openide/util/src/org/openide/util/Mutex.java,v <-- Mutex.java new revision: 1.5; previous revision: 1.4
I am reverting this, sorry. Seemed to break continuous build pretty badly. Need to test more. Mutex.java 1.6
Also maybe the reason for 73219....
*** Issue 74261 has been marked as a duplicate of this issue. ***
Until this is fixed can you please exclude the test from the test config?
*** Issue 71571 has been marked as a duplicate of this issue. ***
This issue now has a couple duplicates. Shouldn't it be a P1?
I might have an idea how to fix it.
Fixed for dev: openide/util/src/org/openide/util/Mutex.java,v1.9 Additional test provided that outrules Yarda's fix. If you feel strongly about backporting, let me know.
The test that used to fail is passing now => something has been fixed.
*** Issue 77681 has been marked as a duplicate of this issue. ***
*** Issue 81230 has been marked as a duplicate of this issue. ***