mojira.dev
MC-235762

Screenshots wider than 16384 pixels causes a crash / java.lang.OutOfMemoryError: Out of stack space

Taking a screenshot that is wider than 16384 causes the game to crash with an out of memory error "Out of stack space".

this happens because the game y flips the screenshot with stack memory, which by default is limited to 64kb from lwjgl.

manually setting a higher stack memory amount with the jvm argument "-Dorg.lwjgl.system.stackSize=128" causes no crash.

Attachments

Comments 0

No comments.

fayer3

(Unassigned)

Plausible

(Unassigned)

1.17.1

1.20.2 Pre-release 2

Retrieved