He tenido este error durante más de 6 meses y siento que he intentado todo hasta este momento. Cada vez que ejecuto una aplicación Java que usa algún tipo de elementos JavaFX (podría ser tan simple como un GridPane vacío, con o sin animación,...), funciona durante unos segundos, luego se detiene e imprime lo siguiente:
# # 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)Aquí hay una muestra de código que dará este error, por ejemplo:
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 importa qué JDK (Azul, Oracle, Bellsoft,... aarch64) o IDE (Netbeans, IntelliJ,...) use, el error es siempre el mismo. Estoy en una Mac 2020 (entonces ejecuto con el chip M1).