Retail title 1.0.2.1: assert 0x80000003 at +0x4dcbc9d on the account prompt – a 96 KiB stream full (RTX 4060 Ti 8 GB, Windows 10) #695

Open
opened 2026-11-26 04:29:47 +00:00 by github-bot · 1 comment
Owner

@⁠Placebola on GitHub · 2026-11-24 03:37 UTC · original

Game and package version

1.0.2.1, unpacked

What happens

The title reaches its first menu, the account prompt (shown at ~6 s), presents at ~24 fps, then traps on its own int3 at ~31–34 s. It is the same in every run: same address, same registers, and 8,741 [SHADER] lines in the log before it. Pressing A changes nothing: with XCL_PRESS_A_AT=12,20 the log has GameInput: gamepad buttons 0x4 pressed for the first time at 20.0 s and the trap follows at 30.9 s.

CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4dcbc9d rax=0x17fb0 rbx=0x50 rcx=0x704cab5a8 rdx=0xe164ef7480 rsi=0x6c0 rdi=0x704cab5a8 rbp=0xe164eff4c0 r8=0x6c0 r9=0x20 … r14=0x1453ec000 …; on the stack: game_scarlett_master.exe+0x4e52a83, game_scarlett_master.exe+0x4e529c4, …

What the code does there (static read of the retail exe with dumpbin /disasm, RVAs):

  • +0x4dcbc40 appends n bytes to a stream: remaining = [s+0x10] - [s+0x18]; remaining < n → int3 at +0x4dcbc9d, else memcpy and advance [s+0x18]. At the trap remaining = 0x50 (rbx) and n = 0x6c0 (rsi, r8); rax = 0x17fb0 is the position, so the stream holds 0x18000 bytes (96 KiB).
  • Its caller +0x4e52a40 takes a lock at [slot]+8, pads the shared stream to 16 bytes with a packet (+0x4dcae80 writes header 0x1000007 with the padding count in bits 22–25), then appends a scope's own buffer ([obj+8], length [obj+0x18]) to it. +0x4e529a0 calls it when a scope ends, the shared stream found from [obj+0x28] by +0x4dcbc10.

So a shared stream of 96 KiB that the title fills with packets is not emptied before it is full. Which part of the title empties it, and what it waits for, I did not find.

Ruled out on this machine:

  • Commit: the first run started with 15 GB of commit free (UMA: … under 17408 MB warning). With a system-managed page file and a reboot the warning is gone (4095 MB coherent window); the trap is unchanged.
  • Waiting on the prompt: the A press above.

ID3D12CommandAllocator::#9 (stub, ~650 calls per run), for whoever looks at it: at +0x1884ee the title passes rdx = +0x555df10 and r8 = a context. +0x555df10 takes a size (4th argument) and an alignment (5th, 1 << n below 16), allocates a block from the title's allocator, frees the previous block kept at context+0x12798 and returns the new one – a callback that hands out memory blocks. I found nothing linking it to the stream above; this is not a claim that #9 causes the trap.

Also in the same runs, before the trap: 39 mesh pipelines refused (MS … in the AS slot), and at ~17–19 s five graphics PSOs rejected, two with 0x80070057 (topology type 3, 1 render targets, DSV format 0) and three with 0x8007000e.

Not #598: without the Agility SDK (inbox D3D12, SM 6.5) my first run ended at +0xb5a5f8 (read at 0x68) as in #598; with the Agility SDK loaded the title gets past it and stops at +0x4dcbc9d instead. Not #298 / #173 either (other addresses).

AI use: Claude Code with Claude Opus 5.5 read the logs, disassembled the exe with dumpbin, and drafted this report; the runs are mine, on the hardware above.

XCL version

dd2ae9a (main), release build. main is at 91f9a5e now (README, a DXC blob cache), not rerun.

GPU and driver version

