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

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: GenKabuki
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal CC: vaibhavatul47
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206774
Attachments: stacktrace
stacktrace

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.