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 195522 - java.lang.IllegalStateException: matchOffset=3 > docViewEndOffset=1
Summary: java.lang.IllegalStateException: matchOffset=3 > docViewEndOffset=1
Status: RESOLVED DUPLICATE of bug 191620
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 17:12 UTC by Vladimir Riha
Modified: 2011-02-16 16:39 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 Vladimir Riha 2011-02-15 17:12:44 UTC
Steps to reproduce:
1. Create new javascript file
2. Ctrl+A to select all
3. Paste text from clipboard

Error dialog is displayed with report message. After hiting Cancel button, the  editor is unusable, every single mouse click (or key pressed) will cause another error dialog. The only solution is to closed the file without saving

Stacktrace:

java.lang.IllegalStateException: matchOffset=3 > docViewEndOffset=1
docView:
DV@01b0dd92#17:<0,1>, WxH:424.0x289.0; incomingMod=false; lengthyAtomicEdit=0
Doc: GsfDocument@0199ad0a, Length=0, Version=2, StreamDesc:org.netbeans.modules.csl.core.GsfDataObject@75b368[MasterFileObject[C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\PhpProject11\newjavascript.js@cd5cfc:7f6b65,valid=true]]
    [ 0]: PV@01480bd3#2:<0,4> Y=0.0(R0.0), WxH:32.0x17.0
        [0]: HV@00a2c417#0:<0,3> X=0.0(R0.0) L=TLc[]:3;W=24.0
        [1]: NV@01f7cd9d#0:<3,4> X=24.0(R24.0)
    [ 1]: PV@0022ee38#15:<0,53> Y=17.0(R17.0), WxH:424.0x17.0
        [ 0]: HV@01dc0ab6#0:<0,3> X=0.0(R0.0) L=[0#14]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [ 1]: HV@014339d5#0:<3,5> X=24.0(R24.0) L=[1#14]<3>;x=24.0;fC=<NULL>;bC=<NULL>
        [ 2]: HV@008a04f0#0:<5,6> X=40.0(R40.0) L=[2#14]<5>;x=40.0;fC=<NULL>;bC=<NULL>
        [ 3]: HV@014a479d#0:<6,12> X=48.0(R48.0) L=[3#14]<6>;x=48.0;fC=<NULL>;bC=<NULL>
        [ 4]: HV@01a3992e#0:<12,13> X=96.0(R96.0) L=[4#14]<12>;x=96.0;fC=<NULL>;bC=<NULL>
        ...
        [10]: HV@019dd237#0:<34,35> X=272.0(R272.0) L=[10#14]<34>;x=272.0;fC=<NULL>;bC=<NULL>
        [11]: HV@00543a88#0:<35,40> X=280.0(R280.0) L=[11#14]<35>;x=280.0;fC=<NULL>;bC=<NULL>
        [12]: HV@01cee820#0:<40,43> X=320.0(R320.0) L=[12#14]<40>;x=320.0;fC=<NULL>;bC=<NULL>
        [13]: HV@00e9aa86#0:<43,52> X=344.0(R344.0) L=[13#14]<43>;x=344.0;fC=<NULL>;bC=<NULL>
        [14]: NV@00ba63ae#0:<52,53> X=416.0(R416.0)
    [ 2]: PV@0145af03#16:<0,40> Y=34.0(R34.0), WxH:320.0x17.0
        [ 0]: HV@00e66518#0:<0,3> X=0.0(R0.0) L=[0#15]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [ 1]: HV@01f71a81#0:<3,6> X=24.0(R24.0) L=[1#15]<3>;x=24.0;fC=<NULL>;bC=<NULL>
        [ 2]: HV@01ed1fa6#0:<6,7> X=48.0(R48.0) L=[2#15]<6>;x=48.0;fC=<NULL>;bC=<NULL>
        [ 3]: HV@00b8f448#0:<7,11> X=56.0(R56.0) L=[3#15]<7>;x=56.0;fC=<NULL>;bC=<NULL>
        [ 4]: HV@00add079#0:<11,12> X=88.0(R88.0) L=[4#15]<11>;x=88.0;fC=<NULL>;bC=<NULL>
        ...
        [11]: HV@0151e464#0:<28,31> X=224.0(R224.0) L=[11#15]<28>;x=224.0;fC=<NULL>;bC=<NULL>
        [12]: HV@0169787a#0:<31,32> X=248.0(R248.0) L=[12#15]<31>;x=248.0;fC=<NULL>;bC=<NULL>
        [13]: HV@0164c078#0:<32,38> X=256.0(R256.0) L=[13#15]<32>;x=256.0;fC=<NULL>;bC=<NULL>
        [14]: HV@01983c56#0:<38,39> X=304.0(R304.0) L=[14#15]<38>;x=304.0;fC=<NULL>;bC=<NULL>
        [15]: NV@01a15e00#0:<39,40> X=312.0(R312.0)
    [ 3]: PV@01e519b1#2:<0,4> Y=51.0(R51.0), WxH:32.0x17.0
        [0]: HV@0122926f#0:<0,3> X=0.0(R0.0) L=TLc[]:3;W=24.0
        [1]: NV@00bbed62#0:<3,4> X=24.0(R24.0)
    [ 4]: PV@01f9dd78#1:<0,1> Y=68.0(R68.0) "\n", WxH:8.0x17.0
        [0]: NV@01ddfada#0:<0,1> X=0.0(R0.0) "\n"
    ...
    [12]: PV@0151bcc2#2:<0,5> Y=204.0(R204.0), WxH:40.0x17.0
        [0]: HV@00803cb7#0:<0,4> X=0.0(R0.0) L=TLc[]:4;W=32.0
        [1]: NV@011241d2#0:<4,5> X=32.0(R32.0)
    [13]: PV@013f6c69#2:<0,5> Y=221.0(R221.0), WxH:40.0x17.0
        [0]: HV@019f76db#0:<0,4> X=0.0(R0.0) L=TLc[]:4;W=32.0
        [1]: NV@003454e8#0:<4,5> X=32.0(R32.0)
    [14]: PV@00e681ef#2:<0,2> Y=238.0(R238.0), WxH:16.0x17.0
        [0]: HV@01b27ba9#0:<0,1> X=0.0(R0.0) "\n" L=TLc[]:1;W=8.0
        [1]: NV@00d4b3e4#0:<1,2> X=8.0(R8.0)
    [15]: PV@015ca18f#1:<0,1> Y=255.0(R255.0) "\n", WxH:8.0x17.0
        [0]: NV@006e465d#0:<0,1> X=0.0(R0.0) "\n"
    [16]: PV@0072c465#1:<0,1> Y=272.0(R272.0) "\n", WxH:8.0x17.0
        [0]: NV@01cdc37d#0:<0,1> X=0.0(R0.0) "\n"
	at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:385)
	at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:336)
Caused: java.lang.IllegalStateException: ViewBuilder: Error in view creation: prevViewEndOffset=0, matchOffset=3, docViewEndOffset=1, lineEndOffset=1, viewRemovalFinished=false
	at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:339)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:145)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:515)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:541)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:459)
Caused: java.lang.reflect.UndeclaredThrowableException
	at $Proxy26.viewFactoryChanged(Unknown Source)
	at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:245)
	at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.run(HighlightsViewFactory.java:120)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1419)
	at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.run(HighlightsViewFactory.java:126)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Caused: org.openide.util.RequestProcessor$FastItem: task failed due to
Comment 1 Marian Mirilovic 2011-02-16 16:39:32 UTC

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