Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Input Dialogs issue with escape key
Input Dialogs issue with escape key [message #1455679] Wed, 29 October 2014 16:38 Go to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
Hello,

We noticed something we suspect to be a RAP bug in our application.

If escape key is pressed fast enough with other keys in an input dialog we have some strange behavior and following 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.

I guess it is reproducible in demo, if you go there
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

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)

[Updated on: Wed, 29 October 2014 16:40]

Report message to a moderator

Re: Input Dialogs issue with escape key [message #1456224 is a reply to message #1455679] Thu, 30 October 2014 06:12 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Arnaud,
please open a bugzilla about it and I'll take a look immediately.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Input Dialogs issue with escape key [message #1456344 is a reply to message #1455679] Thu, 30 October 2014 09:02 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
BTW... this happens only if Verify listener is attached to the Text
widget. Isn't it?

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Input Dialogs issue with escape key [message #1456466 is a reply to message #1456344] Thu, 30 October 2014 11:47 Go to previous messageGo to next message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
In the dialog where I initially see the issue the text widget is using databinding
Then I reproduced it with standard Input Dialog (where I guess there are also some listeners attached to the Text)

I was about to fill the issue when I found this one https://bugs.eclipse.org/bugs/show_bug.cgi?id=328696 and I am wondering if they are not related
What do you think ? so you still want I fill a new issue or I comment this one with the way to reproduce it in Demo ?

Regards

[Updated on: Thu, 30 October 2014 11:48]

Report message to a moderator

Re: Input Dialogs issue with escape key [message #1456474 is a reply to message #1456466] Thu, 30 October 2014 11:57 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Arnaud,
the mentioned bug is quite old (even the problem is still valid and
related to your issue). Please file a separate bugzilla. I have a patch
prepared to address your problem.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Input Dialogs issue with escape key [message #1456530 is a reply to message #1456474] Thu, 30 October 2014 13:02 Go to previous message
Arnaud MERGEY is currently offline Arnaud MERGEYFriend
Messages: 243
Registered: March 2010
Location: France
Senior Member
I have opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=449350

Thanks
Previous Topic:Can we use the Dependency Injection feture of E4 in RAP
Next Topic:Swingwt on RAP
Goto Forum:
  


Current Time: Fri Mar 29 08:42:20 GMT 2024

Powered by FUDForum. Page generated in 0.04387 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top