Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Tabbed Properties Image Leaks?
Tabbed Properties Image Leaks? [message #335957] Mon, 11 May 2009 15:01 Go to next message
Charlie is currently offline CharlieFriend
Messages: 2
Registered: July 2009
Junior Member
We are tracking some image leaks that occur when closing / opening
editors. They seem to be coming from the icons on the properties tabs.
Sleak is reporting leaks of the images we contribute via the
org.eclipse.ui.views.properties.tabbed extension. Below I've pasted a
snippet of a stack trace showing where these images are allocated.

I would like to verify whether these images are being disposed of
properly. We are providing the icons, but I'm not sure it is our
responsibility to dispose of them. Is there something I'm missing or is
there a reason for not disposing of them?

Regards,
Charlie


at org.eclipse.swt.graphics.Device.new_Object(Device.java:806)
at org.eclipse.swt.graphics.Resource.init(Resource.java:85)
at org.eclipse.swt.graphics.Image.<init>(Image.java:735)
at
org.eclipse.jface.resource.URLImageDescriptor.createImage(UR LImageDescriptor.java:162)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:227)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descriptor.java:205)
at
org.eclipse.ui.internal.views.properties.tabbed.view.TabDesc riptor. <init>(TabDescriptor.java:79)
at
org.eclipse.ui.internal.views.properties.tabbed.view.TabbedP ropertyRegistry.readTabDescriptors(TabbedPropertyRegistry.ja va:364)
at
org.eclipse.ui.internal.views.properties.tabbed.view.TabbedP ropertyRegistry.getAllTabDescriptors(TabbedPropertyRegistry. java:342)
at
org.eclipse.ui.internal.views.properties.tabbed.view.TabbedP ropertyRegistry.getTabDescriptors(TabbedPropertyRegistry.jav a:283)
at
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPa ge.setInput(TabbedPropertySheetPage.java:695)
at
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPa ge.selectionChanged(TabbedPropertySheetPage.java:538)
. .
Re: Tabbed Properties Image Leaks? [message #335961 is a reply to message #335957] Mon, 11 May 2009 16:41 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That looks like a leak. Please open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI
(the sooner, the better, as we're in 3.5 RC1)

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Tabbed Properties Image Leaks? [message #335962 is a reply to message #335961] Mon, 11 May 2009 18:06 Go to previous message
Charlie is currently offline CharlieFriend
Messages: 2
Registered: July 2009
Junior Member
All set - https://bugs.eclipse.org/bugs/show_bug.cgi?id=275702

Thanks,
Charlie
Previous Topic:Can builder change delta?
Next Topic:Lost PDE resources
Goto Forum:
  


Current Time: Wed Dec 04 19:03:46 GMT 2024

Powered by FUDForum. Page generated in 0.03535 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top