Skip to content

[Bug-1.21.10-Fabric] Game Crash When Loading Modmenu Alone (fabric-screen-api-v1 Mixin Injection Failure) #945

@Aloneheaven

Description

@Aloneheaven

[1.21.10] Game Crash When Loading Modmenu Alone (fabric-screen-api-v1 Mixin Injection Failure)

Environment Information

  • Minecraft Version: 1.21.10
  • Fabric Loader Version: 0.18.3
  • Modmenu Version: 17.0.0-alpha.1
  • Java Version: Java 21
  • Operating System: Windows 11 Pro 64-bit (10.0, Build 26200) (26100.ge_release.240331-1435)
  • Number of Loaded Mods: Only Modmenu、Fabric API、Text Placeholder API (Mod Support Library)
  • Processor: 12th Gen Intel(R) Core(TM) i5-12450H (12 CPUs), ~2.0GHz
  • Memory: 16384MB RAM
  • Card name: Intel(R) UHD Graphics

Description

After installing the Modmenu mod alone and launching the game, a crash is triggered immediately. The core cause of the crash is a failed Mixin injection from the fabric-screen-api-v1 mod, which cannot find the target method method_25423(II)V. The game launches normally after removing Modmenu, confirming the issue is solely caused by the Modmenu mod.

Reproduction Steps

  1. Install Minecraft 1.21.10 with Fabric Loader 0.18.3.(Possess the Fabric API)
  2. Install Modmenu and its prerequisite libraries
  3. Launch the game, which triggers a crash with repeated Mixin injection failure errors in the log.

Core Error Log Snippet (Formatted Code Block)

[14:18:10] [Datafixer Bootstrap/ERROR]: Mixin apply for mod fabric-screen-api-v1 failed fabric-screen-api-v1.mixins.json:ScreenMixin from mod fabric-screen-api-v1 -> net.minecraft.class_437: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @Inject annotation on beforeInitScreen could not find any targets matching 'method_25423(II)V' in net/minecraft/class_437. No refMap loaded. [INJECT_PREPARE Applicator Phase -> fabric-screen-api-v1.mixins.json:ScreenMixin from mod fabric-screen-api-v1 -> Prepare Injections -> handler$dcc000$fabric-screen-api-v1$beforeInitScreen(IILorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse ->  -> Validate Targets]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on beforeInitScreen could not find any targets matching 'method_25423(II)V' in net/minecraft/class_437. No refMap loaded.

Actual Behavior

The game crashes immediately on launch. The log repeatedly outputs the aforementioned Mixin injection failure error, preventing access to the game's main menu.


Error_Log-2025-12-20.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions