ProjectScarlett: 30 s main-thread watchdog (exe+0x23CF683) at the story intro from cross-queue label-wait deadlocks #215
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/brcly--TuxBox#215
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?
@NickStallman on GitHub · 2026-11-26 07:56 UTC · original
On an RTX 5090 (NVIDIA 595.99.02, GE-Proton11-14, main
ac4f099with #212 and #214), ProjectScarlett gets past setup and the story loading screens. It reachesGame State: Game Running: mission0x98c85f2a, SRLfbk_stry000_FBK_STRY000_INTROin Prestream. The first world frames render, but at 10–21 s each, and the title then deliberately writes to address 0 atgame_scarlett_master.exe+0x23CF683. It happened in all three runs, at frames 18579, 9569 and 4190. This is the same RVA reported in #16 (comment by ReverendOzmund).What the crash is
It is the title's 30-second main-thread heartbeat watchdog, not a GPU label timeout. "GPU Loc Sig" is only its tag.
0x2215A60(trampoline0x2215EA0). It runsSleep(1000)with QPC and compares the heartbeat at0x71B6338, which0x22159F0writes from the main loop. After 30 unchanged ticks it calls the callback at[0x71B6348](0x2215C33), then executesmov [0],0. It tolerates a single sleep longer than 2 s, so a debugger pause doesn't trip it.0x23CF6A0installs0x23CF620as that callback while it waits for the render thread. The callback decodes "GPU Loc Sig", logs it and writes0x4D8BD421to[0].drive_t/*.dmp):0x23CF735).WaitForSingleObject(INFINITE)on its job handles.Why frames take 10–30 s
The queues deadlock across each other, and each deadlock is broken only by the memory-wait release in
commands/memory_wait.rs(5 s).device/placement.rs, "wait for this batch's texture publication"):stalled label … waited by list … type 2 queue … written by list … type 0 queue).no submitted or rejected list writes it.Prior art
ID3D12Fences, with GPUSignalat the write and GPUWaitat the wait. It does not poll on the CPU, and it detects and breaks cross-queue cycles when a fence is signalled. It also has bounded CPU and GPU waits, "so a genuinely hung GPU cycle never triggers" the 30 s hang.I'm starting on a port of the label-bridging approach and will link it here. Comments are welcome if the memory-wait design has constraints I should keep.