Non-gpu suite under Wine: xma2_source_voice_decodes_and_manages_lifetime fails deterministically on two Wine setups #2661

Closed
opened 2026-11-26 05:43:30 +00:00 by SlopTart · 2 comments
SlopTart commented 2026-11-26 05:43:30 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T05:43:30Z.


Summary: the XMA2 decode path returns 0 samples under Wine on two independent setups (different Wine versions, different GPU vendors), so hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime fails deterministically. Both machines fail at the same assertion with the same numbers.

Machine A (primary rig): AMD Ryzen 9 9900X (12 cores), 96 GB DDR5, Radeon RX 7900 XT 20 GB (Navi 31), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).
Machine B (secondary rig): Intel Core i5-10600K (6 cores), 16 GB DDR4, NVIDIA GeForce GTX 1070 8 GB (driver 550.163.01), Debian 13 (kernel 6.12.117), wine-10.0 (Debian), rustc 1.100.0, vkd3d-proton 3.1 with the XCL patch (XCL_DXC_DIR set to the official DXC kit). The two machines share nothing except Wine and the vkd3d-proton build, which is what makes the identical failure informative.

Repro (identical on both, XCL_NETWORK=0, fresh vkd3d-proton.cache each run):

cargo test --release --locked --target x86_64-pc-windows-gnu -p xcl --lib -- hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime --exact --test-threads=1

Result: fails 3/3 on machine A (head caed44ec = origin/main + PR #2656) and on machine B on both origin/main b49be183 and caed44ec. Panic signature is byte-identical on both machines:

xcl: XAudio2: XMA2 voice (1 ch., 48000 Hz) -> real PCM16 decoding via hle::xma2
xcl: XAudio2: XMA buffer decoded 0 samples - substituting silence
thread 'hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime' panicked at crates/xcl/src/hle/xaudio2.rs:1599:13:
assertion `left == right` failed
  left: 0
 right: 12291

Context (suite level): full non-gpu run (-- --skip gpu:: --test-threads=2) gives 596 passed / 3 failed / 4 ignored / 734 filtered on both machines on caed44ec. Besides this one: the promoted-UAV-clear driver-lenience red (see PR #2490) appears on both, and machine B additionally has write_buffer_immediate_on_open_existing_heap_visible_to_cpu (NVIDIA-side; passes on RADV).

Not tested: native Windows (no Windows machine on these lanes), so I cannot say whether this is Wine-only or also fails natively; the two tested environments share Wine and XMA2 under hle::xma2.

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:issue:6620367780 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2671). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T05:43:30Z. --- **Summary**: the XMA2 decode path returns 0 samples under Wine on two independent setups (different Wine versions, different GPU vendors), so `hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime` fails deterministically. Both machines fail at the same assertion with the same numbers. **Machine A** (primary rig): AMD Ryzen 9 9900X (12 cores), 96 GB DDR5, Radeon RX 7900 XT 20 GB (Navi 31), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). **Machine B** (secondary rig): Intel Core i5-10600K (6 cores), 16 GB DDR4, NVIDIA GeForce GTX 1070 8 GB (driver 550.163.01), Debian 13 (kernel 6.12.117), wine-10.0 (Debian), rustc 1.100.0, vkd3d-proton 3.1 with the XCL patch (XCL_DXC_DIR set to the official DXC kit). The two machines share nothing except Wine and the vkd3d-proton build, which is what makes the identical failure informative. **Repro** (identical on both, `XCL_NETWORK=0`, fresh `vkd3d-proton.cache` each run): ``` cargo test --release --locked --target x86_64-pc-windows-gnu -p xcl --lib -- hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime --exact --test-threads=1 ``` **Result**: fails 3/3 on machine A (head `caed44ec` = `origin/main` + PR #2656) and on machine B on both `origin/main` `b49be183` and `caed44ec`. Panic signature is byte-identical on both machines: ``` xcl: XAudio2: XMA2 voice (1 ch., 48000 Hz) -> real PCM16 decoding via hle::xma2 xcl: XAudio2: XMA buffer decoded 0 samples - substituting silence thread 'hle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetime' panicked at crates/xcl/src/hle/xaudio2.rs:1599:13: assertion `left == right` failed left: 0 right: 12291 ``` **Context (suite level)**: full non-gpu run (`-- --skip gpu:: --test-threads=2`) gives 596 passed / 3 failed / 4 ignored / 734 filtered on both machines on `caed44ec`. Besides this one: the promoted-UAV-clear driver-lenience red (see PR #2490) appears on both, and machine B additionally has `write_buffer_immediate_on_open_existing_heap_visible_to_cpu` (NVIDIA-side; passes on RADV). **Not tested**: native Windows (no Windows machine on these lanes), so I cannot say whether this is Wine-only or also fails natively; the two tested environments share Wine and XMA2 under `hle::xma2`. **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
oni-swr commented 2026-11-26 07:03:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T06:19:03Z.


Claiming the native Windows control for the reported XMA2 test failure. I’ll run the existing synthetic fixture and check whether the reported zero-sample result is specific to Wine.
AI use: Codex (gpt-6.2-sol).

<!-- greyfinch-sync:ivall/xcl:comment:7184310719 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2671#issuecomment-7184310719). Originally posted by [oni-swr](https://github.com/oni-swr) on 2026-11-26T06:19:03Z. --- Claiming the native Windows control for the reported XMA2 test failure. I’ll run the existing synthetic fixture and check whether the reported zero-sample result is specific to Wine. AI use: Codex (gpt-6.2-sol).
SlopTart commented 2026-11-26 07:03:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T06:30:11Z.


Duplicate of #2481, which pablogonz12 filed about 10 hours before this one. I missed it pre-filing because their body words the failure differently from my search terms. Closing here to consolidate.

Root cause posted on #2481: the FAudio vendored by Wine builds older than 26.05 gates pCurrentBufferContext behind actual playback start (newBuffer flag, src/FAudio.c:2931 at tag 25.12), so a stopped voice with queued buffers answers BuffersQueued = 2, pCurrentBufferContext = NULL. Instrumented raw return on both rigs above: cur=0x0 q=2 sp=0. Native Windows passes the same assertion (luckyteagirl on #2481). Not XMA2-specific, not a regression, not xcl-caused.

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7184491935 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2671#issuecomment-7184491935). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T06:30:11Z. --- Duplicate of #2481, which pablogonz12 filed about 10 hours before this one. I missed it pre-filing because their body words the failure differently from my search terms. Closing here to consolidate. Root cause posted on #2481: the FAudio vendored by Wine builds older than 26.05 gates `pCurrentBufferContext` behind actual playback start (`newBuffer` flag, `src/FAudio.c:2931` at tag 25.12), so a stopped voice with queued buffers answers `BuffersQueued = 2, pCurrentBufferContext = NULL`. Instrumented raw return on both rigs above: `cur=0x0 q=2 sp=0`. Native Windows passes the same assertion (luckyteagirl on #2481). Not XMA2-specific, not a regression, not xcl-caused. **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#2661
No description provided.