Steps to reproduce -
1) Launch the HelloWebView demo - by default it loads the webpage https://www.google.com/
2) Wait for the page to be loaded. Edit the google to msn in the URL edit box and press enter.
3) During the page load, do some scrolling multiple times up/down etc.
A crash is seen within a few scrolls.
Observed on- macOS 15.5 on M3 Pro based macBook with JDK 23.
Also, crashes on Linux too.
Crash log -
------------------------------------------------------
zsh: abort java @./build/run.args -cp apps/toys/Hello/dist/Hello.jar hello.HelloWebView
rt % java @./build/run.args -cp apps/toys/Hello/dist/Hello.jar hello.HelloWebView
Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Cannot enter nested loop during animation or layout processing
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:647)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.waitForRequestToComplete(HTTP2Loader.java:430)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.<init>(HTTP2Loader.java:398)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.create(HTTP2Loader.java:117)
at javafx.web@26-internal/com.sun.webkit.network.NetworkContext.fwkLoad(NetworkContext.java:161)
at javafx.web@26-internal/com.sun.webkit.WebPage.twkUpdateRendering(Native Method)
at javafx.web@26-internal/com.sun.webkit.WebPage.updateRendering(WebPage.java:654)
at javafx.web@26-internal/com.sun.webkit.WebPage.updateContent(WebPage.java:647)
at javafx.web@26-internal/com.sun.javafx.sg.prism.web.NGWebView.update(NGWebView.java:73)
at javafx.web@26-internal/javafx.scene.web.WebView.handleStagePulse(WebView.java:1048)
at javafx.web@26-internal/javafx.scene.web.WebView.lambda$new$0(WebView.java:283)
at javafx.graphics@26-internal/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:380)
at javafx.graphics@26-internal/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:398)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:592)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:572)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:565)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$0(QuantumToolkit.java:346)
at javafx.graphics@26-internal/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000032a067b38, pid=25983, tid=259
#
# JRE version: Java(TM) SE Runtime Environment (24.0.1+9) (build 24.0.1+9-30)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0.1+9-30, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C [libjfxwebkit.dylib+0x1ca7b38] Java_com_sun_webkit_network_URLLoaderBase_twkDidReceiveResponse+0x24
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/a/dev/jfx_ws/jfx/rt/hs_err_pid25983.log
[424.970s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
1) Launch the HelloWebView demo - by default it loads the webpage https://www.google.com/
2) Wait for the page to be loaded. Edit the google to msn in the URL edit box and press enter.
3) During the page load, do some scrolling multiple times up/down etc.
A crash is seen within a few scrolls.
Observed on- macOS 15.5 on M3 Pro based macBook with JDK 23.
Also, crashes on Linux too.
Crash log -
------------------------------------------------------
zsh: abort java @./build/run.args -cp apps/toys/Hello/dist/Hello.jar hello.HelloWebView
rt % java @./build/run.args -cp apps/toys/Hello/dist/Hello.jar hello.HelloWebView
Exception in thread "JavaFX Application Thread" java.lang.IllegalStateException: Cannot enter nested loop during animation or layout processing
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:647)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.waitForRequestToComplete(HTTP2Loader.java:430)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.<init>(HTTP2Loader.java:398)
at javafx.web@26-internal/com.sun.webkit.network.HTTP2Loader.create(HTTP2Loader.java:117)
at javafx.web@26-internal/com.sun.webkit.network.NetworkContext.fwkLoad(NetworkContext.java:161)
at javafx.web@26-internal/com.sun.webkit.WebPage.twkUpdateRendering(Native Method)
at javafx.web@26-internal/com.sun.webkit.WebPage.updateRendering(WebPage.java:654)
at javafx.web@26-internal/com.sun.webkit.WebPage.updateContent(WebPage.java:647)
at javafx.web@26-internal/com.sun.javafx.sg.prism.web.NGWebView.update(NGWebView.java:73)
at javafx.web@26-internal/javafx.scene.web.WebView.handleStagePulse(WebView.java:1048)
at javafx.web@26-internal/javafx.scene.web.WebView.lambda$new$0(WebView.java:283)
at javafx.graphics@26-internal/com.sun.javafx.tk.Toolkit.runPulse(Toolkit.java:380)
at javafx.graphics@26-internal/com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:398)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:592)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:572)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:565)
at javafx.graphics@26-internal/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$0(QuantumToolkit.java:346)
at javafx.graphics@26-internal/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000032a067b38, pid=25983, tid=259
#
# JRE version: Java(TM) SE Runtime Environment (24.0.1+9) (build 24.0.1+9-30)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0.1+9-30, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# C [libjfxwebkit.dylib+0x1ca7b38] Java_com_sun_webkit_network_URLLoaderBase_twkDidReceiveResponse+0x24
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/a/dev/jfx_ws/jfx/rt/hs_err_pid25983.log
[424.970s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
- relates to
-
JDK-8277452 Crash in WebView when entering nested loop
-
- Open
-