Tested on 1.19.2 with lithium and 1.19.3 vanilla
Reproduction steps:
1. Place a repeating command block with command:
/summon piglin ~ ~30 ~2. Activate it and just wait (for about 40 minutes). Memory usage will increase slowly and after it reaches 100%, the game is stuck.
Maybe memory leak?
Besides, piglins crossing nether portal have the same problem, and it affects some cross-dimension zombified piglin farm design.
Attachments
Comments 5
Sorry for the confusion. Here is further explanation: the piglins are summoned 30 blocks above the floor and die from falling soon after sommoned. As you can see in the debug screen, there are only 52 entities when the game stucks.
You are right, this is a memory leak. In quite a literal sense.
With a constant flow of Piglin meeting their end, the ones higher up form memories of the ones that will die just before them.
Over time this forms a long chain of Piglin keeping the memories of their deceased ancestors and their ancestor's ancestors alive.
I would consider the resulting crash the revenge of the ghosts of all the tortured Piglin haunting your world.
What else did you expect? Every mob you spawn needs to be processed, it needs to move, target enemies, etc. You spawned 40*60*20=48000 piglins, that the game runs out of memory is on you.