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

Bug 449350

Summary: Press keys then escape key fast enough in dialog generates "Widget is disposed" exceptions
Product: [RT] RAP Reporter: Arnaud MERGEY <a_mergey>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jsetya
Version: 2.3   
Target Milestone: 3.0 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Arnaud MERGEY CLA 2014-10-30 09:01:13 EDT
If escape key is pressed fast enough with other keys in an input dialog we have some strange behavior and above stack trace displayed in our logs: 

It is probably because is in batch of event to process there are some concerning the dialog closed by the escape key pressing.

It is reproducible in demo http://rap.eclipsesource.com/demo/release/controls/#Dialogs 

* open input dialog 
* type something randomly in the input text and press escape as well (very fast or type something with one hand and press escape with the other to be sure to reproduce)
* the dialog is closed 
* none of the buttons are working anymore unless the page is refreshed, so something is probably broken in the session and I think you should see similar logs on the server that I had in my application

Maybe this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=328696 is related to this issue.

Stack Trace :

org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3645)
at org.eclipse.swt.SWT.error(SWT.java:3568)
at org.eclipse.swt.SWT.error(SWT.java:3539)
at org.eclipse.swt.widgets.Widget.error(Widget.java:1031)
at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:408)
at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:986)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:969)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:594)
at org.eclipse.swt.widgets.Text.verifyText(Text.java:1072)
at org.eclipse.swt.widgets.Text.internalSetText(Text.java:1056)
at org.eclipse.swt.widgets.Text.access$0(Text.java:1055)
at org.eclipse.swt.widgets.Text$1.setText(Text.java:1036)
at org.eclipse.swt.internal.widgets.textkit.TextOperationHandler.setText(TextOperationHandler.java:147)
at org.eclipse.swt.internal.widgets.textkit.TextOperationHandler.access$2(TextOperationHandler.java:146)
at org.eclipse.swt.internal.widgets.textkit.TextOperationHandler$1.run(TextOperationHandler.java:75)
at org.eclipse.rap.rwt.internal.lifecycle.ProcessActionRunner.executeNext(ProcessActionRunner.java:51)
at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1191)
at org.eclipse.swt.widgets.Display.safeReadAndDispatch(Display.java:1176)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1168)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:701)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:684)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
Comment 1 Ivan Furnadjiev CLA 2014-10-30 10:16:54 EDT
Pending changes: https://git.eclipse.org/r/#/c/35674/ and https://git.eclipse.org/r/#/c/35675/.
Comment 2 Ivan Furnadjiev CLA 2014-11-03 08:02:39 EST
Fixed in master with changes  https://git.eclipse.org/r/#/c/35674/ and https://git.eclipse.org/r/#/c/35675/.
Comment 3 Ivan Furnadjiev CLA 2014-12-31 11:57:44 EST
*** Bug 456418 has been marked as a duplicate of this bug. ***