Community
Participate
Working Groups
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)
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.
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.
Is this still a problem in 3.3? PW
Changes requested on bug 193523
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.