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

The game crashes when navigating with arrow keys after changing key binds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w07a
    • 23w03a
    • None
    • Confirmed
    • Crash
    • Very Important
    • Platform

      The Bug:

      The game crashes when attempting to navigate up or down with the arrow keys on the keyboard after changing a key bind and leaving the last key on focus.

      Stack Trace:

      Description: keyPressed event handler
      
      java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 2
      	at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:77)
      	at els$a.a(SourceFile:159)
      	at els.a(SourceFile:66)
      	at emp.a(SourceFile:130)
      	at eqa.a(SourceFile:150)
      	at eqt.a(SourceFile:71)
      	at ejs.a(SourceFile:374)
      	at eqa.a(SourceFile:528)
      	at ejs.a(SourceFile:370)
      	at ejs.c(SourceFile:458)
      	at bbp.execute(SourceFile:102)
      	at ejs.b(SourceFile:458)
      	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
      	at org.lwjgl.system.JNI.invokeV(Native Method)
      	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
      	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:215)
      	at ejt.f(SourceFile:1229)
      	at ejt.e(SourceFile:786)
      	at net.minecraft.client.main.Main.a(SourceFile:244)
      	at net.minecraft.client.main.Main.main(SourceFile:51)

      Steps to Reproduce:

      1. Go to Settings > Controls > Key Binds
      2. Mouse over a key bind and Left click to change it.
      3. Select a new or the same key on the keyboard.
      4. Without changing the focus with the mouse to a different keybind, press the Up or Down arrow

      Observed Behavior:

      Observe the game closing unexpectedly.

      Expected Behavior:

      The game navigating to the previous or next key bind and not closing unexpectedly.

            Karaoglu [Mojang] Nilay Karaoglu
            mitko1239 Dimitar
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: