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 249947 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-22 11:46 UTC by jgawera
Modified: 2015-09-10 15:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211113


Attachments
stacktrace (2.73 KB, text/plain)
2015-01-22 11:46 UTC, jgawera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jgawera 2015-01-22 11:46:02 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.72-b04, Java(TM) SE Runtime Environment, 1.7.0_72-b14
OS: Windows 7

User Comments:
GUEST: Debugging and mostly it was scanning background or something like that

jgawera: Netbeans struggling with out of memory errors




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:153)
   at com.sun.tools.javac.util.Position.makeLineMap(Position.java:77)
   at com.sun.tools.javac.parser.JavadocTokenizer.getLineMap(JavadocTokenizer.java:445)
   at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:127)
   at com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3182)
   at org.netbeans.lib.nbjavac.services.NBParserFactory$NBJavacParser.parseCompilationUnit(NBParserFactory.java:193)
Comment 1 jgawera 2015-01-22 11:46:03 UTC
Created attachment 151613 [details]
stacktrace
Comment 2 Dusan Balek 2015-02-10 15:08:08 UTC
As can be seen from the attached heapdump-762472, the most memory consuming objects (object with the biggest retain sizes originate in FormEditor. Reassigning.
Comment 3 Tomas Pavek 2015-09-10 15:25:57 UTC
The problem in the attached heapdump-762472 seems to be that com.fkilogistex.systems.wcsgui.screen.components.JDateChooser adds itself as a listener to javax.swing.MenuSelectionManager and never unregisters. There are hundreds JDateChooser$3 listeners - looks like during GUI editing many JDateChooser components got created, but they cannot be released. It is a huge memory leak, MenuSelectionManager holds these components for ever and through them also other parts of GUI builder are held.

This is a problem of a custom component, we can't do anything with it.