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.
dev build from Oct 13, JDK 1.5.0_05, Linux Open a file in editor, modify it, update the file externally to older version and go back to the IDE and its UI is frozen.
Created attachment 25947 [details] thread dump
According to Jarda there is a problem w/ NbJavaFoldManager that tries to aquire document lock from within MDR transaction. Also note that I had some form opened earlier ans that's probably why window deactivated triggered the code in property sheet that asked for MDR.
Well not exactly. According to me, it really caused the deadlock, but as far as I know we agreed that it is fobbidden to acquire MDR lock from inside the document lock - so in fact there is not much the javafoldmanager could do. The only thing that is against the rules is the code in AWT has document lock and tries to get the MDR lock. I see three problems: 1. there is supposed to be (at least it was a TCR) a check for this kind of problem that throws an exception if that happens. Where it is? 2. who is going to write a test to simulate it? 3. how to solve the deadlock?
Mila?
NbJavaFoldManager is not the culprit - it correctly locks the MDR first - you can verify it - it's on line 287; then on line 296 the doc gets locked. The culprit is AWT - first GuardedDocument.runAtomic() is run and then the MDR trans is started in java.ui.nodes. Not sure why our assertion does not get triggered - we need to find out.
I do not run with assertions enabled. Maybe that's the reason.
Yes, that's the only conclusion that I see as possible because I have checked all the assertions and they do seem to work fine. I reassign to Dan P. to fix the problem in the java.ui.nodes if possible.
Similar problem reported in issue 67795.
*** Issue 67795 has been marked as a duplicate of this issue. ***
Fixed in java.ui.nodes - mdr transaction is no longer started, cached values are used to compute the short description (the same mechanism as it was already implemented for the display name). /cvs/java/src/org/netbeans/modules/java/ui/nodes/elements/ElementNode.java new revision: 1.20; previous revision: 1.19
*** Issue 69455 has been marked as a duplicate of this issue. ***
*** Issue 70494 has been marked as a duplicate of this issue. ***
*** Issue 70614 has been marked as a duplicate of this issue. ***