mojira.dev
MC-299071

Memory Leak in ItemStackRenderState leads to OutOfMemoryError

We have a world with very many ItemDisplays (a few thousand) that contain custom heads. When standing there for some time more and more memory is used until minecraft finally crashes with an out of memory error.

I created a heap dump of the client and found that in ItemStackRenderState (class hog), the ArrayList modelIdentityElements (field e) contains millions of items and so filled the whole heap.

This bug did not exist in 1.21.5

Attachments

Comments 0

No comments.

Brokkonaut

(Unassigned)

Plausible

(Unassigned)

1.21.6

1.21.7 Release Candidate 1

Retrieved