https://bugs.winehq.org/show_bug.cgi?id=51616
Bug ID: 51616 Summary: Unravel Two crashes on intro Product: Wine Version: 6.15 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
Assertion failed!
Program: C:\Program Files (x86)\Steam\steamapps\common\UnravelTwo\UnravelTwo.exe File: ../wine/dlls/quartz/memallocator.c Line: 346
Expression: "ms->ref == 0"
Renaming 'V' folder in 'GameFolder\D3D11' is a workaround.
https://bugs.winehq.org/show_bug.cgi?id=51616
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- Could you attach a +quartz log?
https://bugs.winehq.org/show_bug.cgi?id=51616
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com --- Created attachment 70474 --> https://bugs.winehq.org/attachment.cgi?id=70474 +quartz
https://bugs.winehq.org/show_bug.cgi?id=51616
Brendan McGrath brendan@redmandi.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |brendan@redmandi.com
--- Comment #3 from Brendan McGrath brendan@redmandi.com --- Created attachment 72697 --> https://bugs.winehq.org/attachment.cgi?id=72697 Fix "Assertion failed!"
This patch fixes the "Assertion failed!" error.
The issue is that the "ugly" work-around assumes that if a reference is added during the callback, then it has been leaked. So the work-around takes responsibility for freeing it up.
However, in Unravel Two, the "leaked" reference is also freed by the application, resulting in the reference count being decremented below zero (resulting in a negative overflow).
This results in the assertion failure at dlls/quartz/memallocator.c:346; because instead of being zero, the reference has a value of 4294967295 (or minus one).
https://bugs.winehq.org/show_bug.cgi?id=51616
--- Comment #4 from Brendan McGrath brendan@redmandi.com --- I've submitted this patch to the mailing list.
https://source.winehq.org/patches/data/241639
https://bugs.winehq.org/show_bug.cgi?id=51616
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |1113f42aa748d9e0a27c4663b9d | |8de1237f95e73 Resolution|--- |FIXED Component|-unknown |quartz
--- Comment #5 from Andrey Gusev andrey.goosev@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/1113f42aa748d9e0a27c4663b9d8de...
https://bugs.winehq.org/show_bug.cgi?id=51616
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.14.