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

Memory leak switching texture packs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.5, Minecraft 1.5.1, Snapshot 13w16a
    • Fix Version/s: Snapshot 13w18c
    • Labels:
    • Environment:

      Java 1.6.0_43, Linux x86_64

    • Confirmation Status:
      Confirmed

      Description

      Switching texture packs several times eventually exhausts all available memory and crashes the game. Specifically, direct memory (as in ByteBuffer.allocateDirect), not the Java heap, fills up. This happens even without loading up a world.

      To reproduce this more easily, limit the amount of memory available to Java by adding -Xmx512M -Xms512M -XX:MaxDirectMemorySize=512M to the command line.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                kahr Kahr
              • Votes:
                11 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: