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 257651 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
Depends on:
Reported: 2016-01-20 17:54 UTC by ferrybig
Modified: 2017-01-16 08:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222218

stacktrace (975 bytes, text/plain)
2016-01-20 17:54 UTC, ferrybig

Note You need to log in before you can comment on or make changes to this bug.
Description ferrybig 2016-01-20 17:54:56 UTC
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

java.lang.OutOfMemoryError: Java heap space
   at java.lang.AbstractStringBuilder.<init>(
   at java.lang.StringBuffer.<init>(
   at sun.awt.datatransfer.DataTransferer.translateTransferableString(
   at sun.awt.datatransfer.DataTransferer.translateTransferable(
Comment 1 ferrybig 2016-01-20 17:54:57 UTC
Created attachment 158196 [details]
Comment 2 Tomas Hurka 2016-01-20 19:11:12 UTC
Did you see the following warning?
"Selecting large parts of text can cause Out-Of-Memory errors. Do you want to continue?"
Comment 3 ferrybig 2016-01-20 20:45:05 UTC
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".
Comment 4 Exceptions Reporter 2017-01-16 08:02:40 UTC
This bug already has 5 duplicates