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 184679

Summary: OutOfMemory Error caused non-stop assertions
Product: profiler Reporter: mvfranz <mvfranz>
Component: IdeAssignee: issues@profiler <issues>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description mvfranz 2010-04-22 01:47:37 UTC
I am running a local build of main-golden updated April 21, 2010.  The UI stopped responding although netbeans was take 120% of my CPU (I have 8).  Eventually an out of memory error occurred.  I was not able to submit the bug as the UI was still not responsive (it kept popping up more error reporting dialogs).  Here is the stack trace from the log file.

SEVERE [global]
java.lang.OutOfMemoryError: Java heap space
        at java.io.ObjectOutputStream$HandleTable.growEntries(ObjectOutputStream.java:2312)
        at java.io.ObjectOutputStream$HandleTable.assign(ObjectOutputStream.java:2237)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1388)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        at java.util.TreeMap.writeObject(TreeMap.java:2252)
        at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        at org.netbeans.core.ui.sampler.SamplesOutputStream$Sample.writeToStream(SamplesOutputStream.java:225)
        at org.netbeans.core.ui.sampler.SamplesOutputStream$Sample.access$000(SamplesOutputStream.java:193)
        at org.netbeans.core.ui.sampler.SamplesOutputStream.close(SamplesOutputStream.java:168)
        at org.netbeans.core.ui.sampler.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:312)
        at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:162)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:135)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
SEVERE [global]
java.lang.AssertionError
        at org.netbeans.core.ui.sampler.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:288)
        at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:182)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:135)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Peter Pis 2010-04-22 08:59:48 UTC
Please evaluate.
Comment 2 Tomas Hurka 2010-04-26 14:07:49 UTC
It should be fixed in latest dev. build.