mojira.dev
MC-62127

Turning off VSync crashes the game

---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 16.07.14 18:08
Description: Updating screen events

org.lwjgl.opengl.OpenGLException: Stack underflow (1284)
	at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
	at org.lwjgl.opengl.WindowsContextImplementation.setSwapInterval(WindowsContextImplementation.java:113)
	at org.lwjgl.opengl.ContextGL.setSwapInterval(ContextGL.java:232)
	at org.lwjgl.opengl.DrawableGL.setSwapInterval(DrawableGL.java:86)
	at org.lwjgl.opengl.Display.setSwapInterval(Display.java:1129)
	at org.lwjgl.opengl.Display.setVSyncEnabled(Display.java:1142)
	at brq.a(SourceFile:560)
	at bta.a(SourceFile:83)
	at bsw.b(SourceFile:41)
	at bvr.a(SourceFile:92)
	at bvf.k(SourceFile:405)
	at bvr.k(SourceFile:71)
	at bvf.p(SourceFile:382)
	at bqx.q(SourceFile:1458)
	at bqx.ap(SourceFile:866)
	at bqx.a(SourceFile:305)
	at net.minecraft.client.main.Main.main(SourceFile:120)


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

-- Head --
Stacktrace:
	at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
	at org.lwjgl.opengl.WindowsContextImplementation.setSwapInterval(WindowsContextImplementation.java:113)
	at org.lwjgl.opengl.ContextGL.setSwapInterval(ContextGL.java:232)
	at org.lwjgl.opengl.DrawableGL.setSwapInterval(DrawableGL.java:86)
	at org.lwjgl.opengl.Display.setSwapInterval(Display.java:1129)
	at org.lwjgl.opengl.Display.setVSyncEnabled(Display.java:1142)
	at brq.a(SourceFile:560)
	at bta.a(SourceFile:83)
	at bsw.b(SourceFile:41)
	at bvr.a(SourceFile:92)
	at bvf.k(SourceFile:405)
	at bvr.k(SourceFile:71)
	at bvf.p(SourceFile:382)

-- Affected screen --
Details:
	Screen name: bvr

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [cgh['LuxiKeks'/65, l='MpServer', x=566,78, y=4,00, z=470,11]]
	Chunk stats: MultiplayerChunkCache: 441, 441
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: 468,00,4,00,481,00 - World: (468,4,481), Chunk: (at 4,0,1 in 29,30; contains blocks 464,0,480 to 479,255,495), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 1721917 game time, 6000 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: 27 total; [wz['entity.LeashKnot.name'/64, l='MpServer', x=548,50, y=4,50, z=503,50], abd['Bat'/6023961, l='MpServer', x=516,50, y=6,09, z=461,75], abd['Bat'/5216775, l='MpServer', x=552,44, y=18,00, z=474,25], abd['Bat'/4091824, l='MpServer', x=517,75, y=8,08, z=461,50], abd['Bat'/7619493, l='MpServer', x=515,66, y=4,11, z=458,44], afb['Slime'/9503104, l='MpServer', x=641,50, y=4,00, z=531,50], abd['Bat'/4579159, l='MpServer', x=517,94, y=4,51, z=459,94], abd['Bat'/3819693, l='MpServer', x=516,17, y=10,16, z=461,17], abd['Bat'/7619501, l='MpServer', x=514,25, y=5,44, z=460,38], abq['Rabbit'/28, l='MpServer', x=511,28, y=4,00, z=531,84], aby['Sheep'/29, l='MpServer', x=501,13, y=4,00, z=535,88], abd['Bat'/7619497, l='MpServer', x=517,75, y=12,38, z=461,75], abd['Bat'/7619498, l='MpServer', x=518,75, y=6,09, z=458,25], cgh['LuxiKeks'/65, l='MpServer', x=566,78, y=4,00, z=470,11], abd['Bat'/6497920, l='MpServer', x=514,84, y=6,95, z=460,30], abd['Bat'/36, l='MpServer', x=516,59, y=11,44, z=460,13], abd['Bat'/41, l='MpServer', x=515,25, y=8,91, z=461,75], abd['Bat'/50, l='MpServer', x=554,75, y=19,10, z=474,25], abq['Rabbit'/51, l='MpServer', x=549,69, y=4,00, z=504,06], aby['Sheep'/52, l='MpServer', x=544,59, y=4,00, z=538,81], aby['Sheep'/53, l='MpServer', x=554,34, y=4,00, z=545,75], abg['Chicken'/54, l='MpServer', x=599,34, y=4,00, z=515,56], abg['Chicken'/55, l='MpServer', x=613,63, y=4,00, z=444,53], abg['Chicken'/58, l='MpServer', x=638,53, y=4,00, z=519,25], abg['Chicken'/61, l='MpServer', x=635,66, y=4,00, z=513,59], abd['Bat'/8815352, l='MpServer', x=516,50, y=4,09, z=457,28], abg['Chicken'/62, l='MpServer', x=645,31, y=4,00, z=512,59]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at ccg.a(SourceFile:308)
	at bqx.b(SourceFile:2215)
	at bqx.a(SourceFile:314)
	at net.minecraft.client.main.Main.main(SourceFile:120)

-- System Details --
Details:
	Minecraft Version: 14w29a
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_05, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 187128200 bytes (178 MB) / 1247281152 bytes (1189 MB) up to 1789919232 bytes (1707 MB)
	JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -Xmn1G
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 14w29a
	LWJGL: 2.9.1
	OpenGL: GeForce GT 650M/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation
	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.

	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: [Faithful.zip]
	Current Language: English (UK)
	Profiler Position: N/A (disabled)

Affects:

  • GeForce GT 650M/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation (LuxiKeks)

  • AMD Radeon HD 6670 GL version 4.4.12874 Compatibility Profile Context 14.100.0.0, ATI Technologies Inc. (Martin Hafis)

Does not affect:

  • GeForce GT 650M/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation ([Mod] Galaxy_2Alex)

Linked issues

Attachments

Comments 14

I'm using the latest stable Geforce driver.

Unable to reproduce with the exact same graphics card.

...I'm a derp today, sorry.
@topic: 4.4.0 is the latest driver

It crashes my game too. @AMD GPU

Also happens when disabling VSync on nVidia Geforce 635m

4 more comments

Still an issue with 14w29b. GeForce GTX 780. Occurs when turning ON Vsync. See attached crash dump file.

It is fixed for the next snapshot.

Enabling Vsync still crashes the game for me as of 14w30c.

Yep, confirmed on 14w30c, except the error this time is:
Invalid framebuffer operation (1286)

Also I see, yet again, first comment is Blah giving useless and incorrect* information. Blah should be banned off here.

*although it may be partially correct that a driver is out of date or broken, it occurs on many different GPUs with many different drivers, as such cannot be blamed on one single bad driver.

Temporary workaround: only change graphics options from the title screen, not while in a world. Seems to occur because the world renderer is saying to the graphics driver, 'render this blablabla' while the driver is in the middle of changing things and refreshing the Minecraft renderer. Code fix: implement something which pauses the render cycle when the game itself is paused, and simply use the most recent rendered frame.

PS: When I change the VSync setting while not in a world, then returning into a world, the game does NOT crash. Therefore, it is not an issue with the internal VSync function, but, as I already stated, an issue with switching modes while rendering a world.

LuxiKeks

(Unassigned)

Community Consensus

Minecraft 14w29a, Minecraft 14w29b

Minecraft 14w30a

Retrieved