Bug 198141 - Netbeans 7.0 hangs. Possible complex deadlock.
Netbeans 7.0 hangs. Possible complex deadlock.
Product: editor
Classification: Unclassified
Component: Painting & Printing
PC Windows 7 x64
: P1 with 2 votes (vote)
: 7.0.1
Assigned To: Miloslav Metelka
: 197886 198594 198712 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2011-04-27 14:58 UTC by neilwightman
Modified: 2011-05-23 08:42 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT

TXT thread dump (31.01 KB, text/plain)
2011-04-27 14:58 UTC, neilwightman
TDUMP thread dump (30.46 KB, text/plain)
2011-04-27 14:59 UTC, neilwightman

Note You need to log in before you can comment on or make changes to this bug.
Description neilwightman 2011-04-27 14:58:21 UTC
Created attachment 107975 [details]
TXT thread dump

I have problems with Netbeans 7.0 RC1 + Netbeans 7.0 released version.

After using Netbeans for some time the UI hangs.

The Awt thread gets stuck a the 
line and never returns.  I waited over 30 mins at lunch.

See attached thread dump files.
Comment 1 neilwightman 2011-04-27 14:59:03 UTC
Created attachment 107976 [details]
TDUMP thread dump

Both attachments were created by attaching jvisualvm.exe to the process.
Comment 2 David Strupl 2011-04-28 19:18:24 UTC
Milo, can you please have a look? Seems like the problem is in 
"Pending refresh" daemon prio=2 tid=0x5ad27400 nid=0xf00 in Object.wait() [0x0895f000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:485)
	at javax.swing.text.AbstractDocument.readLock(AbstractDocument.java:1372)
	- locked <0x2bc9cc40> (a org.netbeans.modules.editor.NbEditorDocument)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1419)
	at org.netbeans.modules.editor.lib2.highlighting.ProxyHighlightsContainer.layerChanged(ProxyHighlightsContainer.java:229)
	at org.netbeans.modules.editor.lib2.highlighting.ProxyHighlightsContainer.access$200(ProxyHighlightsContainer.java:66)
	at org.netbeans.modules.editor.lib2.highlighting.ProxyHighlightsContainer$LayerListener.highlightChanged(ProxyHighlightsContainer.java:256)
	at org.netbeans.spi.editor.highlighting.support.AbstractHighlightsContainer.fireHighlightsChange(AbstractHighlightsContainer.java:113)
	at org.netbeans.modules.editor.lib2.highlighting.ReadOnlyFilesHighlighting.updateFileReadOnly(ReadOnlyFilesHighlighting.java:142)
	at org.netbeans.modules.editor.lib2.highlighting.ReadOnlyFilesHighlighting.fileAttributeChanged(ReadOnlyFilesHighlighting.java:173)
	- locked <0x2be26d68> (a org.netbeans.modules.editor.lib2.highlighting.ReadOnlyFilesHighlighting)

While having locked ReadOnlyFilesHighlighting it is trying to lock document. On the other hand AWT EDT has document locked and is trying to lock ReadOnlyFilesHighlighting.
Comment 3 Miloslav Metelka 2011-04-30 09:33:25 UTC
Comment 4 Miloslav Metelka 2011-04-30 09:33:34 UTC
*** Bug 197886 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2011-05-02 16:26:34 UTC
Integrated into 'main-golden', will be available in build *201105021133* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/dc3f76a045fb
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #198141 - Netbeans 7.0 hangs. - Deadlock between document and FS lock in ReadOnlyFilesHighlighting.
Comment 6 David Strupl 2011-05-06 08:13:03 UTC
Shouldn't this one be marked as fixed? Thanks.
Comment 7 Jaromir Uhrik 2011-05-16 12:56:21 UTC
According to the code it seems that the fix is all right so I am marking as Verified to make sure that the fix appears in the patch1.
Comment 8 Miloslav Metelka 2011-05-16 15:55:39 UTC
In release70_fixes:
dc3f76a045fb transplanted to d5665f14eac7
plus increase of spec. versions:

For the list of included fixed bugs please check
Comment 9 Marian Mirilovic 2011-05-17 07:19:48 UTC
*** Bug 198594 has been marked as a duplicate of this bug. ***
Comment 10 Jaromir Uhrik 2011-05-20 08:09:02 UTC
Verified in patch1 the same way as in the trunk.
Comment 11 Miloslav Metelka 2011-05-23 08:42:48 UTC
*** Bug 198712 has been marked as a duplicate of this bug. ***

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo