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 270228

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: Zank
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205264
Attachments: stacktrace

Description Zank 2017-03-28 11:10:25 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.91-b14, Java(TM) SE Runtime Environment, 1.8.0_91-b14
OS: Windows 7

User Comments:
GUEST: I have 5 files open. Then NetBeans stopped responding and the CPU usage became very high. So I forced quit the app.

GUEST: Had nb open for a few days and it quit responding.

GUEST: Netbeans got stuck and had to kill it from windows task manager

GUEST: viewing large php file (10000+ lines)

GUEST: Changed a file from RO to RW outside of NetBeans, switched back to NetBeans, and NetBeans started consuming 100% CPU time and wouldn't respond to user input. Killed it after 5 minutes.

GUEST: 1

GUEST: revert 20000 lines of js code from history

GUEST: tried to open *.json file which is more than 6MB in space.

GUEST: Debugging c/c++ exe

Zank: Error occured when I try to paste array made from 1,8kk characters.

GUEST: I tryied to update my project to head while I was Debuging it

GUEST: big xml file 70 MB




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.modules.editor.lib2.highlighting.HighlightsList.add(HighlightsList.java:118)
   at org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.readUntil(HighlightsReader.java:103)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:191)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1324)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:724)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:685)
Comment 1 Zank 2017-03-28 11:10:27 UTC
Created attachment 163967 [details]
stacktrace