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 47312

Summary: Popup menu in Explorer is leaking memory
Product: projects Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: Generic InfrastructureAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    
Attachments: After first invocation of the popup
After second invocation of the popup
After third invocation of the popup
Reference graph for a leaked instance of JPopupMenu

Description Antonin Nebuzelsky 2004-08-17 13:53:59 UTC
Repetitive right-clicking on a project's node in
Projects tab leaves the popup, its items and its
UI swing components in memory. See the attached
screenshots of OptimizeIt window.
Comment 1 Antonin Nebuzelsky 2004-08-17 13:54:55 UTC
Created attachment 16884 [details]
After first invocation of the popup
Comment 2 Antonin Nebuzelsky 2004-08-17 13:55:19 UTC
Created attachment 16885 [details]
After second invocation of the popup
Comment 3 Antonin Nebuzelsky 2004-08-17 13:55:44 UTC
Created attachment 16886 [details]
After third invocation of the popup
Comment 4 Antonin Nebuzelsky 2004-08-17 13:57:48 UTC
Created attachment 16887 [details]
Reference graph for a leaked instance of JPopupMenu
Comment 5 Petr Hrebejk 2004-08-17 17:01:45 UTC
Will look at it it looks like there might be some problem with the
actions.
Comment 6 Jesse Glick 2004-08-17 17:05:39 UTC
Probably duplicate of your other bug. The field
CloseProject.popupPresenter should not exist.
Comment 7 Petr Hrebejk 2004-08-18 15:44:40 UTC
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/CloseProject.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/CloseProject.java,v
 <--  CloseProject.java
new revision: 1.6; previous revision: 1.5
done
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/CustomizeProject.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/CustomizeProject.java,v
 <--  CustomizeProject.java
new revision: 1.5; previous revision: 1.4
done
Checking in
projectui/src/org/netbeans/modules/project/ui/actions/LookupSensitiveAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/LookupSensitiveAction.java,v
 <--  LookupSensitiveAction.java
new revision: 1.5; previous revision: 1.4
done
Comment 8 Antonin Nebuzelsky 2004-08-19 10:14:50 UTC
Verified.