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 170445

Summary: ide randomly deadlock (becomes unresponive and must be killed).
Product: platform Reporter: mihai <mihai>
Component: TextAssignee: mslama <mslama>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: RANDOM, THREAD
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: the printscreen
the threads stack
deadloc on double click on search result (stack)
deadlock on double click on search result (printscreen)
deadlock 3
deadlock 3
part 4
part 4
deadlock 5
deadlock 5
Another stack trace

Description mihai 2009-08-17 08:57:24 UTC
The ide freeze and becomes unresponsive. 
This happen on NB 6.8 M1. All my projects are maven based. After the freeze the ide is not recovering and must be killed.
For the attached stacks and printscreen, the action that caused the lock was a double click (open) on a pom.xml
But i reproduced this also on closing an log4j.xml and on a right click on a project an the "properties".
I will continue to send updates (stacks/printscreens) as the issue is reproducing
Comment 1 mihai 2009-08-17 08:57:59 UTC
Created attachment 86303 [details]
the printscreen
Comment 2 mihai 2009-08-17 08:58:21 UTC
Created attachment 86304 [details]
the threads stack
Comment 3 Milos Kleint 2009-08-17 14:43:14 UTC
to me the problem thread seems to be this one, but it's not clear to mewhat NbEditorDocument waits for (no other thread
seems to have NbEditorDocument locked. Please evaluate

at java.lang.Object.wait(Native Method)
        - waiting on <0x14f5f458> (a org.netbeans.modules.editor.NbEditorDocument)
        at java.lang.Object.wait(Object.java:485)
        at javax.swing.text.AbstractDocument.readLock(AbstractDocument.java:1372)
        - locked <0x14f5f458> (a org.netbeans.modules.editor.NbEditorDocument)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1368)
        at org.openide.text.PositionRef$Manager$DocumentRenderer.render(PositionRef.java:889)
        at org.openide.text.PositionRef$Manager.processPositions(PositionRef.java:346)
        at org.openide.text.PositionRef$Manager.documentClosed(PositionRef.java:287)
        at org.openide.text.CloneableEditorSupport.doCloseDocument(CloneableEditorSupport.java:2142)
        at org.openide.text.CloneableEditorSupport.closeDocument(CloneableEditorSupport.java:2113)
        - locked <0x14f5f618> (a org.openide.windows.CloneableOpenSupport$Listener)
        at org.openide.text.CloneableEditorSupport.notifyClosed(CloneableEditorSupport.java:1985)
        at org.openide.text.DataEditorSupport.notifyClosed(DataEditorSupport.java:310)
        at org.netbeans.modules.xml.text.TextEditorSupport.notifyClosed(TextEditorSupport.java:216)
        at org.openide.text.CloneableEditorSupport.close(CloneableEditorSupport.java:2089)
        at org.openide.windows.CloneableOpenSupport.close(CloneableOpenSupport.java:126)
        at org.netbeans.modules.versioning.diff.DiffSidebar.getText(DiffSidebar.java:953)
        at org.netbeans.modules.versioning.diff.DiffSidebar.getText(DiffSidebar.java:852)
        at org.netbeans.modules.versioning.diff.DiffSidebar.access$900(DiffSidebar.java:98)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.fetchOriginalContent(DiffSidebar.java:816)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.computeDiff(DiffSidebar.java:787)
        at org.netbeans.modules.versioning.diff.DiffSidebar$RefreshDiffTask.run(DiffSidebar.java:777)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)

Comment 4 Milos Kleint 2009-08-17 14:44:47 UTC
*** Issue 170140 has been marked as a duplicate of this issue. ***
Comment 5 mihai 2009-08-18 09:35:34 UTC
Another deadlock. After a search in project(ctrl+shift+F), i double clicked on a search result. 
Comment 6 mihai 2009-08-18 09:36:28 UTC
Created attachment 86377 [details]
deadloc on double click on search result (stack)
Comment 7 mihai 2009-08-18 09:37:02 UTC
Created attachment 86378 [details]
deadlock on double click on search result (printscreen)
Comment 8 mihai 2009-08-18 09:48:49 UTC
I am using a custom look&feel OfficeLnFs_2.7.jar https://sourceforge.net/projects/officelnfs/files/
I hope this is not the cause of the problems.

my custom netbeans.conf nb options:
netbeans_default_options="-J-Dorg.netbeans.modules.tomcat.autoregister.token=1250073911712
-J-Dorg.netbeans.modules.tomcat.autoregister.catalinaHome=\"C:\Program Files\Apache Software Foundation\Apache Tomcat
6.0.20\" -J-client -J-Xss2m -J-Xms400m -J-Xmx400m -J-XX:PermSize=32m -J-XX:MaxPermSize=256m -J-Xverify:none
-J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
-J-Djava.net.preferIPv4Stack=true -J-Dsun.java2d.d3d=true --laf org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel" 
Comment 9 mihai 2009-08-18 13:13:09 UTC
This time the ide is not redrawing the ui.
Comment 10 mihai 2009-08-18 13:13:53 UTC
Created attachment 86389 [details]
deadlock 3
Comment 11 mihai 2009-08-18 13:14:11 UTC
Created attachment 86390 [details]
deadlock 3
Comment 12 mihai 2009-08-18 14:31:26 UTC
Another deadlock when opening an xml file. Attaching the part 4.
Comment 13 mihai 2009-08-18 14:31:49 UTC
Created attachment 86394 [details]
part 4
Comment 14 mihai 2009-08-18 14:32:06 UTC
Created attachment 86395 [details]
part 4
Comment 15 mihai 2009-08-18 14:41:12 UTC
Another one when closing a pom.xml editor window (after killing the ide with the part 4).
Comment 16 mihai 2009-08-18 14:41:44 UTC
Created attachment 86397 [details]
deadlock 5
Comment 17 mihai 2009-08-18 14:42:48 UTC
Created attachment 86398 [details]
deadlock 5
Comment 18 Vitezslav Stejskal 2009-08-18 14:50:12 UTC
IMO problem in CloneableEditorSupport. mihai please do not attach screenshots. They are not helpful in this particular
case. Threaddumps are good, thanks.
Comment 19 mgoe 2009-08-19 14:12:09 UTC
Created attachment 86454 [details]
Another stack trace
Comment 20 mslama 2009-08-24 09:11:25 UTC
Fixed in trunk already.

*** This issue has been marked as a duplicate of 169717 ***