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 254916

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: CSL (API & infrastructure)Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219606
Attachments: stacktrace

Description Exceptions Reporter 2015-09-01 18:15:33 UTC
This bug was originally marked as duplicate of bug 253340, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Windows Server 2008 R2

User Comments:
GUEST: it was a background thing scanning projects. I wasn't 'doing' anything.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3181)
   at java.util.ArrayList.grow(ArrayList.java:261)
   at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235)
   at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227)
   at java.util.ArrayList.add(ArrayList.java:458)
   at org.netbeans.modules.csl.core.TLIndexerFactory$TLIndexer.getLineStartOffsets(TLIndexerFactory.java:319)
Comment 1 Exceptions Reporter 2015-09-01 18:15:35 UTC
Created attachment 155812 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-09-03 14:14:57 UTC
You have 9mb file in your repository with 10 milion empty lines. I would get rid of it. But I made change so Netbeans will ignore such file.

http://hg.netbeans.org/web-main/rev/256dac30b2c6
Comment 3 Quality Engineering 2015-09-04 01:24:00 UTC
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/256dac30b2c6
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #254916 - OutOfMemoryError: Java heap space