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 161018 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-24 13:39 UTC by Alexander Simon
Modified: 2009-04-03 13:09 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148165


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2009-03-24 13:39:50 UTC
Build: NetBeans IDE Dev (Build cnd-main-81-on-090323)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, i386
User comments: The Exception report poped up when I was doing nothing in IDE. Actually it was after IDE has been staying
idle for about 18 hours.
It does not CND issue.
Possible it is a regression after changing:

http://hg.netbeans.org/cnd-main/rev/0a72938abb71
author 	Marek Slama <mslama@netbeans.org>
Tue Mar 17 14:23:40 2009 +0100 (6 days ago)
changeset 122598 	0a72938abb71
#138686: Add logging to investigate this issue.

STACKTRACE: (first 10 lines)
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
        at java.lang.StringBuffer.append(StringBuffer.java:224)
        at org.openide.text.CloneableEditor$DoInitialize.initDocument(CloneableEditor.java:440)
        at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:507)
        at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:959)
        at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:1078)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.findCurrentJEditorPane(NavigatorModel.java:256)
        at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.checkCursor(NavigatorModel.java:228)
Comment 1 mslama 2009-03-24 14:22:07 UTC
core-main #a191ad5e6a18

Thanks for catching this. There was incorrect logging causing growing buffer on every API method call. Now data are
stored to buffer only once.
Comment 2 Quality Engineering 2009-03-25 21:17:20 UTC
Integrated into 'main-golden', will be available in build *200903251400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a191ad5e6a18
User: Marek Slama <mslama@netbeans.org>
Log: #161018: Fix logging for #138686.
Comment 3 martinhavle 2009-04-03 12:51:35 UTC
Dear reporter, please check if the error is still occuring in the latest build.  If the exception occurs, please reopen
the issue, otherwise change the state of issue to VERIFIED.
Comment 4 Vladimir Voskresensky 2009-04-03 13:09:25 UTC
verified. thanks