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 242048, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.1 (Build 201510222201) VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17 OS: Windows 7 User Comments: ferrybig: Trying to copy the largest known prime number from the output to the clipboard Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:68) at java.lang.StringBuffer.<init>(StringBuffer.java:128) at sun.awt.datatransfer.DataTransferer.translateTransferableString(DataTransferer.java:952) at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:1132) at sun.awt.windows.WDataTransferer.translateTransferable(WDataTransferer.java:219) at sun.awt.windows.WClipboard.setContentsNative(WClipboard.java:83)
Created attachment 158196 [details] stacktrace
Did you see the following warning? "Selecting large parts of text can cause Out-Of-Memory errors. Do you want to continue?"
No, Netbeans did NOT ask for any confirmation when trying to copy the text. Having wrap-text off, selecting the whole line without scrolling to the right, the selection is smaller than the text to be copied because Netbeans hides the full text using "Line is too large to view with unwrapped mode".
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=222218