https://bugs.winehq.org/show_bug.cgi?id=42762
Bug ID: 42762 Summary: No Man's Sky (GOG) no longer starts Product: Wine Version: 2.5 Hardware: x86-64 OS: Linux Status: NEW Keywords: regression, win64 Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: 00cpxxx@gmail.com Depends on: 41135 Distribution: Debian
At some point after 2.3 No Man's Sky stopped working, when launching the game the following lines appear and the game quits:
err:seh:cxx_local_unwind invalid trylevel 2283632
abnormal program termination
Due to bug 41135 setting version XP is required to let the game start but now not even that works anymore and any Windows version set results in the above log messages. Looking for recent changes related to "unwind" I tried reverting [1] but it did not fix the issue. I'll do the regression test later.
https://source.winehq.org/git/wine.git/commitdiff/5a10705f0c57142c6317bfab66...
https://bugs.winehq.org/show_bug.cgi?id=42762
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Regression test gave a false-positive. Last step:
bruno@Note2:~/programs/wine-regression$ git bisect good 975c5381ede8f797b6f60a3e8fded712804c1c68 is the first bad commit commit 975c5381ede8f797b6f60a3e8fded712804c1c68 Author: Jacek Caban jacek@codeweavers.com Date: Sun Mar 26 12:52:50 2017 +0200
server: Added support for flushing client pipe.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
Reverting this patch will not make the game start. Tried regression test twice, same results. So I don't know what else to look for.
https://bugs.winehq.org/show_bug.cgi?id=42762
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- Does reverting b682e1c41d89c9303d30312c83a402d0cdee4ece help? Also, did you ensure that wineserver is killed between test runs (if not, that could explain false-positive)?
https://bugs.winehq.org/show_bug.cgi?id=42762
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shtetldik@gmail.com
--- Comment #3 from Shmerl shtetldik@gmail.com --- I get it now with the Witcher 3 as well. It crashes with this message:
err:seh:cxx_local_unwind invalid trylevel 8323199 abnormal program termination
https://bugs.winehq.org/show_bug.cgi?id=42762
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Jacek Caban from comment #2)
Does reverting b682e1c41d89c9303d30312c83a402d0cdee4ece help? Also, did you ensure that wineserver is killed between test runs (if not, that could explain false-positive)?
I forgot to reply to this message during the week, it didn't work. I'm rerunning the regression test now.
https://bugs.winehq.org/show_bug.cgi?id=42762
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr@codeweavers.com Regression SHA1| |5a10705f0c57142c6317bfab660 | |d6270116c332c Component|-unknown |msvcrt
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- OK, my first guess was right and the new regression test confirms it.
5a10705f0c57142c6317bfab660d6270116c332c is the first bad commit commit 5a10705f0c57142c6317bfab660d6270116c332c Author: Daniel Lehman dlehman@esri.com Date: Tue Aug 2 17:16:52 2016 -0700
msvcrt: Call unwind handlers on intermediate frames during virtual unwind.
Signed-off-by: Daniel Lehman dlehman@esri.com Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
Probably the false positive was about the missing wineserver -k between tries as Jacek pointed out.
Reverting the above patch on wine-git allows the game to start. Putting it back gives the crash. I can't find Daniel Lehman email in bugzilla, adding Piotr instead.
https://bugs.winehq.org/show_bug.cgi?id=42762
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 57823 --> https://bugs.winehq.org/attachment.cgi?id=57823 +seh with a little extra debug (patch in the end)
https://bugs.winehq.org/show_bug.cgi?id=42762
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|No Man's Sky (GOG) no |Multiple 64-bit games no |longer starts |longer start with a seh | |unwind error (No Man's Sky | |(GOG), Witcher 3, Gal*Gun | |Double Peace)
https://bugs.winehq.org/show_bug.cgi?id=42762
Anthony Jagers noonetinone@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |noonetinone@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=42762
--- Comment #7 from Piotr Caban piotr.caban@gmail.com --- I think this is the sequence of exceptions that will cause such an error: try { klass a; try { klass a; try { klass a; throw new klass(); } catch (int) {} } catch (void*) { klass a; throw; } } catch (void*) { klass a; } In this case unwind_help[0] is uninitialized causing incorrect local_unwind.
https://bugs.winehq.org/show_bug.cgi?id=42762
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #8 from Piotr Caban piotr.caban@gmail.com --- It should be fixed by commit da8b706fdb1488344f91b2fcfba63d6ad8d8e673. Please retest.
https://bugs.winehq.org/show_bug.cgi?id=42762
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |da8b706fdb1488344f91b2fcfba | |63d6ad8d8e673 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Piotr Caban from comment #8)
It should be fixed by commit da8b706fdb1488344f91b2fcfba63d6ad8d8e673. Please retest.
Confirming fixed using No Man's Sky. Thanks.
https://bugs.winehq.org/show_bug.cgi?id=42762
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.6.
https://bugs.winehq.org/show_bug.cgi?id=42762
--- Comment #11 from Shmerl shtetldik@gmail.com --- Yep, I can confirm it fixes The Witcher 3 as well.