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

    Details

    • Confirmation Status:
      Confirmed
    • Category:
      Crash
    • Mojang Priority:
      Very Important

      Description

      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)
      

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: