HMCL-dev / HMCL-dev/HMCL

[Bug] 实例输出的日志过多导致启动器程序资源占用过高

Open
#5,685 11 comments 0 reactions 1 assignee View on GitHub

@burningtnt is already working on this.

Since Mar 17, 2026.

bug
Dominant language
Java
Stars
10.1k
Forks
934
Avg merge
1d 5h
Merged PRs (30d)
82

Description

问题描述 | Bug Description

我使用HMCL启动某个实例,并设置了在启动后保持启动器可见,不过我并没有打开日志输出查看(即“没有通过实例管理的‘测试游戏’选项启动”)。
而这个实例由于某个错误而在短时间内产生了约2个G的日志,这导致HMCL使用了4个G甚至更多的内存,以及600%的CPU占用。

Image

值得注意的是,运行中的实例与HMCL本身都并未崩溃,但运行中的实例似乎被HMCL的日志处理阻塞了,而导致了无限的卡顿。在强行终止HMCL后,运行中的实例恢复了运行。

启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

尽管启动器此时并未崩溃,但超高的性能占用致使我不得不强行停止他。
我试着从HMCL的日志文件夹中找到了这个:
2026-03-01T23-43-37.log

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.