http://bugs.winehq.org/show_bug.cgi?id=32081
Bug #: 32081 Summary: Civilization V fails to start a game without native d3dx9_36 (crashes in d3dx9_36/math.c) Product: Wine Version: 1.5.16 Platform: x86 OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: directx-d3dx9 AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: wine-bugs@winehq.org Classification: Unclassified
Created attachment 42290 --> http://bugs.winehq.org/attachment.cgi?id=42290 terminal output
I'm trying to run Civilization V with only built-in dlls (alldlls=builtin). The game loads to the main menu fine (except for videos), but Wine crashes when I start a new game. The scenario begins to load and the crash happens somewhere during the loading process. Lowering detail level to the minimum doesn't help. Native d3dx9_36 is a workaround.
Fedora 17 Nvidia 250 / driver 304.60 Civilization V GOTY on Steam (without Gods & Kings expansion)
http://bugs.winehq.org/show_bug.cgi?id=32081
--- Comment #1 from GyB gyebro69@gmail.com 2012-10-28 05:22:01 CDT --- Created attachment 42291 --> http://bugs.winehq.org/attachment.cgi?id=42291 +d3dx log (uncompressed 176 MB)
http://bugs.winehq.org/show_bug.cgi?id=32081
--- Comment #2 from Józef Kucia joseph.kucia@gmail.com 2012-10-28 06:02:14 CDT --- Created attachment 42293 --> http://bugs.winehq.org/attachment.cgi?id=42293 Patch
The patch should fix this crash.
http://bugs.winehq.org/show_bug.cgi?id=32081
--- Comment #3 from GyB gyebro69@gmail.com 2012-10-28 06:24:13 CDT --- (In reply to comment #2)
Thanks for the quick response, the patch indeed fixes the crash when using the built-in d3dx9_36.
http://bugs.winehq.org/show_bug.cgi?id=32081
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #4 from joaopa jeremielapuree@yahoo.fr 2012-10-28 13:23:52 CDT --- Some remarks about the patch:
out = *pout is shorter than out.x=....
if (pviewport) { }
instead of if (pviewport) { }
http://bugs.winehq.org/show_bug.cgi?id=32081
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |7bfd634286bd3a9afdcd790fee3 | |af3050671b6e2 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from GyB gyebro69@gmail.com 2012-10-29 22:14:51 CDT --- Fixed by http://source.winehq.org/git/wine.git/commitdiff/7bfd634286bd3a9afdcd790fee3...
http://bugs.winehq.org/show_bug.cgi?id=32081
--- Comment #6 from joaopa jeremielapuree@yahoo.fr 2012-10-29 23:48:53 CDT --- Jozef, there are other functions with viewport in this file. Can you fix them?
Thanks.
http://bugs.winehq.org/show_bug.cgi?id=32081
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com
--- Comment #7 from Józef Kucia joseph.kucia@gmail.com 2012-11-08 06:50:46 CST --- (In reply to comment #6)
Jozef, there are other functions with viewport in this file. Can you fix them?
This patch should fix them: http://source.winehq.org/patches/data/91854
http://bugs.winehq.org/show_bug.cgi?id=32081
--- Comment #8 from joaopa jeremielapuree@yahoo.fr 2012-11-08 09:40:48 CST --- There are 2 spaces in the line pout->x = pviewport->X + [here] ( 1.0f + pout->x ) * pviewport->Width / 2.0f;
Can you use if (pworld) D3DXMatrixMultiply(&m, &m, pworld);
instead of if (pworld) D3DXMatrixMultiply(&m, &m, pworld);
Thanks for your great job.
http://bugs.winehq.org/show_bug.cgi?id=32081
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2012-11-09 13:01:30 CST --- Closing bugs fixed in 1.5.17.