Uploaded image for project: 'Minecraft'
  1. Minecraft
  2. MC-115204

Crash when canceling/changing recipe in recipe book with full inventory

    Details

    • Confirmation Status:
      Confirmed
    • Game Mode:
      Survival

      Description

      The bug

      This bug is where you have a full inventory and change/cancel a recipe in the recipe book. The crash occurs when the items try to go back into the inventory but can't due to the items in the inventory being filled by the items on the ground, leaving no room for the items to go.

      Steps to reproduce

      1. Have 36 stacks of wooden planks with 1 stack on the ground to be picked up.
      2. Stand on the stack on the ground and open the crafting menu.
      3. Select something that uses planks, such as a boat, but don't craft it. Notice how you pick up the existing planks off the ground, leaving no room for the one used in crafting to go.
      4. Select a different recipe, such as a bowl.
        → The game will crash.

      Crash report

      ---- Minecraft Crash Report ----
      // There are four lights!
      
      Time: 3/31/17 7:31 AM
      Description: Updating screen events
      
      java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.Arrays$ArrayList.set(Arrays.java:3846)
      	at em.set(SourceFile:47)
      	at act.a(SourceFile:447)
      	at bma.a(SourceFile:157)
      	at bma.a(SourceFile:84)
      	at bma.a(SourceFile:72)
      	at blv.a(SourceFile:648)
      	at blv.a(SourceFile:576)
      	at bkq.a(SourceFile:83)
      	at bjn.k(SourceFile:384)
      	at bjn.p(SourceFile:361)
      	at bgm.t(SourceFile:1570)
      	at bgm.av(SourceFile:956)
      	at bgm.a(SourceFile:396)
      	at net.minecraft.client.main.Main.main(SourceFile:123)
      
      
      A detailed walkthrough of the error, its code path and all known details is as follows:
      ---------------------------------------------------------------------------------------
      
      -- Head --
      Thread: Client thread
      Stacktrace:
      	at java.util.Arrays$ArrayList.set(Arrays.java:3846)
      	at em.set(SourceFile:47)
      	at act.a(SourceFile:447)
      	at bma.a(SourceFile:157)
      	at bma.a(SourceFile:84)
      	at bma.a(SourceFile:72)
      	at blv.a(SourceFile:648)
      	at blv.a(SourceFile:576)
      	at bkq.a(SourceFile:83)
      	at bjn.k(SourceFile:384)
      	at bjn.p(SourceFile:361)
      
      -- Affected screen --
      Details:
      	Screen name: bkq
      
      -- Affected level --
      Details:
      	Level name: MpServer
      	All players: 1 total; [bsm['Littleman9Mew2'/0, l='MpServer', x=34.03, y=4.00, z=-6.59]]
      	Chunk stats: MultiplayerChunkCache: 1089, 1089
      	Level seed: 0
      	Level generator: ID 01 - flat, ver 0. Features enabled: false
      	Level generator options: 
      	Level spawn location: World: (8,4,8), Chunk: (at 8,0,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
      	Level time: 5288900 game time, 41433997 day time
      	Level dimension: 0
      	Level storage version: 0x00000 - Unknown?
      	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
      	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
      	Forced entities: 3 total; [bsm['Littleman9Mew2'/0, l='MpServer', x=34.03, y=4.00, z=-6.59], abf['item.tile.wood.oak'/209, l='MpServer', x=34.88, y=4.00, z=-6.45], abf['item.tile.wood.oak'/162, l='MpServer', x=33.36, y=4.00, z=-6.82]]
      	Retry entities: 0 total; []
      	Server brand: vanilla
      	Server type: Integrated singleplayer server
      Stacktrace:
      	at bqk.a(SourceFile:365)
      	at bgm.b(SourceFile:2523)
      	at bgm.a(SourceFile:405)
      	at net.minecraft.client.main.Main.main(SourceFile:123)
      
      -- System Details --
      Details:
      	Minecraft Version: 17w13b
      	Operating System: Windows 8.1 (amd64) version 6.3
      	Java Version: 1.8.0_25, Oracle Corporation
      	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
      	Memory: 265428632 bytes (253 MB) / 685502464 bytes (653 MB) up to 2093809664 bytes (1996 MB)
      	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn512M
      	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
      	Launched Version: 17w13b
      	LWJGL: 2.9.4
      	OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.3355, Intel
      	GL Caps: Using GL 1.3 multitexturing.
      Using GL 1.3 texture combiners.
      Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
      Shaders are available because OpenGL 2.1 is supported.
      VBOs are available because OpenGL 1.5 is supported.
      
      	Using VBOs: Yes
      	Is Modded: Probably not. Jar signature remains and client brand is untouched.
      	Type: Client (map_client.txt)
      	Resource Packs: 1.11 INFINITUDE Redstone Dust Power 3D 64px.zip
      	Current Language: English (US)
      	Profiler Position: N/A (disabled)
      	CPU: 2x Intel(R) Celeron(R) CPU J1800 @ 2.41GHz
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Excited [Mojang] Maria Lemón
                Reporter:
                Littleman9Mew2 Littleman9Mew2
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: