Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 235411 - CloneableEditorSupport: OutOfMemoryError: Java heap space
CloneableEditorSupport: OutOfMemoryError: Java heap space
Status: NEW
Product: platform
Classification: Unclassified
Component: Text
All All
: P3 with 1 vote (vote)
Assigned To: Miloslav Metelka
Depends on:
  Show dependency treegraph
Reported: 2013-09-02 12:52 UTC by ozziej
Modified: 2013-11-19 11:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT

stacktrace (1015 bytes, text/plain)
2013-09-02 12:52 UTC, ozziej

Note You need to log in before you can comment on or make changes to this bug.
Description ozziej 2013-09-02 12:52:49 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b12
OS: Mac OS X

User Comments:
ozziej: attempted to do a global find / replace on a project

java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(
   at java.lang.String.<init>(
   at java.lang.StringBuilder.toString(
   at java.lang.Throwable.toString(
   at org.netbeans.core.startup.logging.NbFormatter.doPrintStackTrace(
   at org.netbeans.core.startup.logging.NbFormatter.printStackTrace(
Comment 1 ozziej 2013-09-02 12:52:50 UTC
Created attachment 139578 [details]
Comment 2 Jaroslav Tulach 2013-11-19 11:45:21 UTC
The thread that thrown the exception is EDT and was loading a document. Other threads include "Pending refresh" daemon BLOCKED at org.openide.text.CloneableEditorSupport.getDocument or  
"ViewHierarchy-Region-Rebuilding" daemon WAITING	at javax.swing.text.AbstractDocument.readLock( or  
"Diffsidebar long tasks" daemon WAITING at org.netbeans.modules.versioning.ui.diff.DiffSidebar.getDocumentReader(

- e.g. there seems to be nothing else running on than loading of a document. The only thread not related to base editor infrastructure seems to be blocked:  
"Code Model Parser 0" daemon WAITING at org.netbeans.modules.cnd.modelimpl.csm.core.ParserQueue.waitReady(

heap dump shows that 

32% of memory is occupied by float[] 

plus there is unusually high number of java.awt.geom.AffineTransform - 31MB and 
org.netbeans.modules.editor.lib2.highlighting.HighlightItem - 10MB. 

I believe this out of memory error has to be related to editor (probably painting).

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo