Skip to content

[1.21.1 NeoForge] Early class loading conflict with Sable causes MixinTargetAlreadyLoadedException on boot #465

Description

@SAS1911

Checklist

  • I have read the text above
  • I have read the FAQ section before submitting a new issue
  • I have searched the issue tracker for identical issues before submitting a new issue
  • The issue occurs when only Shoulder Surfing Reloaded and it's required dependencies are installed, and my game logs and screenshots will reflect that

Description

When launching Minecraft 1.21.1 on NeoForge with both Shoulder Surfing Reloaded and Sable installed, the game fails to reach the main menu and crashes during the Mixin preparation phase. The crash is caused by a MixinTargetAlreadyLoadedException when Sable attempts to apply its compatibility mixin (sable.mixins.json:compatibility.shouldersurfing.ShoulderSurfingImplMixin) to com.github.exopandora.shouldersurfing.client.ShoulderSurfingImpl. The target class is loaded into memory too early in the boot sequence before Sable's mixin config can be applied.

Steps to reproduce

  1. Installed Shoulder Surfing Reloaded and Sable on Minecraft 1.21.1 using NeoForge.
  2. Launched the game instance via Prism Launcher.
  3. The launch process halted during early initialization before displaying the title screen, throwing an InvocationTargetException / MixinApplyError.
  4. Confirmed the conflict by disabling Shoulder Surfing Reloaded, which allowed the pack to boot successfully past the Mixin preparation phase.

Minecraft version

1.21.1

Game logs

[main/FATAL] [mixin/]: Mixin prepare for mod sable failed preparing compatibility.shouldersurfing.ShoulderSurfingImplMixin in sable.mixins.json: org.spongepowered.asm.mixin.transformer.throwables.MixinTargetAlreadyLoadedException Critical problem: sable.mixins.json:compatibility.shouldersurfing.ShoulderSurfingImplMixin from mod sable target com.github.exopandora.shouldersurfing.client.ShoulderSurfingImpl was loaded too early. org.spongepowered.asm.mixin.transformer.throwables.MixinTargetAlreadyLoadedException: Critical problem: sable.mixins.json:compatibility.shouldersurfing.ShoulderSurfingImplMixin from mod sable target com.github.exopandora.shouldersurfing.client.ShoulderSurfingImpl was loaded too early.

Additional information

Although this conflict has to do with a separate mod, I thought to report it here since it has to do with the loading priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions