Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

JVM crash on touchbar mac (other platforms work fine)

未关闭
#1,151 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
java, macos
领域
desktop

调研方向

从链接的示例项目 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

  1. Version of JNA and related jars
    gluegen: 2.3.2
    jna: 5.5.0
    joal: 2.3.2
    jog: 2.3.2
  2. Version and vendor of the java virtual machine
    13.0.1 (Oracle Corporation 13.0.1+9) (other VMs give this error woo
  3. Operating system / System architecture
    Mac OS X 10.15.1 x86_64
  4. 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
Bildschirmfoto 2019-12-03 um 18 37 48
主要语言
Java
星标
8.9k
派生
1.7k
平均合并
1 天 13 小时
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

java-native-access/jna 的其他 Issue

查看 java-native-access/jna 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。