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 192993 - IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@01390564#0: index=0, removeCount=0, addedCount=3, Added: [0]: HV@0090f425#0:<1095,1099> L=<NULL> [1]: HV@008cb9d7#0:<1099
Summary: IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013905...
Status: RESOLVED DUPLICATE of bug 182875
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2010-12-07 16:05 UTC by Exceptions Reporter
Modified: 2011-02-01 08:46 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173395


Attachments
stacktrace (2.13 KB, text/plain)
2010-12-07 16:05 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-12-07 16:05:24 UTC
This issue was reported manually by exceptions_reporter.
It already has 36 duplicates 


Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Linux

User Comments:
GUEST: Adding a line.

krischik: select some text.

spadija: Selected and copied a section of JavaScript code (a function), then deleted it.

GUEST: Deleting a line!

krischik: still delete a method.

GUEST: Just typing

GUEST: ? //</editor-fold> ?? ?? ?? ?? ????

TrueWolf777: Deleting commented out code in Python that was no longer needed

GUEST: Attempting to delete the same line.




Stacktrace: 
java.lang.IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@01390564#0: index=0, removeCount=0, addedCount=3, Added:
    [0]: HV@0090f425#0:<1095,1099> L=<NULL>
    [1]: HV@008cb9d7#0:<1099,1101> L=<NULL>
    [2]: HV@00fcd8b0#0:<1101,1115> L=<NULL>

   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:323)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:147)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:556)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:585)
   at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:224)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.run(HighlightsViewFactory.java:119)
Comment 1 Exceptions Reporter 2010-12-07 16:05:28 UTC
Created attachment 103684 [details]
stacktrace
Comment 2 jgr 2010-12-13 15:05:18 UTC
This error pops up every 10sec when working in java + maven. Pretty annoying.
Comment 3 Miloslav Metelka 2010-12-30 13:11:32 UTC
I was not able to reproduce the problem yet. I have added an extra assert into ViewUpdates to prevent simultaneous view-building.
I will add an extra checks for highlight regions continuity.

http://hg.netbeans.org/jet-main/rev/8cea34ca95e9
Comment 4 Quality Engineering 2011-01-06 09:17:32 UTC
Integrated into 'main-golden', will be available in build *201101060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8cea34ca95e9
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #192993 - IllegalStateException: Unfinished non-first replace - added extra assert.
Comment 5 Miloslav Metelka 2011-01-12 15:08:22 UTC
Since this is a random issue without reliable reproducing steps I'm downgrading  to P2.
Comment 6 Miloslav Metelka 2011-02-01 08:46:16 UTC

*** This bug has been marked as a duplicate of bug 182875 ***