OutOfMemory with Multiple Potion Effects and Bookmarks
twowzh opened this issue · 6 comments
Description:
When multiple potion effects are active and bookmarks exist, the game may experience memory overflow/crash.
Reproduction Steps:
1.Add several HEI recipe bookmarks randomly.
2.Apply multiple potion effects to the player (typically 6 or more).
3.Switch the game to windowed mode (Note: This step appears unpredictable. Bug occurrence seems related to UI dimensions; sometimes it refuses to trigger).
4.Open the inventory. The game will likely freeze, experiencing severe lag before either recovering or throwing an "OutOfMemory" crash.
Additional Context:
Confirmed unrelated to other mods (e.g., InvMove).
The bug is rare under normal conditions but becomes frequent if:
You have mods like "Rin's So Many Enchantments?" installed
Your weapon has the enchantment Physical Education V
Playing in a large window but not full screen (due to eye comfort)
Engaging in intense combat (triggering potion effects)
Pressing E (inventory key) while effects activate
当存在多个药水效果且存在书签时内存溢出
日志:https://mclo.gs/ZNJy7OD
复现方式:
1.随意添加几个HEI配方书签
2.向自己身上添加多个药水效果(大概6个以上)
3.将游戏调整为窗口模式(不确定是否需要,这里很迷,bug触发似乎与界面尺寸有关系,有时候怎么也不触发)
4.打开物品栏,游戏便“可能”进入卡死状态,严重卡顿一段时间后恢复或者抛出内存溢出崩溃日志
HEI版本:4.29.8(最新)
已经排除其他模组的影响,与InvMove等模组无关
该bug正常状况下很难触发,但是如果你是一位安装了更多附魔模组并且附魔了学科:体育V在你的武器上,因为电脑不好所以只能开窗口玩,但为了保护眼睛把窗口拉的比较大,并且冲进怪堆大杀四方,还在附魔触发药水效果时顺手按了下E键,那么这个bug就会经常触发。
Unable to replicate it with the steps you've mentioned with just HEI in vanilla...
@twowzh The full log would be nice
bandicam.2025-10-03.23-33-02-280.mp4
Full Debug Logs: https://mclo.gs/BAXLKiT#L6628
Here are all the debug logs and a video that reproduces this crash.
This bug is very strange. It can only be triggered under the condition of a specific window size and the game mode must be survival mode (is the GUI different?). In the video, my default window size triggers it accurately every time, but once it's pulled to full screen, no problems occur at all.
854x480 (surviral mode, 6-7 effects), the gui size is medium (Automatically set), At least one bookmark
Some other sizes of windows can also be triggered (larger or smaller than this, but I don't have a
chance to know the corresponding window size because the game crashes)
@twowzh can you try this build of HEI?