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 221946 - Missing READ-LOCK when accessing TokenHierarchy
Summary: Missing READ-LOCK when accessing TokenHierarchy
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 11:11 UTC by Alexander Simon
Modified: 2012-11-14 02:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-11-12 11:11:46 UTC
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@18932dc, mimeType='text/x-c', kitClass=null, length=71, version=1, file=org.netbeans.modules.cnd.source.CDataObject@10099d2[AbstractFileObject@8a16d7[args.c] parent: AbstractFileObject@3749d7[root of MemoryFileSystem2[org.openide.filesystems.MemoryFileSystem@aea688]] validFlag: false validRoot: AbstractFileObject@3749d7[root of MemoryFileSystem2[org.openide.filesystems.MemoryFileSystem@aea688]] isValidRoot: true]
java.lang.Exception
	at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:422)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:418)
	at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:186)
	at org.netbeans.api.lexer.TokenHierarchy.embeddedTokenSequences(TokenHierarchy.java:265)
	at org.netbeans.cnd.api.lexer.CndLexerUtilities.getCppTokenSequence(CndLexerUtilities.java:137)
	at org.netbeans.modules.cnd.spellchecker.bindings.CndTokenList.findNextComment(CndTokenList.java:109)
	at org.netbeans.modules.cnd.spellchecker.bindings.CndTokenList.nextWordImpl(CndTokenList.java:175)
	at org.netbeans.modules.cnd.spellchecker.bindings.CndTokenList.nextWord(CndTokenList.java:97)
	at org.netbeans.modules.spellchecker.spi.language.support.MultiTokenList$MultiTokenListImpl.setStartOffset(MultiTokenList.java:86)
	at org.netbeans.modules.spellchecker.ComponentPeer$9.run(ComponentPeer.java:611)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1330)
	at org.netbeans.modules.spellchecker.ComponentPeer.computeHint(ComponentPeer.java:608)
	at org.netbeans.modules.spellchecker.ComponentPeer.access$200(ComponentPeer.java:124)
	at org.netbeans.modules.spellchecker.ComponentPeer$3.run(ComponentPeer.java:180)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 Alexander Simon 2012-11-12 11:12:11 UTC
IDE info:
>Log Session: Monday, November 12, 2012 3:10:04 PM MSK
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 20121112-bc81a441b242) (#bc81a441b242)
  Operating System        = SunOS version 5.10 running on x86
  Java; VM; Vendor        = 1.6.0_37; Java HotSpot(TM) Client VM 20.12-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_37-b06
  Java Home               = /usr/jdk/instances/jdk1.6.0_37/jre
Comment 2 Vladimir Voskresensky 2012-11-13 16:54:31 UTC
http://hg.netbeans.org/cnd-main/rev/2a70a08329d1
Comment 3 Quality Engineering 2012-11-14 02:43:48 UTC
Integrated into 'main-golden', will be available in build *201211140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2a70a08329d1
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #221946 - Missing READ-LOCK when accessing TokenHierarchy