https://bugs.winehq.org/show_bug.cgi?id=49409
Bug ID: 49409 Summary: Monkey Island 2 Special Edition crash / freeze with staging Product: Wine-staging Version: 5.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: spoon0042@hotmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Got this while trying to help someone on the forums, stable / devel seem fine but staging tends to freeze after not too long with this output on terminal:
wine client error:318: read: Bad address wine client error:318: write: Bad file descriptor
Using the Steam version here, usually just start a new game and wait and it will freeze before you can even do anything.
I attempted a regression test but didn't get anywhere. At some steps it would crash or freeze in a different way, both with and without the usual wine crash dialog.
https://bugs.winehq.org/show_bug.cgi?id=49409
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #1 from Béla Gyebrószki gyebro69@gmail.com --- I can reproduce the problem with the GOG.com version. The game hangs in Wine Staging-5.11 usually in 1-10 minutes with errors like these wine client error:24: read: Bad address wine client error:24: write: Bad file descriptor
I think this could be related to the xactengine patchset in Staging: if I compile Staging without the 'xactengine-initial' patchset and install Xaudio dlls using winetricks, then the problem doesn't occur. In Staging when the 'xactengine-initial' patchset is applied, the bug exists whether native Xaudio2 libraries are installed or not.
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to Béla Gyebrószki from comment #1)
I can reproduce the problem with the GOG.com version. The game hangs in Wine Staging-5.11 usually in 1-10 minutes with errors like these wine client error:24: read: Bad address wine client error:24: write: Bad file descriptor
I think this could be related to the xactengine patchset in Staging: if I compile Staging without the 'xactengine-initial' patchset and install Xaudio dlls using winetricks, then the problem doesn't occur. In Staging when the 'xactengine-initial' patchset is applied, the bug exists whether native Xaudio2 libraries are installed or not.
Are you able to narrow it down to a specific xactengine-initial patch?
what version of FAudio are you using?
Could someone please attach a xact3 log when it freezes?
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #3 from Michael McGuire spoon0042@hotmail.com --- Created attachment 67515 --> https://bugs.winehq.org/attachment.cgi?id=67515 monkey2 log +xact3
monkey2 log +xact3
"wine client error:4c4: read: Bad address" at line 46821
I have another log where it just died with no apparent error if you want that too.
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #4 from Michael McGuire spoon0042@hotmail.com --- oh, and using winehq staging 5.11 and libfaudio0 20.01-0~buster here.
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com ---
From the log.
[wmav2 @ 0x7bb289c0] Value 2147483648.000000 for parameter 'max_pixels' out of range [0 - 2.14748e+09]
04c4:trace:xact3:IXACT3CueImpl_GetState (0xd5a86c0)->(0x31d62c) wine client error:4c4: read: Bad address wine client error:4c4: write: Bad file descriptor
Maybe the cue has been deleted behind our backs, and this would explain the no error but a freeze scenario as well.
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- There was a change in FAudio 20.02 which fixed a possible crash like this. Are you able to upgrade your FAudio library?
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #7 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 67541 --> https://bugs.winehq.org/attachment.cgi?id=67541 +xact3 log
FWIW, I'm using FAudio 20.06+master.
https://bugs.winehq.org/show_bug.cgi?id=49409
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Monkey Island 2 Special |Monkey Island 2 Special |Edition crash / freeze with |Edition crash / freeze with |staging |built-in xactengine3_6 Product|Wine-staging |Wine Component|-unknown |xactengine
--- Comment #8 from Béla Gyebrószki gyebro69@gmail.com --- Now this can be reproduced in vanilla Wine because the Staging patches got upstreamed. wine-5.14-196-g03e9de4920
This is the first commit where the bug occurs for me: commit 7362ebcaafc65658d155699b1f4c9c336ef6b8ea xactengine3_6: New DLL.
The game works with 'xactengine3_6=native' override.
I'm using Faudio git currently: https://github.com/FNA-XNA/FAudio/commit/f710ff552869c8a47b05db9522eb3806f8f...
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #9 from Michael McGuire spoon0042@hotmail.com --- Looks to still be present in 6.x with the bonus that now there's no sound and usually crashes in the menu?
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #10 from Michael McGuire spoon0042@hotmail.com --- Sorry. In the menu there's no sound and it usually crashes. In the menu. I think in 5.x it worked but not sure. Once I did manage to start a game and it froze with the usual: wine client error:988: read: Bad address wine client error:988: write: Bad file descriptor
Don't feel like messing with it anymore right now.
https://bugs.winehq.org/show_bug.cgi?id=49409
--- Comment #11 from Michael McGuire spoon0042@hotmail.com --- Wasted a bit too much time with this today. Findings:
"No sound" on the menu isn't quite right, there's an ambient "crickets chirping" that plays. However there should be music and mouseover sfx on the menu items.
Even on 5.15 it will crash or freeze. Just leaving it on the menu either seems to happen randomly. And "crash" may not be the right word as it just seems to terminate without any of the expected messages or dialogs.
Some winetricks voodoo and native overrides seems to make things work. Native xactengine3_6 alone seems to prevent crashes and gets the menu music but misses the menu sfx and possibly other things.
fwiw whatever Proton does has both Monkey SE games just work.
I don't know if any of that is useful but it seemed worth mentioning.
https://bugs.winehq.org/show_bug.cgi?id=49409
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |da89825f98e4f0cb3875735345a | |455512b36b665 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Marking as fixed https://source.winehq.org/git/wine.git/?a=commit;h=da89825f98e4f0cb387573534...
https://bugs.winehq.org/show_bug.cgi?id=49409
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.22.