本文介紹了當(dāng)我嘗試在NetBeans上運(yùn)行JavaFX項(xiàng)目時(shí),為什么我的MacOS上不斷收到此SIGBUS錯(cuò)誤代碼?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
每當(dāng)我嘗試運(yùn)行我的JavaFX問題時(shí),我都會(huì)遇到MacOS錯(cuò)誤,我的代碼在其他設(shè)備上運(yùn)行得很好,所以我不確定哪里出了問題。
我使用的是M1Mac,使用的是最新版本的Java 17和JavaFX。當(dāng)運(yùn)行JavaFX應(yīng)用程序時(shí),它會(huì)在1秒或30秒內(nèi)打開圖形用戶界面,然后崩潰并顯示提供的錯(cuò)誤。如果您有其他問題或需要更多信息,我們將不勝感激。
我認(rèn)為這是/Private/TMP文件夾或其他我在網(wǎng)上看到的文件夾的問題,但我可能完全錯(cuò)了,因?yàn)樵撐募A現(xiàn)在基本上是空的,所以我看不到它已滿或其他什么。
如果有人能提供幫助或有任何想法,我將非常感謝您的反饋。
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
推薦答案
將您的Java FX版本更新為最新的可用版本。
JavaFX錯(cuò)誤報(bào)告提到:
stubroutines::SafeFetchN
作為JDK-8275723的副本關(guān)閉,即使那里的崩潰錯(cuò)誤消息略有不同。
嘗試在使用蒙特雷操作系統(tǒng)的某些M1 Mac上運(yùn)行早期版本(低于17.0.2)的JavaFX 17時(shí),會(huì)記錄與此相關(guān)的錯(cuò)誤報(bào)告。
鏈接案例報(bào)告建議在發(fā)布時(shí)使用JavaFX版本17.0.2
,并注意到最新的JavaFX 18早期版本中也有修補(bǔ)程序,可供下載。
發(fā)問者備注:
我將JavaFX更新為18,一切正常
在duplicate上的評論中注意到的另一個(gè)提問者:
我剛剛嘗試使用JDK版本17.0.2運(yùn)行該項(xiàng)目,它似乎運(yùn)行得非常好
我有一臺17.0.2的(Bellsoft Liberica的最新版本)。
這篇關(guān)于當(dāng)我嘗試在NetBeans上運(yùn)行JavaFX項(xiàng)目時(shí),為什么我的MacOS上不斷收到此SIGBUS錯(cuò)誤代碼?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,