Project: Eclipse_Platform_UI
Bug 92000 [Workbench] (regression) AssertionFailedException in PartList.removePart when editors closed on shutdown
Reported: 2005-04-19 17:18:04 | Status: verified fixed

build I20050413 + latest UI from head - run with -pluginCustomization d:\custom.ini where custom.ini has: org.eclipse.ui/CLOSE_EDITORS_ON_EXIT=true - open some editors - File > Exit Get the following in the log. Not sure if the "leaked a refcount" messages are related. !ENTRY org.eclipse.ui.workbench 4 2 2005-04-19 17:10:48.820 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed: at org.eclipse.jface.util.Assert.isTrue(Assert.java:180) at org.eclipse.jface.util.Assert.isTrue(Assert.java:165) at org.eclipse.ui.internal.PartList.removePart(PartList.java:141) at org.eclipse.ui.internal.WorkbenchPage.partRemoved(WorkbenchPage.java:1316) at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1143) at org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(WorkbenchPage.java:994) at org.eclipse.ui.internal.Workbench$8.run(Workbench.java:485) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1026) at org.eclipse.core.runtime.Platform.run(Platform.java:757) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:478) at org.eclipse.ui.internal.Workbench.access$6(Workbench.java:461) at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:644) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.ui.internal.Workbench.close(Workbench.java:642) at org.eclipse.ui.internal.Workbench.close(Workbench.java:617) at org.eclipse.ui.internal.QuitAction.run(QuitAction.java:57) at org.eclipse.jface.action.Action.runWithEvent(Action.java:996) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2895) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2528) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1569) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1533) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:319) at org.eclipse.core.launcher.Main.basicRun(Main.java:272) at org.eclipse.core.launcher.Main.run(Main.java:951) at org.eclipse.core.launcher.Main.main(Main.java:935) !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.626 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.pde.ui.PluginsView !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.636 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.ui.views.TaskList !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.646 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.ui.views.PropertySheet !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.646 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.team.ccvs.ui.AnnotateView !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.646 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.pde.runtime.LogView !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.646 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.ui.views.ContentOutline !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.646 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.team.ccvs.ui.HistoryView !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.676 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.jdt.ui.PackageExplorer !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.676 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.ui.views.ProblemView !ENTRY org.eclipse.ui 2 0 2005-04-19 17:10:52.686 !MESSAGE WorkbenchPage leaked a refcount for view org.eclipse.team.ccvs.ui.RepositoriesView

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