HMCL-dev / HMCL-dev/HMCL

HMCL崩溃问题分析不正确

Open
#2,691 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

平台 | Platform

Windows 10

问题描述 | Problem Description

当我正在尝试启动Minecraft时,它崩溃了,而HMCL给出的原因是Forge与Optifine版本不兼容。而当我查看日志时发现是多个Mods缺少前置Mods导致的崩溃,而在按照前置Mod后问题解决了,因此我认为问题不应该是在Optifine上,而是缺少前置Mods。然而HMCL中也存在缺少前置的“崩溃原因”解释。而再此之前我也经历过多次这样的错误,原因不确定,但在Forge版本符合Optifine要求版本的情况下依旧崩溃并且报“Forge版本与Optifine版本不兼容”。我认为HMCL在这一个错误分析的表现并不足够准确。日志中的关键字段:
[18:11:09] [main/ERROR]: Missing or unsupported mandatory dependencies:
Mod ID: 'cloth_config', Requested by: 'coordinatesdisplay', Expected range: '10.0.96+', Actual version: '[MISSING]'
Mod ID: 'cloth_config', Requested by: 'simplesplashscreen', Expected range: '*', Actual version: '[MISSING]'

如何重新触发:
1.下载Minecraft,安装Forge与Optifine(兼容)
2.安装一个需要前置的Mod而不安装前置(例如simplesplashscreen)
3.启动游戏,崩溃,HMCL给出原因:Optifine版本与Forge版本不兼容
4.安装需要的前置(例如cloth config)
5.再次启动游戏,启动成功
结论:导致游戏崩溃的(主要)原因分析错误,应该是Mod前置未安装而不是Optifine与Forge版本不兼容。

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

