Bug 220308 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy
!!WARNING!! Missing READ-LOCK when accessing TokenHierarchy
Status: RESOLVED FIXED
Product: cnd
Classification: Unclassified
Component: Editor
7.3
All All
: P3 (vote)
: 7.3
Assigned To: Vladimir Voskresensky
issues@cnd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-17 16:05 UTC by Vladimir Voskresensky
Modified: 2012-10-23 12:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2012-10-17 16:05:17 UTC
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@e5a2ac, mimeType='text/x-h', kitClass=null, length=20008, version=1, file=org.netbeans.modules.cnd.source.HDataObject@1b33228[/export/files/sources/mozilla-2.0/accessible/src/base/nsAccessible.h@35d26ed3:18716cc]
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.cnd.api.lexer.CndLexerUtilities.getCppTokenSequence(CndLexerUtilities.java:94)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmCodeTemplateFilter.getID(CsmCodeTemplateFilter.java:80)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmCodeTemplateFilter.<init>(CsmCodeTemplateFilter.java:71)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmCodeTemplateFilter.<init>(CsmCodeTemplateFilter.java:57)
        at org.netbeans.modules.cnd.completion.cplusplus.CsmCodeTemplateFilter$Factory.createFilter(CsmCodeTemplateFilter.java:112)
        at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.getTemplateFilters(CodeTemplateManagerOperation.java:230)
        at org.netbeans.lib.editor.codetemplates.SurroundWithFix.getFixes(SurroundWithFix.java:74)
        at org.netbeans.lib.editor.codetemplates.AbbrevDetection$2.run(AbbrevDetection.java:434)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 markiewb 2012-10-18 15:19:17 UTC
A similar error has already been fixed. Maybe you can adopt the solution?
Have a look at http://netbeans.org/bugzilla/show_bug.cgi?id=220312#c1
Comment 2 Vladimir Voskresensky 2012-10-22 11:13:15 UTC
http://hg.netbeans.org/cnd-main/rev/4f31f1e6c744
Comment 3 Quality Engineering 2012-10-23 12:06:04 UTC
Integrated into 'main-golden', will be available in build *201210231040* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4f31f1e6c744
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed  #220308 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy
- use TS under document's read lock


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