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 242375

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: inonit <inonit>
Component: Parsing & IndexingAssignee: Tomas Zezula <tzezula>
Severity: normal CC: herve66, mmirilovic
Priority: P2 Keywords: 8.0_HR_FIX
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206925
Attachments: stacktrace
Netbeans nbproject + build.xml file

Description inonit 2014-02-26 16:11:43 UTC
Build: NetBeans IDE 8.0 RC1 (Build 201402242200)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b129
OS: Mac OS X

User Comments:
GUEST: Editing c++ project

inonit: Not sure what was happening; error occurred twice. First time was apparently due to closing a project

GUEST: Background scanning of project after Netbeans startup.

java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(
   at java.util.ArrayList.grow(
   at java.util.ArrayList.ensureExplicitCapacity(
   at java.util.ArrayList.ensureCapacityInternal(
   at java.util.ArrayList.addAll(
   at org.netbeans.modules.parsing.impl.indexing.Util.fastTransitiveDeps(
Comment 1 inonit 2014-02-26 16:11:46 UTC
Created attachment 145602 [details]
Comment 2 Tomas Zezula 2014-02-27 12:34:14 UTC
The reports 711989, 708525 are already fixed.
The only valid report is 714504
Comment 3 Tomas Zezula 2014-03-04 12:20:50 UTC
*** Bug 242492 has been marked as a duplicate of this bug. ***
Comment 4 herve66 2014-03-05 00:46:31 UTC
Created attachment 145769 [details]
Netbeans nbproject + build.xml file

This is the Netbeans nbproject + build.xml file of my project. There is only this project when I open Netbeans.
Comment 5 herve66 2014-03-05 00:47:46 UTC
Sorry, I wanted to put the attachment in the duplicate bug as required ;)
Comment 6 Tomas Zezula 2014-03-05 12:40:36 UTC
Fixed jet-main 04d094a347cf
Comment 7 Tomas Zezula 2014-03-05 12:43:37 UTC
To herve66: Thanks a lot for the test case. Without the test project it will be very hard to fix it. The problem was not in cyclical dependencies but the project has lots of peer source roots causing the OOM. Fixed.
Comment 8 Tomas Zezula 2014-03-05 13:45:09 UTC
Transplanted into NB 8.0 03938b2f48ed
Comment 9 Jiri Prox 2014-03-05 21:14:29 UTC
verified in trunk
Comment 10 Tomas Zezula 2014-03-05 21:15:23 UTC
Thanks Jirko!
Comment 11 Quality Engineering 2014-03-06 01:12:05 UTC
Integrated into 'releases/release80', will be available in build *201403052200* or newer. Wait for official and publicly available build.

User: Tomas Zezula <>
Log: #242375:OutOfMemoryError: Java heap space
Comment 12 Quality Engineering 2014-03-12 02:48:13 UTC
Integrated into 'main-silver', will be available in build *201403120001* on (upload may still be in progress)

User: Tomas Zezula <>
Log: #242375:OutOfMemoryError: Java heap space