[18:11:07] [main/INFO]: ModLauncher running: args [--username, Hello_QiHang, --version, Minecraft, --gameDir, C:\Users\chenq\AppData\Roaming.minecraft, --assetsDir, C:\Users\chenq\AppData\Roaming.minecraft\assets, --assetIndex, 3, --uuid, 75ab415854864cf789de5d2df05b44c3, --accessToken, ????????????????, --clientId, ${clientid}, --xuid, ${auth_xuid}, --userType, msa, --versionType, HMCL 3.5.5, --width, 1920, --height, 1080, --tweakClass, optifine.OptiFineTweaker, --launchTarget, forgeclient, --fml.forgeVersion, 45.1.16, --fml.mcVersion, 1.19.4, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230314.122934]
[18:11:07] [main/INFO]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.9 by Azul Systems, Inc.; OS Windows 10 arch amd64 version 10.0
[18:11:08] [main/INFO]: OptiFineTransformationService.onLoad
[18:11:08] [main/INFO]: OptiFine ZIP file URL: union:/C:/Users/chenq/AppData/Roaming/.minecraft/libraries/optifine/OptiFine/1.19.4_HD_U_I4/OptiFine-1.19.4_HD_U_I4.jar%23104!/
[18:11:08] [main/INFO]: OptiFine ZIP file: C:\Users\chenq\AppData\Roaming.minecraft\libraries\optifine\OptiFine\1.19.4_HD_U_I4\OptiFine-1.19.4_HD_U_I4.jar
[18:11:08] [main/INFO]: Target.PRE_CLASS is available
[18:11:08] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/chenq/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2399!/ Service=ModLauncher Env=CLIENT
[18:11:08] [main/INFO]: OptiFineTransformationService.initialize
[18:11:08] [main/INFO]: Found mod file [HUD]coordinatesdisplay-2.2.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [Lib]CreativeCore_FORGE_v2.10.22_mc1.19.4.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [Lib]Prism-1.19.3-forge-1.0.3.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [内置服务器优化]servercore-forge-1.3.5+1.19.4.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [启动优化]smoothboot(reloaded)-mc1.19.4-0.0.3.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [启动页面]SimpleSplashScreen-1.19.4-1.3.2.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [家具]cfm-forge-1.19.4-7.0.0-pre35.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [月光Lib]moonlight-1.19.4-2.4.15-forge.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [服务器]fast-ip-ping-mc1.19.4-forge-v1.0.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [标题]itlt-1.19.4-2.1.5.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [模组配置]ForgeConfigScreens-v6.0.0-1.19.4-Forge.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [电弧光]midnightlib-forge-1.3.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [皮肤]CustomSkinLoader_ForgeActive-14.18.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [监视器]FPS-Monitor-1.19.4-1.3.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [盔甲HUD]invhud.forge.1.19.4-3.4.18.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [紧致装饰]supplementaries-1.19.4-2.4.15 (1).jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [结构添加]dungeons-and-taverns-2.0.1.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [聊天]chat_heads-0.10.27-forge-1.19.4.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [苹果皮]appleskin-forge-mc1.19.4-2.5.1.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [落叶]Fallingleaves-1.19.4-2.1.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [金丝雀]canary-mc1.19.4-0.2.7.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [鞘翅]do-a-barrel-roll-2.7.4+1.19.4-forge.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file [音效]AmbientSounds_FORGE_v5.2.18_mc1.19.4.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file YungsApi-1.19.4-Forge-3.10.1.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file YungsBetterDungeons-1.19.4-Forge-3.4.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file YungsBetterJungleTemples-1.19.4-Forge-1.1.1.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file YungsBetterStrongholds-1.19.4-Forge-3.4.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:08] [main/INFO]: Found mod file YungsBetterWitchHuts-1.19.4-Forge-2.3.0.jar of type MOD with provider {mods folder locator at C:\Users\chenq\AppData\Roaming.minecraft\mods}
[18:11:09] [main/WARN]: Mod file C:\Users\chenq\AppData\Roaming.minecraft\libraries\net\minecraftforge\fmlcore\1.19.4-45.1.16\fmlcore-1.19.4-45.1.16.jar is missing mods.toml file
[18:11:09] [main/WARN]: Mod file C:\Users\chenq\AppData\Roaming.minecraft\libraries\net\minecraftforge\javafmllanguage\1.19.4-45.1.16\javafmllanguage-1.19.4-45.1.16.jar is missing mods.toml file
[18:11:09] [main/WARN]: Mod file C:\Users\chenq\AppData\Roaming.minecraft\libraries\net\minecraftforge\lowcodelanguage\1.19.4-45.1.16\lowcodelanguage-1.19.4-45.1.16.jar is missing mods.toml file
[18:11:09] [main/WARN]: Mod file C:\Users\chenq\AppData\Roaming.minecraft\libraries\net\minecraftforge\mclanguage\1.19.4-45.1.16\mclanguage-1.19.4-45.1.16.jar is missing mods.toml file
[18:11:09] [main/INFO]: Found mod file fmlcore-1.19.4-45.1.16.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/INFO]: Found mod file javafmllanguage-1.19.4-45.1.16.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/INFO]: Found mod file lowcodelanguage-1.19.4-45.1.16.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/INFO]: Found mod file mclanguage-1.19.4-45.1.16.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/INFO]: Found mod file client-1.19.4-20230314.122934-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/INFO]: Found mod file forge-1.19.4-45.1.16-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@f325091
[18:11:09] [main/WARN]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File:
[18:11:09] [main/INFO]: Found 2 dependencies adding them to mods collection
[18:11:09] [main/INFO]: Found mod file MixinExtras-0.3.1.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@4d8539de
[18:11:09] [main/INFO]: Found mod file mixinextras-forge-0.2.0-beta.6.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@4d8539de
[18:11:09] [main/ERROR]: Missing or unsupported mandatory dependencies:
Mod ID: 'cloth_config', Requested by: 'coordinatesdisplay', Expected range: '10.0.96+', Actual version: '[MISSING]'
Mod ID: 'cloth_config', Requested by: 'simplesplashscreen', Expected range: '*', Actual version: '[MISSING]'
[18:11:10] [main/INFO]: OptiFineTransformationService.transformers
[18:11:10] [main/INFO]: Targets: 410
[18:11:11] [main/INFO]: additionalClassesLocator: [optifine., net.optifine.]
[18:11:12] [main/INFO]: Compatibility level set to JAVA_17
[18:11:12] [main/INFO]: Launching target 'forgeclient' with arguments [--version, Minecraft, --gameDir, C:\Users\chenq\AppData\Roaming.minecraft, --assetsDir, C:\Users\chenq\AppData\Roaming.minecraft\assets, --uuid, 75ab415854864cf789de5d2df05b44c3, --username, Hello_QiHang, --assetIndex, 3, --accessToken, ????????????????, --clientId, ${clientid}, --xuid, ${auth_xuid}, --userType, msa, --versionType, HMCL 3.5.5, --width, 1920, --height, 1080, --tweakClass, optifine.OptiFineTweaker]
[18:11:13] [main/INFO]: Loaded configuration file for Canary: 125 options available, 0 override(s) found
[18:11:16] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.1).
[18:11:20] [main/WARN]: Error loading class: me/shedaniel/autoconfig/ConfigHolder (java.lang.ClassNotFoundException: me.shedaniel.autoconfig.ConfigHolder)
minecraft-exported-crash-info-2024-01-26T18-11-27.zip

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

Reproduce the Minecraft launch using the listed Forge 45.1.16, OptiFine, and missing cloth_config dependency, then inspect HMCL's crash-analysis logic and how it interprets the launcher log. Compare the detected missing-dependency fields with the reported Forge–OptiFine incompatibility; done means the primary explanation identifies missing mandatory dependencies accurately.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.