mojira.dev
MC-19939

W7 sleep mode causes game to crash

Closing the lid of my laptop puts it into sleep mode, this seems to cause the keyboard instance to be removed.

'fun' facts:
-I tested it on 1.6.1 pre-release, but I remember this happening before 1.6 too.
-It only happens in full screen mode, not in windowed mode.
-Only happened with sleep mode, hibernation didn't cause my minecraft client to crash
-Happens with and without resource pack/texture pack(in previous versions)

---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 30-6-13 19:56
Description: Unexpected error

java.lang.IllegalStateException: Keyboard must be created before you can query key state
	at org.lwjgl.input.Keyboard.isKeyDown(Keyboard.java:406)
	at atn.S(SourceFile:714)
	at atn.d(SourceFile:618)
	at net.minecraft.client.main.Main.main(SourceFile:101)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
	Minecraft Version: 1.6.1
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.7.0_17, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 43493296 bytes (41 MB) / 113573888 bytes (108 MB) up to 954466304 bytes (910 MB)
	JVM Flags: 1 total; -Xmx1G
	AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
	Suspicious classes: No suspicious classes found.
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.6.1
	LWJGL: 2.9.0
	OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Pack: Default
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

I guess catching and waiting for the next available device should suffice, but that's for you guys to decide 😉

Linked issues

Comments 6

Your Java version is out of date. Please update your Java to the latest version (1.7.0_25): http://www.java.com/en/download/. Keep in mind that when using a 32-bit browser on a 64-bit OS the automatic version detection will only show the 32-bit version of Java, the 64-bit version needs to be downloaded manually: http://www.java.com/en/download/manual.jsp.
Please report if the issue persists with the latest Java version.

I updated to 7u25 and as expected it still happens. The issue is between lwjgl and mc, as mc doesn't catch lwjgl's exception.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Added 1.6.2 as it still happens there

Is this still a concern in the current Minecraft version 1.7.2 / Launcher version 1.3.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

This ticket is incomplete without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. Should your issue return please submit a new complete ticket with all available information.
Please review the guidelines before reporting issues.

Tim potze

(Unassigned)

Unconfirmed

crash, windows

Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4

Retrieved