This bug was originally marked as duplicate of bug 191620, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.
Build: NetBeans IDE Dev (Build 201103100400)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows XP
alied: While editing.
Pasteing and deleting some characters
java.lang.IllegalStateException: matchOffset=52628 > docViewEndOffset=52620
DV@0154c674#16:<51926,52620>, WxH:776.0x272.0; incomingMod=true; lengthyAtomicEdit=0
[ 0]: PV@01b57294#13:<51926,51991> Y=0.0(R0.0), WxH:520.0x17.0
[ 0]: HV@01d06699#0:<51926,51938> X=0.0(R0.0) L=[0#12]<0>;x=0.0;fC=<NULL>;bC=<NULL>
[ 1]: HV@00ffeeb8#0:<51938,51944> X=96.0(R96.0) L=[1#12]<12>;x=96.0;fC=<NULL>;bC=<NULL>
[ 2]: HV@0091891c#0:<51944,51945> X=144.0(R144.0) L=[2#12]<18>;x=144.0;fC=<NULL>;bC=<NULL>
[ 3]: HV@00c0b9aa#0:<51945,51965> X=152.0(R152.0) L=[3#12]<19>;x=152.0;fC=<NULL>;bC=<NULL>
[ 4]: HV@00dd7fad#0:<51965,51966> X=312.0(R312.0) L=[4#12]<39>;x=312.0;fC=<NULL>;bC=<NULL>
[ 8]: HV@01e96889#0:<51986,51987> X=480.0(R480.0) L=[8#12]<60>;x=480.0;fC=<NULL>;bC=<NULL>
[ 9]: HV@00ce32be#0:<51987,51988> X=488.0(R488.0) L=[9#12]<61>;x=488.0;fC=<NULL>;bC=<NULL>
: HV@016594e1#0:<51988,51989> X=496.0(R496.0) L=[10#12]<62>;x=496.0;fC=<NULL>;bC
Created attachment 106879 [details]
Unfortunately this is from a build with issue 195432 :( so another fix is necessary.
I've made a patch for a case when a document listener would fail with a runtime exception. Then the view hierarchy updating would fail exactly in a way the exception looks in this case. Patch improves robustness of a document listeners firing.
Unfortunately I'm unable to reproduce the exception during the regular editing.
alied, could you please test a nightly build with the exception integrated whether you can still reproduce the problem? Thanks. (A note about a build containing the patch will be added to the issue soon.)
ok, just tell me when the build is ready and I will download it. I am not quite sure how to trigger the error, but I'll try it.
in recent builds i've been getting these exceptions, and always before reporting them, install a new build. The first time was with a old build which updated some editor-related modules.
*** This bug has been marked as a duplicate of bug 196615 ***
Integrated into 'main-golden', will be available in build *201103120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Miloslav Metelka <email@example.com>
Log: #196549 - [70cat] IllegalStateException: matchOffset=52628 > docViewEndOffset=52620 docView: DV@0154c674#16:<51926,52620>, WxH:776.0x272.0; incomingMod=true; lengthyAtomicEdit=0 [ 0]: PV@01b57294#13:<51926,51991> - improved robustness of document listeners firing.
alied: please download build *201103120400* on http://bits.netbeans.org/dev/nightly/ and check whether the problem occurs or not.
I know that the issue is random but if it won't occur for certain time then we can become confident that the problem is fixed. Thanks.
Seems fine to me.
I was trying to reproduce it and without any success, so for me is verified.
So far so good:
Product Version: NetBeans IDE Dev (Build 201103140400)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Windows XP version 5.1 running on x86;
Marking as P1 in order to integrate into release70.
*** Bug 196615 has been marked as a duplicate of this bug. ***
transplanted into release70: 3204ee8ed67e transplanted as 22d0849018ff