I have had this error for over 6 months now, and I feel like I have tried everything at this point. Whenever I run a Java Application that uses some kind of JavaFX elements (could be as simple as an empty GridPane, with or without an animation,...), it works for a few seconds, then stops and prints the following :
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0x00000001300014f0, pid=37716, tid=27919
#
# JRE version: OpenJDK Runtime Environment (17.0.1+12) (build 17.0.1+12-39)
# Java VM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# v ~StubRoutines::SafeFetchN
#
# 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:
# *path to the error file*
#
# 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.
#
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
Here is one sample of code that will give this error for example:
public class HelloApplication extends Application {
@Override
public void start(Stage stage) {
GridPane grid = new GridPane();
grid.setAlignment(Pos.CENTER);
grid.getChildren().add(new Button("Patate"));
Scene scene = new Scene(grid, 300, 300);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch(args);
}
}
No matter what JDK (Azul, Oracle, Bellsoft,... aarch64) or IDE (Netbeans, IntelliJ,...) I use, the error is always the same. I am on a 2020 Mac (so running with the M1 chip).