https://bugs.winehq.org/show_bug.cgi?id=50010
Bug ID: 50010 Summary: Deus Ex Mankind Divided crash Product: Wine Version: 5.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: roidal@googlemail.com Distribution: ---
Created attachment 68422 --> https://bugs.winehq.org/attachment.cgi?id=68422 wine stdout and DXMD game log
Deus Ex Mankind Divided crashes when loading a game or the benchmark. Mainmenu works fine after installing d3dcompiler_47 and DXVK 1.7.2 with winetricks.
It seems to happen on actual wine-versions (5.18 and 5.19).
With wine lutris-5.7 it works fine. https://github.com/doitsujin/dxvk/issues/1788 - here a user reported wine 5.9 working.
Sadly i can not provide that much info since i do not have much usefull output:
STDOUT and game-log is attached.
If you need more informations let me know how to gather them an i try to provide.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #1 from roidal@googlemail.com --- I tried wine from the official repo:
wine-stable (5.0.2) -> working wine-staging (5.19) -> broken
Since i forgot it in the first place, sys-specs:
Fedora 32 Kernel 5.8.13-200.fc32.x86_64 Mesa 20.1.9 DXVK 1.7.2 CPU AMD Ryzen 5 3600 GPU Navi14 [Radeon RX 5500]
https://bugs.winehq.org/show_bug.cgi?id=50010
roidal@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Deus Ex Mankind Divided |Deus Ex Mankind Divided |crash |crash on newer | |wine-versions
https://bugs.winehq.org/show_bug.cgi?id=50010
roidal@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Deus Ex Mankind Divided |[regression] Deus Ex |crash on newer |Mankind Divided crash on |wine-versions |newer wine-versions
https://bugs.winehq.org/show_bug.cgi?id=50010
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #2 from joaopa jeremielapuree@yahoo.fr --- Please, do a regression test (in a fresh wine prefix, not with PlayonLinux that is not supported)
https://wiki.winehq.org/Regression_Testing
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #3 from roidal@googlemail.com --- I went through the commits between 5.11 (working) and 5.12 (crash before main-menu). Most of them resulted in a non working wine-build though. Last good commit: 4fcf20d1d120985a6056ef8e1861738c2e903660
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #4 from roidal@googlemail.com --- Created attachment 68443 --> https://bugs.winehq.org/attachment.cgi?id=68443 output from bisect
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #5 from roidal@googlemail.com --- (In reply to roidal from comment #3)
I went through the commits between 5.11 (working) and 5.12 (crash before main-menu). Most of them resulted in a non working wine-build though. Last good commit: 4fcf20d1d120985a6056ef8e1861738c2e903660
PS.: bisect log/view is as file attached.
Be aware that while 5.12 crashes even before the main-menu, more recent versions are able to render the menu, and are crashing later while loading a save/new-game.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #6 from roidal@googlemail.com --- I did some more testing and it looks like the game is working fine with recent versions of wine (5.18, 5.19) if wine is compiled without mingw.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #7 from roidal@googlemail.com --- Created attachment 68462 --> https://bugs.winehq.org/attachment.cgi?id=68462 wine-5.18 output
https://bugs.winehq.org/show_bug.cgi?id=50010
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |8a169390c9ef4d8a43b604558c4 | |194a052473c0c CC| |z.figura12@gmail.com Component|-unknown |ntdll Keywords| |regression
--- Comment #8 from Zebediah Figura z.figura12@gmail.com --- Since it works without mingw, it's probably 8a169390c9ef4d8a43b604558c4194a052473c0c.
https://bugs.winehq.org/show_bug.cgi?id=50010
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[regression] Deus Ex |Deus Ex Mankind Divided |Mankind Divided crash on |crashes if Wine is compiled |newer wine-versions |with mingw
https://bugs.winehq.org/show_bug.cgi?id=50010
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman@codeweavers.com
--- Comment #9 from Paul Gofman pgofman@codeweavers.com --- I tried to reproduce the issue with Steam version but could not. It just works for me with latest development Wine and Staging, on Intel / Nvidia and AMD.
Might be some host / installation details. Maybe the detailed information can give a clue, like distribution version, CPU / GPU / GPU drivers info, any specific / non default system and Wine setup details.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #10 from roidal@googlemail.com --- I run the Game from gog.com, maybe there is some difference.
Sysspecs are mentioned in comment 1.
Additionally i tried to run the game with wine from Fedora 33, and also tried to compile wine-5.18 with the newer mingw from Fedora 33.
And the working setups for me are up to wine-5.11, and wine > 5.18 if compiled without mingw.
And all leads to a crash when loading a game (save/new game) or running the benchmark.
If i can help by providing specific details or trying some patches, just let me know.
Ty.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #11 from roidal@googlemail.com --- PS.:
The crashes are different from version to version. wine-5.12 crashes already before even reaching the main-menu.
5.18 and 5.19 are able to render the main-menu without problem, but then crashes while loading a game, which can be bypassed by compiling without mingw.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #12 from Paul Gofman pgofman@codeweavers.com --- Could you please attach WINEDEBUG=+pid,+loaddll,+timestamp,+seh,+process,+thread,+module log? With the latest upstream Wine (not Staging), from the run when it is crashes, built with mingw.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #13 from roidal@googlemail.com --- Created attachment 68467 --> https://bugs.winehq.org/attachment.cgi?id=68467 output from wine-master
Built @ commit 02458faa43b0c4b63ac248b7714135255e9518b2 with options --enable-win64 --disable-tests --with-mingw
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #14 from Paul Gofman pgofman@codeweavers.com --- Could you please also attach ntdll.so, ntdll.dll, user32.so (64 bit), exactly those from your build that were used during log recording? I need that to find where it crashes exactly.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #15 from roidal@googlemail.com --- Created attachment 68469 --> https://bugs.winehq.org/attachment.cgi?id=68469 requested libraries
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #16 from Paul Gofman pgofman@codeweavers.com --- Created attachment 68470 --> https://bugs.winehq.org/attachment.cgi?id=68470 Test patch
Does the attached patch change anything?
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #17 from roidal@googlemail.com --- Created attachment 68471 --> https://bugs.winehq.org/attachment.cgi?id=68471 logs/libraries from patch-1
Crash still while loading a save/game.
Attached file contains again log created with WINEDEBUG=+pid,+loaddll,+timestamp,+seh,+process,+thread,+module and ntdll.dll, ntdll.so, user32.so
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #18 from Paul Gofman pgofman@codeweavers.com --- Does it work in a clean prefix without dxvk (mingw enabled build of course)? The Steam version worked ok without dxvk for me, including benchmark and getting into the game, as well as loading game save.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #19 from roidal@googlemail.com --- What additional dll's did you install?
On a clean wineprefix the game quits right after the launcher.
If i install then d3dcompiler_47 it starts but crashes before rendering the 3D-scene from the main-menu.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #20 from Paul Gofman pgofman@codeweavers.com --- I've got a GOG version of the game and could reproduce the issue.
It does not happen when the game run from GOG Galaxy but does happen when run as standalone.
The culprit are C++ exceptions thrown and processed from Galaxy64.dll when GOG Galaxy is not run during the game start. It took a bit of time to find as the exception themselves are processed seemingly fine, happen on Windows the same way, and are at least a few seconds away from the fatal access violation crash in completely different place (in main game exe). Yet the problem seems to be there, I am loosing R15 register value in consolidate unwind callback wrapper. I've just sent the fix which solves the problem for me: https://source.winehq.org/patches/data/194894 The problem does not happen with the non-mingw build because the unwind info handling is completely different and doesn't have such bug.
The whole sequence of exceptions (which otherwise works perfectly) is remarkable: - The initial exception gets handled and results in consolidated unwind; - Consolidated unwind callback throws a new C++ exception itself (probably the app throws exception in C++ destructor); - The exception gets caught by the same handler and that unexpectedly results in the same consolidated unwind; - Yet it doesn't result in the infinite loop, at the third attempt unwind callback manages to complete and the whole process is getting unwind to the app's catch block.
Not fully related to this bug report, but while debugging this I also found that we also mess up the registers in NtRaiseExceptions (this doesn't get call on x64 if the debugger is not present). The game works fine under debugger on Windows but crashes on Wine soon after the same exceptions; I am going to make some patch for that also.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #21 from roidal@googlemail.com --- First: Thank you for investigating/fixing!
I applied your patch and during the first start it was crashing again, but not at the beginning of the loading-process instead at the very end. Error: 0238:err:seh:NtRaiseException Unhandled exception code c0000005 flags 0 addr (nil)
Subsequent starts worked fine, and until now i wasn't anymore able to reproduce the first crash.
https://bugs.winehq.org/show_bug.cgi?id=50010
--- Comment #22 from Paul Gofman pgofman@codeweavers.com --- Should be fixed by https://source.winehq.org/git/wine.git/36dcb6965146022c1a1f15c1653d5d713036d...
https://bugs.winehq.org/show_bug.cgi?id=50010
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |36dcb6965146022c1a1f15c1653 | |d5d713036db3f Status|UNCONFIRMED |RESOLVED
--- Comment #23 from Zebediah Figura z.figura12@gmail.com --- Marking fixed.
https://bugs.winehq.org/show_bug.cgi?id=50010
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.0-rc2.