http://bugs.winehq.org/show_bug.cgi?id=30659
Bug #: 30659 Summary: GTAVC crashes when car is visible at some angle Product: Wine Version: 1.5.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: b7.10110111@gmail.com Classification: Unclassified Regression SHA1: 29893d81621b50e3acca1f2c34767867a9256ecb
Created attachment 40134 --> http://bugs.winehq.org/attachment.cgi?id=40134 Console output after crash
When I look at the car from behind at some angles, press ESC to go to game menu, and then ESC again to resume playing, GTAVC crashes. Here's the screenshot of how this looks: http://simplest-image-hosting.net/png-0-screenshot-05122012-061250-pm . My video card is GeForce GTX 460, driver is binary 302.07.
This is a regression, with this commit as the result (I'm not very sure it's right result, because the crash is not 100% reproducible, though I've done my best to check its validity): 29893d81621b50e3acca1f2c34767867a9256ecb is the first bad commit commit 29893d81621b50e3acca1f2c34767867a9256ecb Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed May 2 21:47:58 2012 +0200
wined3d: Determine index buffer location based on vertex buffer locations.
:040000 040000 fc5dd836116dec3047a41fe7b28c22d4ef4261c8 72a5445b837c0fa479e611f985543f319d528c0a M dlls
This might be in fact nvidia bug, since the crash appears in libnvidia-glcore.so.302.07, but who knows, maybe it's just invalid data passed to GL.
http://bugs.winehq.org/show_bug.cgi?id=30659
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=30659
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30659
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2012-05-21 13:54:01 CDT --- I'm having some trouble reproducing this, but do the patches attached to bug 30607 make any difference here?
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #2 from Ruslan b7.10110111@gmail.com 2012-05-21 15:43:00 CDT --- (In reply to comment #1) No, neither of patches help (tried first one, and first+second).
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #3 from Henri Verbeet hverbeet@gmail.com 2012-05-22 08:51:46 CDT --- Could you create a "+d3d9,+d3d,+seh,+tid" log of the crash with those patches applied?
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #4 from Ruslan b7.10110111@gmail.com 2012-05-22 12:07:46 CDT --- Created attachment 40270 --> http://bugs.winehq.org/attachment.cgi?id=40270 Log as requested
As it seems to generate lots of output each frame, it's quite large: 450M. Compressed it's 7.9M, so bugzilla won't let me attach it. So I only attach last 1M of log (24K download). Please let me know if you need the whole thing.
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #5 from Henri Verbeet hverbeet@gmail.com 2012-05-22 12:18:40 CDT --- (In reply to comment #4)
0009:trace:d3d:nvts_activate_dimensions glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, ...) call ok nvidia_texture_shader.c / 53
Do you have any custom patches or registry settings applied? It may not be the cause of the crash, but you shouldn't hit this code with your hardware and drivers.
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #6 from Ruslan b7.10110111@gmail.com 2012-05-22 12:23:23 CDT --- (In reply to comment #5)
Do you have any custom patches or registry settings applied? It may not be the cause of the crash, but you shouldn't hit this code with your hardware and drivers.
No patches apart from yours (btw, the first one appears to be already present in current git - failed to apply because of this). As for registry settings, here's the list of them for Wine\Direct3D: Multisampling enabled OffscreenRenderingMode fbo PixelShaderMode enabled UseGLSL enabled VideoMemorySize 1024
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2012-05-22 12:24:54 CDT --- And yeah, I'll need the entire log, with +d3d8 instead of +d3d9 if possible, I forgot GTAVC is a d3d8 game. You can mail it if that's easier.
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #8 from Henri Verbeet hverbeet@gmail.com 2012-05-22 12:29:18 CDT --- (In reply to comment #6)
No patches apart from yours (btw, the first one appears to be already present in current git - failed to apply because of this).
Yeah, the first one is already in git, second one should go in today or tomorrow.
As for registry settings, here's the list of them for Wine\Direct3D: Multisampling enabled OffscreenRenderingMode fbo PixelShaderMode enabled UseGLSL enabled VideoMemorySize 1024
Those should all be the default values already, except perhaps VideoMemorySize.
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #9 from Ruslan b7.10110111@gmail.com 2012-05-22 12:33:09 CDT --- (In reply to comment #7)
And yeah, I'll need the entire log, with +d3d8 instead of +d3d9 if possible, I forgot GTAVC is a d3d8 game. You can mail it if that's easier.
Yeah, I think I'll mail it to you. With d3d8 instead of d3d9 the crash is harder to catch, so the log gets 1.1G in size. I'll mail it as soon as compression finishes :)
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #10 from Henri Verbeet hverbeet@gmail.com 2012-05-28 07:50:54 CDT --- Created attachment 40314 --> http://bugs.winehq.org/attachment.cgi?id=40314 patch
(In reply to comment #9)
0009:trace:d3d:wined3d_dll_init appname = [gta-vc.exe\Direct3D] 0009:trace:d3d:wined3d_dll_init Disable vertex shaders 0009:trace:d3d:wined3d_dll_init Disable pixel shaders
It looks like you have vertex and pixel shaders disabled, perhaps through an application specific registry key. For some reason disabling those makes it much easier to reproduce this bug, although I did manage to make it crash eventually without those settings just by playing through the game for a good while.
Does the attached patch make it any better?
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #11 from Ruslan b7.10110111@gmail.com 2012-05-28 08:05:08 CDT --- (In reply to comment #10)
Does the attached patch make it any better?
Yes, I couldn't reproduce the crash after patching, having done several game restarts and rechecks. So, seems to fix the problem.
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #12 from GyB gyebro69@gmail.com 2012-05-28 08:55:33 CDT --- *** Bug 30774 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=30659
--- Comment #13 from Henri Verbeet hverbeet@gmail.com 2012-05-29 14:36:22 CDT --- Should be fixed by aa71065d9b4456cfd9099aa5fca70b711f84f217.
http://bugs.winehq.org/show_bug.cgi?id=30659
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |aa71065d9b4456cfd9099aa5fca | |70b711f84f217 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #14 from Ruslan b7.10110111@gmail.com 2012-05-30 10:30:35 CDT --- Confirming that it's fixed.
http://bugs.winehq.org/show_bug.cgi?id=30659
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2012-06-08 15:28:35 CDT --- Closing bugs fixed in 1.5.6.