http://bugs.winehq.org/show_bug.cgi?id=27365
Summary: Total War: SHOGUN 2 crashes on start Product: Wine Version: 1.3.21 Platform: x86 URL: http://store.steampowered.com/app/34330/ OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=34989) --> (http://bugs.winehq.org/attachment.cgi?id=34989) terminal output/backtrace
The demo installs fine with steam, launches, and shows its splash screen before crashing: Backtrace: =>0 0xb6d7f29b context_destroy+0x2b(device=0xb3ac7d88, context=(nil)) [/home/austin/wine-git/dlls/wined3d/context.c:1678] in wined3d (0x0033be38) 1 0xb6e1ff89 wined3d_swapchain_decref+0x198(swapchain=0xb3ade460) [/home/austin/wine-git/dlls/wined3d/swapchain.c:65] in wined3d (0x0033be88) 2 0xb6e0e80d wined3d_surface_decref+0xac(surface=0xb3ac3d90) [/home/austin/wine-git/dlls/wined3d/surface.c:2658] in wined3d (0x0033beb8) 3 0xb6e1f162 swapchain_init+0x2c1(swapchain=0xb3ade460, surface_type=SURFACE_OPENGL, device=0xb3ac7d88, present_parameters=0x33c0a0, parent=0xb2576ee8, parent_ops=0xb6e9eda8) [/home/austin/wine-git/dlls/wined3d/swapchain.c:1092] in wined3d (0x0033c038) 4 0xb6e1fabe wined3d_swapchain_create+0x5d(device=0xb3ac7d88, present_parameters=0x33c0a0, surface_type=SURFACE_OPENGL, parent=0xb2576ee8, parent_ops=0xb6e9eda8, swapchain=0xb2576ef0) [/home/austin/wine-git/dlls/wined3d/swapchain.c:1116] in wined3d (0x0033c068) 5 0xb6e8e95a swapchain_init+0xc9(swapchain=0xb2576ee8, device=0xb3abf3b8, present_parameters=0x33c140) [/home/austin/wine-git/dlls/d3d9/swapchain.c:262] in d3d9 (0x0033c0e8) 6 0xb6e88920 IDirect3DDevice9Impl_CreateAdditionalSwapChain+0x4f(iface=0xb3abf3b8, present_parameters=0x33c140, swapchain=0x33c178) [/home/austin/wine-git/dlls/d3d9/device.c:481] in d3d9 (0x0033c118) 7 0xb6e8a05f device_parent_create_swapchain+0x9e(device_parent=0xb3abf3bc, present_parameters=0xb3ac3138, swapchain=0x33c1e8) [/home/austin/wine-git/dlls/d3d9/device.c:3296] in d3d9 (0x0033c188) 8 0xb6d9431c wined3d_device_init_3d+0x26b(device=0xb3ac7d88, present_parameters=0xb3ac3138) [/home/austin/wine-git/dlls/wined3d/device.c:1218] in wined3d (0x0033c1f8) 9 0xb6e89c48 device_init+0x2b7(device=0xb3abf3b8, wined3d=0xb3ac2878, adapter=0, device_type=D3DDEVTYPE_NULLREF, focus_window=0x1003a, flags=<is not available>, parameters=0x33c450, mode=(nil)) [/home/austin/wine-git/dlls/d3d9/device.c:3439] in d3d9 (0x0033c3c8) 10 0xb6e8b104 IDirect3D9Impl_CreateDevice+0x63(iface=0xac4c9c40, adapter=0, device_type=D3DDEVTYPE_NULLREF, focus_window=0x1003a, flags=0x22, parameters=0x33c450, device=0xb2574d28) [/home/austin/wine-git/dlls/d3d9/directx.c:452] in d3d9 (0x0033c408) fixme:faultrep:ReportFault 0x33b9b4 0x0 stub
wine-1.3.21-92-gb6484cc
http://bugs.winehq.org/show_bug.cgi?id=27365
Gweltas g.denece@numericable.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |g.denece@numericable.fr
http://bugs.winehq.org/show_bug.cgi?id=27365
Christopher May maquis196@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maquis196@yahoo.co.uk
--- Comment #1 from Christopher May maquis196@yahoo.co.uk 2011-12-22 16:05:13 CST --- Shogun 2 loads perfectly at the moment (1.3.34), it may require a dll override and I'm not sure if that counts as needing a bug report or not.
Can test if anyone asks. I'm playing the game fine at the moment.
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #2 from Austin English austinenglish@gmail.com 2011-12-22 17:11:01 CST --- (In reply to comment #1)
Shogun 2 loads perfectly at the moment (1.3.34), it may require a dll override and I'm not sure if that counts as needing a bug report or not.
What DLL?
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #3 from Christopher May maquis196@yahoo.co.uk 2011-12-22 18:36:22 CST --- I installed this game in my Football Manager 2012 prefix (so I had something to do whilst 20G was downloaded :S) and that prefix had the entire d3dx9_ set of dll's.
I'm currently restoring shogun2 to another prefix but that's going to take ages and I'm going to bed and will test which dll's are required tomorrow.
Bottom line; I just had a 2hr session on it before it crashed (and I raised a bug for that problem as well)
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #4 from Christopher May maquis196@yahoo.co.uk 2011-12-23 11:00:22 CST --- Done some testing; in a new prefix (with steam installed plus all the fonts as described on the steam appdb page) you start the game (imported from a steam backup) and it does the usual steam pre-run installscript.
Now this script installs whatever you need for the game to get running. I'm assuming it installs directx9. The game requires d3dx9_42.dll and tries to load d3dx11_42.dll.
Without any effort the game runs out the box (because of the dll required I'm assuming it's technically not a platinum rated game)
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #5 from Austin English austinenglish@gmail.com 2011-12-27 18:46:07 CST --- Created attachment 38137 --> http://bugs.winehq.org/attachment.cgi?id=38137 crash log
Still crashes here in wine-1.3.35-168-g5b93bb9.
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #6 from Christopher May maquis196@yahoo.co.uk 2011-12-28 06:40:17 CST --- I created another steam account to download the demo (since I own the full game) and it seems this bug report is only relevant to the demo. The demo also crashed for me yet the full game works perfectly.
Could be a bug in the game that wasn't fixed for the demo?
http://bugs.winehq.org/show_bug.cgi?id=27365
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #7 from joaopa jeremielapuree@yahoo.fr 2011-12-28 06:42:48 CST --- Can you try the demo in a real windows box? If the demo works in this real windows box, then it is a Wine bug and it needs to be fixed in Wine.
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #8 from Christopher May maquis196@yahoo.co.uk 2011-12-28 06:50:01 CST --- I'm not disagreeing that it's a wine bug, what I mean is this bug only effects the demo not the full game IMO. So maybe there is a non-wine bug in the demo that causes it to crash in wine yet this non-wine bug was patched in the full game hence why the full game works almost perfectly (certainly not crashing at the start like this bug suggests).
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #9 from joaopa jeremielapuree@yahoo.fr 2011-12-28 09:19:49 CST --- That's why I ask you to try the demo in a real windows windows to be sure it is a bug in the demo, not in Wine.
http://bugs.winehq.org/show_bug.cgi?id=27365
--- Comment #10 from Austin English austinenglish@gmail.com 2011-12-28 13:19:14 CST --- (In reply to comment #9)
That's why I ask you to try the demo in a real windows windows to be sure it is a bug in the demo, not in Wine.
Yes, it works on Windows 7.
http://bugs.winehq.org/show_bug.cgi?id=27365
Vadim Peretokin vperetokin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vperetokin@gmail.com
--- Comment #11 from Vadim Peretokin vperetokin@gmail.com 2012-05-09 20:30:40 CDT --- The demo fails to launch for me very early on - says 'invalid parameters received'.
http://bugs.winehq.org/show_bug.cgi?id=27365
nathanbirdalexander@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nathanbirdalexander@gmail.c | |om
--- Comment #12 from nathanbirdalexander@gmail.com --- Whenever i load it from steam it says, Unable to find a version of runtime to run this application. It then loads the game to a white screen where it then says there has been a massive problem and that it needs to shut down the game. HELP WHAT DO I DO?
http://bugs.winehq.org/show_bug.cgi?id=27365
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |focht@gmx.net Resolution|--- |DUPLICATE Summary|Total War: SHOGUN 2 crashes |Total War: Shogun 2 demo |on start |(Steam) crashes on start
--- Comment #13 from Anastasius Focht focht@gmx.net --- Hello folks,
correcting summary as this bug is obviously about the demo version.
The bug is still present:
--- snip --- ... WS_LOADING_SCREEN_IMP::pf_on_destroy() 0050:fixme:win:EnumDisplayDevicesW ((null),0,0x33be80,0x00000000), stub! 0050:err:d3d:context_create Failed to set pixel format 1 on device context 0xe003a. 0050:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat 0050:err:d3d:context_create Failed to set pixel format 1 on device context 0x80048. 0050:fixme:d3d:wined3d_get_format Can't find format WINED3DFMT_R24_UNORM_X8_TYPELESS (0x49) in the format lookup table 0050:fixme:d3d:getDepthStencilBits Unsupported depth/stencil format WINED3DFMT_UNKNOWN. 0050:err:d3d:context_create Failed to set pixel format 25 on device context 0x90045. 0050:err:d3d:context_create Failed to set pixel format 13 on device context 0x20049. 0050:err:d3d:context_choose_pixel_format Can't find a suitable iPixelFormat 0050:err:d3d:context_create Failed to set pixel format 1 on device context 0x1004b. 0050:trace:seh:__regs_MSVCRT__setjmp3 buf=0x33c0f8 ebx=0033c37c esi=0033c3e4 edi=00000000 ebp=0033c314 esp=0033c058 eip=59cecd72 frame=0033cd7c 0050:trace:seh:__regs_MSVCRT__setjmp3 buf=0x33c0f8 ebx=0033c37c esi=0033c3e4 edi=00000000 ebp=0033c314 esp=0033c058 eip=59cecd72 frame=0033cd7c 0050:trace:seh:raise_exception code=c0000005 flags=0 addr=0x56c315f8 ip=56c315f8 tid=0050 0050:trace:seh:raise_exception info[0]=00000000 0050:trace:seh:raise_exception info[1]=00000000 0050:trace:seh:raise_exception eax=00000000 ebx=00000000 ecx=0033c2e4 edx=00110064 esi=00000000 edi=0000000c 0050:trace:seh:raise_exception ebp=0033c4b8 esp=0033c438 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010202 --- snip ---
After some investigation I found this bug is actually a dupe of bug 18490
The patch http://bugs.winehq.org/attachment.cgi?id=41548&action=diff avoids the startup crash and the game runs fine.
$ wine --version wine-1.7.9-138-g773697a
@ comment #12
--- quote --- Whenever i load it from steam it says, Unable to find a version of runtime to run this application. It then loads the game to a white screen where it then says there has been a massive problem and that it needs to shut down the game. HELP WHAT DO I DO? --- quote ---
You problem has nothing to do with this bug. You have a broken WINEPREFIX. Please seek help in Wine user forums (http://forum.winehq.org/). Wine Bugzilla is not meant for end user support.
Regards
*** This bug has been marked as a duplicate of bug 18490 ***
http://bugs.winehq.org/show_bug.cgi?id=27365
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Bruno Jesus 00cpxxx@gmail.com --- Closing.