https://bugs.winehq.org/show_bug.cgi?id=49970
Bug ID: 49970 Summary: No sound in Supreme Commander FA - regression in 5.18 Product: Wine Version: 5.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mszpak@wp.pl Distribution: ---
Supreme Commander Forged Alliance (the latest version from GOG.com) works pretty well (just without dual monitor support) with Wine up to 5.18 (tested with 5.4, 5.8 and 5.17). Unfortunately after upgrade wine-staging 5.18 (wine-5.18-2.fc32.x86_64) there is no sound at all. No sounds in game, no music, even a cinematic intro has no sound.
I tried with some other games with 5.18 and sound works fine.
I don't see anything special regarding sound in a default Wine logs. How could I debug that problem to make it easier to find a reason?
https://bugs.winehq.org/show_bug.cgi?id=49970
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Product|Wine |Wine-staging CC| |leslie_alistair@hotmail.com | |, z.figura12@gmail.com Ever confirmed|0 |1 Component|-unknown |-unknown
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- I can confirm this in wine-staging 5.18, but not wine-5.19.
This seems to be a problem with xactengine-2.9. Wine-5.19 doesn't have this dll while wine-staging does. The probably tries to use it if it's available and there's some issue there.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Gijs Vermeulen from comment #1)
I can confirm this in wine-staging 5.18, but not wine-5.19.
This seems to be a problem with xactengine-2.9. Wine-5.19 doesn't have this dll while wine-staging does. The probably tries to use it if it's available and there's some issue there.
* The game probably tries to use it -> I checked with +loaddll and it does do this
https://bugs.winehq.org/show_bug.cgi?id=49970
Sveinar Søpler cybermax@dexter.no changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cybermax@dexter.no
--- Comment #3 from Sveinar Søpler cybermax@dexter.no --- Does adding +xact3 to your WINEDEBUG get any more useful info?
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #4 from Rafał Mużyło galtgendo@o2.pl --- ...remember though that due to a certain other problem, x3daudio and xactengine need be either both native or both builtin, otherwise game crashes.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #5 from Gijs Vermeulen gijsvrm@gmail.com --- I suspect they might've been fixed in wine-staging 5.19, since the xactengine-2.9 patchset was updated. Currently compiling to know for sure, otherwise I'll attach the correct logs.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #6 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 68372 --> https://bugs.winehq.org/attachment.cgi?id=68372 +xact3
So this is still present in wine-staging 5.19 with FAudio 20.10.
Attached is a +xact3 log. This seems concerning:
0024:trace:xact3:IXACTEngineImpl_Initialize (0x2e23b38)->(0x3a6d2d4) 0024:warn:xact3:IXACTEngineImpl_Initialize FACTAudioEngine_Initialize returned -2
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #7 from Sveinar Søpler cybermax@dexter.no --- https://bugs.winehq.org/show_bug.cgi?id=41468
Seems related
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #8 from Sveinar Søpler cybermax@dexter.no --- I found some samples here: http://clootie.ru/delphi/download_dx92.html#XACT
The XACT_Samples.zip archive consist of 3 "demos" that run various xact things. I tested these on Windows 10 and it worked as it was supposed to, but they all crash with wine-staging-5.19.
The 3rd demo actually gives the same error as the one posted here: 0024:trace:xact3:DllMain (0x7d690000, 1, (nil)) 0024:trace:xact3:DllMain Using FAudio version 201000 0024:trace:xact3:DllGetClassObject ({cd0d66ec-8057-43f5-acbd-66dfb36fd78c}, {00000001-0000-0000-c000-000000000046}, 0x31fd68) 0024:trace:xact3:XACTCF_CreateInstance (0x7d6a25e4)->((nil),{c2f0af68-1f6d-40ed-964f-26256842edc4},0x31fd6c) 0024:trace:xact3:IXACTEngineImpl_QueryInterface (0x88efc0)->({c2f0af68-1f6d-40ed-964f-26256842edc4}, 0x31fd6c) 0024:trace:xact3:IXACTEngineImpl_AddRef (0x88efc0)->(): Refcount now 2 0024:trace:xact3:IXACTEngineImpl_Initialize (0x88efc0)->(0x31fe6c) 0024:warn:xact3:IXACTEngineImpl_Initialize FACTAudioEngine_Initialize returned -2 0024:trace:xact3:IXACTEngineImpl_ShutDown (0x88efc0) 0024:trace:xact3:IXACTEngineImpl_Release (0x88efc0)->(): Refcount now 1
It does however point to a different ID: cd0d66ec-8057-43f5-acbd-66dfb36fd78c which seems to be XACT3_VER == 0x0207
Anyway, if someone with knowhow can use those freebie demos to figure something out, it might solve something for that game aswell (i hope).
https://bugs.winehq.org/show_bug.cgi?id=49970
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Keywords| |regression Summary|No sound in Supreme |Supreme Commander: Forged |Commander FA - regression |Alliance has no sound |in 5.18 | Version|5.18 |unspecified Regression SHA1| |9e44c3556dedf7f55cefcd7140e | |1e54f6141b032 Component|-unknown |xactengine
--- Comment #9 from Gijs Vermeulen gijsvrm@gmail.com --- Moving to the Wine product as xactengine2_9.dll is now upstream.
Unfortunately, the game now crashes instead of running without audio. I'm attaching a +xact3 log hereafter.
https://bugs.winehq.org/show_bug.cgi?id=49970
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68372|0 |1 is obsolete| |
--- Comment #10 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 69898 --> https://bugs.winehq.org/attachment.cgi?id=69898 +xact3
https://bugs.winehq.org/show_bug.cgi?id=49970
WinterSnowfall winter.snowfall23@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winter.snowfall23@gmail.com
--- Comment #11 from WinterSnowfall winter.snowfall23@gmail.com --- In my case it does not crash (6.7 Staging), however there is still no sound with the builtin dll. Using the native (Windows 10) version of the xactengine2_9.dll works.
As a side-note, there is also no sound for the base game (Supreme Commander), which is using xactengine2_4.dll, with the builtin version. Similarly, using the native (Windows 10) version of the xactengine2_4.dll brings back the sound as well.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #12 from WinterSnowfall winter.snowfall23@gmail.com --- Created attachment 69914 --> https://bugs.winehq.org/attachment.cgi?id=69914 Trace collected with Wine Staging 6.7 - game starts but there is no sound
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #13 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- 0024:warn:xact3:IXACT3EngineImpl_Initialize FACTAudioEngine_Initialize returned -2
FAudio has failed to parse the xact data.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #14 from WinterSnowfall winter.snowfall23@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #13)
0024:warn:xact3:IXACT3EngineImpl_Initialize FACTAudioEngine_Initialize returned -2
FAudio has failed to parse the xact data.
Apologies, please disregard my previous report. I've upgraded to FAudio 21.04 and I am seeing the same behavior Gijs Vermeulen has described.
The game crashes with:
0264:trace:xact3:IXACT3EngineImpl_CreateInMemoryWaveBank (0x3816978)->(0x1f720000, 3513768, 0x0, 0x0, 0x42eaaf4) 0264:trace:xact3:IXACT3EngineImpl_CreateInMemoryWaveBank Created in-memory WaveBank: 0x36901e8 0264:trace:xact3:IXACT3EngineImpl_CreateSoundBank (0x3816978)->(0x30abf80, 780, 0x0, 0x0, 0x42eab38): stub! 0264:trace:xact3:IXACT3EngineImpl_CreateSoundBank Created SoundBank: 0x36ae008 0264:trace:xact3:IXACT3EngineImpl_CreateSoundBank (0x3816978)->(0x3037f00, 1253, 0x0, 0x0, 0x42eab70): stub!
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #15 from Rafał Mużyło galtgendo@o2.pl --- (In reply to Alistair Leslie-Hughes from comment #13)
0024:warn:xact3:IXACT3EngineImpl_Initialize FACTAudioEngine_Initialize returned -2
FAudio has failed to parse the xact data.
Not as much failed to parse, as didn't try at all - FAudio doesn't support old (pre-3.0) audio content.
https://bugs.winehq.org/show_bug.cgi?id=49970
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |5.18 Summary|Supreme Commander: Forged |Supreme Commander: Forged |Alliance has no sound |Alliance has no sound | |(needs XACT < 3.0 support)
https://bugs.winehq.org/show_bug.cgi?id=49970
exposight exposight@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |exposight@gmail.com
--- Comment #16 from exposight exposight@gmail.com --- Same with older Supreme Commander on Wine Staging 8.7. Using only native xactengine2_4.dll leads to game freeze on start and black screen. Adding native dbghelp makes the sound and game work fine.
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #17 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- (In reply to exposight from comment #16)
Same with older Supreme Commander on Wine Staging 8.7. Using only native xactengine2_4.dll leads to game freeze on start and black screen. Adding native dbghelp makes the sound and game work fine.
This doesn't make sense. Using builtin xactengine2_4 will possible crash or freeze, and native will make it work. Dbghelp suggests a crash might of occurred.
Can you confirm this correct?
Can you provide a +loaddll,xact3 log?
https://bugs.winehq.org/show_bug.cgi?id=49970
--- Comment #18 from exposight exposight@gmail.com --- Have retried this again with installing the game to a clean wine prefix, and there is no need in dbghelp anymore. Looks like I had my installation broken. Only 'winetricks xact3' was needed to have the sound.