'JRE Runtime A fatal error has been detected

I started JavaFX in my uni. We use InteliJ as the IDE. For the smallest project code aka helloWorld this gives an error.My laptop is an MBP m1 2020.

The error:

A fatal error has been detected by the Java Runtime Environment: SIGBUS (0xa) at pc=0x000000010e6754f0, pid=35217, tid=34831

JRE version: Java(TM) SE Runtime Environment (17.0.2+8) (build 17.0.2+8-LTS-86) Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.2+8-LTS-86, 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: /Users/dinithfernando/Desktop/JavaFx/hs_err_pid35217.log 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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source