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.
Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17 OS: Windows 7 User Comments: GUEST: Error reporting salmansayyad: Problem GUEST: don't know, what I did Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.nio.DirectCharBufferRS.toString(DirectCharBufferRS.java:410) at java.nio.CharBuffer.toString(CharBuffer.java:1201) at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:202) at org.netbeans.core.output2.AbstractLines.getLine(AbstractLines.java:360) at org.netbeans.core.output2.AbstractLines.getLineInfo(AbstractLines.java:955) at org.netbeans.core.output2.ExtPlainView.drawText(ExtPlainView.java:119)
Created attachment 151723 [details] stacktrace
> salmansayyad: Problem The heap size limit is too low (-Xmx386m) for running NetBeans. Please increase it. See http://wiki.netbeans.org/FaqSettingHeapSize. > GUEST: don't know, what I did Retained size of an instance of org.apache.tools.ant.module.bridge.impl.ForkedJavaOverride$Copier is 268 MB. Its currentLine (ByteArrayOutputStream) consumes most of this memory. Reassigning to projects/Ant. Please evaluate. Thank you.
see AbstractLInes.getText(int start, int end) the attempt is made to print a buffer into _one_ line In case of all (currently three) heapdumps it looks like the buffer contained many many many megabytes - e.g. in case of 751617 180mb were supposed to be printed into one untruncated line in the output view ...
> supposed to be printed into one untruncated line in the output view Thank you, Tomas. Output View truncates long lines (if line wrap is off). The problem was that the string with last line contents was constructed, although just it's length was needed. Fixed in http://hg.netbeans.org/core-main/rev/86b7fff062e5.
Integrated into 'main-silver', will be available in build *201508070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/86b7fff062e5 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #250084: Do not create string with line text if not necessary