Mojira Archive
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.

Fixed

Bayer Florian

2021-09-02, 02:43 AM

2023-09-07, 02:19 PM

2023-09-07, 02:19 PM

2

1

Plausible

(Unassigned)

1.17.1

1.20.2 Pre-release 2