JVM crash on touchbar mac (other platforms work fine)
还没有人认领这个 Issue。
评估
调研方向
从链接的示例项目 jvmcrashtest 及其 build.gradle 开始,然后在所报告的 Touchbar Mac 设置上运行 korge-run 任务 runJvmFirstThread 和 runJvm。将基于 JNA 的崩溃与 AWT/Swing 路径进行比较,并检查 JVM 崩溃日志,包括 class_conformsToProtocol frame。当 runJvmFirstThread 不再崩溃,同时标准 runJvm 任务仍保持正常工作时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
The Java VM crashes on a 2018 Touchbar Macbook pro. Other platforms (and macs without touchbar) work great. When using a standard AWT/Swing build of the same code, there is no crash.
> Task :runJvmFirstThread FAILED
-XstartOnFirstThread not supported via Jogl, switching to an experimental native jna-based implementation
pixelFormat: 140203200597728
openGLContext: 140203226417888
contentView: 140203200489312
NSDefaultRunLoopMode: native@0x7fff849d1540
[timerWithTimeInterval:invocation:repeats:, timerWithFireDate:target:selector:userInfo:, scheduledTimerWithTimeInterval:repeats:block:, timerWithTimeInterval:repeats:block:, allocWithZone:, timerWithTimeInterval:target:selector:userInfo:repeats:, scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:, scheduledTimerWithTimeInterval:invocation:repeats:]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff61e56415, pid=919, tid=775
#
# JRE version: OpenJDK Runtime Environment (11.0.4+10) (build 11.0.4+10-b304.77)
# Java VM: OpenJDK 64-Bit Server VM (11.0.4+10-b304.77, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [libobjc.A.dylib+0xb415] class_conformsToProtocol+0x138
#
# 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/nicolaiemig/dev/engineEmi/hs_err_pid919.log
#
# If you would like to submit a bug report, please visit:
# https://youtrack.jetbrains.com
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
JVM crashlog is on pastebin, because its huge
- Version of JNA and related jars
gluegen: 2.3.2
jna: 5.5.0
joal: 2.3.2
jog: 2.3.2 - Version and vendor of the java virtual machine
13.0.1 (Oracle Corporation 13.0.1+9) (other VMs give this error woo - Operating system / System architecture
Mac OS X 10.15.1 x86_64 - Steps to reproduce
A) Download Sample project here. Its a gradle project:
B) Import build.gradle file
C) Run gradle task "runJvmFirstThread for JNA implementation (crashes) or gradle task runJvm for AWT/Swing implementation (does not crash). The tasks are unter gradle -> korge-run group
- 主要语言
- Java
- 星标
- 8.9k
- 派生
- 1.7k
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
java-native-access/jna 的其他 Issue
-
`Native.typeOptions` never releases library interfaces, leaking classloaders可能已有人在做 @curforever 于 8 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 48/100
java-native-access/jna#1742 ·
-
难度 4/5 3-5 天 新手友好度 66/100
java-native-access/jna#1738 ·
-
难度 4/5 3-5 天 新手友好度 45/100
java-native-access/jna#1736 ·
-
难度 3/5 1-2 天 新手友好度 65/100
java-native-access/jna#1717 ·
-
Windows32Exception - The parameter is incorrect可能已有人在做 @marktech0813 于 344 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
java-native-access/jna#1700 · 11 条评论 ·
查看 java-native-access/jna 的全部 Issue
相似的 Issue
-
ChaosEngine: backup-remote doctor row passes while consumer mode hides bot memory from git可能已有人在做 @MohabMohie 今天认领。 未关闭agentic
难度 2/5 1-3 小时 新手友好度 76/100
ShaftHQ/SHAFT_ENGINE#7263 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
bug/错误
难度 2/5 1-3 小时 新手友好度 72/100
FCL-Team/FoldCraftLauncher#1951 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
quarkusio/quarkus-agent-mcp#296 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
commons-app/apps-android-commons#7072 ·
维护者通常 1 天内回复