question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash in javafx.web native code when loaded dynamically

See original GitHub issue

Maintainer’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 in config.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:closed
  • Created 4 years ago
  • Comments:60 (31 by maintainers)

github_iconTop GitHub Comments

3reactions
nemphyscommented, Apr 20, 2021

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…

1reaction
mordechaimcommented, Jul 14, 2020

@micheljung Since this issue is hard to follow I added a short summary in the original comment.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found