Concurrent Chunk Management Engine

Concurrent Chunk Management Engine

2M Downloads

IllegalStateException: Entity is already tracked! when pre-generating with Chunky

GuidoMasterX opened this issue ยท 2 comments

commented

Describe the bug
I am encountering a recurring java.lang.IllegalStateException: Entity is already tracked! error when attempting to pre-generate a world using Chunky on my Fabric server. This error appears to be caused by a conflict between C2ME and Chunky, specifically when Chunky is creating new chunks.

The server remains operational, but these errors spam the console and seem to indicate an issue with how entities are being handled during the world generation process.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a Fabric 1.21.1 server with C2ME and Chunky.
  2. Start the world pre-generation process using a Chunky command (e.g., chunky start).
  3. Observe the server console for the IllegalStateException error.

Expected behavior
No such errors should appear in the server console.

Screenshots
N/A

Runtime info:

  • OS: Linux (Server hosting company)
  • Minecraft version: 1.21.1
  • Fabric Loader version: 0.16.14
  • Fabric API version: 0.116.4
  • Mod version: 0.3.0 Alpha 0.320
  • Mod branch: N/A
  • Chunky version: 1.4.23

Crash reports / logs
Example of error: https://pastebin.com/ixCfFjBA

Other mods
https://pastebin.com/JX04rdCv

Checklist

  • I am using the official version of the mod.
  • I tried the latest development version but the issue persists.
  • I searched for similar open issues and could not find an existing bug report on this.

Additional context
C2ME Issue 12-07-25 Full Log.log

commented

It is likely an issue in mods other than C2ME and chunky. Please try finding the minimum set of mods reproducible.

commented

It is likely an issue in mods other than C2ME and chunky. Please try finding the minimum set of mods reproducible.

After doing some troubleshooting, I have found the mod responsible. It was Guard Villagers, which I temporarily disabled during the pre-generation. I'm unsure why it caused these errors; it could be due to poor optimization.

Thank you for the assistance!