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 184195

Summary: [69cat] AssertionError: limitOffset=402 > docTextLength=399
Product: editor Reporter: schkovich <schkovich>
Component: Painting & PrintingAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: normal CC: aldobrucale, charlweed, jaysonsantos, misterm, stefan79, vv159170
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 168046
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description schkovich 2010-04-14 17:29:45 UTC
This bug was originally marked as duplicate of bug 182504, 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 201004140201)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux

User Comments:
schkovich: Already reported problem about delting the first character on the line in ini files

schkovich: File that produced previous error id #369868 became after error unusable. Any action on the file in question will throw exception. I was able to save the file. However after re-opening the file I was not able to delete the same word at the beginning of the line.

It does not matter on which line I am. The first word on the line cannot be deleted.




Stacktrace: 
java.lang.AssertionError: limitOffset=402 > docTextLength=399
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:332)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:277)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:463)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:495)
   at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:198)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.checkFireAffectedAreaChange(HighlightsViewFactory.java:337)
Comment 1 schkovich 2010-04-14 17:29:49 UTC
Created attachment 97384 [details]
stacktrace
Comment 2 stefan79 2010-04-19 11:52:56 UTC
Created attachment 97611 [details]
stacktrace

Exception ocured, after I tried to save a changed Java-File in CVS-Diff-Window.
Comment 3 Exceptions Reporter 2010-04-19 11:53:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=168046
Comment 4 misterm 2010-04-19 14:58:57 UTC
Created attachment 97640 [details]
stacktrace
Comment 5 Exceptions Reporter 2010-04-20 10:52:59 UTC
Created attachment 97699 [details]
stacktrace
Comment 6 Vladimir Voskresensky 2010-06-15 05:39:57 UTC
Created attachment 100073 [details]
stacktrace

with -J-Dorg.netbeans.editor.linewrap=true go into Editor->Formatting page
Comment 7 Miloslav Metelka 2010-06-16 13:22:56 UTC
*** Bug 183969 has been marked as a duplicate of this bug. ***
Comment 8 Miloslav Metelka 2010-06-17 13:02:41 UTC
Fixed.
http://hg.netbeans.org/jet-main/rev/336f753aab65
Comment 9 Quality Engineering 2010-06-18 03:19:26 UTC
Integrated into 'main-golden', will be available in build *201006180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/336f753aab65
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #184195 - AssertionError: limitOffset=402 > docTextLength=399.