https://bugs.winehq.org/show_bug.cgi?id=39478
Bug ID: 39478 Summary: Call of Duty: United Offensive demo crashes at launch Product: Wine Version: 1.7.47 Hardware: x86-64 URL: http://www.gamewatcher.com/downloads/call-of-duty-unit ed-offensive-download/call-of-duty-united-offensive-de mo OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com CC: matteo.mystral@gmail.com Regression SHA1: 3c49a012c032759f015fca0594e8818040e26cf3 Distribution: ---
Launched with __GL_ExtensionStringVersion=17700
https://bugs.winehq.org/show_bug.cgi?id=39478
--- Comment #1 from Matteo Bruni matteo.mystral@gmail.com --- Anything in the plain log?
Also, does this game even use D3D at all? I'm pretty sure this is an OpenGL game.
Notice that __GL_ExtensionStringVersion only applies to the Nvidia binary drivers. For Mesa you need something like MESA_EXTENSION_MAX_YEAR=2004 or similar.
https://bugs.winehq.org/show_bug.cgi?id=39478
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com --- Created attachment 52615 --> https://bugs.winehq.org/attachment.cgi?id=52615 log
https://bugs.winehq.org/show_bug.cgi?id=39478
--- Comment #3 from Matteo Bruni matteo.mystral@gmail.com --- Created attachment 52617 --> https://bugs.winehq.org/attachment.cgi?id=52617 Fix
I see, the game actually creates a ddraw7 object to retrieve the VRAM size, apparently.
FWIW it does crash for me showing a "buffer overrun" messagebox unless I limit the GL extension string. In that case it works fine here on Mesa but it crashes on Nvidia as in the attached log.
It turns out that it's crashing in wined3d because of the __GL_ExtensionStringVersion thing. Specifically, we enable the ARB_DEBUG_OUTPUT flag because we get an OpenGL 4.5 context but the extension is disabled in the driver and the extension entrypoints are set to NULL.
The attached patch fixes it for me. Running the game with WINEDEBUG=-d3d should also workaround.
https://bugs.winehq.org/show_bug.cgi?id=39478
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=39478
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |08bd0ba28c1d56e6a159d9dc138 | |8be40c7dcafcc Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Andrey Gusev andrey.goosev@gmail.com --- Fixed by commit 08bd0ba28c1d56e6a159d9dc1388be40c7dcafcc
https://bugs.winehq.org/show_bug.cgi?id=39478
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.54.