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 270878

Summary: java.lang.NegativeArraySizeException when opening a huge file
Product: editor Reporter: scanti <scanti>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description scanti 2017-06-14 14:33:20 UTC
A colleague of mine tried to open a 18Gb file inside out RCP application and got this:

	at org.openide.text.DataEditorSupport.loadFromStreamToKit(
	at org.openide.text.DocumentOpenClose$DocumentLoad.atomicLockedRun(
	at org.openide.text.DocumentOpenClose$
	at org.netbeans.editor.GuardedDocument.runAtomic(
	at org.openide.text.NbDocument.runAtomic(
	at org.openide.text.DocumentOpenClose$
	at org.openide.util.RequestProcessor$
	at org.netbeans.modules.openide.util.GlobalLookup.execute(
	at org.openide.util.lookup.Lookups.executeWith(
	at org.openide.util.RequestProcessor$