[startup][audio] Active playback endpoint passes preflight, but SpatialAudio stream activation fails with 0x80040154 and loading stalls #256

Open
opened 2026-12-04 08:54:42 +00:00 by Heming9 · 1 comment

An active default playback endpoint can exist while the Windows SpatialAudio runtime cannot create the stream required by the title. Darner's current audio preflight checks GetDefaultAudioEndpoint only, so this host passed the check and then appeared to load indefinitely or hit the title's 96 KiB command-buffer assertion.

Environment

  • Darner v2026.12.03.01, release build.
  • Windows 10 Pro x64, build 19045.5247.
  • Intel Core i5-12600KF; NVIDIA RTX 4070 SUPER 12 GB, driver 617.42.
  • Active default render endpoint: Odyssey G5 / NVIDIA High Definition Audio.
  • v2026.12.03.02 was not retested on the broken host.

Host-side trigger and independent reproduction

The affected host was missing Windows spatial-audio files/registrations. Using a standalone probe in the same interactive user/session:

  1. GetDefaultAudioEndpoint(eRender, eConsole): S_OK.
  2. Activate IAudioClient and shared-mode initialization: S_OK. XAudio2 mastering-voice creation also succeeded.
  3. Activate ISpatialAudioClient, enumerate format index 0, and test mono 48 kHz float: S_OK.
  4. ActivateSpatialAudioStream: 0x80040154 (REGDB_E_CLASSNOTREG).

This HRESULT was captured by the standalone probe using the game-equivalent request; it was not instrumented inside the running title.

Stream request: format index 0 (mono 48 kHz, 32-bit float), static object mask 0x6, min/max dynamic objects 0/0, audio category 6, auto-reset event, notify object NULL. GetMaxDynamicObjectCount=0 is compatible with this static-only request and was not treated as the failure cause.

Observed effect in the title

  • Audio initialization cleaned up the spatial client and left the output-entry count at zero.
  • The zero-entry path at title RVA 0x5267720 -> 0x5267cfb returns without releasing its lock.
  • Repeated runtime samples showed one persistent lock owner, recursion count 1, consumer frame count stuck at 1, and ready command buffers not draining.
  • The main thread waited for the corresponding queue completion event. Presentation continued while game timers froze.
  • Other runs hit 0x80000003 at title+0x4dcbc9d, with 80 bytes remaining and a 1728-byte append to a 96 KiB buffer.
  • A resource-traced run completed 9664 reads without a failed read record; 287 status writes were observed by the title. Selected resource segments matched the reference; this was not a full asset audit.

Before/after verification

Restoring matching Microsoft spatial-audio files and the component manifest's missing registrations changed the identical standalone stream probe from 0x80040154 to S_OK. Start, three 480-frame processing periods, Stop and Reset succeeded. In a fresh game run, audio initialization succeeded, the stream pointer was non-null, the lock was free, consumer/game frames advanced, and the user confirmed entry past the previous loading screen.

Suggested improvement

Extend startup validation or initialization-error reporting to cover SpatialAudio stream creation, not only default endpoint presence. When it fails, show/log the HRESULT and actionable Windows audio-component guidance instead of leaving the user at a loading spinner. A silent-output fallback could be considered separately.

The host component corruption is the trigger; the actionable Darner issue is detection and failure reporting. This report does not request that Darner automatically install or register Windows system files.

No game assets, DLLs, connection credentials or raw private logs are included.

An active default playback endpoint can exist while the Windows SpatialAudio runtime cannot create the stream required by the title. Darner's current audio preflight checks GetDefaultAudioEndpoint only, so this host passed the check and then appeared to load indefinitely or hit the title's 96 KiB command-buffer assertion. ## Environment - Darner v2026.12.03.01, release build. - Windows 10 Pro x64, build 19045.5247. - Intel Core i5-12600KF; NVIDIA RTX 4070 SUPER 12 GB, driver 617.42. - Active default render endpoint: Odyssey G5 / NVIDIA High Definition Audio. - v2026.12.03.02 was not retested on the broken host. ## Host-side trigger and independent reproduction The affected host was missing Windows spatial-audio files/registrations. Using a standalone probe in the same interactive user/session: 1. GetDefaultAudioEndpoint(eRender, eConsole): S_OK. 2. Activate IAudioClient and shared-mode initialization: S_OK. XAudio2 mastering-voice creation also succeeded. 3. Activate ISpatialAudioClient, enumerate format index 0, and test mono 48 kHz float: S_OK. 4. ActivateSpatialAudioStream: 0x80040154 (REGDB_E_CLASSNOTREG). This HRESULT was captured by the standalone probe using the game-equivalent request; it was not instrumented inside the running title. Stream request: format index 0 (mono 48 kHz, 32-bit float), static object mask 0x6, min/max dynamic objects 0/0, audio category 6, auto-reset event, notify object NULL. GetMaxDynamicObjectCount=0 is compatible with this static-only request and was not treated as the failure cause. ## Observed effect in the title - Audio initialization cleaned up the spatial client and left the output-entry count at zero. - The zero-entry path at title RVA 0x5267720 -> 0x5267cfb returns without releasing its lock. - Repeated runtime samples showed one persistent lock owner, recursion count 1, consumer frame count stuck at 1, and ready command buffers not draining. - The main thread waited for the corresponding queue completion event. Presentation continued while game timers froze. - Other runs hit 0x80000003 at title+0x4dcbc9d, with 80 bytes remaining and a 1728-byte append to a 96 KiB buffer. - A resource-traced run completed 9664 reads without a failed read record; 287 status writes were observed by the title. Selected resource segments matched the reference; this was not a full asset audit. ## Before/after verification Restoring matching Microsoft spatial-audio files and the component manifest's missing registrations changed the identical standalone stream probe from 0x80040154 to S_OK. Start, three 480-frame processing periods, Stop and Reset succeeded. In a fresh game run, audio initialization succeeded, the stream pointer was non-null, the lock was free, consumer/game frames advanced, and the user confirmed entry past the previous loading screen. ## Suggested improvement Extend startup validation or initialization-error reporting to cover SpatialAudio stream creation, not only default endpoint presence. When it fails, show/log the HRESULT and actionable Windows audio-component guidance instead of leaving the user at a loading spinner. A silent-output fallback could be considered separately. The host component corruption is the trigger; the actionable Darner issue is detection and failure reporting. This report does not request that Darner automatically install or register Windows system files. ## Related - Current preflight: https://git.gtahub.st/TrustNo1/Darner/src/branch/main/crates/darner-hle/src/modules/audio/output.rs - Related no-active-output case: https://github.com/xcl-dev/xcl/issues/695 - Related queue assertion: https://github.com/xcl-dev/xcl/issues/723 No game assets, DLLs, connection credentials or raw private logs are included.

I’m working on the Windows startup diagnostic for this case. I’ll check whether the default endpoint can create the static stereo spatial stream and report the failure stage and HRESULT alongside the existing audio notice. I’ll test the healthy path on Windows and the reported error path with a controlled fixture.

I’m working on the Windows startup diagnostic for this case. I’ll check whether the default endpoint can create the static stereo spatial stream and report the failure stage and HRESULT alongside the existing audio notice. I’ll test the healthy path on Windows and the reported error path with a controlled fixture.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#256
No description provided.