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 221469 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 10:26 UTC by muellermi
Modified: 2012-11-15 02:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 194547


Attachments
stacktrace (2.26 KB, text/plain)
2012-11-05 10:26 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2012-11-05 10:26:48 UTC
Build: NetBeans IDE Dev (Build 201211050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 8

Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.StringCoding$StringDecoder.decode(StringCoding.java:149)
   at java.lang.StringCoding.decode(StringCoding.java:193)
   at java.lang.String.<init>(String.java:416)
   at sun.awt.datatransfer.DataTransferer.translateBytesOrStreamToString(DataTransferer.java:1111)
   at sun.awt.datatransfer.DataTransferer.translateBytesOrStream(DataTransferer.java:1650)
   at sun.awt.windows.WDataTransferer.translateBytesOrStream(WDataTransferer.java:256)
Comment 1 muellermi 2012-11-05 10:26:50 UTC
Created attachment 127127 [details]
stacktrace
Comment 2 Milutin Kristofic 2012-11-07 12:26:48 UTC
Heapdump is corrupted:

gzip: heapdump-625501.hprof (1).gz: unexpected end of file

Without that I cannot debug it
Comment 3 Tomas Hurka 2012-11-14 15:20:04 UTC
OOME is caused by large Clipboard history. 

org.netbeans.modules.editor.impl.actions.clipboardhistory.ClipboardHistory uses 245M.
Comment 4 Milutin Kristofic 2012-11-14 17:41:08 UTC
I made a upper limit for clipboard history size. It's 10MB.
http://hg.netbeans.org/jet-main/rev/9a310511b005
Comment 5 Quality Engineering 2012-11-15 02:42:49 UTC
Integrated into 'main-golden', will be available in build *201211150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9a310511b005
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #221469 - OutOfMemoryError: Java heap space