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 189625 - AssertionError: paragraphViewStartOffset=17866 > startOffset=16086
Summary: AssertionError: paragraphViewStartOffset=17866 > startOffset=16086
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: RANDOM
: 191193 191825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-18 09:49 UTC by Jan Lahoda
Modified: 2011-02-16 09:50 UTC (History)
44 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172007


Attachments
stacktrace (2.90 KB, text/plain)
2010-08-18 09:49 UTC, Jan Lahoda
Details
stacktrace (2.98 KB, text/plain)
2010-12-01 18:47 UTC, karthi_acb
Details
stacktrace (3.69 KB, text/plain)
2010-12-01 20:50 UTC, eltony81
Details
stacktrace (2.98 KB, text/plain)
2010-12-02 16:29 UTC, ytn01
Details
stacktrace (4.32 KB, text/plain)
2010-12-04 19:24 UTC, eltony81
Details
stacktrace (2.88 KB, text/plain)
2010-12-15 16:47 UTC, aldobrucale
Details
stacktrace (3.18 KB, text/plain)
2010-12-20 11:30 UTC, ytn01
Details
stacktrace (2.53 KB, text/plain)
2010-12-22 06:24 UTC, ytn01
Details
stacktrace (3.18 KB, text/plain)
2011-01-08 19:52 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-08-18 09:49:44 UTC
Build: NetBeans IDE Dev (Build 100810-eda856ae0117)
VM: Java HotSpot(TM) Client VM, 1.6.0_05-ea-b04, Java(TM) SE Runtime Environment, 1.6.0_05-ea-b04
OS: Linux

User Comments:
jlahoda: Deleting a block of code.




Stacktrace: 
java.lang.AssertionError: paragraphViewStartOffset=17866 > startOffset=16086
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.<init>(ViewBuilder.java:160)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.removeUpdate(ViewUpdates.java:452)
   at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:102)
   at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
   at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1664)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:959)
Comment 1 Jan Lahoda 2010-08-18 09:49:48 UTC
Created attachment 101480 [details]
stacktrace
Comment 2 Miloslav Metelka 2010-11-11 09:43:32 UTC
This should no longer happen after integration of issue #183219. Please use a recent dev build.
Comment 3 Miloslav Metelka 2010-11-11 09:44:35 UTC
*** Bug 191193 has been marked as a duplicate of this bug. ***
Comment 4 Miloslav Metelka 2010-11-11 09:45:08 UTC
*** Bug 191825 has been marked as a duplicate of this bug. ***
Comment 5 Michel Graciano 2010-11-12 12:40:38 UTC
Milo, take a look at report [1] 437746. I am facing this with today's build. I will reopen it for evaluation.

[1] http://statistics.netbeans.org/exceptions/detail.do?id=172007
Comment 6 Miloslav Metelka 2010-11-29 13:01:48 UTC
Michel, do you have any steps to reproduce? Thanks.
Comment 7 Michel Graciano 2010-11-29 13:08:26 UTC
Unfortunately not. If I am not wrong, I was reloading a Matisse form but is not easily reproduceable. Even when it happened I was unable to reproduce it with the same steps, probably it depends some factors I just can't reproduce exactly, sorry.
Comment 8 karthi_acb 2010-12-01 18:47:52 UTC
Created attachment 103510 [details]
stacktrace
Comment 9 eltony81 2010-12-01 20:50:53 UTC
Created attachment 103512 [details]
stacktrace
Comment 10 ytn01 2010-12-02 16:29:53 UTC
Created attachment 103541 [details]
stacktrace
Comment 11 eltony81 2010-12-04 19:24:02 UTC
Created attachment 103596 [details]
stacktrace
Comment 12 aldobrucale 2010-12-15 16:47:12 UTC
Created attachment 104129 [details]
stacktrace

Deleting xml nodes from spring configuration file
Comment 13 ytn01 2010-12-20 11:30:12 UTC
Created attachment 104306 [details]
stacktrace

Modifying the Model property of a JTable control I added a JPanel.
I added 2 columns & 0 rows on the Table settings.
I added 10 rows columns on the default values tab.
I closed the wizard.
I tried to modify the model property once again,
the exception was throw.
Comment 14 Exceptions Reporter 2010-12-21 19:30:21 UTC
This bug already has 250 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=172007
Comment 15 ytn01 2010-12-22 06:24:24 UTC
Created attachment 104384 [details]
stacktrace

Designing a JFrame GUI.

- I added a new JLabel from the Palette to the JFrame.
- I adjusted the position of the JLabel. (the layout fo the JFrame was "Free Design".
- I set the Text property & the variable name for JLabel.
- I added a value an "itemStateChanged" event for the JLabel,

& this Exception was generated.
Comment 16 javydreamercsw 2011-01-08 19:52:57 UTC
Created attachment 104813 [details]
stacktrace

Deleting code
Comment 17 Miloslav Metelka 2011-01-12 15:02:41 UTC
Although I'm not able to reproduce both on Linux and MacOSX I have attempted to fix the problem. I have also added more diagnostics to possibly better determine the errorneous conditions.

http://hg.netbeans.org/jet-main/rev/cdef95334d84
Comment 18 Quality Engineering 2011-01-13 07:27:52 UTC
Integrated into 'main-golden', will be available in build *201101130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cdef95334d84
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #189625 - AssertionError: paragraphViewStartOffset=17866 > startOffset=16086.
Comment 19 asmotrich 2011-01-24 22:54:16 UTC
I am afraid the issue is still there and once triggered renders the IDE unusable - hence the P1. It is happening on the latest 7.0 dev build of 20110123 during routine Java file editing.
Comment 20 Miloslav Metelka 2011-01-25 13:55:35 UTC
On latest builds there's another assert hit (likely due to fixing issue #194525).
I've annotated it with a detailed info of the document view to get detailed info of the problematic situation.
I've also added random testing with caret highlight layer turned off which should better test local view rebuilds but I'm still unable to reproduce the problem with the tests or manually :(

http://hg.netbeans.org/jet-main/rev/6a22dff149b8
Comment 21 Miloslav Metelka 2011-01-26 09:04:29 UTC
P2 since this is a random problem.
Comment 22 Quality Engineering 2011-01-27 08:13:56 UTC
Integrated into 'main-golden', will be available in build *201101270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6a22dff149b8
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #189625 - AssertionError: paragraphViewStartOffset=17866 > startOffset=16086 - better exception's info and more testing added.
Comment 23 Quality Engineering 2011-01-27 20:43:36 UTC
Integrated into 'main-golden', will be available in build *201101271430* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6a22dff149b8
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #189625 - AssertionError: paragraphViewStartOffset=17866 > startOffset=16086 - better exception's info and more testing added.
Comment 24 Miloslav Metelka 2011-02-16 09:50:53 UTC
Since the issue stopped occurring (there is no 1102* build where the issue would appear) I mark it as fixed. If the issue would reappear please reopen.