Project: Eclipse_Platform_UI
Bug 136475 [Trim] Graphic is disposed error on shutdown
Reported: 2006-04-12 17:05:42 | Status: verified fixed

20060412 I got the following exception on shutdown - I am not sure what caused it !ENTRY org.eclipse.ui.workbench 4 2 2006-04-12 16:54:17.359 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Graphic is disposed at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.SWT.error(SWT.java:3268) at org.eclipse.swt.graphics.Image.getBounds(Image.java:1105) at org.eclipse.swt.custom.CLabel.getTotalSize(CLabel.java:222) at org.eclipse.swt.custom.CLabel.computeSize(CLabel.java:154) at org.eclipse.jface.action.StatusLine$StatusLineLayout.computeSize(StatusLine.java:130) at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:219) at org.eclipse.swt.widgets.Control.computeSize(Control.java:418) at org.eclipse.ui.internal.layout.TrimLayout.arrange(TrimLayout.java:552) at org.eclipse.ui.internal.layout.TrimLayout.layout(TrimLayout.java:475) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:989) at org.eclipse.swt.widgets.Composite.layout(Composite.java:531) at org.eclipse.swt.widgets.Composite.layout(Composite.java:496) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:43) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.PerspectiveBarManager.relayout(PerspectiveBarManager.java:183) at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:348) at org.eclipse.ui.internal.PerspectiveSwitcher.removePerspectiveShortcut(PerspectiveSwitcher.java:295) at org.eclipse.ui.internal.PerspectiveSwitcher.access$2(PerspectiveSwitcher.java:282) at org.eclipse.ui.internal.PerspectiveSwitcher$ChangeListener.perspectiveClosed(PerspectiveSwitcher.java:156) at org.eclipse.ui.internal.PerspectiveListenerList$6.run(PerspectiveListenerList.java:172) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.ui.internal.PerspectiveListenerList.fireEvent(PerspectiveListenerList.java:58) at org.eclipse.ui.internal.PerspectiveListenerList.firePerspectiveClosed(PerspectiveListenerList.java:170) at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveClosed(WorkbenchWindow.java:1281) at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1555) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:745) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1482) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:621) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:597) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:710) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:708) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:712) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:709) at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:639) at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:839) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.close(Workbench.java:837) at org.eclipse.ui.internal.Workbench.close(Workbench.java:812) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:618) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:597) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:710) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:708) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:736) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:682) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:159) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:257) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1606) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3248) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1915) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1915) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1920) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2964) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) !ENTRY org.eclipse.ui.workbench 4 2 2006-04-12 16:54:20.390 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.swt.SWTException: Graphic is disposed at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.SWT.error(SWT.java:3268) at org.eclipse.swt.graphics.Image.getBounds(Image.java:1105) at org.eclipse.swt.custom.CLabel.getTotalSize(CLabel.java:222) at org.eclipse.swt.custom.CLabel.computeSize(CLabel.java:154) at org.eclipse.jface.action.StatusLine$StatusLineLayout.computeSize(StatusLine.java:130) at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:219) at org.eclipse.swt.widgets.Control.computeSize(Control.java:418) at org.eclipse.ui.internal.layout.TrimLayout.arrange(TrimLayout.java:552) at org.eclipse.ui.internal.layout.TrimLayout.layout(TrimLayout.java:475) at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:989) at org.eclipse.swt.widgets.Composite.layout(Composite.java:531) at org.eclipse.swt.widgets.Composite.layout(Composite.java:496) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:43) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.layout.LayoutUtil.resize(LayoutUtil.java:47) at org.eclipse.ui.internal.PerspectiveBarManager.relayout(PerspectiveBarManager.java:183) at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:348) at org.eclipse.ui.internal.PerspectiveSwitcher.removePerspectiveShortcut(PerspectiveSwitcher.java:295) at org.eclipse.ui.internal.PerspectiveSwitcher.access$2(PerspectiveSwitcher.java:282) at org.eclipse.ui.internal.PerspectiveSwitcher$ChangeListener.perspectiveClosed(PerspectiveSwitcher.java:156) at org.eclipse.ui.internal.PerspectiveListenerList$6.run(PerspectiveListenerList.java:172) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:816) at org.eclipse.ui.internal.PerspectiveListenerList.fireEvent(PerspectiveListenerList.java:58) at org.eclipse.ui.internal.PerspectiveListenerList.firePerspectiveClosed(PerspectiveListenerList.java:170) at org.eclipse.ui.internal.WorkbenchWindow.firePerspectiveClosed(WorkbenchWindow.java:1281) at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1555) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:745) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1482) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:621) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:597) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:710) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:708) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:712) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:709) at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:639) at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:839) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.close(Workbench.java:837) at org.eclipse.ui.internal.Workbench.close(Workbench.java:812) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:618) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:597) at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindow.java:710) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:708) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:736) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:682) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:159) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:257) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1606) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3248) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1915) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1915) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:443) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1634) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1920) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2964) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java