[Compatibility] Series S intro stalls in Prestream with the same unsignaled cross-queue barrier on M5 Max (checkpoint) #19
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/paveledits--ScarlettMac#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@xarvel-temp on GitHub · 2026-11-27 15:22 UTC · original
Game and version
GTA VI, title version
930.048.020-vb_sub_story, TitleID7952987a. Series S profile (--console series-s; the title reportsConole Type: Lockhart).Test environment
diagprofile, built from the pinnedbf99e728b2fa89c3550d51e07626c0da9bd6ec47pluscheckpoint/patches/series(all 17 patches)win11_64bottle,CX_GRAPHICS_BACKEND=d3dmetalruntime-preview/run.shwithSCARLETTMAC_CROSSOVER_BOTTLEgpu-check: mesh shaders supported, shader model 6.6 supported. Host reportswaves of 32 lanes at mostFurthest 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 Runningwith a live camera position and was issuing up to 3314 draws per frame.Steps and observed result
Two runs, both reaching
Prestreamon the intro SRL and both ending there. The offline player picker was confirmed withVICTORY_CONFIRM_FILE(loggedconfirmed 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:story000.rpf,story000_script.rpf,story000_restofworld.rpf,story000_bvh4.rpf,ttdb_maps.ttpf,ttdb_terrain_image_based.ttpf,ttdb_vfx.ttpf)copies, while the GPU itself took 0.74 sFFX FSR4 ACO: DeserializeComputePipelineStateX FAILED hr=0x80004001lines, falling back to NewBERun 2 — added
VICTORY_OUTPUT=1280x720 VICTORY_PRESENT_PLANE=0 VICTORY_PRESENT_COMPOSITE=1, warm shader cache (1010 shaders from cache, 421 new):ms=11955,ms=11893,ms=11886)The two runs stop in the same place, with the same identifiers:
<1834.67, 143.72, 3.11><1846.99, 147.27, 5.39>fbk_stry000_FBK_STRY000_INTRO_minPrestream6a5d70113569acdcThe 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.mdsays the checkpoint's queue wait-order change should keep the Series S intro from stalling inPrestream; 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:
0x573a3a73776f646eis not an address: its bytes readndows::W, a fragment of the stringwindows::W. A string is being dereferenced as a pointer insidedbghelp.dllwhile the title's WER handler walks the stack to writevictory-*.crash.log. The crash log itself is written successfully, thenWER - Attaching ... 0x80004001fails. So the root cause that triggered WER is never reported.Relevant log excerpt
Run 2, from the crash log the title wrote (redacted):
Run 2, the runtime around the stop:
Run 1, the copy cost that dominated the 4K path:
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.
@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.@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::queuedebug 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):
The title's crash log:
Unsignaled CrossQueueBarrier: 82d9447, SRLint_prolo_int_prolo_int_min, statePrestream, frame 2033.What the first fault is.
0x21b13a2falies in D3DMetal's code segment (it loads at about0x21b0…–0x21bb…, shifted per run). The only matching instruction is inD3D12Device::CreateSampler(const D3D12_SAMPLER_DESC*, D3D12_CPU_DESCRIPTOR_HANDLE)at offset0x302fa: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 isCreateSampler+at offset0x79d8ein that build, writing to0x300ba7….Across runs. Of the 25 crashed runs I've kept, 13 first fault in
CreateSampler. Every target is a0x3_000x_xxxx_xxxxvalue. The rest start with the title's null read at+0x4e9b578. Every saved crash log shows the ProloguePrestream(int_prolo_int_prolo_int_minorcine@leadout@int_prolo@int@leadout_min), and most show barrier82d9447. 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 aremake()forView::SamplerandView::ConsoleSampler, andnull_sampler(), all atHostHeap::cpu(index). That isself.cpu + index * step, with no bounds check. A u32 index times the step can't reach0x3_000…from a real heap start. So I suspect a badHostHeap(freed or not yet set) or a handle that never came from one of our heaps. Next I'm adding a check before each hostCreateSampler. It will skip a handle outside its heap and warn with the heap, index and caller. I'll report what it finds.@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
CreateSamplershowed that D3DMetal's CPU handles for view (CBV/SRV/UAV) heaps are encoded values past the 47-bit address space. One heap started at0x3_0002_7a49_4008with step 24. That is the same range as the crash handles. Sampler heap handles are plain pointers, andCreateSamplerstores 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
HostHeapmake 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
+0x4e9b578is a separate crash. A guarded run that skipped no samplers still crashed there, with the sameUnsignaled 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.