Powah! (Rearchitected)

Powah! (Rearchitected)

34M Downloads

Massive Memory Leak

Closed this issue ยท 0 comments

commented

Version: (make sure you are on the latest version before reporting):

  • Minecraft: 1.21.1
  • Forge: Neo 21.1.148
  • Powah: 6.2.3

Issue description:

I got a heapdump from a player that was having some memory issues.

Steps to reproduce:

If you want his world, contact me.

Is this a crash?, please include it here: (Recommended to use Gist)

199 Client Level instances on his dump

Image

184 on powah stuff

Image

Example of one path to GC root:

Image

Issue is prob here because CableTile also holds a level so you can't free the key of the WeakhashMap

private static final Map<Level, Long2ObjectMap<Long2ObjectMap<CableTile>>> loadedCables = new WeakHashMap<>();