RelativityMC/C2ME-fabric

Some connected chunks aren't ticking entities

Closed this issue · 5 comments

Describe the bug
Some (seemingly close-by/connected) chunks don't seem to properly tick entities. I was able to reproduce it on a fresh 1.21.2-rc1 server with just c2me after checking a couple chunks.

To Reproduce
Steps to reproduce the behavior:

  1. Launch a server with latest c2me
  2. Either Fly around with elytra and rockets (they wont run out in bugged chunks)
  3. Or check chunks manually by spawning an entity and interacting (eg hitting it) with it.

Expected behavior
Entities tick as they do in vanilla

Runtime info (please complete the following information):

  • OS: Ubuntu 22.04.5 LTS
  • Minecraft version: 1.21.2-rc1
  • Mod version: 0.3.0+alpha.0.325

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
I am getting

[12:44:41] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 2121 chunks to unload
[12:44:43] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:45] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:47] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:49] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:51] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:53] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
[12:44:55] [Server thread/INFO]: ServerLevel[world]/minecraft:overworld: waiting for 1467 chunks to unload
// and so on 1467...

on shutdown
2024-10-22_14 55 47
2 pigs are ticking -> swimming, the rest are not ticking

  • The issue did not happen in 0.3.0+alpha.0.240 devbuild for 1.21.2-pre3
  • The broken / working chunks are different after (kill) reboot

Can you provide full logs and stacktraces of all threads while it is bugged out (with jstack -l pid)?

Bisected to 49bc6b9

Try reproduce with gcFreeChunkSerializer turned on in the config.

Resolved in c8ce82c