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 238904 - Deadlock after exception TokenHierarchyOperation.ensureReadLocked
Summary: Deadlock after exception TokenHierarchyOperation.ensureReadLocked
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.4
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 240010 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-27 19:04 UTC by err
Modified: 2014-01-07 08:59 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump of deadlock (25.89 KB, text/plain)
2013-11-27 19:06 UTC, err
Details

Note You need to log in before you can comment on or make changes to this bug.
Description err 2013-11-27 19:04:35 UTC
IDE hung

I was editing and debugging.

attached thread dump actually says "Found 1 deadlock."

On the console:
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbean
s.modules.editor.NbEditorDocument@1163d72, mimeType='text/x-dialog-binding', kitClass=null, length=13, version=1, file=null
java.lang.Exception
        at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:398)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.isActive(TokenHierarchyOperation.java:358)
        at org.netbeans.api.lexer.TokenHierarchy.isActive(TokenHierarchy.java:331)
        at org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting.getHighlights(SyntaxHighlighting.java:140)
        at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.<init>(DirectMergeContainer.java:197)
        at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:104)
        at org.netbeans.modules.editor.hints.HintsUI$4$1.run(HintsUI.java:1024)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
        at org.netbeans.modules.editor.hints.HintsUI$4.run(HintsUI.java:1022)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Comment 1 err 2013-11-27 19:06:36 UTC
Created attachment 142653 [details]
thread dump of deadlock
Comment 2 err 2013-11-27 19:09:50 UTC
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 3 Miloslav Metelka 2013-12-02 10:15:39 UTC
http://hg.netbeans.org/jet-main/rev/6976cc3f9810
Comment 4 Miloslav Metelka 2013-12-02 10:23:21 UTC
Additional fix:
http://hg.netbeans.org/jet-main/rev/62f788c04207
Comment 5 Quality Engineering 2013-12-05 02:54:57 UTC
Integrated into 'main-silver', will be available in build *201312050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6976cc3f9810
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #238904 - Deadlock after exception TokenHierarchyOperation.ensureReadLocked.
Comment 6 Miloslav Metelka 2014-01-07 08:59:24 UTC
*** Bug 240010 has been marked as a duplicate of this bug. ***