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
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.
Created attachment 102061 [details]
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:
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)
User: Vladimir Kvashin <email@example.com>
Log: fixed #190424 AssertionError