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 172978 - javax.swing.text.BadLocationException: Invalid offset=511 not within <0, 510>
Summary: javax.swing.text.BadLocationException: Invalid offset=511 not within <0, 510>
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Miloslav Metelka
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-24 10:22 UTC by mslama
Modified: 2010-04-22 11:05 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159066


Attachments
stacktrace (3.23 KB, text/plain)
2010-04-22 11:05 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2009-09-24 10:22:11 UTC
Build: NetBeans IDE Dev (Build 200909210201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.30.5-43.fc11.x86_64, i386
User comments: Declaring a static commons logger in an abstract class

Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=511 not within <0, 510>
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1388)
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1383)
        at org.netbeans.editor.Utilities.getRowStart(Utilities.java:155)
        at org.netbeans.editor.Utilities.getRowStart(Utilities.java:138)
        at org.netbeans.editor.CodeFoldingSideBar.traverseForward(CodeFoldingSideBar.java:332)
        at org.netbeans.editor.CodeFoldingSideBar.getPaintInfo(CodeFoldingSideBar.java:299)
        at org.netbeans.editor.CodeFoldingSideBar.paintComponent(CodeFoldingSideBar.java:518)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
        at javax.swing.JComponent.paint(JComponent.java:1038)
        at javax.swing.JComponent.paintChildren(JComponent.java:864)
Comment 1 Exceptions Reporter 2009-09-25 09:54:02 UTC
This issue already has 52 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=159066
Comment 2 mslama 2009-09-25 12:36:24 UTC
So far no known steps to reproduce. I will add some logging to investigate.
Comment 3 Miloslav Metelka 2009-10-05 16:08:08 UTC
http://hg.netbeans.org/jet-main/rev/444246a4adb7
Comment 4 Quality Engineering 2009-10-07 12:50:46 UTC
Integrated into 'main-golden', will be available in build *200910070250* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/444246a4adb7
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #172978 - javax.swing.text.BadLocationException: Invalid offset=511 not within <0, 510> - missing readlock in CodeFoldingSideBar.
Comment 5 J Bachorik 2010-04-22 11:05:06 UTC
Created attachment 97850 [details]
stacktrace