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.

Bug 136601

Summary: Deadlock in CloneableEditor$DoInitialize.initVisual during commit validation
Product: platform Reporter: Jesse Glick <jglick>
Component: TextAssignee: mslama <mslama>
Status: RESOLVED FIXED    
Severity: blocker CC: anebuzelsky, jtulach
Priority: P1 Keywords: RANDOM, THREAD
Version: 6.x   
Hardware: All   
OS: All   
URL: http://konik-z2.czech.sun.com:8080/hudson/job/NB-Core-Build/729/artifact/real.workspace/xtest/instance/results/testrun_080605-215505/logs/ide.kit_qa-functional.log/*view*/
Issue Type: DEFECT Exception Reporter:
Attachments: Thread dump

Description Jesse Glick 2008-06-05 21:43:50 UTC
Will attach thread dump.
Comment 1 Jesse Glick 2008-06-05 21:45:23 UTC
Created attachment 62438 [details]
Thread dump
Comment 2 Jesse Glick 2008-06-06 15:18:04 UTC
Failed again during 733, thread dumps looks the same.
Comment 3 mslama 2008-06-09 15:25:30 UTC
I am investigating. It does not seem to be deadlock. CloneableEditor blocks AWT thread - it looks like first phase of
editor initialization failed. But there is no thread for first phase, no exception log. "Refresh Editor Context" just
accidentally waits for blocked AWT thread. I will add logging to see what happens with first editor initialization phase
and enable logging just for commit validation.
Comment 4 mslama 2008-06-10 10:22:17 UTC
Added logging 2c6d217d573a
Comment 6 mslama 2008-06-12 17:20:49 UTC
Progress: In this case doc variable is null after call of notifyAll. It can happen when document is closed during
opening. It can happen during test because document is opened/closed immediatelly.
Comment 7 mslama 2008-06-13 11:34:41 UTC
Fixed fe15228c9896.

One fix is to change condition to break wait loop in initDocument. Other fix is to avoid recursive call of initVisual.

Logging is changed to Level.FINE and enabled in commit-validation to monitor behavior of CloneableEditor in
commit-validation.
Comment 8 mslama 2008-06-13 11:37:12 UTC
Condition is change to make sure that wait is not entered when document is closed during opening CloneableEditor.
Comment 9 mslama 2008-06-17 17:32:15 UTC
*** Issue 136033 has been marked as a duplicate of this issue. ***