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 240722 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2014-01-20 20:13 UTC by GenKabuki
Modified: 2015-12-09 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206774

stacktrace (2.44 KB, text/plain)
2014-01-20 20:13 UTC, GenKabuki
stacktrace (2.50 KB, text/plain)
2015-12-09 08:55 UTC, vaibhavatul47

Note You need to log in before you can comment on or make changes to this bug.
Description GenKabuki 2014-01-20 20:13:07 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_15-b03
OS: Windows XP

User Comments:
genkabuki: Using the IDE to edit approximately 8 files.

java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(
   at java.lang.String.<init>(
   at java.lang.StringBuilder.toString(
   at org.netbeans.modules.editor.lib2.document.ContentEdit.toString(
   at java.lang.String.valueOf(
   at java.lang.StringBuilder.append(
Comment 1 GenKabuki 2014-01-20 20:13:11 UTC
Created attachment 144165 [details]
Comment 2 vaibhavatul47 2015-12-09 08:55:15 UTC
Created attachment 157731 [details]

I pressed Ctrl+End+Shift Buttons to select all the code below the cursor upto last line. then I accidently pressed UP arraw and entire code got PASTED below cursor, i.e. my code length doubled.
I found this nteresting and pressed UP arrow many times continously 10- 15 times.
Suddenly my Code length increased from 200 lines to ~35000 lines!
After this Netbeans stopped responding.