Mojira Archive
MC-5520

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

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.

Workaround

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.