Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » JavaFX Preview Problem
JavaFX Preview Problem [message #1200956] Thu, 21 November 2013 14:00 Go to next message
Daniel Zimmermann is currently offline Daniel ZimmermannFriend
Messages: 81
Registered: July 2009
Member
Hi,

I recenty noticed a significant increase of problems with the preview view. The Exception show indicates that it was attempted to be updated from a non-UI thread.
I had some problems with my Eclispe recently as well, so I reinstalled the whole thing and recreated a new workspace only days ago and it sticks with me.

The exception:
java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
	at com.sun.javafx.tk.Toolkit.checkFxUserThread(Unknown Source)
	at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(Unknown Source)
	at javafx.scene.Scene.<init>(Unknown Source)
	at javafx.scene.Scene.<init>(Unknown Source)
	at org.eclipse.fx.ide.ui.preview.LivePreviewPart.createPartControl(LivePreviewPart.java:328)


Does anyone else notice this kind of failure? I'd file a bug, if necessary.

By the way: I'd like to attach an image, but I have no clue ATM how to do so... any hints?

Greetings,
Daniel
Re: JavaFX Preview Problem [message #1200969 is a reply to message #1200956] Thu, 21 November 2013 14:04 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
File a bug, and include you Java version and OS. This is really strange
because SWT & JavaFX share the same event-thread so createPartControl by
definition is called on SWT-UI-Thread this is really strange.

You are on the latest nigthly builds I guess?

Tom

On 21.11.13 15:00, Daniel Zimmermann wrote:
> Hi,
>
> I recenty noticed a significant increase of problems with the preview
> view. The Exception show indicates that it was attempted to be updated
> from a non-UI thread.
> I had some problems with my Eclispe recently as well, so I reinstalled
> the whole thing and recreated a new workspace only days ago and it
> sticks with me.
>
> The exception:
>
> java.lang.IllegalStateException: Not on FX application thread;
> currentThread = JavaFX Application Thread
> at com.sun.javafx.tk.Toolkit.checkFxUserThread(Unknown Source)
> at
> com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(Unknown Source)
> at javafx.scene.Scene.<init>(Unknown Source)
> at javafx.scene.Scene.<init>(Unknown Source)
> at
> org.eclipse.fx.ide.ui.preview.LivePreviewPart.createPartControl(LivePreviewPart.java:328)
>
>
>
> Does anyone else notice this kind of failure? I'd file a bug, if necessary.
>
> By the way: I'd like to attach an image, but I have no clue ATM how to
> do so... any hints?
>
> Greetings,
> Daniel
Re: JavaFX Preview Problem [message #1201072 is a reply to message #1200969] Thu, 21 November 2013 15:09 Go to previous messageGo to next message
Daniel Zimmermann is currently offline Daniel ZimmermannFriend
Messages: 81
Registered: July 2009
Member
You find the bug here.

Now that you mention it, I remember that SWT and JavaFX share the same thread! It has just sliped my mind... And yes: I'm using the nightlies but don't update them on a daily base - maybe I should.
Re: JavaFX Preview Problem [message #1201098 is a reply to message #1201072] Thu, 21 November 2013 15:25 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
There has been a change some weeks ago where I removed an asnycExec
block which made things fail with similar problems on my system with JDK
1.8.

I couldn't make any sense from the asyncExec but maybe this "fixed" the
issues you are seeing. For me the problem only happens with the preview
got opened on start up, so a fix is: close the view, restart eclipse,
open the view.

Tom

On 21.11.13 16:09, Daniel Zimmermann wrote:
> You find the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=422258.
>
> Now that you mention it, I remember that SWT and JavaFX share the same
> thread! It has just sliped my mind... And yes: I'm using the nightlies
> but don't update them on a daily base - maybe I should.
Re: JavaFX Preview Problem [message #1203215 is a reply to message #1201098] Fri, 22 November 2013 14:44 Go to previous messageGo to next message
Daniel Zimmermann is currently offline Daniel ZimmermannFriend
Messages: 81
Registered: July 2009
Member
Ok thank you Tom, I was not able to willingly re-create that issue. But I will try your approach to try to confirm that (if it is still present, since I updated yesterday, just to be sure!).
Re: JavaFX Preview Problem [message #1219792 is a reply to message #1200956] Thu, 05 December 2013 19:57 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
So we're seeing this with our dashboard browser under Java 8 only when we reopen a view. See follow-up on Daniel's bug.
Re: JavaFX Preview Problem [message #1228596 is a reply to message #1219792] Tue, 07 January 2014 15:30 Go to previous message
Daniel Zimmermann is currently offline Daniel ZimmermannFriend
Messages: 81
Registered: July 2009
Member
Thanks for finding the problem, Miles. I really hope, that it will be integrated into JavaFX itself, though.
Previous Topic:Curious message running E4/JavaFX/CentOS
Next Topic:contribute to context menu from E3 plugin in FXML view?
Goto Forum:
  


Current Time: Tue Apr 16 21:10:41 GMT 2024

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

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

Back to the top