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

Game crashes when trying to shift-click a chest into the inventory of a donkey whose chest is being removed

XMLWordPrintable

    • Confirmed
    • Crash
    • Very Important

      The game crashes when you shift-click on a chest while you are looking at a donkey's inventory and while a command block removes the chest from a donkey.

      To reproduce

      1. Summon and tame a donkey
      2. Put a chest onto the donkey
      3. Run
        /data modify entity @e[type=minecraft:donkey,limit=1,sort=nearest] ChestedHorse set value 0b

        in a command block in order to remove the chest from the donkey.

            4. Set the command block to Repeat, Unconditional, and Always Active

            5.  Fill your inventory completely

            6. Open the donkey's inventory

            7. Shift-click on any item
              → The game crashes

      Stack trace

      20w46a: crash-2020-11-25_14.32.08-client.txt
      Description: Container click
      
      java.lang.IndexOutOfBoundsException: Index 44 out of bounds for length 38
      	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
      	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
      	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
      	at java.base/java.util.Objects.checkIndex(Objects.java:373)
      	at java.base/java.util.ArrayList.get(ArrayList.java:427)
      	at gj.get(SourceFile:46)
      	at bis.a(SourceFile:528)
      	at bjp.b(SourceFile:108)
      	at bis.b(SourceFile:267)
      	at bis.a(SourceFile:172)
      	at eaz.a(SourceFile:396)
      	at dsz.a(SourceFile:562)
      	at dsz.a(SourceFile:358)
      	at dnj.b(SourceFile:92)
      	at dsc.a(SourceFile:456)
      	at dnj.a(SourceFile:92)
      	at dnj.c(SourceFile:162)
      	at aol.execute(SourceFile:94)
      	at dnj.b(SourceFile:162)
      	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
      	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(SourceFile:115)
      	at dig.e(SourceFile:308)
      	at dni.e(SourceFile:1073)
      	at dni.e(SourceFile:688)
      	at net.minecraft.client.main.Main.main(SourceFile:215)
      

        1. crash-2020-11-25_14.32.08-client.txt
          4 kB
          [Mod] violine1101
        2. Fn F3 View.png
          372 kB
          SquashBugs_81
        3. Get A Donkey.png
          302 kB
          SquashBugs_81
        4. Put Command.png
          301 kB
          SquashBugs_81
        5. Shift-Click on the Chest.png
          326 kB
          SquashBugs_81
        6. The Game Should Crash.png
          501 kB
          SquashBugs_81

            mgatland [Mojang] Matthew Gatland
            Magmischief1234 SquashBugs_81
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: