Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349104 - SWTException thrown after changing perspective and closing the window
Summary: SWTException thrown after changing perspective and closing the window
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.2 M4   Edit
Assignee: Remy Suen CLA
QA Contact: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
: 352972 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-10 21:08 EDT by Remy Suen CLA
Modified: 2011-12-06 13:30 EST (History)
3 users (show)

See Also:


Attachments
Safe up the asynchExec (938 bytes, patch)
2011-06-11 14:53 EDT, Eric Moffatt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2011-06-10 21:08:13 EDT
1. Window > New Window
2. Window > Open Perspective > Debug
3. Hover your mouse over the 'Java' perspective's tool item.
4. Click on it and then immediately hit Alt+F4.
5. An SWTException will occur.

Caused by: org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4277)
	at org.eclipse.swt.SWT.error(SWT.java:4192)
	at org.eclipse.swt.SWT.error(SWT.java:4163)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:661)
	at org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon$4$1.run(MinMaxAddon.java:234)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 24 more
Comment 1 Eric Moffatt CLA 2011-06-11 14:53:53 EDT
Created attachment 197840 [details]
Safe up the asynchExec
Comment 2 Remy Suen CLA 2011-06-12 17:57:34 EDT
This is an innocuous bug that is not likely to occur in practice. I am not convinced that we should be fixing this now.
Comment 3 Remy Suen CLA 2011-07-25 06:34:23 EDT
*** Bug 352972 has been marked as a duplicate of this bug. ***
Comment 4 Dani Megert CLA 2011-07-25 06:36:24 EDT
4.1 RC4 is over.
Comment 5 Remy Suen CLA 2011-07-27 12:44:34 EDT
This is causing (at least) two test failures.

Eric, can you push this fix or should I do it for you?
Comment 7 Remy Suen CLA 2011-12-06 13:30:52 EST
Verified with I20111205-2330 on Windows 7.