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 239460

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

Description GenKabuki 2013-12-13 12:01:09 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: Have the IDE running for a long time while working on multiple files opened in tabbed pages.  Also have the Clearcase plugin that tracks changes installed.

GUEST: ?




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.Class.getDeclaredFields0(Class.java:0)
   at java.lang.Class.privateGetDeclaredFields(Class.java:2317)
   at java.lang.Class.getField0(Class.java:2642)
   at java.lang.Class.getField(Class.java:1537)
   at com.sun.jna.Native.getLibraryOptions(Native.java:445)
   at com.sun.jna.Native.getStructureAlignment(Native.java:511)
Comment 1 GenKabuki 2013-12-13 12:01:11 UTC
Created attachment 143144 [details]
stacktrace
Comment 2 GenKabuki 2013-12-13 14:37:57 UTC
I just noticed also that Netbeans IDE had the file opened at the same time that I was editing it in a build environment. When the compiler issues warnings/errors, I usually edit in the build environment directly instead of going back to Netbeans IDE. Once all the warnings/errors are corrected, I return to Netbeans IDE to continue coding.

I added this extra comment because it's (Netbeans IDE) starting to exhibit the same behavior prior to crashing. I don't know if the external editor is contributing to the failure or not but I figure it should be noted.
Comment 3 Jaroslav Havlin 2013-12-13 15:26:25 UTC
There are 928,033 instances of o.n.m.editor.lib2.highlighting.HighlightItem.
Retained size of all o.n.m.editor.lib2.view.ParagraphView instances is 264 MB.

(In reply to GenKabuki from comment #2)
> I just noticed also that Netbeans IDE had the file opened at the same time
> that I was editing it in a build environment. [...]
I think that it isn't related to the issue, but I'm not sure.

Reassigning to editor/Painting & Printing.
Thank you for reporting.

*** This bug has been marked as a duplicate of bug 239360 ***