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 240138

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: shaile_martin
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED WONTFIX    
Severity: normal CC: exceptions_reporter
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205566
Attachments: stacktrace

Description shaile_martin 2014-01-09 07:42:57 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 7

User Comments:
GUEST: I invoked 'replace in projects' using the crtl-shift-h shortcut.  After entering the search text, it came up with 7 matches with I proceeded to replace by pressing the 'Replace 7 matches' in the 'Search Results' tab.  Shortly after, the app froze.  I could still see the screen but could not interact with the app anymore.  i waited about 2 minutes but the condition persisted and then tried to close netbeans from the Windows task bar but nothing happened.  I had to force-close it from the Windows task manager.  

A few intersting notes:
1- After relaunching netbeans, I was able to confirm that all 7 replacements were made
2- Some of the replacements I selected were in both a .scss file and its generated .css version.  Since the .css is automatically generated from the .scss using SASS upon saving, I didn't really need to replace from the css file but I did anyways.  I wonder if interactions between the 'search & replace' and the auto-generation of the css fiel due to replacements made to

GUEST: Search using regular expression

shaile_martin: very slow




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:0)
   at java.lang.String.<init>(String.java:0)
   at java.lang.StringBuilder.toString(StringBuilder.java:0)
   at java.lang.Throwable.toString(Throwable.java:480)
   at org.netbeans.lib.uihandler.LogFormatter.printThrown(LogFormatter.java:225)
   at org.netbeans.lib.uihandler.LogFormatter.format(LogFormatter.java:344)
Comment 1 shaile_martin 2014-01-09 07:42:58 UTC
Created attachment 143736 [details]
stacktrace
Comment 2 Martin Entlicher 2014-07-28 15:48:04 UTC
heapdump-718316.hprof:
Retained sizes:
org.netbeans.modules.editor.lib2.view.ParagraphView	604,098,508 (76.9%)
org.netbeans.modules.editor.lib2.view.ParagraphViewChildren	587,915,764 (74.8%)
org.netbeans.modules.editor.lib2.view.HighlightsView	574,696,734 (73.2%)
Comment 3 Milutin Kristofic 2015-07-16 15:10:22 UTC
*** Bug 253403 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 07:27:49 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss