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
URL:
Keywords:
Depends on:
Blocks:
 
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


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

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.




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

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.