http://bugs.winehq.org/show_bug.cgi?id=31918
Bug #: 31918 Summary: Saints Row the Third (Steam) Crashes on Launch Product: Wine Version: 1.5.14 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: mblackwell1024@gmail.com Classification: Unclassified
Created attachment 42023 --> http://bugs.winehq.org/attachment.cgi?id=42023 Crash backtrace.
Even after checking the usual suspects (dll overrides, startup video conflicts, etc) the game immediately crashes after clicking Play. I've attached the backtrace from the Winedbg dialog.
http://bugs.winehq.org/show_bug.cgi?id=31918
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #1 from Dan Kegel dank@kegel.com 2012-10-08 11:01:00 CDT --- Is this on a clean wineprefix?
Can you also get a console log? (And if that doesn't show anything, maybe a relay log.)
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #2 from Jonathan Strander mblackwell1024@gmail.com 2012-10-08 12:26:44 CDT --- Created attachment 42025 --> http://bugs.winehq.org/attachment.cgi?id=42025 vanilla log
No, it was from a prefix which had vcrun2005 and d3dx9 installed (via winetricks). However the attached log is after launching Steam/the game with a new WINEPREFIX.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #3 from salamander purake salamanderrake@gmail.com 2012-12-02 12:44:12 CST --- Created attachment 42693 --> http://bugs.winehq.org/attachment.cgi?id=42693 My terminal output from running saints row the 3rd
This is a clean prefix also with steam installed via winetricks 922
http://bugs.winehq.org/show_bug.cgi?id=31918
TestSubject sirbubbles01@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sirbubbles01@gmail.com
--- Comment #4 from TestSubject sirbubbles01@gmail.com 2012-12-07 10:12:32 CST --- If anyone's interested, there's a demo version called Saints Row The Third: Initiation Station available on Steam if you want to test it yourself. This bug still seems to apply.
http://bugs.winehq.org/show_bug.cgi?id=31918
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #5 from joaopa jeremielapuree@yahoo.fr 2012-12-07 10:43:35 CST --- Does the bug occur for the demo?
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #6 from TestSubject sirbubbles01@gmail.com 2012-12-07 15:24:11 CST --- (In reply to comment #5)
Does the bug occur for the demo?
It does, I get no further than some kind of gpf type thing. I'd re-test and post terminal output, but I just uninstalled it. Can get it back if required.
http://bugs.winehq.org/show_bug.cgi?id=31918
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=31918
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #42693|saits-row-3rd.fail |saits-row-3rd.text filename| | Attachment #42693|application/octet-stream |text/plain mime type| |
--- Comment #7 from Austin English austinenglish@gmail.com 2012-12-10 15:15:40 CST --- Comment on attachment 42693 --> http://bugs.winehq.org/attachment.cgi?id=42693 My terminal output from running saints row the 3rd
Please use .txt in the future.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #8 from Karol Herbst wine@karolherbst.de 2012-12-11 16:13:03 CST --- Created attachment 42782 --> http://bugs.winehq.org/attachment.cgi?id=42782 stacktrace on wine-1.5.19
wine: 1.5.19 with pulseaudio and xinput patches wineprefix: steam via winetricks + some directx things
I looked a bit into EnumDisplayDevicesW, but I found nothing that cause this crash there. Though this method seems to be not fully implemented, there is no reference to 0x00000000 in the parameters (the LPDISPLAY_DEVICE struct is fully filled with data)
SHAppBarMessage should not be involved in this crash, because it is not reached here.
http://bugs.winehq.org/show_bug.cgi?id=31918
sh shooter0106@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shooter0106@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=31918
Dyrver E dyrver.eriksson@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dyrver.eriksson@gmail.com
--- Comment #9 from Dyrver E dyrver.eriksson@gmail.com 2013-01-07 06:46:07 CST --- Got this compiled to a list of four missing calls when running the game through dependency walker while steam is running in the background, not sure how this relates to the inability to run the game though. But it might help get this awesome game running. It's all pure Wine 1.5.21 and if any installed dependencies by way of Steam. (I think Wine blocks those if I'm not mistaken?) GetProcAddress(0x7E170000 [WINEX11.DRV], "GetAsyncKeyState") called from "USER32.DLL" at address 0x7EB05577 and returned NULL. Error: Procedure not found (127). GetProcAddress(0x7E170000 [WINEX11.DRV], "RegisterHotKey") called from "USER32.DLL" at address 0x7EB05631 and returned NULL. Error: Procedure not found (127). GetProcAddress(0x7E170000 [WINEX11.DRV], "UnregisterHotKey") called from "USER32.DLL" at address 0x7EB0568E and returned NULL. Error: Procedure not found (127). GetProcAddress(0x7E170000 [WINEX11.DRV], "CreateCursorIcon") called from "USER32.DLL" at address 0x7EB056CC and returned NULL. Error: Procedure not found (127).
http://bugs.winehq.org/show_bug.cgi?id=31918
Karol Herbst wine@karolherbst.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wine@karolherbst.de
--- Comment #10 from Karol Herbst wine@karolherbst.de 2013-01-09 03:36:15 CST --- awesome, I see, that I need some practise in debugging wine to find stuff like that. Indeed GetProcAddress will return 0x0 if a method isn't found (or it should return it).
But the "null pointer" occurs within saintsrowthethird, so maybe these function address' are given through some methods.
I think I will try to add these methods. I will give results later.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #11 from Andras Kovacs andras@sth.sze.hu 2013-01-11 09:15:41 CST --- Created attachment 43145 --> http://bugs.winehq.org/attachment.cgi?id=43145 d3d9 caps hack
After several hours of debugging, I figured, it crashes because several missing d3d9 caps. Because of missing caps it skips to create a d3d device. Then it tries to create some d3d queries, and because it has no d3d device, it accesses a null pointer and crashes. I attached a hackish patch what you can use to start game. For me it crashes after starting a new game.
Best regards, Andras
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #12 from Karol Herbst wine@karolherbst.de 2013-01-14 07:12:39 CST --- Thanks a lot.
Will this patch cause negative impacts on other games or is it safe as long these changes are graphic card compatible?
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #13 from Karol Herbst wine@karolherbst.de 2013-01-14 13:38:29 CST --- I tested this patch and yes, same behavior for me
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #14 from Dyrver E dyrver.eriksson@gmail.com 2013-01-15 06:08:17 CST --- Isn't a float value of 32 a little much for pixel shader 1x cap? I'd expect it to have a maximum of 8 or 16 at most. Not a programmer so I'm not sure. Enlight me if I understand this correctly, please. :) Anyways thanks for the patch I'll try some different values see what happens. Value between -1.0 and 0.0 is Pixel shader off as well, right? hmm.
http://bugs.winehq.org/show_bug.cgi?id=31918
Andras Kovacs andras@sth.sze.hu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andras@sth.sze.hu
--- Comment #15 from Andras Kovacs andras@sth.sze.hu 2013-01-15 08:12:54 CST --- I do not know, on a windows 7 box with Geforce 8600gt it has value 65504.0. The game checks it value and it must be at least 32. I do not thinks so if it breaks anything, but Henri Verbeet could confirm it.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #16 from Andras Kovacs andras@sth.sze.hu 2013-01-17 11:31:26 CST --- I debugged towards the application, and I realized the crash occurs in video card driver, and it related to specific circumstances. If you use this shameful workaround (that ignores this case), the game starts but it displays nearly nothing (because of this hack).
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index ed32ee2..cd34085 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -38,6 +38,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d_draw); static void drawStridedFast(const struct wined3d_gl_info *gl_info, GLenum primitive_type, UINT count, UINT idx_size, const void *idx_data, UINT start_idx, INT base_vertex_index, UINT start_instance, UINT instance_count) { + + FIXME("(pt=%x, count=%d, idx_size=%d, start_idx=%d, base_vertex_index=%d, idx_data=%p, instance_count=%d)\n", primitive_type, count, idx_size, start_idx, base_vertex_index, idx_data, instance_count); + if (idx_size) { GLenum idxtype = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT; @@ -758,7 +761,7 @@ void draw_primitive(struct wined3d_device *device, UINT start_idx, UINT index_co } else { - drawStridedFast(gl_info, state->gl_primitive_type, index_count, idx_size, idx_data, + if ((indexed && idx_data) || !indexed) drawStridedFast(gl_info, state->gl_primitive_type, index_count, idx_size, idx_data, start_idx, state->base_vertex_index, start_instance, instance_count); }
Best regards, Andras
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #17 from Karol Herbst wine@karolherbst.de 2013-01-17 12:27:18 CST --- I tried this patch, but the app still crashes (both patches applied)
https://gist.github.com/4558261
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #18 from Karol Herbst wine@karolherbst.de 2013-01-17 12:28:37 CST --- I wasn't accurate enough in my last post.
the game launches and the menu is rendered very fine. But starting a new game is not possible
http://bugs.winehq.org/show_bug.cgi?id=31918
Marcel Unbehaun frostworks@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |frostworks@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=31918
Nephyrin zey Nephyrin@nephyrin.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Nephyrin@nephyrin.net
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #19 from Denis metalfanat@metalfan.com 2013-07-13 05:09:40 CDT --- Created attachment 45226 --> http://bugs.winehq.org/attachment.cgi?id=45226 Game Launcher not run.
Slackware 14 (32), NVIDIA driver.
http://bugs.winehq.org/show_bug.cgi?id=31918
Denis metalfanat@metalfan.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |metalfanat@metalfan.com
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #20 from Gaël darkael@gmail.com 2013-07-25 13:50:32 CDT --- Created attachment 45392 --> http://bugs.winehq.org/attachment.cgi?id=45392 crash backtrace
It also crashes for me, after asking me which version of DirectX I want to choose (the backtrace is for DX9, the DX11 version crashes silently)
Wine 1.6/Arch Linux/Nvidia drivers (560 Ti)/clean prefix + winetricks steam
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #21 from Josef Schlehofer pepe@bloodkings.eu 2013-08-11 03:24:10 CDT --- Created attachment 45573 --> http://bugs.winehq.org/attachment.cgi?id=45573 Backtrace DirectX9
Exactly same what user Gael describes
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #22 from Felix Hellmann privat@cirk2.de 2013-08-11 05:31:21 CDT --- Created attachment 45577 --> http://bugs.winehq.org/attachment.cgi?id=45577 Crashlog without launcher
I also got this for wine 1.7.0 on Fedora 18. I ran the saintsrowthethird.exe directly to not have the launcher adding unrelated things to the log (besides launcher only works with emulated desktop).
It clearly shows the it is missing two functions in gdi32.dll: D3DKMTEscape and D3DKMTOpenAdapterFromHdc
http://bugs.winehq.org/show_bug.cgi?id=31918
Felix Hellmann privat@cirk2.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |privat@cirk2.de
--- Comment #23 from Felix Hellmann privat@cirk2.de 2013-08-12 15:41:43 CDT --- A caveat to my previous post: The message about the two functions only appears when win version is set to win7. Setting it back to XP doesn't change the outcome.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #24 from Felix Hellmann privat@cirk2.de 2013-08-12 18:20:41 CDT --- Created attachment 45592 --> http://bugs.winehq.org/attachment.cgi?id=45592 Retouched d3d9 caps hack
I made the changes from the two patched by Andras Kovacs by hand and generated a new Patch file (original patches won't apply against current git).
With this patches I can launch and enter the Game. But the world is just a flat blue screen with UI drawn upon.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #25 from Felix Hellmann privat@cirk2.de 2013-08-12 18:55:11 CDT --- Created attachment 45593 --> http://bugs.winehq.org/attachment.cgi?id=45593 Sreenshot with d3d cpas hack
http://bugs.winehq.org/show_bug.cgi?id=31918
Felix Hellmann privat@cirk2.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #45577|0 |1 is obsolete| |
--- Comment #26 from Felix Hellmann privat@cirk2.de 2013-08-12 18:57:38 CDT --- Created attachment 45594 --> http://bugs.winehq.org/attachment.cgi?id=45594 Log output with d3d caps hack
This is a highly shorted version (original file was nearly 60 MB).
All done in a fresh 32bit winxp wineprefix. Game on minimum settings (but results are the same on maximum).
http://bugs.winehq.org/show_bug.cgi?id=31918
DL dredgingthelake@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dredgingthelake@gmail.com
--- Comment #27 from DL dredgingthelake@gmail.com 2013-10-02 23:26:28 CDT --- Game goes in game now and mostly works when using the older d3d9caps hack: http://bugs.winehq.org/show_bug.cgi?id=31918#c11
Works with the CSMT patchset too (with wine-1.7.1)
I'm getting nvidia driver bugs though such as the intermittent missing models issue and something that looks like the issue with anisotropic filtering and some games (garbled red output across the screen).
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #28 from DL dredgingthelake@gmail.com 2013-10-02 23:36:56 CDT --- Seems that disabling "Allow flipping" in nvidia-settings worked around the issue and I'm getting pretty much perfect video output at the moment. Not sure if it's just luck, though, as these issues tend to be intermittent.
Game also works on my AMD APU laptop with correct video output, albeit slowly. Have to make sure UseGLSL is enabled, though.
http://bugs.winehq.org/show_bug.cgi?id=31918
tobias15556@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tobias15556@gmx.de
--- Comment #29 from tobias15556@gmx.de --- Well i applied the patches and got to the menu.
But after the patches it crashes for me at:
CPU Disasm Address Hex dump Command Comments 009DF004 8B48 08 MOV ECX,DWORD PTR DS:[EAX+8] (eax is 0)
Stack says me it has something to do with: CPU Stack Address Value ASCII Comments 32BAE6B8 |011760B8 ` ; ASCII "styletest_pc_mp2"
i'm not shure why, anybody got any idea?.
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #30 from Real Name tobias15556@gmx.de --- Created attachment 47427 --> http://bugs.winehq.org/attachment.cgi?id=47427 Bug after trying to continue/start a game
I'm adding some debugger info just incase it helps somebody to figure out what the problem is.
http://bugs.winehq.org/show_bug.cgi?id=31918
Real Name tobias15556@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|tobias15556@gmx.de |
http://bugs.winehq.org/show_bug.cgi?id=31918
--- Comment #31 from DL dredgingthelake@gmail.com --- The second crash at menu (after the one the original caps hack fixes) appears to be DRM related. Using a crack works around the issue.
https://bugs.winehq.org/show_bug.cgi?id=31918
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |http://store.steampowered.c | |om/agecheck/app/55230/ CC| |focht@gmx.net Component|-unknown |directx-d3d Summary|Saints Row the Third |Saints Row the Third |(Steam) Crashes on Launch |(Steam) crashes on startup | |(needs support for | |PrimitiveMiscCaps | |'D3DPMISCCAPS_PERSTAGECONST | |ANT' and | |'PixelShader1xMaxValue' >= | |32) Ever confirmed|0 |1
--- Comment #32 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming, still present.
Andras already did the important work, figuring out the needed d3d caps. Refining summary to reflect that.
I found an interesting site which has a DirectX feature/caps matrix, listing value vs. DirectX version vs. video cards:
PrimitiveMiscCaps D3DPMISCCAPS_PERSTAGECONSTANT:
http://www.kludx.com/capability.php?capability=97
PixelShader1xMaxValue:
http://www.kludx.com/capability.php?capability=301
For crashes reported after applying the patch: please avoid mixing different issues into one bug. This one is reserved for the d3d caps/missing support.
$ wine --version wine-1.7.16-199-ga6e53ea
Regards
https://bugs.winehq.org/show_bug.cgi?id=31918
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |23eed88fdedbbb7be67c60db369 | |a09fcc00a2602 Status|NEW |RESOLVED Resolution|--- |FIXED Summary|Saints Row the Third |Saints Row the Third |(Steam) crashes on startup |(Steam) crashes on startup |(needs support for |(needs support for |PrimitiveMiscCaps |PrimitiveMiscCaps |'D3DPMISCCAPS_PERSTAGECONST |'D3DPMISCCAPS_PERSTAGECONST |ANT' and |ANT') |'PixelShader1xMaxValue' >= | |32) |
--- Comment #33 from Anastasius Focht focht@gmx.net --- Hello folks,
Henri added support for per-stage texture stage constants:
http://source.winehq.org/git/wine.git/commitdiff/23eed88fdedbbb7be67c60db369...
Thanks Henri.
I'll create a new bug to separate 'PixelShader1xMaxValue' >= 32 issue out here.
The game additionally suffers from bug 32515 (Valve's CEG (Custom Executable Generation) DRM scheme fail validation).
--- snip --- -=[ ProtectionID v0.6.5.5 OCTOBER]=- (c) 2003-2013 CDKiLLER & TippeX Build 31/10/13-21:09:09 Ready...
Scanning -> Z:\home\focht\wine-games\wineprefix-steam\wineprefix\drive_c\Program Files\Steam\SteamApps\common\Saints Row the Third\SaintsRowTheThird.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 16260760 (0F81E98h) Byte(s) -> File Appears to be Digitally Signed @ Offset 0F81000h, size : 0E98h / 03736 byte(s) [File Heuristics] -> Flag : 00000100000001001100000000000100 (0x0404C004) [Entrypoint Section Entropy] : 6.71 [Debug Info] Characteristics : 0x0 | TimeDateStamp : 0x4F58ED0D | MajorVer : 0 / MinorVer : 0 -> (0.0) Type : 2 -> CodeView | Size : 0x4F (79) AddressOfRawData : 0xEA3170 | PointerToRawData : 0xEA2170 CvSig : 0x53445352 | SigGuid 722A8F19-290A-4D47-9413412FD3105356 Age : 0x1 | Pdb : D:\projects\sr3\pc_rc\sr3\sr3_pc_release_final_drm.pdb
[!] Steam api usage detected [i] additional feature ; Valve CEG - Custom Executable Generation [.] CEG Version : 1, 1, 0, 2100 [.] CEG Build GUID : D38EFE72-7B28-49ec-98E5-D93E7729EECA [.] CEG Build Machine : neilk2 [!] Possible CD/DVD-Key or Serial Check -> SerialNumber [CompilerDetect] -> Visual C++ 9.0 (Visual Studio 2008) - Scan Took : 1.171 Second(s) [000000725h tick(s)] [533 scan(s) done] --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=31918
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #34 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.18.
http://bugs.winehq.org/show_bug.cgi?id=31918
Christopher Larson kergoth@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kergoth@gmail.com