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

Crash when toggling fullscreen mode: Keyboard must be created before you can read events


    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w09a, Snapshot 13w09b, Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w24a, Snapshot 13w24b, Snapshot 13w25a, Snapshot 13w25b, Snapshot 13w25c, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w36a, Minecraft 13w36b, Minecraft 13w39b, Minecraft 13w41b, Minecraft 13w42b, Minecraft 1.7.2, Minecraft 13w48b, Minecraft 1.7.4, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w34a, Minecraft 1.8.9, Minecraft 15w50a, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12
    • Operating System: Mac OS X (x86_64) version 10.8.2
      Java Version: 1.6.0_37, Apple Inc.
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
    • Community Consensus

      The bug

      Minecraft crashes when you toggle fullscreen mode.

      Description: Updating screen events
      java.lang.IllegalStateException: Keyboard must be created before you can read events
      	at org.lwjgl.input.Keyboard.next(Keyboard.java:475)
      	at bho.p(SourceFile:386)
      	at bes.t(SourceFile:1586)
      	at bes.av(SourceFile:970)
      	at bes.a(SourceFile:398)
      	at net.minecraft.client.main.Main.main(SourceFile:124)

      Possible causes

      This list contains some of the possible causes for this bug. It is not recommended to skip GPU driver updates or similar since it is not guaranteed that this is really causing this bug.


      This comment, this comment and MC-113713 suggest setting the refresh rate to exactly 60 hz fixes this problem.

      Maybe: Comments in this reddit post suggest that resizing the window while the main menu is open before enabling fullscreen mode prevents this issue from happening.

            fry [Mojang] Georgii Gavrichev
            jrtc27 James Clarke
            14 Vote for this issue
            18 Start watching this issue