https://bugs.winehq.org/show_bug.cgi?id=44089
Bug ID: 44089 Summary: Strider crashes after loading screen Product: Wine Version: 2.21 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx11 Assignee: wine-bugs@winehq.org Reporter: strider@strycore.com Distribution: ---
Created attachment 59805 --> https://bugs.winehq.org/attachment.cgi?id=59805 backtrace of the crash
While the main menu works fine, when starting a game, the game crashes. This is a regression that started in Wine Staging 2.16, when the deferred context patch (https://dev.wine-staging.com/patches/181/) was introduced. I had a build of Wine Staging 2.15 with that patch enabled and I noticed crashes starting with that build and onward until the latest tested, Staging 2.21.
https://bugs.winehq.org/show_bug.cgi?id=44089
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3dx11 |-unknown Product|Wine |Wine-staging CC| |erich.e.hoover@wine-staging | |.com, | |joseph.kucia@gmail.com, | |michael@fds-team.de, | |sebastian@fds-team.de Version|2.21 |2.16
https://bugs.winehq.org/show_bug.cgi?id=44089
--- Comment #1 from Mathieu Comandon strider@strycore.com --- Created attachment 59806 --> https://bugs.winehq.org/attachment.cgi?id=59806 Console output
https://bugs.winehq.org/show_bug.cgi?id=44089
Kimmo Myllyvirta kimmo.myllyvirta@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kimmo.myllyvirta@gmail.com
--- Comment #2 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 59809 --> https://bugs.winehq.org/attachment.cgi?id=59809 hack for wine 2.21 staging
0024-d3d11-Implement-CopySubresourceRegion-for-deferred-c.patch breaks it.
The game doesn't use deferred CopySubresourceRegion, but the patch unintentionally changes the alignment of the mapped pointer in d3d11_deferred_context_Map. D3D11_MAPPED_SUBRESOURCE, pData must be 16 byte aligned with feature level >=10, some games rely on it in their SSE optimized code. This was never handled properly in d3d11_deferred_context_Map.
It should not crash with the attached patch.
https://bugs.winehq.org/show_bug.cgi?id=44089
--- Comment #3 from Mathieu Comandon strider@strycore.com --- Thanks Kimmo! I can confirm that the patch fixes the crash, a build is available here for those who wish to test it: https://lutris.net/files/runners/wine-strider-2.21-x86_64.tar.gz
https://bugs.winehq.org/show_bug.cgi?id=44089
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=44089
Zachary J zakarjor@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zakarjor@yahoo.com
--- Comment #4 from Zachary J zakarjor@yahoo.com --- I can confirm that this patch by Kimmo also fixes the crash in Dead Rising 3 for Steam. Also confirming that Strider works without crash. Running wine-stage 3.6 x86_64 patched.
https://bugs.winehq.org/show_bug.cgi?id=44089
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=44089
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 CC| |leslie_alistair@hotmail.com Status|UNCONFIRMED |STAGED Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/d3d11-Deferred_C | |ontext
https://bugs.winehq.org/show_bug.cgi?id=44089
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Resolution|--- |FIXED Fixed by SHA1| |b305d85b78365681ecc05fc1318 | |a9cc5059b3792 Status|STAGED |RESOLVED Staged patchset|https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/d3d11-Deferred_C | |ontext |
--- Comment #5 from Zebediah Figura z.figura12@gmail.com --- Resolving as fixed by https://github.com/wine-staging/wine-staging/commit/b305d85b78365681ecc05fc1318a9cc5059b3792.
https://bugs.winehq.org/show_bug.cgi?id=44089
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Zebediah Figura z.figura12@gmail.com --- Closing bugs fixed in wine-staging 3.10.