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.
The following deadlock is happened in NetBeans IDE development build 200812100201.
Created attachment 74897 [details] Deadlock threads
Created attachment 74898 [details] message file form var/log directory
*** Issue 155333 has been marked as a duplicate of this issue. ***
CloneableEditorSupport seems to be firing events when holding its lock. This is generally deadlock prone and should be avoided.
It is not so easy to put firing out of lock. I would suggest to process event asynchronously. Jarda any suggestion how to fix this deadlock?
Replace fireDocument call with: boolean toFire = false; synchronized (getLock()) { // no fireDocument toFire = true; } if (toFire) { fireDocument(...); } You can do similar change for other types of events when you are at it.
Firing document change event is moved out of CES lock when document is opened/closed. All tests passed. We will see if it breaks anything. core-main #06b409d61fca
Integrated into 'main-golden', will be available in build *200901091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/06b409d61fca User: Marek Slama <mslama@netbeans.org> Log: #155326: Move firing document change event out of lock.