java - Apple 芯片上使用 jdk 17.0.1 的 java 应用程序运行时崩溃

标签 java macos crash desktop-application apple-silicon

我正在和一些 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/

相关文章:

python - MySQL 和 Python - "image not found"- 永久修复?

macos - 我无法在 OS X 上打包 appjs 应用程序

cocos2d-iphone - CCScheduler 崩溃作为消息发送到解除分配的实例

ios - 在不引用应用程序函数/类的情况下解释崩溃日志

C# ListBox 从文本文件导入时崩溃

java - 为 Switch 设置 id

java - 使用 JGraphX 删除图中的重复顶点

java - 想要 : rtf editor with "collapsable" sections; thinking: using StyledEditorKit in java's swing system

java - Spring Integration 和 Transaction Management——需要多难?

java - Java 6 Mac OS X Lion 上的奇怪并发行为