NVIDIA GeForce RTX 4060 Ti 8 GB (32-lane waves), driver 616.64. Intel Core i7-7700 (the title's monitorx / mwaitx are emulated), 32 GB RAM.

Windows version

Windows 10 Home 22H2, build 19045.6466. D3D12 Agility SDK 1.620.2 next to xcl.exe (XCL_D3D12_DIR; the log has D3D12: Agility SDK v620). DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No System32\xgameruntime.dll (Gaming Services not installed). Launched with XCL_NETWORK=0, XCL_D3D12_DIR=<xcl>\target\release\D3D12, XCL_RUN_SECONDS=90, XCL_PRESS_A_AT=12,20, then xcl.exe run <game folder>.

report.json and xcl.log

report.json
xcl.log

Console output

Game exited with code 0x80000003 (2147483651)
Missing on this PC (see the start of the run):
  WARNING: no System32\xgameruntime.dll: dialogs, text entry, game invites and game streaming are missing (XCL's own task queues, async and networking are used)
CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4dcbc9d (registers above)
Unimplemented functions called (7):
       656×  d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC)   (first call: game_scarlett_master.exe+0x188501)
       655×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#126 (not on PC)   (first call: game_scarlett_master.exe+0x3263e)
       655×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#142 (not on PC)   (first call: game_scarlett_master.exe+0x329e9)
       655×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#75 (console extension)   (first call: game_scarlett_master.exe+0x32820)
        19×  d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout)   (first call: 0x0)
         7×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#131 (not on PC)   (first call: game_scarlett_master.exe+0x2478bc5)
         5×  d3d12_xs.dll!ID3D12GraphicsCommandList12::#132 (not on PC)   (first call: game_scarlett_master.exe+0x2478ba4)
**@⁠Placebola** on GitHub · 2026-11-24 03:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/695) ### Game and package version <package id> 1.0.2.1, unpacked ### What happens The title reaches its first menu, the account prompt (shown at ~6 s), presents at ~24 fps, then traps on its own `int3` at ~31–34 s. It is the same in every run: same address, same registers, and 8,741 `[SHADER]` lines in the log before it. Pressing A changes nothing: with `XCL_PRESS_A_AT=12,20` the log has `GameInput: gamepad buttons 0x4 pressed for the first time` at 20.0 s and the trap follows at 30.9 s. ``` CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4dcbc9d rax=0x17fb0 rbx=0x50 rcx=0x704cab5a8 rdx=0xe164ef7480 rsi=0x6c0 rdi=0x704cab5a8 rbp=0xe164eff4c0 r8=0x6c0 r9=0x20 … r14=0x1453ec000 …; on the stack: game_scarlett_master.exe+0x4e52a83, game_scarlett_master.exe+0x4e529c4, … ``` What the code does there (static read of the retail exe with `dumpbin /disasm`, RVAs): - `+0x4dcbc40` appends `n` bytes to a stream: `remaining = [s+0x10] - [s+0x18]`; `remaining < n` → `int3` at `+0x4dcbc9d`, else `memcpy` and advance `[s+0x18]`. At the trap `remaining` = 0x50 (`rbx`) and `n` = 0x6c0 (`rsi`, `r8`); `rax` = 0x17fb0 is the position, so the stream holds 0x18000 bytes (96 KiB). - Its caller `+0x4e52a40` takes a lock at `[slot]+8`, pads the shared stream to 16 bytes with a packet (`+0x4dcae80` writes header `0x1000007` with the padding count in bits 22–25), then appends a scope's own buffer (`[obj+8]`, length `[obj+0x18]`) to it. `+0x4e529a0` calls it when a scope ends, the shared stream found from `[obj+0x28]` by `+0x4dcbc10`. So a shared stream of 96 KiB that the title fills with packets is not emptied before it is full. Which part of the title empties it, and what it waits for, I did not find. Ruled out on this machine: - Commit: the first run started with 15 GB of commit free (`UMA: … under 17408 MB` warning). With a system-managed page file and a reboot the warning is gone (4095 MB coherent window); the trap is unchanged. - Waiting on the prompt: the A press above. `ID3D12CommandAllocator::#9` (stub, ~650 calls per run), for whoever looks at it: at `+0x1884ee` the title passes `rdx` = `+0x555df10` and `r8` = a context. `+0x555df10` takes a size (4th argument) and an alignment (5th, `1 << n` below 16), allocates a block from the title's allocator, frees the previous block kept at `context+0x12798` and returns the new one – a callback that hands out memory blocks. I found nothing linking it to the stream above; this is not a claim that #9 causes the trap. Also in the same runs, before the trap: 39 mesh pipelines refused (`MS … in the AS slot`), and at ~17–19 s five graphics PSOs rejected, two with `0x80070057` (`topology type 3, 1 render targets, DSV format 0`) and three with `0x8007000e`. Not #598: without the Agility SDK (inbox D3D12, SM 6.5) my first run ended at +0xb5a5f8 (read at 0x68) as in #598; with the Agility SDK loaded the title gets past it and stops at +0x4dcbc9d instead. Not #298 / #173 either (other addresses). AI use: Claude Code with Claude Opus 5.5 read the logs, disassembled the exe with dumpbin, and drafted this report; the runs are mine, on the hardware above. ### XCL version `dd2ae9a` (main), release build. `main` is at `91f9a5e` now (README, a DXC blob cache), not rerun. ### GPU and driver version NVIDIA GeForce RTX 4060 Ti 8 GB (32-lane waves), driver 616.64. Intel Core i7-7700 (the title's `monitorx` / `mwaitx` are emulated), 32 GB RAM. ### Windows version Windows 10 Home 22H2, build 19045.6466. D3D12 Agility SDK 1.620.2 next to xcl.exe (`XCL_D3D12_DIR`; the log has `D3D12: Agility SDK v620`). DXC 1.9.2602.17 (Windows SDK 10.0.26100.0). No `System32\xgameruntime.dll` (Gaming Services not installed). Launched with `XCL_NETWORK=0`, `XCL_D3D12_DIR=<xcl>\target\release\D3D12`, `XCL_RUN_SECONDS=90`, `XCL_PRESS_A_AT=12,20`, then `xcl.exe run <game folder>`. ### report.json and xcl.log [report.json](https://github.com/user-attachments/files/35309766/report.json) [xcl.log](https://github.com/user-attachments/files/35309765/xcl.log) ### Console output ```text Game exited with code 0x80000003 (2147483651) Missing on this PC (see the start of the run): WARNING: no System32\xgameruntime.dll: dialogs, text entry, game invites and game streaming are missing (XCL's own task queues, async and networking are used) CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4dcbc9d (registers above) Unimplemented functions called (7): 656× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501) 655× d3d12_xs.dll!ID3D12GraphicsCommandList12::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e) 655× d3d12_xs.dll!ID3D12GraphicsCommandList12::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9) 655× d3d12_xs.dll!ID3D12GraphicsCommandList12::#75 (console extension) (first call: game_scarlett_master.exe+0x32820) 19× d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) (first call: 0x0) 7× d3d12_xs.dll!ID3D12GraphicsCommandList12::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478bc5) 5× d3d12_xs.dll!ID3D12GraphicsCommandList12::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4) ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:29:47 +00:00
Author
Owner

