| Summary: | Widget is disposed while opening a dialog | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Peter Severin <peter> |
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.6.1 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
It looks like the problem was caused by a mistake in overridden createDialogArea method. The method wasn't returning the top composite obtained from super.createDialogArea. Strangely enough there were no side effects of this on Linux and Windows. |
Build Identifier: M20100909-0800 This error was reported by one of my customers who uses Eclipse 3.6.1 Carbon version on Mac OS X 10.6.7. I can provide more details if needed. Here's the stacktrace: org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:4083) at org.eclipse.swt.SWT.error(SWT.java:3998) at org.eclipse.swt.SWT.error(SWT.java:3969) at org.eclipse.swt.widgets.Widget.error(Widget.java:712) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:346) at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1068) at org.eclipse.swt.widgets.Shell.kEventWindowActivated(Shell.java:1088) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2206) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4431) at org.eclipse.swt.internal.carbon.OS.ShowWindow(Native Method) at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1995) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1935) at org.eclipse.swt.widgets.Shell.open(Shell.java:1424) at org.eclipse.jface.window.Window.open(Window.java:797) at com.wireframesketcher.ui.editors.screen.actions.ExportToPdfAction.void safeRun()(SourceFile:36) at com.wireframesketcher.ui.actions.SafeAction.void run()(SourceFile:27) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:230) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:234) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1669) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1693) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1678) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1421) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3657) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3240) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) Reproducible: Couldn't Reproduce Steps to Reproduce: I tried to reproduce it on my machine but failed. Basically a toolbar item is cliked which invokes and action that open the dialog. Perhaps the stacktrace could give someone a hint.