我正在和一些 friend 一起开发一个桌面应用程序,在基于 amd/intel 处理器的 Linux 和 Windows 上,该应用程序工作得很好,但在我的 MacBook Air m1 上,该应用程序只是随机崩溃,我无法调试崩溃-日志。 有人可以帮助我吗?
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: java [1425]
Path: /Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home/bin/java
Identifier: java
Version: ???
Code Type: ARM-64 (Native)
Parent Process: idea [1168]
Responsible: idea [1168]
User ID: 501
Date/Time: 2021-12-15 10:37:49.6860 +0100
OS Version: macOS 12.0.1 (21A559)
Report Version: 12
Anonymous UUID: E61AAB9C-46E5-25CD-1606-A973D0634921
Time Awake Since Boot: 590 seconds
System Integrity Protection: enabled
Crashed Thread: 24 Java: InvokeLaterDispatcher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Region Info: 0 is not in any region. Bytes before following region: 4366696448
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104468000-10446c000 [ 16K] r-x/r-x SM=COW ...Home/bin/java
Application Specific Information:
abort() called
最佳答案
参见Bug JDK-8275723并根据 bug 中的评论将您的依赖项升级到 OpenJFX 17.0.2-ea+2。这样做为我解决了同样的问题。
关于java - Apple 芯片上使用 jdk 17.0.1 的 java 应用程序运行时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70361570/