I'm writing an application in JavaFX where I need to open some HTML files. For this, I have a TreeView that contains the list of files. Near of that TreeView, I have a TabPane which is intended to display the opened files. So, when the user double clicks on the file, I create a WebView, I load the url of that file in the WebEngine and a Tab (with the webview) is added to the TabPane. Pretty simple.
The problem is the following : sometimes, the first time I'm trying to load the file, the WebEngine worker freezes on "RUNNING" state. It never changes to FAILED or SUCCEEDED, it just stays on Running.
I don't know if I have to post the whole code. As this problem raised in a random way, I don't know if it will be relevant. Let me know if I have to do it.
I'm not the only one to have this problem. This is a well-know bug. I've seen other people on Internet who faced the same issue :
http://stackoverflow.com/questions/19298740/javafx-webengine-stuck-in-running-state
Could you have an idea on why it appears and how to solve it ?
Thanks.
The problem is the following : sometimes, the first time I'm trying to load the file, the WebEngine worker freezes on "RUNNING" state. It never changes to FAILED or SUCCEEDED, it just stays on Running.
I don't know if I have to post the whole code. As this problem raised in a random way, I don't know if it will be relevant. Let me know if I have to do it.
I'm not the only one to have this problem. This is a well-know bug. I've seen other people on Internet who faced the same issue :
http://stackoverflow.com/questions/19298740/javafx-webengine-stuck-in-running-state
Could you have an idea on why it appears and how to solve it ?
Thanks.