[Compatibility] Series S intro stalls in Prestream with the same unsignaled cross-queue barrier on M5 Max (checkpoint) #19

Open
opened 2026-11-27 15:24:35 +00:00 by github-bot · 3 comments
Owner

@⁠xarvel-temp on GitHub · 2026-11-27 15:22 UTC · original

Game and version

GTA VI, title version 930.048.020-vb_sub_story, TitleID 7952987a. Series S profile (--console series-s; the title reports Conole Type: Lockhart).

Test environment

  • MacBook Pro, Apple M5 Max, 128 GB, macOS 27.2.1 (build 26B131)
  • ScarlettMac Runtime Preview checkpoint recipe, diag profile, built from the pinned bf99e728b2fa89c3550d51e07626c0da9bd6ec47 plus checkpoint/patches/series (all 17 patches)
  • Rust 1.98.1, llvm-mingw 20261117 ucrt macos-universal
  • CrossOver 26.3 with the bundled D3DMetal 3.0, win11_64 bottle, CX_GRAPHICS_BACKEND=d3dmetal
  • Launched through runtime-preview/run.sh with SCARLETTMAC_CROSSOVER_BOTTLE
  • gpu-check: mesh shaders supported, shader model 6.6 supported. Host reports waves of 32 lanes at most

Furthest milestone you verified

World loading began.

The picture stayed black throughout both runs. No 3D scene or cinematic was ever visible, although the title reported Game State: Game Running with a live camera position and was issuing up to 3314 draws per frame.

Steps and observed result

Two runs, both reaching Prestream on the intro SRL and both ending there. The offline player picker was confirmed with VICTORY_CONFIRM_FILE (logged confirmed offline picker from the local launcher), and no Xbox Live or Rockstar authentication was attempted.

Run 1 — VICTORY_WAVE64_REDUCE=1 VICTORY_SNAPSHOT_POOL_MIB=512, default 3840x2160 output:

  • Story archives opened (story000.rpf, story000_script.rpf, story000_restofworld.rpf, story000_bvh4.rpf, ttdb_maps.ttpf, ttdb_terrain_image_based.ttpf, ttdb_vfx.ttpf)
  • Draws rose to 2000-3300 per frame with 700-2000 dropped for a missing host pipeline
  • Frame time degraded from 1 s to 32 s as the data copied per frame grew from 460 MB to 868 MB. On the worst frame, 29.7 s of 32 s was copies, while the GPU itself took 0.74 s
  • Six FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001 lines, falling back to NewBE
  • Ended at 6 m 37 s, frame 4202

Run 2 — added VICTORY_OUTPUT=1280x720 VICTORY_PRESENT_PLANE=0 VICTORY_PRESENT_COMPOSITE=1, warm shader cache (1010 shaders from cache, 421 new):

  • Ended much earlier, at 1 m 40 s, frame 1534, while pipelines were still being built (811 pending)
  • Three host pipelines each took about 11.9 s to build (ms=11955, ms=11893, ms=11886)
  • No FSR4 errors at all, so the FSR4 deserialization failures in run 1 are not the cause

The two runs stop in the same place, with the same identifiers:

Run 1 (4K) Run 2 (720p)
Running time 6 m 37 s 1 m 40 s
Frame 4202 1534
Game State Game Running Game Running
Camera position <1834.67, 143.72, 3.11> <1846.99, 147.27, 5.39>
Current SRL fbk_stry000_FBK_STRY000_INTRO_min same
SRL State Prestream same
GFX Queue 6a5d7011 same
Unsignaled CrossQueueBarrier 3569acdc same
TileHeap used 3480 of 3977 MB 2925 of 3977 MB

The same cross-queue barrier is left unsignaled in both runs, at the same SRL in the same state, regardless of output resolution, present plane, compositing or cache warmth. BUILD.md says the checkpoint's queue wait-order change should keep the Series S intro from stalling in Prestream; on this machine it still stalls there.

The reported crash hides the real error. In both runs the visible failure is a page fault inside the title's own crash reporter rather than at the fault site:

