Crash in javafx.web native code when loaded dynamically
See original GitHub issueMaintainer’s Note
If you bump into this issue, this will happen when javafx.web
is dynamically loaded in the business application after config.launch()
. This is a bug in the JavaFX web engine; you can track progress here.
Possible workarounds are:
- Load
javafx.web
statically on the JVM bootstrap classloader. You shouldn’t load it dynamically via update4j’s loading mechanism inconfig.launch()
. - Load it dynamically, and both the bootstrap and the business apps share the same classloader. You should set
DynamicClassLoader
as the system classloader, as explained in the wiki. This won’t work with modules though. - Instead of launching via
config.launch()
start a new JVM as the launch point.
Original Post
As the title says, whenever my business application tries to use a WebView from javafx.web, the application crashes producing a hs_err_pid_xxx.log thread dump file. The javafx-web module is loaded dynamically in the module path by update4j (along with the rest of the javafx modules, which have no issues whatsoever). I know update4j is to blame, since everything works fine if I launch the exact same business application directly. I am running OpenJDK 13.0.1+9 with JavaFX 15-ea+1 on a Mac. Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Comments:60 (31 by maintainers)
Top Results From Across the Web
JavaFX WebEngine crashes after loading a web page with a ...
After loading any steam profile page with an animated background into the WebEngine, every action such as scrolling down/up and hovering over ...
Read more >JDK-8196011 Intermittent crash when using WebView ... - Bug ID
This solution will block the event thread for 'getText' and 'getPos' which intern causes the 'FrameView::layout ' (native of WebView). These two API...
Read more >javafx.scene.web.WebEngine crashes during load method
JVM crashes during loading of a website. ... frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) ... Dynamic libraries:
Read more >[JDK-8134975] JVM crash when loading a web page into WebView ...
I am loading a page from a non-public website into WebView. ... The crash happened outside the Java Virtual Machine in native code....
Read more >SQL Developer 18.2 crashing after LoadingScreen is finished ...
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) ... WebEngine.load(Ljava/lang/String;)V+99 javafx.web@9.0.4.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/openjdk/jfx/commit/e02cee966780f5e3056db80851ef59929ab76ab0 Could this finally be the fix?? I will definitely give it a shot whenever I find the time…
@micheljung Since this issue is hard to follow I added a short summary in the original comment.