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 87433 - Memory leak of EditorPanes through NbEditorToolbar
Summary: Memory leak of EditorPanes through NbEditorToolbar
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-10-18 16:10 UTC by Petr Nejedly
Modified: 2007-11-05 13:44 UTC (History)
2 users (show)

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 Nejedly 2006-10-18 16:10:45 UTC
Seen in recent custom retouche build. After opening and closing few editors, I
have realized that their QuietEditorPanes are never freed. Besides the usual
noise, they were all referenced through a chain like:

Static reference from org.netbeans.editor.BaseKit.kitActions (from class
org.netbeans.editor.BaseKit) :
--> java.util.HashMap@0x82cb15e0 (40 bytes) (field table:)
--> [Ljava.util.HashMap$Entry;@0x82ccf420 (40 bytes) (Element 0 of
[Ljava.util.HashMap$Entry;@0x82ccf420:)
--> java.util.HashMap$Entry@0x83698d70 (24 bytes) (field value:)
--> [Ljavax.swing.Action;@0x8369d1d0 (568 bytes) (Element 30 of
[Ljavax.swing.Action;@0x8369d1d0:)
--> org.netbeans.editor.ActionFactory$JumpListPrevAction@0x83697578 (25 bytes)
(field changeSupport:)
--> javax.swing.event.SwingPropertyChangeSupport@0x83768348 (25 bytes) (field
listeners:)
--> sun.awt.EventListenerAggregate@0x83769b10 (12 bytes) (field listenerList:)
--> [Ljava.beans.PropertyChangeListener;@0x8391c668 (28 bytes) (Element 2 of
[Ljava.beans.PropertyChangeListener;@0x8391c668:)
--> javax.swing.AbstractButton$ButtonActionPropertyChangeListener@0x837c7120 (16
bytes) (field action:)
--> org.netbeans.modules.editor.NbEditorToolBar$WrapperAction@0x837c3f28 (16
bytes) (field this$0:)
--> org.netbeans.modules.editor.NbEditorToolBar@0x837c34f8 (340 bytes) (field
component:)
--> [Ljava.awt.Component;@0x837c79b8 (132 bytes) (Element 11 of
[Ljava.awt.Component;@0x837c79b8:)
--> org.openide.awt.Actions$ToolbarButton@0x837c0278 (439 bytes) (field
listenerList:)
--> javax.swing.event.EventListenerList@0x837c64c8 (12 bytes) (field listenerList:)
--> [Ljava.lang.Object;@0x837bbbc8 (40 bytes) (Element 3 of
[Ljava.lang.Object;@0x837bbbc8:)
--> org.openide.util.actions.NodeAction$DelegateAction@0x837bea10 (21 bytes)
(field result:)
--> org.openide.util.lookup.ProxyLookup$R@0x837c2f68 (28 bytes) (field this$0:)
--> org.openide.windows.DefaultTopComponentLookup@0x837c39b8 (32 bytes) (field tc:)
--> org.netbeans.modules.java.JavaDataObject$JavaEditor@0x837a6328 (381 bytes)
(field pane:)
--> org.openide.text.QuietEditorPane@0x837a6118 (451 bytes)
Comment 1 _ rkubacki 2006-11-16 16:35:03 UTC
I see the same in my dumps using build from Nov 10. 
Comment 2 Miloslav Metelka 2006-11-22 09:48:28 UTC
Should be fixed in the trunk:
Checking in src/org/netbeans/modules/editor/NbEditorToolBar.java;
/cvs/editor/src/org/netbeans/modules/editor/NbEditorToolBar.java,v  <-- 
NbEditorToolBar.java
new revision: 1.28; previous revision: 1.27