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.
in openide/core there are many places when Swing components are manipulated in non-AWT thread. This is a problem in general and a huge problem for the form editor (deadlock). A quick glance in the code found that at least CloneableOpenSupport.open() and EditorSupport.createCloneableTopComponent() are the culprits.
Yarda, do you have any hint how to find these places (simply and fast)?
Marek, please fix the problem in CloneableOpenSupport.open () and also in CloneableOpenSupport.close () The best way is to encapsulate the content of open () and close methods by Mutex.EVENT.writeAccess (Runnable) in the first case and Mutex.EVENT.writeAccess (Mutex.Action) in the later. I will modify the OpenAction to be always invoked in AWT thread meanwhile. Marek, when you finish, set this bug to RESOLVED, REMIND so Trung can provide us more places where we should continue with bug fixes.
Created attachment 904 [details] Thread dump
Deadlock (see attached thread dump) occured during gui testing of JDBC Form wizard while opening generated Form (build 010327_2_IE). It may help.
Changes done in CloneableOpenSupport methods open() and close() as Yarda suggested.
Trung, could you provide more places where to continue with bug fixes ? Otherwise close this bug as fixed.
Closing this bug. If anybody finds suspicious code please reopen or file new issue.
Mark as fixed.
Resolved for 3.4 or earlier, no new info since then -> closing.