opened cnd.kit and some other cnd modules.
after a long java development tried to open shell file (i18n-check.sh) from Project view => long running dialog appeared
and IDE was frozen forever.
Ctrl+/ shows deadlock
Created attachment 77779 [details]
sorry, i18n-check.sh I opened from cnd.kit in Files view, not Project view
I guess something is wrong in editor.settings. They deadlock with themselves and preferences(!?).
- locked <0x00007f18a4e04b28> (a java.util.HashMap)
maybe the subsequent events shall not be fire under the "HashMap" lock?
Ok, I assume this can't be reproduced reliably.
Should work now. Jardo, could you please have a closer look at the first stacktrace involved in the deadlock (the one
for 'Default RequestProcessor' thread)? IMO this is actually bug in Lookup. Here is the situation:
1. I have Lookup.Result and LookupListener listening to changes in this result
2. An event arrives and the listener queries the result for allInstances
3. the allInstances query causes another (the same?) event to arrive again recursively, which in this case makes the
same recalculation happen again and ends up with firing my own event from inside a synchronized section, hence the deadlock
I fixed it in my LookupListener, but maybe something is wrong in Lookup itself. Not sure. Also this situation sounds
specific for ergonomics and probably does not normally happen. Anyway, just wanted to let you know...
Integrated into 'main-golden', will be available in build *200903210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Vita Stejskal <email@example.com>
Log: #159714: seems like when modules are enabled Lookup.Result changes may be delivered twice (recursively), which in this case caused a deadlock