adoptium / adoptium/adoptium-support
Fatal Error in JRE - Apple M1
- Dominant language
- No language data
- Stars
- 59
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
This error happens every time I try to run a Java Application that includes any kind of Java FX elements (could be as simple as a Button or an empty GridPane). The app will run form anywhere between 2 and 15 seconds, it is not regular and does not depend on whether the user interacted with any of the Java FX elements. My laptop is a 2020 Mac (running on M1). I use IntelliJ (latest version 2021.3.2) but this also happens with any other IDE I have tried. I am using the latest version of the JDK, that is version 17.0.1. I have also re-installed my OS once and reformatted my laptop twice, nothing worked. Below is the full error message as well as sample code that created the error. Thanks :)
```#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0xa) at pc=0x000000010bea94f0, pid=37946, tid=30223
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.1+12 (17.0.1+12) (build 17.0.1+12)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (17.0.1+12, mixed mode, 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 report*
#
# If you would like to submit a bug report, please visit:
# https://github.com/adoptium/adoptium-support/issues
# 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)
```
```
import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
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);
}
}
```
Contributor guide
Research direction
Start by reproducing the crash with the provided HelloApplication JavaFX example on a 2020 Apple M1 using Temurin 17.0.1, then inspect the generated fatal error report and its SafeFetchN frame. Done means identifying whether the failure is reproducible and documenting a confirmed cause or resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100