Skip to content

feat: 导出崩溃信息时输出最近 Java Windows 事件#5439

Open
CiiLu wants to merge 4 commits intoHMCL-dev:mainfrom
CiiLu:wuwuuwuwuwu
Open

feat: 导出崩溃信息时输出最近 Java Windows 事件#5439
CiiLu wants to merge 4 commits intoHMCL-dev:mainfrom
CiiLu:wuwuuwuwuwu

Conversation

@CiiLu
Copy link
Contributor

@CiiLu CiiLu commented Feb 5, 2026

来自崩溃群

如果遇到日志戛然而止的情况可能是外部因素崩溃,需要到事件查看器找 java.exe 的事件,沟通成本很高且麻烦。

本PR添加了在导出游戏崩溃信息时输出在游戏启动后产生的 java.exe 或 javaw.exe 事件的功能。

输出示例

[08:50:14] [@.ui.GameCrashWindow.lambda$exportGameCrashInfo$3/INFO] ID: 1000 | Level: Error | Time: 2026-02-05 08:46:43
[08:50:14] [@.ui.GameCrashWindow.lambda$exportGameCrashInfo$3/INFO] Message: Faulting application name: java.exe, version: 25.0.0.0, time stamp: 0x291d81c2
Faulting module name: lib.dll, version: 0.0.0.0, time stamp: 0x6983e86e
Exception code: 0xc00000fd
Fault offset: 0x0000000000002856
Faulting process id: 0x89C8
Faulting application start time: 0x1DC9638E58F54C7
Faulting application path: C:\Users\admin\.jdks\graalvm-jdk-25\bin\java.exe
Faulting module path: D\lib.dll
Report Id: 54b4263f-5df7-4b56-8c89-b16a05dd1f14
Faulting package full name: 
Faulting package-relative application ID: 
[08:50:14] [@.ui.GameCrashWindow.lambda$exportGameCrashInfo$3/INFO] ID: 1002 | Level: Error | Time: 2026-02-05 08:26:09
[08:50:14] [@.ui.GameCrashWindow.lambda$exportGameCrashInfo$3/INFO] Message: The program java.exe version 21.0.8.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.

由于调用 Powershell 在部分环境很耗时,建议在合并本 PR 之前先完成 #5302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant