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 192397

Summary: AssertionError: limitOffset=4039 > docTextLength=4038
Product: editor Reporter: cameronolivier
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adben, aglynn42, asmotrich, cassus, dezagui, dramalho, FrantaM, gawrik, geissler, gtg, ianvic, IgalR, jamiehutber, javydreamercsw, jdlee, kecampbell, lisongzhao0, mchl, michael.nischt, michbarsinai, Mikefr, orangeudav, pavelvesely, ratsteel, rcasha, rov63rus, supuhstar, theradman, williambacchi, ytn01
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 173178
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description cameronolivier 2010-11-24 12:12:31 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07
OS: Windows 7

User Comments:
cameronolivier: trying to enter a new carriage return. code 2 lines above it was folded. ie - 
[folded code] 
[folded code] 
</div> {error when trying to carriage return from here}

GUEST: a have generated some php files from external script and netbeans had focus on that folder




Stacktrace: 
java.lang.AssertionError: limitOffset=4039 > docTextLength=4038
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:375)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:318)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:147)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.insertUpdate(ViewUpdates.java:327)
   at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:82)
   at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:0)
Comment 1 cameronolivier 2010-11-24 12:12:38 UTC
Created attachment 103277 [details]
stacktrace
Comment 2 michbarsinai 2010-12-06 19:03:30 UTC
Created attachment 103636 [details]
stacktrace

After editing an annonumous inner class.
Comment 3 ytn01 2010-12-09 12:24:55 UTC
Created attachment 103835 [details]
stacktrace

Formatting a set of code that contained code folds that were collapsed using the "<editor-fold>" tag.
I was trying to insert new lines of code in between two consecutive code folds that were in a collapsed state.
The exception dialog appeared the moment I pressed the "Enter" button at the end of the first code fold.
Comment 4 ytn01 2011-01-05 11:46:32 UTC
Created attachment 104722 [details]
stacktrace

Selected several lines of code on my source file (specifically, the selecton was inside the constructor definition of the class I was working on)
From the snippet icon that appeared on the sidebar, I selected "Surround with <editor-fold....
The selection was soon surrounded with "<editor-fold..." region, and the cursor was automatically positioned on "desc" tag of the editor-fold parameters.
I started entering name for the "desc" tag, & the exception was generated.
Comment 5 javydreamercsw 2011-01-12 16:44:49 UTC
Created attachment 104929 [details]
stacktrace

Pressing enter on the editor
Comment 6 rcasha 2011-01-19 07:00:27 UTC
Created attachment 105134 [details]
stacktrace

typing into Java source.
Just before that I had expanded an anonymous class.
Comment 7 javydreamercsw 2011-01-28 19:22:10 UTC
Created attachment 105442 [details]
stacktrace

Trying to use code completion.
Comment 8 Miloslav Metelka 2011-02-07 12:55:29 UTC

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