Memory Leak of Client Level
pietro-lopes opened this issue ยท 2 comments
Bug description
This cache is leaking the level
Minecraft version
1.21.1
Mod version
1.21.1-1.1.19
Mod loader and version
NeoForge 21.1.28
Steps to reproduce
With EMI installed
- Join world
- Do some search on EMI
- Leave world to main screen
- Join world again
- Check memory for some hanging ClientLevel
Expected behavior
Should have a cleanup strategy to clear those cache on LevelEvent.Unload, maybe? Pick what you know it is best.
Log files
screenshot posted
Screenshots
No response
Also, some renderers are holding entity, you need to find a way to clean up if the level is unloaded.