Skip to content

导出启动器日志时包含 HMCL 的 JVM 崩溃日志 - #6651

Open
Hylfrd wants to merge 1 commit into
HMCL-dev:mainfrom
Hylfrd:fix/export-hotspot-crash-reports
Open

导出启动器日志时包含 HMCL 的 JVM 崩溃日志#6651
Hylfrd wants to merge 1 commit into
HMCL-dev:mainfrom
Hylfrd:fix/export-hotspot-crash-reports

Conversation

@Hylfrd

@Hylfrd Hylfrd commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

HMCL 目前没有对自身发生 JVM 崩溃时做过多处理。#6650 会在 HMCL 下次启动时提示上次可能发生了 Java 虚拟机崩溃;但用户通过帮助页面求助时,现有的“导出启动器日志”不会包含该报告,容易遗漏 JVM 崩溃原因和 native 调用栈等关键信息。

此 PR 在导出最近五份历史日志和当前日志时,会先扫描启动器目录下的 hs_err_pid*.log,并根据进程 PID、启动时间、工作目录和启动器文件名匹配由这些 HMCL 会话产生的 JVM 崩溃报告,并将匹配的 hs_err_pid*.log 一并写入日志压缩包。

@github-actions github-actions Bot added the 100+ label Aug 11, 2026
@Hylfrd Hylfrd changed the title 导出启动器日志时包含 HMCL 的 JVM 崩溃报告 导出启动器日志时包含 HMCL 的 JVM 崩溃日志 Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant