HMCL-dev / HMCL-dev/HMCL

[Bug] 当通过exe直接启动时,默认分配给虚拟机的内存不足导致崩溃,尤其是在使用较大图片作为背景时

Open
#6,683 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

问题描述 | Bug Description

当选择较大图片作为背景(10.6mb)加载时,启动器会在启动时卡死,在设置中选择时也有可能卡死,通过日志发现是默认分配的1g不够用,通过自定义启动参数可以解决问题,但通过exe启动是默认分配1g,或者需要优化一下,在启动时调整一下内存分配

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

2026-08-13T22-15-18.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.

Research direction

Start by reproducing the freeze with the 10.6 MB background image through the EXE, then inspect the linked launcher log and compare it with a launch using custom memory arguments. Done means the EXE launch no longer crashes or freezes when loading the large background image.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.