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.
This bug was originally marked as duplicate of bug 232547, 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.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: Windows 7 User Comments: GUEST: I ran an application that generated a large output. I couldn't save it to a file. I couldn't copy it to the clipboard. And I think NetBeans crashed when I closed it. Every time I tried to copy the output to the clipboard I got a stack trace about copying an array. Do you really need to copy the array in heap space to allow it to be copied? I mean: the output was in the output window, I could see it and scroll around, and it did fit in the JVM heap. The problem was trying to duplicate it. GUEST: Copying a large piece of text. from the Job Output window, from a stopped job execution. Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.String.<init>(String.java:168) at java.nio.DirectCharBufferRS.toString(DirectCharBufferRS.java:416) at java.nio.CharBuffer.toString(CharBuffer.java:1201) at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:202) at org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:173)
Created attachment 145354 [details] stacktrace
> I couldn't save it to a file. What happened when you tried to save the output? Was an exception thrown? Thank you.
*** Bug 242522 has been marked as a duplicate of this bug. ***
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207722
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207722
http://hg.netbeans.org/core-main/rev/e71fe2fff948 Added a warning (confirmation) before selecting large part of text. > I couldn't save it to a file. Can you please provide more information? (Steps to reproduce.) > Do you really need to copy the array in heap space to allow it to be copied? Yes, the content is stored in a file-mapped memory, and we need a string representation. Thank you for reporting.
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e71fe2fff948 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #242048: OutOfMemoryError - Copying large output from Output Window
*** Bug 252380 has been marked as a duplicate of this bug. ***
*** Bug 248692 has been marked as a duplicate of this bug. ***