Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-235762

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.2 Pre-release 2
    • 1.17.1
    • None
    • Plausible
    • (Unassigned)

      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.

            Unassigned Unassigned
            fayer3 Bayer Florian
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: