ViaFabric

ViaFabric

709k Downloads

[1.12] Memory leak

Tomatobird8 opened this issue ยท 3 comments

commented

Memory usage accumulates and framerate decreases as the world is traveled. This seems to be an issue with ChunkNibbleArrays not being cleared and lighting being processed in all of those chunks.

This issue occurs on ViaFabric client connected to a vanilla 1.12.2 server as well as on a fabric client without ViaFabric, connected to a 1.12.2 PaperMC server with ViaVersion. Possibly other setups as well but these are what I've tested.

To reproduce, using a 1.17.1 client join a 1.12.2 server and explore the world for a while. May take more than 100k blocks

Heap dump memory leak suspect report using Memory Analyzer:
01
02

commented

Does installing Sodium fixes it?

commented

Does installing Sodium fixes it?

No. Memory leak/FPS Drops happen with and without sodium.

commented

Decided to try and recreate this problem on my new-current linux machine and this time it's not the case.