每当我尝试运行我的 JavaFX 问题时,我都会遇到 MacOS 错误,我的代码在其他设备上运行良好,所以我不确定出了什么问题。
我使用的是 M1 mac,Java 17 和 JavaFX 最新版本。运行 JavaFX 应用程序时,它会打开 gui 1 秒或 30 秒,然后崩溃并吐出提供的错误。任何帮助将不胜感激,如果您有其他问题或需要更多信息 lmk。
我相信这是 /private/TMP 文件夹或我在网上看到的东西的问题,但我可能完全错了,因为该文件夹现在基本上是空的,所以我看不到它已满或其他什么。
如果有人可以提供帮助或有任何想法,我将非常感谢一些反馈。
A fatal error has been detected by the Java Runtime Environment:
SIGBUS (0xa) at pc=0x000000010c0314f0, pid=1056, tid=28943
JRE version: Java(TM) SE Runtime Environment (17.0.1+12) (build 17.0.1+12-LTS-39)
Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.1+12-LTS-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:
/Users/peter/Desktop/BookStore/hs_err_pid1056.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