@⁠Placebola on GitHub · 2026-11-24 04:42 UTC · original

Found the cause: this PC has no active audio output. With one enabled, the same build and command run the whole 90 s timer with no trap. The 96 KiB stream is the title's audio command stream, and the audio thread is stuck on a lock the title never releases.

The chain (retail exe 1.0.2.1, RVAs; static read with dumpbin, checked with XCL_PROBE and a local diagnostic on f4ce27c):

  1. No render endpoint is active here: Windows lists the speakers, headsets and HDMI audio, all Unknown (disconnected); only microphones are OK. XCL's own tests on this PC log XAudio2: CreateMasteringVoice failed (0x80070490) – no audio device?. The exe holds the IIDs of IMMDeviceEnumerator, IMMNotificationClient, ISpatialAudioClient and ISpatialAudioObjectRenderStream: it plays its own mix through Windows audio.
  2. The title's audio output setup never gets to its buffers: probes on +0x1e7f9d9 (after the setup's HRESULT checks) and on +0x43aefe0 (allocates the output buffers and sets the count at [obj+0x52c]) are never hit. The count stays 0.
  3. +0x5267720 takes the lock of that object (call +0x4b40) and, when [obj+0x52c] == 0, returns at +0x5267cfb without releasing it; its other exit releases it at +0x5267c98. On a console there is always an output, so this path is not taken there. A probe on the lock's acquire / release (+0x4b40 / +0x4d9dab0), filtered to this lock, shows one LOCK from +0x5267740 (lock free before: 0xffffffff00000000) and no UNLOCK; from then on the lock word is e.g. 0x0000351400000003 (owner = the thread that took it, now an idle job worker; two waiters).
  4. The audio thread (+0x1e95040 loop) waits on that lock in +0x5594650 for good, and a second thread waits on it in +0x43ae0f0. The audio thread's update counter ([consumer+0x1548]) stays at 1.
  5. Every thread sends audio commands through two 96 KiB streams per thread; the audio thread empties a stream only when its counter is ≥ the stream's number + 3 (+0x43a6be6). They are never emptied, and at ~30 s the main thread's append (+0x4dcbc40, from +0x4e52a7e) trips the int3 at +0x4dcbc9d.

