Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353772

Summary: [Forms] disposed ComplexImageDescriptor images are keep in memory
Product: [Eclipse Project] Platform Reporter: Flavio Donze <flavio.donze>
Component: User AssistanceAssignee: platform-ua-inbox <platform-ua-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: cgold, pwebster, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Flavio Donze CLA 2011-08-03 10:19:38 EDT
Build Identifier: 3.6.1

FormImages.markFinished() does not remove the image and it's ComplexImageDescriptor from the local HashMap "descriptors".

descriptors.remove(image); is called but the image remains in the map, probably because it is disposed earlier in (resourceManager.destroyImage(desc);).

Tested this behavior with the mail example, adding org.eclipse.ui.forms to it's dependencies and the following code in the view:

FormToolkit toolkit = new FormToolkit(Display.getCurrent());
Form form = toolkit.createForm(parent);
toolkit.decorateFormHeading(form);


using: org.eclipse.ui.forms 3.5.2



Reproducible: Always
Comment 1 Paul Webster CLA 2011-08-03 10:32:29 EDT
Chris, are we still managing Forms and Browser under UA, now that they're in the platform ui ACL (I don't remember what the final word was)?

PW
Comment 2 Chris Goldthorpe CLA 2011-08-15 13:17:13 EDT
Yes, UI forms bugs still fall under User Assistance. We may want to revisit that at some time in the future but for now they fall under UA.
Comment 3 Lars Vogel CLA 2019-11-14 03:40:05 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.