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 237367 - Too many exceptions from Cnd code OutOfMemoryError: Java heap space
Summary: Too many exceptions from Cnd code OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
: 238662 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-20 11:20 UTC by Exceptions Reporter
Modified: 2013-12-12 12:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 204738


Attachments
stacktrace (1.23 KB, text/plain)
2013-10-20 11:20 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-10-20 11:20:27 UTC
This bug was originally marked as duplicate of bug 234193, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
GUEST: IDE start




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2367)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
   at java.lang.StringBuilder.append(StringBuilder.java:132)
   at org.netbeans.core.startup.logging.PrintStreamLogger.print(PrintStreamLogger.java:108)
Comment 1 Exceptions Reporter 2013-10-20 11:20:29 UTC
Created attachment 141308 [details]
stacktrace
Comment 2 Jaroslav Tulach 2013-11-18 13:59:48 UTC
Message.log is full of exception from
at org.netbeans.modules.cnd.modelimpl.csm.core.CsmObjectFactory.createObject
there is 96MB of chars (many of them holding the stacktrace location). 

The primary problem however seems to be in generating to much exceptions from Cnd code.
Comment 3 Maria Tishkova 2013-12-12 12:22:48 UTC
fixed in 268524:09008d2fc5b3

will print stack trace once in log file to prevent OutOfMemory
Comment 4 Maria Tishkova 2013-12-12 12:46:52 UTC
*** Bug 238662 has been marked as a duplicate of this bug. ***