So ID3D12CommandAllocator::#9 is unrelated, as suspected above.

Workaround: enable an audio output (plug in a headset or speakers, or turn on a Bluetooth one) before starting the title.

Proposed fix – before writing it, is this direction OK?

  1. A small PR first (Part of #695): xcl run's PC check warns when Windows has no active audio output, next to the existing xgameruntime.dll warning.
  2. Then (Fixes #695): when Windows has no active render endpoint, the title gets a silent one – the default endpoint from IMMDeviceEnumerator, and an ISpatialAudioClient / ISpatialAudioObjectRenderStream that takes the title's buffers at the real rate and drops them – as a console always has an output. Split as the objects with their tests first, then turning them on.

AI use: Claude Code with Claude Opus 5.5 did the disassembly, the probes and the local diagnostic runs and drafted this comment; the audio-output test was mine, on the hardware in the issue.

**@⁠Placebola** on GitHub · 2026-11-24 04:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/695#issuecomment-7122265920) Found the cause: **this PC has no active audio output.** With one enabled, the same build and command run the whole 90 s timer with no trap. The 96 KiB stream is the title's audio command stream, and the audio thread is stuck on a lock the title never releases. **The chain** (retail exe 1.0.2.1, RVAs; static read with `dumpbin`, checked with `XCL_PROBE` and a local diagnostic on `f4ce27c`): 1. No render endpoint is active here: Windows lists the speakers, headsets and HDMI audio, all `Unknown` (disconnected); only microphones are `OK`. XCL's own tests on this PC log `XAudio2: CreateMasteringVoice failed (0x80070490) – no audio device?`. The exe holds the IIDs of `IMMDeviceEnumerator`, `IMMNotificationClient`, `ISpatialAudioClient` and `ISpatialAudioObjectRenderStream`: it plays its own mix through Windows audio. 2. The title's audio output setup never gets to its buffers: probes on `+0x1e7f9d9` (after the setup's HRESULT checks) and on `+0x43aefe0` (allocates the output buffers and sets the count at `[obj+0x52c]`) are never hit. The count stays 0. 3. `+0x5267720` takes the lock of that object (`call +0x4b40`) and, when `[obj+0x52c] == 0`, returns at `+0x5267cfb` **without releasing it**; its other exit releases it at `+0x5267c98`. On a console there is always an output, so this path is not taken there. A probe on the lock's acquire / release (`+0x4b40` / `+0x4d9dab0`), filtered to this lock, shows one `LOCK` from `+0x5267740` (lock free before: `0xffffffff00000000`) and no `UNLOCK`; from then on the lock word is e.g. `0x0000351400000003` (owner = the thread that took it, now an idle job worker; two waiters). 4. The audio thread (`+0x1e95040` loop) waits on that lock in `+0x5594650` for good, and a second thread waits on it in `+0x43ae0f0`. The audio thread's update counter (`[consumer+0x1548]`) stays at 1. 5. Every thread sends audio commands through two 96 KiB streams per thread; the audio thread empties a stream only when its counter is ≥ the stream's number + 3 (`+0x43a6be6`). They are never emptied, and at ~30 s the main thread's append (`+0x4dcbc40`, from `+0x4e52a7e`) trips the `int3` at `+0x4dcbc9d`. So `ID3D12CommandAllocator::#9` is unrelated, as suspected above. **Workaround:** enable an audio output (plug in a headset or speakers, or turn on a Bluetooth one) before starting the title. **Proposed fix** – before writing it, is this direction OK? 1. A small PR first (Part of #695): `xcl run`'s PC check warns when Windows has no active audio output, next to the existing `xgameruntime.dll` warning. 2. Then (Fixes #695): when Windows has no active render endpoint, the title gets a silent one – the default endpoint from `IMMDeviceEnumerator`, and an `ISpatialAudioClient` / `ISpatialAudioObjectRenderStream` that takes the title's buffers at the real rate and drops them – as a console always has an output. Split as the objects with their tests first, then turning them on. AI use: Claude Code with Claude Opus 5.5 did the disassembly, the probes and the local diagnostic runs and drafted this comment; the audio-output test was mine, on the hardware in the issue.
This discussion has been locked. Commenting is limited to contributors.
No description provided.