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.
Summary: | AssertionError: ModCount already updated | ||
---|---|---|---|
Product: | editor | Reporter: | Lukas Jungmann <jungi> |
Component: | Lexer | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | alexvsimon, aliyang, ayubskhan |
Priority: | P2 | Keywords: | RANDOM |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=102473 | ||
Issue Type: | DEFECT | Exception Reporter: | 102473 |
Attachments: |
stacktrace
stacktrace |
Description
Lukas Jungmann
2008-08-31 16:24:38 UTC
Created attachment 68728 [details]
stacktrace
That's likely because there's some thread in parallel inspecting token hierarchy. When run with -J-Dorg.netbeans.spi.lexer.MutableTextInput.level=FINE there's a SAAS code reformatting thread without a write lock. I'll try to propose a patch for SAAS code. I was not able to reproduce the exception. I suppose the issue is random, right? Anyway I have added write-locking of the reformatting in saas. If the problem would persist please reopen the issue. http://hg.netbeans.org/main/rev/e3ad00aee5f6 Integrated into 'main-golden', will be available in build *200809050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e3ad00aee5f6 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #145719 - AssertionError: ModCount already updated. Build: NetBeans IDE Dev (Build 091030) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: SunOS, 5.10, x86 User Comments: Stacktrace: java.lang.AssertionError: ModCount already updated at org.netbeans.lib.lexer.inc.IncTokenList.replaceTokens(IncTokenList.java:304) at org.netbeans.lib.lexer.inc.TokenListUpdater.updateRegular(TokenListUpdater.java:279) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate$UpdateItem.update(TokenHierarchyUpdate.java:345) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.processLevelInfos(TokenHierarchyUpdate.java:220) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.updateImpl(TokenHierarchyUpdate.java:192) at org.netbeans.lib.lexer.inc.TokenHierarchyUpdate.update(TokenHierarchyUpdate.java:130) Created attachment 90425 [details]
stacktrace
alexvsimon: Any steps to reproduce the problem? Thanks. Create C/C++ sample project, open source file in editor, select file comment and #include directives, press backspace. I do not sure that backspace was before exception. IDE info: Product Version = NetBeans IDE Dev (Build 091030) (#b2b30bd97c68) Operating System = SunOS version 5.10 running on x86 Java; VM; Vendor = 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_14-b08 Java Home = /usr/jdk/instances/jdk1.6.0_14/jre System Locale; Encoding = en (nb); ISO646-US Integrated into 'main-golden', will be available in build *200911050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8e4f32f07c61 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #145719 - AssertionError: ModCount already updated - Fixed missing readlocks in CndTokenUtilities. Fixed. |