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.
Netbeans 7.0 dev build 201101140000 JDK 1.6.0_23-b05 Netbeans deadlocks on me fairly frequently when code-formatting a large class file. I've attached a thread-dump for your review.
Created attachment 105638 [details] A thread-dump of the deadlock
By the way, Netbeans was "scanning for external changes" while I invoked code-format. It's possible that the two are waiting on each other to finish. Just a guess.
*** Bug 195066 has been marked as a duplicate of this bug. ***
FYI, in issue #195066 there were no any scanning activity I think the problem is due to incorrect impl of ActionFactory.FormatAction. line 1713 calls target.setCursor(origCursor) which is access to swing object. and due to use of ProgressUtils.runOffEventDispatchThread => passed Runnable is redirected and access AWTTreeLock from non EDT
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/26e09589f5db
Integrated into 'main-golden', will be available in build *201102050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/26e09589f5db User: Dusan Balek <dbalek@netbeans.org> Log: Issue #195056: Deadlock while formatting code - fixed.
*** Bug 191033 has been marked as a duplicate of this bug. ***