-
Bug
-
Resolution: Unresolved
-
P4
-
jfx21
-
x86_64
-
linux_redhat_6.0
ADDITIONAL SYSTEM INFORMATION :
Crash: Tested on RedHat 7 and RedHat 8 with JDK 17, 19 and 21.
No crash: Tested on Windows 10
A DESCRIPTION OF THE PROBLEM :
JavaFX applications which use WebKit crash if the JavaScript JIT is disabled via setting the environment variable
JavaScriptCoreUseJIT=0
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Create a simple JavaFX application with a WebView
2) Build the application
3) Disable JIT via environment variable, e.g. export JavaScriptCoreUseJIT=0
4) Execute the application
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Application opens a WebView
ACTUAL -
Application crashes with a segfault:
# JRE version: Java(TM) SE Runtime Environment (21.0.1+12) (build 21.0.1+12-LTS-29)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0.1+12-LTS-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libjfxwebkit.so+0x2e204a5]
---------- BEGIN SOURCE ----------
package org.openjfx;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.scene.web.WebView;
public class App extends Application {
public static void main(String[] args) {
launch(args);
}
public void start(Stage primaryStage) {
primaryStage.setTitle("JavaFX WebView Example");
WebView webView = new WebView();
webView.getEngine().load("https://bugreport.java.com");
VBox vBox = new VBox(webView);
Scene scene = new Scene(vBox, 960, 600);
primaryStage.setScene(scene);
primaryStage.show();
}
}
---------- END SOURCE ----------
FREQUENCY : always
Crash: Tested on RedHat 7 and RedHat 8 with JDK 17, 19 and 21.
No crash: Tested on Windows 10
A DESCRIPTION OF THE PROBLEM :
JavaFX applications which use WebKit crash if the JavaScript JIT is disabled via setting the environment variable
JavaScriptCoreUseJIT=0
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Create a simple JavaFX application with a WebView
2) Build the application
3) Disable JIT via environment variable, e.g. export JavaScriptCoreUseJIT=0
4) Execute the application
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Application opens a WebView
ACTUAL -
Application crashes with a segfault:
# JRE version: Java(TM) SE Runtime Environment (21.0.1+12) (build 21.0.1+12-LTS-29)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0.1+12-LTS-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [libjfxwebkit.so+0x2e204a5]
---------- BEGIN SOURCE ----------
package org.openjfx;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.scene.web.WebView;
public class App extends Application {
public static void main(String[] args) {
launch(args);
}
public void start(Stage primaryStage) {
primaryStage.setTitle("JavaFX WebView Example");
WebView webView = new WebView();
webView.getEngine().load("https://bugreport.java.com");
VBox vBox = new VBox(webView);
Scene scene = new Scene(vBox, 960, 600);
primaryStage.setScene(scene);
primaryStage.show();
}
}
---------- END SOURCE ----------
FREQUENCY : always