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.
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 org.netbeans.modules.editor.lib2.highlighting.ReadOnlyFilesHighlighting.checkFileStatus(ReadOnlyFilesHighlighting.java:131) line and never returns. I waited over 30 mins at lunch. See attached thread dump files.
Created attachment 107976 [details] TDUMP thread dump Both attachments were created by attaching jvisualvm.exe to the process.
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.
Fixed. http://hg.netbeans.org/jet-main/rev/dc3f76a045fb
*** Bug 197886 has been marked as a duplicate of this bug. ***
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.
Shouldn't this one be marked as fixed? Thanks.
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.
In release70_fixes: dc3f76a045fb transplanted to d5665f14eac7 plus increase of spec. versions: 3f29344bf2a8 For the list of included fixed bugs please check http://wiki.netbeans.org/NetBeans70PatchesInfo
*** Bug 198594 has been marked as a duplicate of this bug. ***
Verified in patch1 the same way as in the trunk.
*** Bug 198712 has been marked as a duplicate of this bug. ***