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.
This issue was reported manually by vkvashin. It already has 1 duplicates Build: NetBeans IDE Dev (Build 100917-1308a295ea8c) VM: Java HotSpot(TM) Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: SunOS User Comments: vkvashin: From time to time, when creating a C/C++ project from existent files, I get an exception. This isn't 100% repeatable, but occurs approximately each 3-4 time. My guess is that the possible reason is that AntProjectHelper.pendingHook is cleared in finally block, without synchronization, so a thread can enter the line where assertion occurs just before another thread cleared pendingHook. Stacktrace: java.lang.AssertionError at org.netbeans.spi.project.support.ant.AntProjectHelper.save(AntProjectHelper.java:602) at org.netbeans.spi.project.support.ant.AntProjectHelper.access$100(AntProjectHelper.java:108) at org.netbeans.spi.project.support.ant.AntProjectHelper$1.save(AntProjectHelper.java:146) at org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.saveProject(AntBasedProjectFactorySingleton.java:438) at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:647) at org.netbeans.api.project.ProjectManager$6.run(ProjectManager.java:638)
Created attachment 102061 [details] stacktrace
Created attachment 102065 [details] Proposed fix; it seems it fixed the issue
This is really boring. I now have to run IDE on 8-processors machine and this occurs pretty often. I've just pushed my fix into cnd-main: http://hg.netbeans.org/cnd-main/rev/c11da36fb82a
Fix is probably wrong; seem to be missing full synchronization on these fields. It is possible all this code could anyway be deleted (cf. bug #57748).
Integrated into 'main-golden', will be available in build *201009210000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c11da36fb82a User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #190424 AssertionError