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 195299 - javax.swing.undo.CannotUndoException on attach debugger
Summary: javax.swing.undo.CannotUndoException on attach debugger
Status: RESOLVED DUPLICATE of bug 191620
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-02-10 15:54 UTC by Alexander Pepin
Modified: 2011-02-11 09:06 UTC (History)
2 users (show)

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 Alexander Pepin 2011-02-10 15:54:08 UTC
It has appeared in beta 2 build 20110210 and looks like a showstopper for beta 2!

Steps to reproduce:
- create Quote sample project (C/C++)
- switch profiler off
- run the project
- press "Attach Debugger" button in Output window (simple attach)
Result: javax.swing.undo.CannotUndoException exception appears together with 
java.lang.IllegalStateException: matchOffset=3706 > docViewEndOffset=3704


javax.swing.undo.CannotUndoException
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1873)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:320)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
	at org.openide.text.CloneableEditorSupport.reloadDocument(CloneableEditorSupport.java:1682)
	at org.openide.text.CloneableEditorSupport.checkReload(CloneableEditorSupport.java:2316)
	at org.openide.text.CloneableEditorSupport.access$2600(CloneableEditorSupport.java:133)
	at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2952)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
	at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2944)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)




java.lang.IllegalStateException: matchOffset=3706 > docViewEndOffset=3704
docView:
DV@01b79ae7#252:<0,3704>, WxH:224.0x4032.0; incomingMod=true; lengthyAtomicEdit=0
Doc: NbEditorDocument@0191607c, Length=3703, Version=3, StreamDesc:org.netbeans.modules.cnd.asm.core.dataobjects.AsmDataObject@1761399[AbstractFileObject@16101eb[disasm.s]]
    [  0]: PV@0018ad10#3:<0,3> Y=0.0(R0.0) "()\n", WxH:24.0x16.0
        [0]: HV@011ac3f5#0:<0,1> X=0.0(R0.0) "(" L=[0#2]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [1]: HV@00373265#0:<1,2> X=8.0(R8.0) ")" L=[1#2]<1>;x=8.0;fC=<NULL>;bC=<NULL>
        [2]: NV@01cdb950#0:<2,3> X=16.0(R16.0) "\n"
    [  1]: PV@000a28c7#7:<3,13> Y=16.0(R16.0) "+0: ta  8\n", WxH:80.0x16.0
        [0]: HV@01414cbb#0:<3,4> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@0014a65a#0:<4,6> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@01b5972c#0:<6,7> X=24.0(R24.0) " " L=[0#4]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@00d7d0bc#0:<7,9> X=32.0(R32.0) "ta" L=[1#4]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: HV@00c8ed3a#0:<9,11> X=48.0(R48.0) "  " L=[2#4]<3>;x=24.0;fC=<NULL>;bC=<NULL>
        [5]: HV@014e91ce#0:<11,12> X=64.0(R64.0) "8" L=[3#4]<5>;x=40.0;fC=<NULL>;bC=<NULL>
        [6]: NV@014689cd#0:<12,13> X=72.0(R72.0) "\n"
    [  2]: PV@00fb290b#5:<13,25> Y=32.0(R32.0) "+0: unk...wn\n", WxH:96.0x16.0
        [0]: HV@000103d2#0:<13,14> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@00a20763#0:<14,16> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@0193109a#0:<16,17> X=24.0(R24.0) " " L=[0#2]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@0027132c#0:<17,24> X=32.0(R32.0) "unknown" L=[1#2]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: NV@015bb1e2#0:<24,25> X=88.0(R88.0) "\n"
    [  3]: PV@014396ce#10:<25,44> Y=48.0(R48.0) "+0: cmp...5b\n", WxH:152.0x16.0
        [ 0]: HV@00fb8be6#0:<25,26> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [ 1]: HV@009dd18c#0:<26,28> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [ 2]: HV@012871ef#0:<28,29> X=24.0(R24.0) " " L=[0#7]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [ 3]: HV@00501d2c#0:<29,32> X=32.0(R32.0) "cmp" L=[1#7]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [ 4]: HV@01ab6e55#0:<32,34> X=56.0(R56.0) "  " L=[2#7]<4>;x=32.0;fC=<NULL>;bC=<NULL>
        [ 5]: HV@01d8c4a5#0:<34,37> X=72.0(R72.0) "%o0" L=[3#7]<6>;x=48.0;fC=RGB[46;146;199];bC=<NULL>
        [ 6]: HV@00566914#0:<37,38> X=96.0(R96.0) "," L=[4#7]<9>;x=72.0;fC=<NULL>;bC=<NULL>
        [ 7]: HV@010cd696#0:<38,39> X=104.0(R104.0) " " L=[5#7]<10>;x=80.0;fC=<NULL>;bC=<NULL>
        [ 8]: HV@01dc3a65#0:<39,43> X=112.0(R112.0) "0x5b" L=[6#7]<11>;x=88.0;fC=<NULL>;bC=<NULL>
        [ 9]: NV@017de7e6#0:<43,44> X=144.0(R144.0) "\n"
    [  4]: PV@0061e773#5:<44,56> Y=64.0(R64.0) "+0: unk...wn\n", WxH:96.0x16.0
        [0]: HV@0103bd31#0:<44,45> X=0.0(R0.0) "+" L=TLc[]:1;W=8.0
        [1]: HV@0079dd82#0:<45,47> X=8.0(R8.0) "0:" L=TLc[]:2;W=16.0
        [2]: HV@00bdb86a#0:<47,48> X=24.0(R24.0) " " L=[0#2]<0>;x=0.0;fC=<NULL>;bC=<NULL>
        [3]: HV@01966bd8#0:<48,55> X=32.0(R32.0) "unknown" L=[1#2]<1>;x=8.0;fC=RGB[0;155;0];bC=<NULL>
        [4]: NV@00824b57#0:<55,56> X=88.0(R88.0) "\n"
    ...
    [247]: PV@00204224#0:<3642,3654> Y=3952.0(R3952.0) "+0: unk...wn\n", WxH:0.0x16.0, children=null
    [248]: PV@01d682fe#0:<3654,3672> Y=3968.0(R3968.0) "+0: mov...o0\n", WxH:0.0x16.0, children=null
    [249]: PV@00321db8#0:<3672,3691> Y=3984.0(R3984.0) "+0: cmp...5b\n", WxH:0.0x16.0, children=null
    [250]: PV@003d57a7#0:<3691,3703> Y=4000.0(R4000.0) "+0: unk...wn\n", WxH:0.0x16.0, children=null
    [251]: PV@0145c026#0:<3703,3704> Y=4016.0(R4016.0) "\n", WxH:0.0x16.0, children=null
	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=3706, docViewEndOffset=3704, lineEndOffset=3, 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.insertUpdate(ViewUpdates.java:316)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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 $Proxy24.insertUpdate(Unknown Source)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:82)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
	at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1667)
	at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:293)
	at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:72)
	at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:46)
	at org.netbeans.editor.BaseDocument$AtomicCompoundEdit.undo(BaseDocument.java:2220)
	at org.netbeans.editor.BaseDocument.breakAtomicLock(BaseDocument.java:1871)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:320)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
	at org.openide.text.CloneableEditorSupport.clearDocument(CloneableEditorSupport.java:785)
	at org.openide.text.CloneableEditorSupport.access$1700(CloneableEditorSupport.java:133)
	at org.openide.text.CloneableEditorSupport$6$1Query.call(CloneableEditorSupport.java:1719)
	at org.openide.text.CloneableEditorSupport$6.run(CloneableEditorSupport.java:1732)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
	at org.openide.text.CloneableEditorSupport.reloadDocument(CloneableEditorSupport.java:1682)
	at org.openide.text.CloneableEditorSupport.checkReload(CloneableEditorSupport.java:2316)
	at org.openide.text.CloneableEditorSupport.access$2600(CloneableEditorSupport.java:133)
	at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2952)
	at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
	at org.openide.text.NbDocument.runAtomic(NbDocument.java:422)
	at org.openide.text.CloneableEditorSupport$Listener$1.run(CloneableEditorSupport.java:2944)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Jan Becicka 2011-02-11 08:59:32 UTC
*** Bug 195317 has been marked as a duplicate of this bug. ***
Comment 2 Marian Mirilovic 2011-02-11 09:06:47 UTC

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