Easy Magic [Forge & Fabric]

Easy Magic [Forge & Fabric]

43M Downloads

[Crash]: Rerolling enchantments on book/shovel/pickaxe crashes server (modpack "Dungeon heroes RPG series")

H0401 opened this issue ยท 4 comments

commented

Mod Loader (Required)

Fabric

Minecraft Version(s) (Required)

1.21.1

Mod Version(s) (Required)

v21.1.0

Notes (Required)

  1. Opens enchanting table
  2. Puts in book/pickaxe/shovel and lapis
  3. Starts rerolling enchantments
  4. Then randomly server crashes

Seems so that only pickaxes/shovels/books can trigger this crash since with weapons it didnt happen.

I am sorry for that i do not own the crash report, for some reason my server only generates logs and has no crash-reports folder. crash starts at line 1244 in the log.

Crash Report (Required)

https://gist.github.com/H0401/927c8d179e3fb048f986689a56d2e937

latest.log (Optional)

https://gist.github.com/H0401/927c8d179e3fb048f986689a56d2e937

commented

Can you reproduce the issue with only Easy Magic installed?

commented

Sorry i missclicked about fixing the issue.

I didnt manage to reproduce the crash on server with only easy magic and easy anvils installed same version of everything.

I gave the logs to chatgpt and he mentioned that some method is trying to remove() from immutable list.

it also mention the list might become immutable if:

  • The tool or book has specific metadata, (most likely not the cause happens even with recently crafted diamond shovel)
  • There's a conflicting enchantment, (no idea whats a conflicting enchantment)
  • Or the enchantability level is incompatible, (no idea about this either)
  • Or a mod (like Spell Engine, Wizards, Trinkets, etc.) has injected enchantments incorrectly. (most of the enchants from these mods appear to be functioning correctly)

Hope this atleast helps a little.

Edit: For some reason after changing "enchantment_hint" to "ALL" and restarting the server. The error still appears in the console but it doesnt crash the server. Honestly i have absolute no idea whats going on now...

commented

It's a mod conflict, but which mod is the issue isn't clear from the logs.

Please do a binary search to find out which mod is conflicting. You always remove half of your mods, again and again, until you find which one is conflicting.

commented

Mod "Enchant Limiter" seems to be a problem. It works fine without it. I think, when you enchant book, it can get 4 enchantments, but Limiter is only 3 enchantments. Maybe easy magic forces it to be 4 so it just crashes?