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

Memory leak switching texture packs

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • Minecraft 1.5, Minecraft 1.5.1, Snapshot 13w16a
    • Snapshot 13w18c
    • Java 1.6.0_43, Linux x86_64
    • 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

        1. crash-2013-03-09_15.40.54-client.txt
          3 kB
          Kahr
        2. crash-2013-03-10_11.21.04-client.txt
          3 kB
          Kahr

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: