https://bugs.winehq.org/show_bug.cgi?id=50420
Bug ID: 50420 Summary: Divinity: Original Sin - Enhanced Edition crashes on startup Product: Wine Version: 5.11 Hardware: x86-64 URL: https://store.steampowered.com/app/373420/Divinity_Ori ginal_Sin__Enhanced_Edition/ OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: julliard@winehq.org Regression SHA1: df5e4764870e8ad1d8b206cb3475a073bc034e48 Distribution: ArchLinux
Created attachment 69038 --> https://bugs.winehq.org/attachment.cgi?id=69038 terminal output
The game shows a black screen then it crashes (just before the developer logo would show up). Reproduced with the GOG and the Steam version.
According to my testing the last working Wine version was 5.10. The commit when the problem appeared: df5e4764870e8ad1d8b206cb3475a073bc034e48 ntdll: Move the current directory initialization to the Unix library.
Still present in wine-6.0-rc4-6-gff09f14867e.
https://bugs.winehq.org/show_bug.cgi?id=50420
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman@codeweavers.com
--- Comment #1 from Paul Gofman pgofman@codeweavers.com --- I've tested the Steam version and could reproduce the crash.
The actual crash here is from stub entry point, what Wine is actually trying to say is that there is the call to unimplemented function to user32.dll.SetDisplayConfig, but fails to do that due to currently messed up function ABI (Unix vs WINAPI) for stub entry point on x64 in the PE build, I am going to suggest a patch for that.
SetDisplayConfig is called from SDL2.dll shipped with the game in the game .exe directory. I guess that was working before the blamed commit because it was picking up an SDL2.dll from Steam installation somehow (not sure what it was doing in the GOG case). I checked that copying Steam's SDL2.dll to the game exe directory fixes the issue.
It looks like adding a stub for the missing function is enough, https://source.winehq.org/patches/data/197766 is fixing the game start for me.
https://bugs.winehq.org/show_bug.cgi?id=50420
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Paul Gofman from comment #1)
SetDisplayConfig is called from SDL2.dll shipped with the game in the game .exe directory. I guess that was working before the blamed commit because it was picking up an SDL2.dll from Steam installation somehow (not sure what it was doing in the GOG case). I checked that copying Steam's SDL2.dll to the game exe directory fixes the issue.
It looks like adding a stub for the missing function is enough, https://source.winehq.org/patches/data/197766 is fixing the game start for me.
Thank you for the proposed fix, Paul. The patch fixes the problem with the GOG version as well.
https://bugs.winehq.org/show_bug.cgi?id=50420
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |aaf05c106e5d212943266ae0fa7 | |bc62ee285e273 Status|NEW |RESOLVED
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/aaf05c106e5d212943266ae0fa7bc6...
https://bugs.winehq.org/show_bug.cgi?id=50420
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.0-rc5.