VIctory: unhandled exception 0xc0000005 at dbghelp.dll+0x18640
  (read 0x573a3a73776f646e: outside the address space)

0x573a3a73776f646e is not an address: its bytes read ndows::W, a fragment of the string windows::W. A string is being dereferenced as a pointer inside dbghelp.dll while the title's WER handler walks the stack to write victory-*.crash.log. The crash log itself is written successfully, then WER - Attaching ... 0x80004001 fails. So the root cause that triggered WER is never reported.

Relevant log excerpt

Run 2, from the crash log the title wrote (redacted):

Game Running Time: 0h:1m:40s
Game State: Game Running
Frame: 1534
Streaming Requests: 577
TileHeap: used (2925Mb) - total (3977Mb)
Conole Type: Lockhart
Version: 930.048.020-vb_sub_story
Camera Position: <1846.999878, 147.269882, 5.390000>
GFX Queue: 6a5d7011
Unsignaled CrossQueueBarrier: 3569acdc
Current SRL Name: fbk_stry000_FBK_STRY000_INTRO_min
Current SRL State: Prestream

Run 2, the runtime around the stop:

INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex 445209c4ba12b9b4, pixel 5ad3a82b1c3cc63a] ms=11893
INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex 7f4b62129572a14d, pixel 5ad3a82b1c3cc63a] ms=11886
INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex a67d0bcde30cead3, pixel 5ad3a82b1c3cc63a] ms=11955
INFO title: WER - Saving t:\victory-*.crash.log - 2698 bytes
INFO title: WER - Attaching t:\victory-*.crash.log file to the crash dump: 0x80004001 (Unknown Error)
wine: Unhandled page fault on read access to 573A3A73776F646E at address 00006FFFF1738640

Run 1, the copy cost that dominated the 4K path:

INFO victory_gpu::host: 0.0 fps, 31865.2 ms/frame (29744.0 preparing: copies 17851.1 ms 868.6 MB,
  textures 41.0 ms 7.3 MB; 738.8 on the GPU; 114.2 copying back 18.9 MB), 1997 draws/frame,
  dropped 1119 without a host pipeline (757 being made) and 1681 indirect

Also seen in both runs: one mesh pipeline is refused for the Metal output limit, refused [mesh da22b2adfd4f76d3, pixel d4f7cbbbf181e452], costing 2-9 dropped draws per frame.

Happy to run further tests on this machine, including with extra diagnostics switches, if that would help narrow the barrier down.

