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 268438 - javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=4147
Summary: javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=4147
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: Dev
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 08:40 UTC by legitalk
Modified: 2016-10-10 08:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226668


Attachments
stacktrace (2.93 KB, text/plain)
2016-10-10 08:40 UTC, legitalk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description legitalk 2016-10-10 08:40:41 UTC
This bug was originally marked as duplicate of bug 258271, 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 201609190002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Windows 7

User Comments:
GUEST: editando arquivos

GUEST: idk

GUEST: Hanging during background scanning of projects...

GUEST: I was working with cordova for build an cordova + angular application, in the therminal windows i run the command corodova run android

marfous: Closed all documents in the IDE

sviatopolk: Waited in idle while this happened.

legitalk: <Please provide a description of the problem or the steps to reproduce>

GUEST: Same old shit - scanning forever

GUEST: report

legitalk: Doing nothing, simply had opened NB.

GUEST: PHP Format Code

GUEST: My netbeans has major problems reading javascript files.

legitalk: Writing PHP.

GUEST: uploading file (on save) to remote server via ftp

GUEST: Nothing to add

GUEST: This error showed up while I was reporting an error




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=4147
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetNonNegative(EditorDocumentContent.java:271)
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkBoundsInContent(EditorDocumentContent.java:307)
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.getChars(EditorDocumentContent.java:231)
   at javax.swing.text.AbstractDocument.getText(AbstractDocument.java:810)
   at org.netbeans.editor.DocumentUtilities.copyText(DocumentUtilities.java:97)
   at org.netbeans.editor.BaseDocument.getChars(BaseDocument.java:1204)
Comment 1 legitalk 2016-10-10 08:40:44 UTC
Created attachment 162426 [details]
stacktrace