https://bugs.winehq.org/show_bug.cgi?id=46727
Bug ID: 46727 Summary: Alekhine's Gun crashes on startup when using FAudio Product: Wine Version: 4.2 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: xaudio2 Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
Created attachment 63702 --> https://bugs.winehq.org/attachment.cgi?id=63702 backtrace
err:xaudio2:impl_from_IXAudio2Voice invalid IXAudio2Voice pointer: 0x114a242c
wine-4.2-195-gf784cabd34
https://bugs.winehq.org/show_bug.cgi?id=46727
Ethan Lee flibitijibibo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |flibitijibibo@gmail.com
--- Comment #1 from Ethan Lee flibitijibibo@gmail.com --- This is looking to be the same issue as https://bugs.winehq.org/show_bug.cgi?id=46724. See if the patch I posted over there fixes this game too!
https://bugs.winehq.org/show_bug.cgi?id=46727
--- Comment #2 from Ethan Lee flibitijibibo@gmail.com --- Created attachment 63707 --> https://bugs.winehq.org/attachment.cgi?id=63707 Patch to work around startup crash
Tracing around a bit, it seems that the original error message is right. When the engine creates a source voice, it passes in a send list with 1 output voice, which is a pointer that doesn't come from XAudio2 at all! I have no idea what this pointer is or where it's from, so this temporary patch just returns an error for those voices. I have no idea if this is the correct behavior or if those pointers actually DO mean something and I'm not seeing the source of them.
https://bugs.winehq.org/show_bug.cgi?id=46727
--- Comment #3 from Andrey Gusev andrey.goosev@gmail.com --- Now game launches with no sound at all and hangs after a while with 'err:ntdll:RtlpWaitForCriticalSection section 0x9e02c9c "../xaudio2_7/xaudio_dll.c: XA2VoiceImpl.lock" wait timed out in thread 012c, blocked by 0121, retrying (60 sec)'
https://bugs.winehq.org/show_bug.cgi?id=46727
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=46727
--- Comment #4 from Ethan Lee flibitijibibo@gmail.com --- Created attachment 63719 --> https://bugs.winehq.org/attachment.cgi?id=63719 Fix crash due to struct misalignment
Turns out the 2.2->2.3 update's subtleties got the best of me! This patch should fix it without going silent (and without the clumsy hang on exit). There will be at least 2 compiler warnings from this patch; I'll do a proper fix once this is verified.
https://bugs.winehq.org/show_bug.cgi?id=46727
--- Comment #5 from Ethan Lee flibitijibibo@gmail.com --- Fixed in master:
https://source.winehq.org/git/wine.git/commit/b49b78db49d79bdd1358f2244a87d7...
https://bugs.winehq.org/show_bug.cgi?id=46727
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b49b78db49d79bdd1358f2244a8 | |7d74db6350b73 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #6 from Andrey Gusev andrey.goosev@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/b49b78db49d79bdd1358f2244a87d7...
https://bugs.winehq.org/show_bug.cgi?id=46727
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.3.