Accessories

Accessories

4M Downloads

Mixin conflict between Accessories, Lithium, and OWO on Minecraft’s DataComponentMap → infinite patch/derive loop.

TommyC81 opened this issue · 2 comments

commented

Crashes in Minecolonies/Structurize appears to indicate a possibility for infinite recursion in accessories in conjunction with other mods.

With assistance from o4-mini-high:

java.lang.StackOverflowError: Unexpected error
  at ReferencePipeline.toArray(ReferencePipeline.java:622)
  …
  at PatchedDataComponentMap.handler$…restorePatch(PatchedDataComponentMap.java:609)
  at DerivedComponentMap.derive(DerivedComponentMap.java:33)
  at ItemStack.<init>(ItemStack.java:265)
  …

This infinite recursion between PatchedDataComponentMap.restorePatch(...) (from the Accessories and Lithium mixins) and DerivedComponentMap.derive(...) (from OWO) during ItemStack initialization is overflowing the stack ​. A nearly identical trace shows up again at 19:00:17.

Root causes

  • Mixin conflict between Accessories, Lithium, and OWO on Minecraft’s DataComponentMap → infinite patch/derive loop.
    
commented

Related owo-lib bug report: wisp-forest/owo-lib#380

commented

Has been resolved. Appears the error was in Structurize.