Create Fabric

Create Fabric

7M Downloads

Memory leak in WorldAttached class

Rasmion opened this issue ยท 1 comments

commented

Describe the Bug

WorldAttached seems to have problems with removing unloaded worlds. Flywheel also has a WorldAttached class in which this bug is probably fixed, at least there are comments that suggest this.

Reproduction Steps

  1. Build some constraptions in your world
  2. Switch the world a few times
  3. Notice the memory increase

Expected Result

There should be no memory leak, which eventually leads to lag spikes and crashes.

Screenshots and Videos

net.minecraft.class_638 -> ServerLevel
grafik
grafik

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.0c

Minecraft Version

1.18.2

Other Mods

No response

Additional Context

No response

commented

An issue should be made to the forge repo.