Very Many Players (Fabric)

Very Many Players (Fabric)

2M Downloads

Latest Version of VMP has Single Player Worlds Freeze after ~5 Seconds

BorretSquared opened this issue ยท 2 comments

commented

Describe the bug
When booting the game, and joining a world, after around 4 seconds and loading chunks, the game slowly goes to a halt after around 5 seconds of decreases in frame rate, peaking in a halt. The game does not crash and must be closed via kill.

To Reproduce
Steps to reproduce the behavior:

  1. Boot the game and immediately enter a single player world
  2. Experience the game freezing.

Expected behavior

The game runs as expected and does not experience a freeze after brief gameplay.

Screenshots

Runtime info (please complete the following information):

  • OS: Arch Linux
  • Minecraft version: 1.21.4
  • Mod version: 0.2.0+beta.7.192
  • Mod branch: (fill this if you are not using the default ver branches)

Crash reports / logs

https://mclo.gs/labiXtU
Other mods

https://pastebin.com/nUs6G9vp
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
Based on the log and nature of the freeze, I assume this comes from an infinite loop where entity tracking is not escaped, though my analysis may be incorrect.

Here is the specific thread dump I am referring to:
"Server thread" prio=7 Id=118 RUNNABLE at knot//it.unimi.dsi.fastutil.objects.ReferenceLinkedOpenHashSet.<init>(ReferenceLinkedOpenHashSet.java:133) at knot//it.unimi.dsi.fastutil.objects.ReferenceLinkedOpenHashSet.<init>(ReferenceLinkedOpenHashSet.java:151) at knot//com.ishland.vmp.common.maps.AreaMap$RawObjectLinkedOpenIdentityHashSet.<init>(AreaMap.java:263) at knot//com.ishland.vmp.common.maps.AreaMap.lambda$new$0(AreaMap.java:30) ... at knot//com.ishland.vmp.common.maps.AreaMap.add(AreaMap.java:86) at knot//com.ishland.vmp.common.playerwatching.NearbyEntityTracking.addEntityTrackerAreaMap(NearbyEntityTracking.java:77) at knot//com.ishland.vmp.common.playerwatching.NearbyEntityTracking.tickStaging(NearbyEntityTracking.java:205) at knot//com.ishland.vmp.common.playerwatching.NearbyEntityTracking.tick(NearbyEntityTracking.java:153) at knot//net.minecraft.class_3898.method_18727(class_3898.java:6898) // This is ServerWorld.tickEntities() or similar

commented

Try reproduce with just vmp on a fresh world.

commented

Error doesn't happen on a fresh instance on same version, realistically a mod incompatibility. Would you like me to test which specific mod has an incompatibility? (if any)