【发布时间】:2022-01-01 15:11:31
【问题描述】:
大家好,我在 IntelliJ 上的 JAVAFX 上运行 GUI 应用程序时收到错误消息。我在大学的第二个学期使用 Java,所以现在真的很确定这些错误的含义,但基本上程序运行了几秒钟,然后突然自己崩溃了。都是随机的,可以持续 3 秒,也可以持续 15 秒。我不确定需要什么信息,但我现在可以提供我正在使用的 Java 17 和 JAVAFX 是最新的。麦克迷你 M1。 Intellij 是最新的。
#
# SIGBUS (0xa) at pc=0x000000010a0514f0, pid=8179, tid=28687
#
# 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/yayo/Documents/CSC 123/Projects/HeadsOrTails/hs_err_pid8179.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.
#
【问题讨论】:
-
M1 Mac mini 和 JavaFX M1 架构支持都是相当新的。 JavaFX 确实有在 JVM 之外执行的本机代码,它在您的环境中失败是可行的。如果您可以访问其他 Mac 系统(M1 和 Intel)或非 Mac 系统,您可能想在那里尝试您的应用程序,看看是否只会在您的 Mac mini 上死机。
标签: java intellij-idea javafx