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

Bug 30229

Summary: [Workbench] Graphic is disposed error
Product: [Eclipse Project] Platform Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: Eduardo Pereira <eduardo_pereira>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: philippe_mulet, scdev01
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Erich Gamma CLA 2003-01-25 16:36:12 EST
1) in the resource perspective
2) select a project
3) Open in New Window
4) close the newly opened window

Reason:
!ENTRY org.eclipse.ui 4 0 Jan 25, 2003 22:56:32.315
!MESSAGE Graphic is disposed
!STACK 0
org.eclipse.swt.SWTException: Graphic is disposed
	at org.eclipse.swt.SWT.error(SWT.java:2231)
	at org.eclipse.swt.SWT.error(SWT.java:2161)
	at org.eclipse.swt.graphics.Image.getBounds(Image.java:1022)
	at org.eclipse.swt.custom.CLabel.getTotalSize(CLabel.java:177)
	at org.eclipse.swt.custom.CLabel.onPaint(CLabel.java:295)
	at org.eclipse.swt.custom.CLabel.access$0(CLabel.java:287)
	at org.eclipse.swt.custom.CLabel$1.paintControl(CLabel.java:102)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:80)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:861)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:845)
	at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java:726)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2760)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:2177)
	at org.eclipse.swt.internal.win32.OS.RedrawWindow(Native Method)
	at org.eclipse.swt.widgets.Control.update(Control.java:2636)
	at org.eclipse.ui.internal.ViewPane.drawGradient(ViewPane.java:372)
	at org.eclipse.ui.internal.ViewPane.shellDeactivated(ViewPane.java:471)
	at org.eclipse.ui.internal.WorkbenchWindow$12.shellDeactivated
(WorkbenchWindow.java:1468)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:161)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:861)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841)
	at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE
(Decorations.java:1235)
	at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:1139)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:2711)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1218)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:2177)
	at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.PeekMessage(OS.java:1675)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1404)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1525)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1508)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:845)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	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.basicRun(Main.java:247)
	at org.eclipse.core.launcher.Main.run(Main.java:703)
	at org.eclipse.core.launcher.Main.main(Main.java:539)
Graphic is disposed
Comment 1 Eduardo Pereira CLA 2003-01-27 14:49:35 EST
The fix for this is in the HEAD stream (i.e. this is a dup of another bug). I 
will keep this opened as a reminder to test it in the next integration build.
Comment 2 Sonia Dimitrov CLA 2003-01-27 15:52:37 EST
*** Bug 30279 has been marked as a duplicate of this bug. ***
Comment 3 Sonia Dimitrov CLA 2003-01-28 09:05:24 EST
*** Bug 30366 has been marked as a duplicate of this bug. ***
Comment 4 Eduardo Pereira CLA 2003-01-30 14:39:08 EST
Verified in the last integration build.

*** This bug has been marked as a duplicate of 27320 ***