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 228360 - Memory Leak in org.netbeans.api.options.OptionsDisplayer
Summary: Memory Leak in org.netbeans.api.options.OptionsDisplayer
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-04-08 08:04 UTC by Petr Cyhelsky
Modified: 2013-04-24 02:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2013-04-08 08:04:01 UTC
An instance of NbEditorDocument is held in memory when all documents are closed.
Please see heapdump from https://netbeans.org/projects/performance/downloads/download/heapdumps/Heapdump20130408.zip NbEditorDocument instance #1
Comment 1 Milutin Kristofic 2013-04-08 13:00:52 UTC
http://hg.netbeans.org/jet-main/rev/38e03f04c6c5
Comment 2 Petr Cyhelsky 2013-04-22 14:00:20 UTC
it seems the fix doesn't work
Comment 3 Milutin Kristofic 2013-04-22 15:50:49 UTC
Fix works. This is another issue, where jeditorPane adds AncestorListener. It creates AncestorNotifier with JeditorPane. It's added to parent class of FontAndColorsPanel (JPanel) and it is never removed.

I am removing it in removeNotify method.

http://hg.netbeans.org/jet-main/rev/233f7b2a5a78
Comment 4 Quality Engineering 2013-04-24 02:13:54 UTC
Integrated into 'main-golden', will be available in build *201304232301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/233f7b2a5a78
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #228360 - Memory Leak in org.netbeans.api.options.OptionsDisplayer