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 196718 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-15 09:39 UTC by gtg
Modified: 2011-03-17 09:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163314


Attachments
stacktrace (1.14 KB, text/plain)
2011-03-15 09:39 UTC, gtg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gtg 2011-03-15 09:39:29 UTC
Build: NetBeans Platform Dev (Build 201103090000)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
GUEST: After updating to 6.8 I started to get different exceptions like this one.

GUEST: debugging a python program

GUEST: just opened

GUEST: Happens over and over again

GUEST: Starting up netbeans.

dext: rename (refactoring) javascript function. Error showed up while searching.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.modules.debugger.jpda.ui.models.DebuggingMonitorModel$Children.getChildren(DebuggingMonitorModel.java:254)
   at org.netbeans.modules.debugger.jpda.ui.models.DebuggingTreeModel.computeChildren(DebuggingTreeModel.java:151)
   at org.netbeans.modules.debugger.jpda.ui.models.CachedChildrenTreeModel.getChildren(CachedChildrenTreeModel.java:103)
   at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:1511)
   at org.netbeans.modules.debugger.jpda.ui.models.HiddenCallStackFramesFilter.getChildren(HiddenCallStackFramesFilter.java:281)
   at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:775)
Comment 1 gtg 2011-03-15 09:39:33 UTC
Created attachment 107014 [details]
stacktrace
Comment 2 Martin Entlicher 2011-03-15 13:46:23 UTC
According to heapdump-494026.hprof
There is 12 int[] arrays, where each of them have 7.5 MB size. They are being held by XToolkit.
But the main problem seems to be:
http://statistics.netbeans.org/exceptions/exception.do?id=425239 java.lang.OutOfMemoryError: Requested array size exceeds VM limit
        at org.netbeans.modules.debugger.jpda.ui.models.DebuggingMonitorModel$Children.getChildren(DebuggingMonitorModel.java:250)
Comment 3 Martin Entlicher 2011-03-16 17:04:56 UTC
Hopefully fixed by changeset:   191120:cb29b8fb5336
http://hg.netbeans.org/main/rev/cb29b8fb5336
Comment 4 Quality Engineering 2011-03-17 09:53:28 UTC
Integrated into 'main-golden', will be available in build *201103170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cb29b8fb5336
User: mentlicher@netbeans.org
Log: #196718 Prevent from allocation of too large array.