**@⁠xarvel-temp** on GitHub · 2026-11-27 15:22 UTC · [original](https://github.com/paveledits/ScarlettMac/issues/19) ### Game and version GTA VI, title version `930.048.020-vb_sub_story`, TitleID `7952987a`. Series S profile (`--console series-s`; the title reports `Conole Type: Lockhart`). ### Test environment - MacBook Pro, Apple M5 Max, 128 GB, macOS 27.2.1 (build 26B131) - ScarlettMac Runtime Preview **checkpoint** recipe, `diag` profile, built from the pinned `bf99e728b2fa89c3550d51e07626c0da9bd6ec47` plus `checkpoint/patches/series` (all 17 patches) - Rust 1.98.1, llvm-mingw 20261117 ucrt macos-universal - CrossOver 26.3 with the bundled D3DMetal 3.0, `win11_64` bottle, `CX_GRAPHICS_BACKEND=d3dmetal` - Launched through `runtime-preview/run.sh` with `SCARLETTMAC_CROSSOVER_BOTTLE` - `gpu-check`: mesh shaders supported, shader model 6.6 supported. Host reports `waves of 32 lanes at most` ### Furthest milestone you verified World loading began. The picture stayed black throughout both runs. No 3D scene or cinematic was ever visible, although the title reported `Game State: Game Running` with a live camera position and was issuing up to 3314 draws per frame. ### Steps and observed result Two runs, both reaching `Prestream` on the intro SRL and both ending there. The offline player picker was confirmed with `VICTORY_CONFIRM_FILE` (logged `confirmed offline picker from the local launcher`), and no Xbox Live or Rockstar authentication was attempted. **Run 1** — `VICTORY_WAVE64_REDUCE=1 VICTORY_SNAPSHOT_POOL_MIB=512`, default 3840x2160 output: - Story archives opened (`story000.rpf`, `story000_script.rpf`, `story000_restofworld.rpf`, `story000_bvh4.rpf`, `ttdb_maps.ttpf`, `ttdb_terrain_image_based.ttpf`, `ttdb_vfx.ttpf`) - Draws rose to 2000-3300 per frame with 700-2000 dropped for a missing host pipeline - Frame time degraded from 1 s to 32 s as the data copied per frame grew from 460 MB to 868 MB. On the worst frame, 29.7 s of 32 s was `copies`, while the GPU itself took 0.74 s - Six `FFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001` lines, falling back to NewBE - Ended at 6 m 37 s, frame 4202 **Run 2** — added `VICTORY_OUTPUT=1280x720 VICTORY_PRESENT_PLANE=0 VICTORY_PRESENT_COMPOSITE=1`, warm shader cache (1010 shaders from cache, 421 new): - Ended much earlier, at 1 m 40 s, frame 1534, while pipelines were still being built (811 pending) - Three host pipelines each took about 11.9 s to build (`ms=11955`, `ms=11893`, `ms=11886`) - **No FSR4 errors at all**, so the FSR4 deserialization failures in run 1 are not the cause **The two runs stop in the same place, with the same identifiers:** | | Run 1 (4K) | Run 2 (720p) | | --- | --- | --- | | Running time | 6 m 37 s | 1 m 40 s | | Frame | 4202 | 1534 | | Game State | Game Running | Game Running | | Camera position | `<1834.67, 143.72, 3.11>` | `<1846.99, 147.27, 5.39>` | | Current SRL | `fbk_stry000_FBK_STRY000_INTRO_min` | same | | SRL State | `Prestream` | same | | GFX Queue | `6a5d7011` | same | | Unsignaled CrossQueueBarrier | `3569acdc` | same | | TileHeap used | 3480 of 3977 MB | 2925 of 3977 MB | The same cross-queue barrier is left unsignaled in both runs, at the same SRL in the same state, regardless of output resolution, present plane, compositing or cache warmth. `BUILD.md` says the checkpoint's queue wait-order change should keep the Series S intro from stalling in `Prestream`; on this machine it still stalls there. **The reported crash hides the real error.** In both runs the visible failure is a page fault inside the title's own crash reporter rather than at the fault site: ``` VIctory: unhandled exception 0xc0000005 at dbghelp.dll+0x18640 (read 0x573a3a73776f646e: outside the address space) ``` `0x573a3a73776f646e` is not an address: its bytes read `ndows::W`, a fragment of the string `windows::W`. A string is being dereferenced as a pointer inside `dbghelp.dll` while the title's WER handler walks the stack to write `victory-*.crash.log`. The crash log itself is written successfully, then `WER - Attaching ... 0x80004001` fails. So the root cause that triggered WER is never reported. ### Relevant log excerpt Run 2, from the crash log the title wrote (redacted): ``` Game Running Time: 0h:1m:40s Game State: Game Running Frame: 1534 Streaming Requests: 577 TileHeap: used (2925Mb) - total (3977Mb) Conole Type: Lockhart Version: 930.048.020-vb_sub_story Camera Position: <1846.999878, 147.269882, 5.390000> GFX Queue: 6a5d7011 Unsignaled CrossQueueBarrier: 3569acdc Current SRL Name: fbk_stry000_FBK_STRY000_INTRO_min Current SRL State: Prestream ``` Run 2, the runtime around the stop: ``` INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex 445209c4ba12b9b4, pixel 5ad3a82b1c3cc63a] ms=11893 INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex 7f4b62129572a14d, pixel 5ad3a82b1c3cc63a] ms=11886 INFO victory_gpu::pipeline::host: host pipeline shaders=[vertex a67d0bcde30cead3, pixel 5ad3a82b1c3cc63a] ms=11955 INFO title: WER - Saving t:\victory-*.crash.log - 2698 bytes INFO title: WER - Attaching t:\victory-*.crash.log file to the crash dump: 0x80004001 (Unknown Error) wine: Unhandled page fault on read access to 573A3A73776F646E at address 00006FFFF1738640 ``` Run 1, the copy cost that dominated the 4K path: ``` INFO victory_gpu::host: 0.0 fps, 31865.2 ms/frame (29744.0 preparing: copies 17851.1 ms 868.6 MB, textures 41.0 ms 7.3 MB; 738.8 on the GPU; 114.2 copying back 18.9 MB), 1997 draws/frame, dropped 1119 without a host pipeline (757 being made) and 1681 indirect ``` Also seen in both runs: one mesh pipeline is refused for the Metal output limit, `refused [mesh da22b2adfd4f76d3, pixel d4f7cbbbf181e452]`, costing 2-9 dropped draws per frame. Happy to run further tests on this machine, including with extra diagnostics switches, if that would help narrow the barrier down.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:24:35 +00:00
Author
Owner

@⁠paveledits on GitHub · 2026-11-28 00:48 UTC · original

I rebuilt the scheduler tests from the exact 17-patch checkpoint you named. All 11 passed. I also ran the original wait-order regression test on the pinned base with the fix removed, and it failed as expected.

The repeated Prestream barrier on your M5 Max remains open. If you can rerun the 720p checkpoint, please share the last 20 to 30 seconds with VICTORY_LOG=info,victory_gpu::queue=debug. The held-work lines, any unmet waits or host fence value and completion messages, and the first exception or render-thread stack before the crash reporter would help identify the queue waiting on the value and whether the matching write completed. A redacted excerpt is enough.

**@⁠paveledits** on GitHub · 2026-11-28 00:48 UTC · [original](https://github.com/paveledits/ScarlettMac/issues/19#issuecomment-7231208330) I rebuilt the scheduler tests from the exact 17-patch checkpoint you named. All 11 passed. I also ran the original wait-order regression test on the pinned base with the fix removed, and it failed as expected. The repeated Prestream barrier on your M5 Max remains open. If you can rerun the 720p checkpoint, please share the last 20 to 30 seconds with `VICTORY_LOG=info,victory_gpu::queue=debug`. The held-work lines, any unmet waits or host fence value and completion messages, and the first exception or render-thread stack before the crash reporter would help identify the queue waiting on the value and whether the matching write completed. A redacted excerpt is enough.
Author
Owner

@⁠jgrizon on GitHub · 2026-11-28 06:56 UTC · original

A crash with VICTORY_LOG=info,victory_gpu::queue=debug. In 13 of the 25 crashes I've kept, the first fault is inside D3DMetal, not the title.

Setup. Performance recipe plus our crash fix (PR #21), release build, Series S, pinned Prologue save. CrossOver 26.3 Wine with D3DMetal 3.0, on a 24 GB M5 Pro running macOS 27.3. This run crashed 3 min 48 s in. The release build printed no victory_gpu::queue debug lines and no stuck-item warning. Every frame up to the crash shows the same held-work counts.

Last lines before the crash (one line per frame elided):

06:52:00.248  INFO victory_gpu::queue: held work this frame (...) [8, 0, 0, 0, 0, 0] ...
06:52:00.259  INFO victory_gpu::memory: title memory this frame: 294 draws/dispatches ...
06:52:00.333  WARN victory_gpu::watch: a write fault the guards do not heal: passed on at=0x300027a6532d0 query=(0, 0, 0, 0)
VIctory: first-chance exception 0xc0000005 at 0x21b13a2fa (write 0x300027a6532d0: outside the address space)
  rax 0x9 rbx 0x0 rcx 0x300027a6532d0 rdx 0x34 ...
VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e9b578 (read 0x0: nothing mapped there)
  #0 +0x4e9b578  #1 +0x4e9b4bf  #2 +0x4a4a  #3 +0x4d9f49c  #4 +0x188463  #5 +0x4f4251 ...
06:52:00.351  INFO title: WER - Saving ...crash.log

The title's crash log: Unsignaled CrossQueueBarrier: 82d9447, SRL int_prolo_int_prolo_int_min, state Prestream, frame 2033.

What the first fault is. 0x21b13a2fa lies in D3DMetal's code segment (it loads at about 0x21b0…–0x21bb…, shifted per run). The only matching instruction is in D3D12Device::CreateSampler(const D3D12_SAMPLER_DESC*, D3D12_CPU_DESCRIPTOR_HANDLE) at offset 0x302fa:

302f5  movq 0x28(%rsp), %rcx   ; the destination handle, saved from r8 at entry
302fa  movq %rax, (%rcx)       ; store the new sampler

So D3DMetal stores the sampler straight at the CPU handle it was given, and that handle is 0x3_0002_7a65_32d0. That value is past the 47-bit address space, so the caller passed a bad handle. D3DMetal 4.0 beta 3 crashes the same way. Its faults are at …d8e, which is CreateSampler+ at offset 0x79d8e in that build, writing to 0x300ba7….

Across runs. Of the 25 crashed runs I've kept, 13 first fault in CreateSampler. Every target is a 0x3_000x_xxxx_xxxx value. The rest start with the title's null read at +0x4e9b578. Every saved crash log shows the Prologue Prestream (int_prolo_int_prolo_int_min or cine@leadout@int_prolo@int@leadout_min), and most show barrier 82d9447. The barrier text seems to be a result of the crash, not its cause.

Where it could come from. The runtime makes host samplers in descriptor/host.rs. These are make() for View::Sampler and View::ConsoleSampler, and null_sampler(), all at HostHeap::cpu(index). That is self.cpu + index * step, with no bounds check. A u32 index times the step can't reach 0x3_000… from a real heap start. So I suspect a bad HostHeap (freed or not yet set) or a handle that never came from one of our heaps. Next I'm adding a check before each host CreateSampler. It will skip a handle outside its heap and warn with the heap, index and caller. I'll report what it finds.

**@⁠jgrizon** on GitHub · 2026-11-28 06:56 UTC · [original](https://github.com/paveledits/ScarlettMac/issues/19#issuecomment-7235613776) A crash with `VICTORY_LOG=info,victory_gpu::queue=debug`. In 13 of the 25 crashes I've kept, the first fault is inside D3DMetal, not the title. **Setup.** Performance recipe plus our crash fix (PR #21), release build, Series S, pinned Prologue save. CrossOver 26.3 Wine with D3DMetal 3.0, on a 24 GB M5 Pro running macOS 27.3. This run crashed 3 min 48 s in. The release build printed no `victory_gpu::queue` debug lines and no stuck-item warning. Every frame up to the crash shows the same held-work counts. **Last lines before the crash** (one line per frame elided): ``` 06:52:00.248 INFO victory_gpu::queue: held work this frame (...) [8, 0, 0, 0, 0, 0] ... 06:52:00.259 INFO victory_gpu::memory: title memory this frame: 294 draws/dispatches ... 06:52:00.333 WARN victory_gpu::watch: a write fault the guards do not heal: passed on at=0x300027a6532d0 query=(0, 0, 0, 0) VIctory: first-chance exception 0xc0000005 at 0x21b13a2fa (write 0x300027a6532d0: outside the address space) rax 0x9 rbx 0x0 rcx 0x300027a6532d0 rdx 0x34 ... VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x4e9b578 (read 0x0: nothing mapped there) #0 +0x4e9b578 #1 +0x4e9b4bf #2 +0x4a4a #3 +0x4d9f49c #4 +0x188463 #5 +0x4f4251 ... 06:52:00.351 INFO title: WER - Saving ...crash.log ``` The title's crash log: `Unsignaled CrossQueueBarrier: 82d9447`, SRL `int_prolo_int_prolo_int_min`, state `Prestream`, frame 2033. **What the first fault is.** `0x21b13a2fa` lies in D3DMetal's code segment (it loads at about `0x21b0…`–`0x21bb…`, shifted per run). The only matching instruction is in `D3D12Device::CreateSampler(const D3D12_SAMPLER_DESC*, D3D12_CPU_DESCRIPTOR_HANDLE)` at offset `0x302fa`: ``` 302f5 movq 0x28(%rsp), %rcx ; the destination handle, saved from r8 at entry 302fa movq %rax, (%rcx) ; store the new sampler ``` So D3DMetal stores the sampler straight at the CPU handle it was given, and that handle is `0x3_0002_7a65_32d0`. That value is past the 47-bit address space, so the caller passed a bad handle. D3DMetal 4.0 beta 3 crashes the same way. Its faults are at `…d8e`, which is `CreateSampler+` at offset `0x79d8e` in that build, writing to `0x300ba7…`. **Across runs.** Of the 25 crashed runs I've kept, 13 first fault in `CreateSampler`. Every target is a `0x3_000x_xxxx_xxxx` value. The rest start with the title's null read at `+0x4e9b578`. Every saved crash log shows the Prologue `Prestream` (`int_prolo_int_prolo_int_min` or `cine@leadout@int_prolo@int@leadout_min`), and most show barrier `82d9447`. The barrier text seems to be a result of the crash, not its cause. **Where it could come from.** The runtime makes host samplers in `descriptor/host.rs`. These are `make()` for `View::Sampler` and `View::ConsoleSampler`, and `null_sampler()`, all at `HostHeap::cpu(index)`. That is `self.cpu + index * step`, with no bounds check. A u32 index times the step can't reach `0x3_000…` from a real heap start. So I suspect a bad `HostHeap` (freed or not yet set) or a handle that never came from one of our heaps. Next I'm adding a check before each host `CreateSampler`. It will skip a handle outside its heap and warn with the heap, index and caller. I'll report what it finds.
Author
Owner

@⁠lilshit123 on GitHub · 2026-11-28 07:13 UTC · original

Correction to my last comment: the bad sampler handle is not garbage. It is a view heap slot.

A build with a check before every host CreateSampler showed that D3DMetal's CPU handles for view (CBV/SRV/UAV) heaps are encoded values past the 47-bit address space. One heap started at 0x3_0002_7a49_4008 with step 24. That is the same range as the crash handles. Sampler heap handles are plain pointers, and CreateSampler stores to its handle directly. So the crash happens when a title sampler record is made at a view heap's slot.

The fix I'm testing makes HostHeap make a slot only from a record of its own kind. Sampler records go only into sampler heaps and views only into view heaps. A record of the other kind leaves the slot null, with a warning that names the slot. I'll post the run counts and what the warning shows.

The title's null read at +0x4e9b578 is a separate crash. A guarded run that skipped no samplers still crashed there, with the same Unsignaled CrossQueueBarrier: 82d9447. I'm adding diagnostics for that next: late fence signals and waits, and the memory state of each register in the crash report.

**@⁠lilshit123** on GitHub · 2026-11-28 07:13 UTC · [original](https://github.com/paveledits/ScarlettMac/issues/19#issuecomment-7235795251) Correction to my last comment: the bad sampler handle is not garbage. It is a view heap slot. A build with a check before every host `CreateSampler` showed that D3DMetal's CPU handles for view (CBV/SRV/UAV) heaps are encoded values past the 47-bit address space. One heap started at `0x3_0002_7a49_4008` with step 24. That is the same range as the crash handles. Sampler heap handles are plain pointers, and `CreateSampler` stores to its handle directly. So the crash happens when a title **sampler** record is made at a **view** heap's slot. The fix I'm testing makes `HostHeap` make a slot only from a record of its own kind. Sampler records go only into sampler heaps and views only into view heaps. A record of the other kind leaves the slot null, with a warning that names the slot. I'll post the run counts and what the warning shows. The title's null read at `+0x4e9b578` is a separate crash. A guarded run that skipped no samplers still crashed there, with the same `Unsignaled CrossQueueBarrier: 82d9447`. I'm adding diagnostics for that next: late fence signals and waits, and the memory state of each register in the crash report.
This discussion has been locked. Commenting is limited to contributors.
No description provided.