Bug 109503 - [Presentations] Graphic disposed in a paint event
Summary: [Presentations] Graphic disposed in a paint event
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 10:44 EDT by Kim Horne CLA
Modified: 2019-09-06 16:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Horne CLA 2005-09-14 10:44:25 EDT
I20050913-0800

Open a bunch of editors
In the editor window, hit Cmd-E to bring up the editor list
Select an editor somewhere in the list and hit delete

This is not consistently reproducible, but it's close.  Sometimes this has no effect other than spitting 
out the error and other times it produces the beachball of death and Eclipse dies.

org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3251)
	at org.eclipse.swt.SWT.error(SWT.java:3174)
	at org.eclipse.swt.SWT.error(SWT.java:3145)
	at org.eclipse.swt.graphics.Image.getBounds(Image.java:593)
	at org.eclipse.swt.widgets.Table.drawItemProc(Table.java:934)
	at org.eclipse.swt.widgets.Display.drawItemProc(Display.java:1012)
	at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
	at org.eclipse.swt.widgets.Widget.callPaintEventHandler(Widget.java:161)
	at org.eclipse.swt.widgets.Table.callPaintEventHandler(Table.java:153)
	at org.eclipse.swt.widgets.Widget.kEventControlDraw(Widget.java:1007)
	at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:341)
	at org.eclipse.swt.widgets.Display.controlProc(Display.java:784)
	at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2736)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1755)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1719)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:368)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:377)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:164)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Veronika Irvine CLA 2005-09-16 11:55:17 EDT
Kim, it sounds like Eclipse is disposing an image after setting into a table. 
On Windows, this does not result in an error because the OS maintains a copy of
the image but on other platforms this will result in a "Graphic is disposed"
error.  This is not a problem with SWT but with the application code.  Can you
identify which view is giving this error?  We should route the bug report to the
owner of the view.
Comment 2 Veronika Irvine CLA 2005-09-21 11:59:03 EDT
I have been able to reproduce the problem intermittantly.  The Table in question is the Table for the 
editor list.  Moving to UI team to determine why an image in the editor list is being disposed 
prematurely.

Note, you should see the same error on Linux Motif.
Comment 3 Paul Webster CLA 2006-09-28 15:15:24 EDT
Is this still a problem in 3.3?

PW
Comment 4 Denis Roy CLA 2007-06-22 09:33:04 EDT
Changes requested on bug 193523
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:07:34 EDT
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.