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 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: 8.0_HR_FIX
: 242492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-26 16:11 UTC by inonit
Modified: 2014-03-12 02:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206925


Attachments
stacktrace (2.07 KB, text/plain)
2014-02-26 16:11 UTC, inonit
Details
Netbeans nbproject + build.xml file (42.35 KB, application/zip)
2014-03-05 00:46 UTC, herve66
Details

Note You need to log in before you can comment on or make changes to this bug.
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.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3175)
   at java.util.ArrayList.grow(ArrayList.java:246)
   at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:220)
   at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:212)
   at java.util.ArrayList.addAll(ArrayList.java:564)
   at org.netbeans.modules.parsing.impl.indexing.Util.fastTransitiveDeps(Util.java:309)
Comment 1 inonit 2014-02-26 16:11:46 UTC
Created attachment 145602 [details]
stacktrace
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.

Changeset: http://hg.netbeans.org/releases/rev/03938b2f48ed
User: Tomas Zezula <tzezula@netbeans.org>
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 http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/04d094a347cf
User: Tomas Zezula <tzezula@netbeans.org>
Log: #242375:OutOfMemoryError: Java heap space