Crash at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0) ~1 min after entering the world (prologue, Prestream) #1118
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1118
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?
@CaptureLance35 on GitHub · 2026-11-24 15:53 UTC · original
Build: game v1.0.2.1 (930.048.020), diag build of VIctory, Windows 11, Ryzen 5 5600X, RTX 3070 Ti, 32 GB RAM.
The title crashes every time (8 of 8 runs in my crashes.log) with an access violation at victory-image-b99f876b74d4a77f.dll+0x23cf683, write to 0x0, stack +0x2215c35, +0x2215eca, KERNEL32+0x2dda7 (a worker thread). Game's own crash context: frame 824, SRL int_prolo, state Prestream, Game Physical 2182745184/2305818624 (~95%), Pool 591978288/624951280, Unused 0/590348272, TileHeap 3521/6236 Mb, INSTANCE_LIST 13293/45000.
Possibly an allocation failure (null returned and written to). Attached: crashes.log and the title's crash context.
victory-20261124-183228-10332.crash.log
crashes.log
@pickles976 on GitHub · 2026-11-24 15:54 UTC · original
Good news: this is not an allocation bug to hunt — it is a deliberate suicide, mapped and cross-verified on the shared kill-map (this repo's #630), and your own crash context names the class it is killing for.
+0x23cf683is the title's watchdog:mov qword ptr [0], imm32— an 11-byte instruction designed to fault (write0x4d8bd421to address 0), not a null deref. Your stack+0x2215c35 → +0x2215eca → KERNEL32is the second mapped site — the null-callback path via the global at+0x71b6348— i.e. the watchdog firing on a worker-thread callback that never completed. Byte-verified across hash-matched copies by three parties including your own fiestorra.Game Crash Contextis the actual finding:state Prestream, Game Physical 95%, Pool 94.7%, TileHeap 3521/6236 MB — on an 8 GB card the tile heap alone asks for 3.5 GB. That is a memory-pressured Prestream the title kills for after ~1 min, same "dies when streaming starts" family as xcl#1337's budget report: trytitle_memory_mb-style downscaling on your side (the mip-drop knob from your #1086 row 5, and row 8's smaller windows — less physical pressure reaching Prestream).VICTORY_PATCH=<module>:0x23cf683:9090909090909090909090(11 NOPs) converts the suicide into a continuation — then observe: if frames keep presenting afterwards, the watchdog fired on a transient stall your runtime can tolerate; if the process goes silent within seconds, the GPU was genuinely lost and the watchdog was an honest reporter. Either answer changes what to chase next, and the cohort on this exact wall (our #675 crew, same card even — 3070 Ti) has been asking for exactly that discrimination.TdrLevel=0hits the same stall as a frozen desktop, not a crash log — keep it in the intake form.Your 8-of-8 determinism with identical pool counters is itself the best datum: this instance is not timing-sensitive — it is a budget that does not fit.
@CaptureLance35 on GitHub · 2026-11-24 17:55 UTC · original · edited 2026-11-24 17:59 UTC
Update: Watchdog patch results (HUGE PROGRESS)
I applied the VICTORY_PATCH to NOP the watchdog instruction (mov qword ptr [0]) as suggested.
Result: The game does NOT crash anymore! It successfully bypasses the Prestream loading and reaches the actual prologue cutscene. Subtitles appear, and audio/logic seems to be running.
However: The 3D world is not rendering (black screen). The VIctory overlay shows the game is running at 28 FPS with only 3 draws/frame (likely just the UI/subtitles).
The attached log shows a massive amount of shader translation and pipeline binding, but no visible 3D geometry.
This confirms the watchdog was correctly detecting a stalled render thread due to missing/broken shader features (or memory pressure), but the engine itself is alive.
Attached is the log from the successful (but black screen) run.
2026-11-24T174903.232505Z INFO vic.txt
victory-20261124-205035-8236.crash.log
@Aminou973 on GitHub · 2026-11-24 18:00 UTC · original
Same kill on an RTX 3080 10 GB (driver 621.14, Windows 11),
bittertea0323/VIctorytry/wave64diag build withVICTORY_WAVE64_EMULATE=emulate+VICTORY_TEXTURE_MIP_DROP=1: 0 refused pipelines, no TDR, intro story SRL in Prestream, Game Physical 2182462320/2305818624 (identical to the report above), watchdog+0x23cf683at frame 1967.VICTORY_STACKS=60,90:title-mainwaits in the watchdog's own function (+0x23cf735, via+0x56a0d, a wait on an event); all 15 job workers are idle (+0x221c3c2) and all 9 dstorage threads are idle. Nothing is working on what main waits for, so a completion that is never signalled (a fence or a DirectStorage request) looks more likely than memory pressure.(AI-assisted analysis; measured on my own copy, no game data attached.)
@CaptureLance35 on GitHub · 2026-11-24 18:02 UTC · original
Wow, excellent analysis! Thanks for testing this. So it's a deadlock in the DirectStorage/fence synchronization rather than a pure memory issue. This is a huge clue for the dev
@CaptureLance35 on GitHub · 2026-11-24 18:11 UTC · original · edited 2026-11-24 18:13 UTC
Confirmed: It's a deadlock, not just a memory issue
I tested the VICTORY_TEXTURE_MIP_DROP=1 flag along with the Watchdog patch (VICTORY_PATCH).
Result: The game successfully loaded into the prologue cutscene (subtitles appeared, running at ~28 FPS), but after about 2 minutes, it hard froze on a black screen.
The emulator log abruptly ends without any crash error. This perfectly confirms @Aminou973's analysis: without the watchdog to kill the process, the engine just waits forever for a DirectStorage/fence completion signal that never arrives. The log also shows a WARN victory_gpu::list: texture to buffer copies not implemented, which might be related to the stalled thread.
The game logic is alive, but the streaming/render pipeline deadlocks. We'll have to wait for a code fix regarding DirectStorage fences or texture copy implementations.
Update: Tested VICTORY_TEXTURE_MIP_DROP=1 and Watchdog patch
I ran the game with both the Watchdog patch (
VICTORY_PATCH) and the texture downscaling flag (VICTORY_TEXTURE_MIP_DROP=1).Results:
victory-...crash.log), the memory is STILL pegged at 95% (2182787488/2305818624), even with the MIP_DROP flag. The TileHeap is at 3638MB.This confirms that the
MIP_DROPflag doesn't reduce memory pressure enough to prevent the deadlock. The game's streaming thread stalls, and without the watchdog to kill it, it hangs forever.Attaching the new
crash.logand the tail end ofcrashes.log.2026-11-24T174903.248793Z INFO vic.txt
crashes.log
victory-20261124-210515-19996.crash.log
@Aminou973 on GitHub · 2026-11-24 18:24 UTC · original
Follow-up on the stall: two candidates ruled out here, one left.
signal()wakesSetEventOnCompletionwaiters): instrumentedhost.rsto wake waiters after deferred writes; never triggered.missing, but the title never calls it in this run.copy_texture_regiondrops texture-to-buffer copies (host_resource(dst)is None). Counting them: the title issues one about every frame, always into the same buffer (dst=0xfd9f5d430, footprint form), from the first loading frames until the watchdog (64 dropped by the end of a ~100 s run). A title that waits on that readback's contents would explain a wait nobody completes. Working on an implementation (host readback buffer, copied into the title's buffer after the submission), will report.RTX 3080 10 GB, driver 621.14,
try/wave64diag. (AI-assisted, no game data.)@CaptureLance35 on GitHub · 2026-11-24 18:32 UTC · original
Thanks for tracking that down, @Aminou973! That makes total sense given the
texture to buffer copies not implementedwarning and the game hanging right after loading into the cutscene.Let me know once you have the readback implementation ready—I'll be happy to test a new build and share the logs.
@Aminou973 on GitHub · 2026-11-24 18:39 UTC · original
Readback implemented (texture to title buffer through a host READBACK buffer, copied after the submission; no more "texture to buffer copies not implemented"), but here it does not move the kill: still Prestream, watchdog at frame 1660. Reading the title's code: main waits in
+0x23ceeb0on the object at global+0xa210cf8(relative to the image base), which a dedicated worker thread (entry+0x23cefb0) should complete, and by 90 s no thread runs that worker. So it seems to exit early without completing. Breaking on it next. Happy to push the readback change to a branch if you want to try it anyway.@CaptureLance35 on GitHub · 2026-11-24 18:44 UTC · original
Makes sense—no need to push the readback branch just yet since it still stalls at the same Prestream spot. I'll wait to hear what turns up from breaking on
+0x23cefb0. Thanks for digging into this!@Aminou973 on GitHub · 2026-11-24 19:00 UTC · original
Correction to my last comment: the worker (
+0x23cefb0) does not exit. Later snapshots (taken past 100 s) show it alive and blocked:+0x23cf4f2 → … → +0x2474ff4 → +0x2a442d. Just before that it was inside the host D3D12 runtime (viavictory.exe+0x183e21).What it waits on, from the title's code at
+0x2a4380: a turn (ticket) gate. The 64-bit counter at+0x75e5ed8(image-relative) must reach the caller's ticket (rbx). The thread holding that turn then adds its count (lock cmpxchg), writes a 0x50-byte entry into a 256-slot ring (index at+0x75e5ed4, wraps at 0x100) and kicks it (+0x4da9930). The counter is only advanced inside this gate.So main waits for the worker, and the worker waits for a turn whose earlier holder never came through. A ticket taken by a path that then failed would do this, for example one that hit an unimplemented method (this run logs device slots 0x218 and 0x1c8 as not implemented) or a dropped pipeline. Looking for where the tickets are handed out next.
@YaBulochka on GitHub · 2026-11-24 19:26 UTC · original
Same fault on Linux/RADV, reached with all pipeline crashes removed first - so this is not a Windows/NVIDIA-only path.
1.0.2.1, Series X dumpffe310e+ #994 + #4910xc0000005, write to0x0, atvictory-image-...+0x23cf683,Current SRL State: Prestream Metadata, around frame 1165.4e296b1885c37b29,8bb272e763f76148,02384a60fda6f2d0), novkCreate*crash left.Your turn-gate reading matches what we see: the main thread waits in Prestream and the dedicated worker never finishes. One extra data point that rules the descriptor side out: with #1548 the same run reports 507,328
title slot past the host heap ... for_draw=falsewarnings and zerofor_draw=true, so no draw loses its slot - and the Prestream stop is unchanged.If the ticket is a turn the title expects a compute or copy submission to complete, the next thing I can try here is
VICTORY_DEBUG_PS=1+VICTORY_NO_WATCHDOG=1(the combination that reaches gameplay in #994) and see whether the turn advances with debug flat shading.@Aminou973 on GitHub · 2026-11-24 19:43 UTC · original
DRED on the same RTX 3080 (TdrDelay=10): device-removed in a 30-list submission; with
VICTORY_GPU_TIMING=1the last list starts at 5 s in with no commands done and ~1,100indirect kind 10draws, each with a mesh pipeline (b7a81f5b96f4ca93/43e24028d4a1faef…); a previous list sat 14 s on computes. So this looks like mesh/ExecuteIndirectGPU work never completing on 32-lane hosts, which matches theslow host listshape and the black world. Bisecting which mesh pipeline hangs withVICTORY_SKIP_PIPELINESnext.@Aminou973 on GitHub · 2026-11-24 19:49 UTC · original
Bisection result: skipping all ~120 shaders of the previous hung batch does not move the kill; the next batch of 28 lists (13 s in, 77 new mesh+pixel pipelines, e.g.
0384efa1b7bcd540/1d96551fdd673db7) device-removes the same way, still in Prestream at frame 1137. So this is not one bad pipeline: many of the title's mesh draws hang this NVIDIA host. Running the D3D12 debug layer next to name the exact command.@Aminou973 on GitHub · 2026-11-24 19:53 UTC · original
With
VICTORY_D3D12_DEBUG=1on this build the title asserts atexe+0x19f4f58(int3, frame 0, before any rendering), and VIctory'slog_messages()records no debug-layer errors at all. So this debug layer on the proxy device surfaces a new failing setup call instead of the mesh hang. Has anyone captured debug-layer or debug-device messages from a working (pre-hang) run here?@Aminou973 on GitHub · 2026-11-24 19:55 UTC · original
Pushed our two fixes to a branch on our fork (
Aminou973/VIctory, branchtry/wave64-readback, based on try/wave64 + #1059):VICTORY_PATCHpanicked on a real entry (range 37549699 out of range for slice of length 11, @CaptureLance35 and I both hit it) —patch::applypassed a slice starting at the patch address whilewrite()indexes from the image start.Happy to open proper PRs against the right bases if the maintainers want them.
@Aminou973 on GitHub · 2026-11-24 20:02 UTC · original
--console series-srun: the window stays responsive and presenting (frame 4,150 reached, vs ~1,400 before), but the host still gets device-removed in the same 30-list batch shape during Prestream. So the mesh-batch hang on this driver is not a workload-size effect; it's the mesh draw execution itself. Our fork's branch (try/wave64-readback) is current with the readback + VICTORY_PATCH fixes.@Ceereals on GitHub · 2026-11-24 20:33 UTC · original
A data point on what the main thread ends up waiting for, from Linux/RADV. It may be a different way into the same stall, so treat it as one more shape rather than the answer.
Setup: RX 9070 XT (RADV, Mesa 26.3.1), Proton Experimental (vkd3d-proton), title 1.0.2.1 Series X. Tree:
fxceless/victory-gta6at578d459+ #454 (VICTORY_NO_WATCHDOG=1) + a DXC fallback for the runtime HLSL compiles. Diagnostics build,VICTORY_STACKSevery 40 s.What happens: with the watchdog off, the stall does not end. In 2 of 3 such runs the title stopped presenting, 2.6 and 6.6 minutes into the world (SRL state
Prestream), and one title worker stayed at 100% CPU until I ended the run. The third run did not stall and ended 9.8 minutes in at+0x63966f(#698). Without #454 an earlier run on this tree died in the watchdog at+0x2215c35about 4 minutes intoPrestream.Stacks during the stall (identical in six dumps over 4 minutes):
+0x50eb826 ← +0x31962 ← +0x317fd ← +0x25d801b ← +0x221c29c ← +0x2215eca+0x55bfc39 ← +0x3d75259 ← +0x63e78 ← +0x4eaa05a ← +0x221c29c ← +0x2215eca+0x43c3d5d ← +0x23cf4f2 ← +0x23cf2d3 ← +0x23cf104 ← +0x2215eca(same+0x23cf4f2frame as @Aminou973's, a different leaf: no thread of ours is at+0x2a442d)+0x509898d ← +0x7b5a9d ← +0x21b6d0d ← +0x81269b ← +0x53ec040What the spinning worker is doing, read from the title's code (offsets only):
+0x50eb750looks a key up in a hash table probed in groups of 16 (table pointer at+0x876fc50, group count at+0x876fc48, entry count at+0x876fc4c).+0xabbe7c0) and the generation the pool holds for that index at the time of the lookup.+0x35b70c0(calls the insert at+0x554f7e0), keyed the same way, with a running index as the value.+0x55bfa00). It is waiting for the lock, so it is not what removed the key.So in that run the stall is a lookup of an entity that is not in that table. I do not know yet whether it was never added, or was added under an older generation (the pool slot reused between the insert and the lookup). I have a probe for that in the stack dumper and will report what it finds the next time the stall shows.
The stacks are from one run on one machine, and the stall is intermittent here. AI-assisted (Claude Code), measured on my machine with my own copy. Offsets and counts only, no game data.
@HocotateGuy15 on GitHub · 2026-11-24 20:41 UTC · original
Independent reproduction using WARP on Windows 10 22H2 (19045.7846). Diagnostics build combined #175 (Agility SDK 1.620.2), #189 (
54b333f, Wave64 emulation forced), and the GPU changes from #334 (c99e429). I verified the process loaded the Microsoft WARP 1.0.22 app-local DLL. D3D12 debug and DRED were enabled.The process exited with an unhandled 0xc0000005 write to address zero at +0x23cf683. The next two frames were +0x2215c35 and +0x2215eca, matching the original report. Our crash context reported Game Running, Game Physical 2,151,497,568 / 2,305,818,624 bytes, and TileHeap 2,606 / 6,236 MB. The last logged software-renderer submission took 687 ms. There was no D3D12 device removal in this run and no Windows Display 4101 event at the crash time. The earlier hardware run on the same PC ended with DXGI_ERROR_DEVICE_HUNG (#1096). This records the matching title-side crash under WARP without attributing it to a particular subsystem.
AI-assisted diagnostics and write-up.
@Aminou973 on GitHub · 2026-11-24 21:08 UTC · original
RTX 3080 10 GB (driver 621.14, Win 11), the
fxceless/victory-gta6fork (main, diag build, fresh cache): 0x887A0001 (INVALID_CALL) device removal at frame 2,498, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeatedvictory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...])/view=Some([62,4,0,1,...])logs — a compute pass taking UAVs of a depth texture. Rerunning withVICTORY_D3D12_DEBUG=1to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.@Jitheswar on GitHub · 2026-11-24 21:24 UTC · original
What the Prestream stop waits on, read from the title's code at
ffe310e. Offsets are image-relative, and no game data is included.The chain, from the stuck worker to VIctory
+0x23cf4f2 … +0x2a442d, per @Aminou973) is a producer waiting for a free ring slot, not a ticket holder. In+0x2a42d0the counter at+0x75e5ed8holds the free slots in its high 32 bits. The producer waits for at least one (rbx = 1<<32), takes it (rsi = -1<<32), writes a 0x50-byte entry into a 256-entry ring (base+0x75e0e98, entries at +0x38, write index +0x503c, read index +0x5038, counter +0x5040), then flushes through+0x50bb280.+0x1f6330. That posts a request into a second 96-entry queue (+0x75df2a8, stride 0x48) and wakes its consumer through the semaphore at+0x75e0dd0. Nothing else in the title addresses+0x75e5ed8by name.+0x2481e90, created by+0x5caba60with a 32 KiB stack. For each request it calls, on the title's queue object, slot 35 (ExecuteX, command lists batched up to 256), slot 32 (PresentX) and slot 16 (Signal), plus device slot 80 (VIctory'sframe::wait, bounded to one tick). Only after those calls return does it give the slots back (+= count<<32at+0x24825a3).ExecuteX→execute→Host::executeis synchronous: one submission at a time undersubmitted,SetEventOnCompletion+WaitForSingleObject(INFINITE)on the host fence, then copy-back (crates/victory-gpu/src/host.rs, the wait inexecute).So when a host submission runs for seconds, or hangs, the title's one submission thread sits inside VIctory. The ring stops refilling, the producer blocks, main waits on the producer, and the watchdog fires. That fits @HeavenPierceHer971's 687 ms WARP submissions, the 8-28 s submission right before the stop in #1232 (and the stop going away under
VICTORY_SHADER_LOOP_LIMIT/ #452), and "the worker was inside the host D3D12 runtime just before". It also explains why the readback and fence-wake experiments didn't move the stop.What follows for fixes
ExecuteXasynchronous is necessary but not enough whilePresentXstill drains. In #595 (7465030),Host::presentcallsdrain(), and the consumer callsPresentXbefore it returns slots, so the wait moves fromExecuteXtoPresentX. The 16-submission cap (IN_FLIGHT) blocks the same thread again once 16 are in flight. A fix for this stop would needPresentX(and the cap) not to wait for GPU completion on the title's thread.SetEventOnCompletion(onlyFence::Signaldoes). #32 covers this, and it's a different hang from this one.Not verified here: an RTX 3050 6 GB (Linux, Proton 11, vkd3d-proton) can't reach Prestream on
main. VRAM fills during the story load (5.86 of 6 GB), and the NVIDIA driver segfaults invkAllocateMemory/vkCreateComputePipelines(kernelNV_ERR_NO_MEMORY), so the stack at the stop is inferred from the code and the reports above, not captured. Anyone who reaches the stop can confirm withVICTORY_STACKS: thread+0x2481e90should be insidevictory.exe(host execute or present) when the watchdog fires.AI-assisted analysis (Claude Code, Codex, Antigravity). Offsets only, measured on my own copy.
@Jitheswar on GitHub · 2026-11-24 23:50 UTC · original
Follow-up with live stacks: the stop is now reproduced on an RTX 3050 6 GB laptop (Linux, Proton 11, vkd3d-proton), so this confirms the chain from my earlier comment and says what it waits on.
Tree:
ffe310e+ #1296 (VICTORY_TEXTURE_MIP_DROP=2, otherwise VRAM fills during the story load) + #595 (7465030) + #491 (VICTORY_PIPELINE_JOURNAL). Over four runs the journal learned two compute pipelines whose creation crashes the NVIDIA Linux driver (exit 3,vkCreateComputePipelinesfaults; one was0xc000001d). After that the stop came at 85-146 s, with the same+0x23cf683 ← +0x2215c35 ← +0x2215eca.Where the threads are (
VICTORY_STACKSat 60-90 s, every dump the same):+0x2481e90) returns to+0x24824c7. That's right after itscall *0x100(%rax), queue slot 32 =PresentX. Inside VIctory it is inHost::present→drain→settle→wait_gpu→WaitForSingleObject.victory-gpu-finisheris infinish_loop→finish→wait_gputhe whole time: the host fence for the oldest submission never completes.So, on this host, what main ends up waiting for is GPU work that never completes. The title's submission thread is held in
PresentX(with #595) orExecuteX(onmain), the ring stops refilling, and the watchdog fires. With present changed to wait only for the previous frame (wbkepler/VIctory#5), the thread sits inprevious_frame→wait_gpuinstead, with the same timing (3 runs each, with and without). That change doesn't fix the stop, which is consistent with the GPU being stuck.VICTORY_SHADER_LOOP_LIMIT=4096didn't remove it either (1 run reached the stop at 95 s), so on this card it's not loops running to the 2^20 limit. Runs with #1271 (glc → globally coherent) and with #579 (VICTORY_SKIP_WAVE64=mesh) were cut short by new driver crashes in different pipeline variants, so those two are untested here. Anyone on Windows/NVIDIA who reaches the stop can tell a GPU hang from a CPU-side wait this way: the finisher thread's stack shows it.AI-assisted (Claude Code). Offsets and counts only, measured on my own copy.
@Jitheswar on GitHub · 2026-11-25 01:08 UTC · original
More from the RTX 3050 6 GB (Linux, Proton 11), same tree as above plus #579. Counts only.
+0x23cf683came in most runs at 85-146 s.VICTORY_SKIP_WAVE64=mesh(118 wave64 mesh programs skipped): 0 of 5 runs reached that stop. One run kept presenting world frames for 254 s (0.2-1.4 fps, heavy copy-back) and then ended at the title's other watchdog site,+0x2215c35. The other four ended in new NVIDIA-driver faults invkCreate*Pipelinesat 117-136 s (#491's journal still learning them), so they're weak evidence. This matches #1232 (same GPU class: #579 kept the device up) and #778.GS_ALLOC_REQ(already dropped by theno_barrierpass) and one reached by every lane. So if it hangs, it's not a loop that never ends. Candidates are the translated form: barriers orSetMeshOutputCountsreached non-uniformly once the 64-lane group runs as two 32-lane host waves.So on NVIDIA, the GPU work behind this stop is very likely wave64 mesh programs running on 32-lane hosts (#578 refuses them, #579 skips them, nobody emulates them yet). A real fix is making those programs correct on 32-lane waves. I couldn't pin the exact construct on this host: the Linux driver crashes on other pipelines too often to get clean A/Bs. Windows with a debug layer or DRED would be the place to finish it.
AI-assisted (Claude Code). No game data.
@Calvix2k on GitHub · 2026-11-25 01:19 UTC · original
Related data for this signature: while testing the Series S multi-plane fix (#211) on Windows 10 + RX 7800 XT, a placed SRV handle (CreatePlacedShaderResourceView) pointed at memory that was not CPU-writable (␀x336f0f60). Guarding descriptor::record against that write made the run continue, and it then hit exactly ictory-image+0x23cf683 (write 0x0) — the skipped placed view was later dereferenced. The fix direction is to map the placed descriptor heap's GPU pages for CPU writes (the console's unified memory allows it), rather than dropping the view.
@Jitheswar on GitHub · 2026-11-25 08:47 UTC · original
Where the #1118 stop hangs on NVIDIA under Proton, and how three open PRs behave on it. RTX 3050 6 GB Laptop, Linux, Proton 11, vkd3d-proton. Tree:
ffe310e+ #1296 (VICTORY_TEXTURE_MIP_DROP=2) + #491 (pipeline journal). Counts, hashes and offsets only; no game data.It's a real GPU hang inside one command. I added local probes (not in any PR):
nvidia-smishows the GPU at 100% for that time and VRAM at 5.1–5.5 of 6 GB, so it isn't idle or out of memory.WriteBufferImmediatemarkers (MARKER_IN/OUT per noted command, in a mapped readback buffer, zeroed per submission) locate the command. The marker before it is reached, everything before it is done, and the next marker never comes. Every hang was in one of two programs:mesh 92 [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10], in 3 of 3 hangs on this tree;dispatch 48x96x1 [compute ef05293f6107fc99], in 2 of 2 (a wave32 program).for (i = 0; i < n; i++)over constant-buffer records with two flag exits; the compute one is a per-lane march with exit tests. WithVICTORY_SHADER_LOOP_LIMIT=64both still hang at the same command (2 of 2), so it isn't a bounded loop running long.s_barrierin divergent flow didn't help (6 programs have one; 2 of 2 still hang).d4111a6e6ea49d91or skipping all wave64 mesh programs moves the hang toef05293f6107fc99rather than removing it. (Earlier I reported the wave64 mesh skip avoiding the stop on a tree with #579; on this tree it doesn't.)A/B on the same tree, 2 runs each (hands-free, 180 s):
+0x23cf683(frames 1629, 1655)So on this host #1750 turns the stop into a clear report, but none of the three removes the hang. The next question is what those two loops read that never lets them exit (a wrong descriptor or data the host hasn't filled yet) when they run as translated code.
AI-assisted (Claude Code, with Antigravity for the log analysis). Tested only with my own dump of Grand Theft Auto VI 1.0.2.1.
@Marvisak on GitHub · 2026-11-25 10:04 UTC · original · edited 2026-11-25 15:48 UTC
Automated triage for the maintainers.
This is the oldest report of the stop at
+0x23cf683(write to0x0, frames+0x2215c35/+0x2215eca) inPrestream, so this thread is where that stop is tracked. The comments establish that it is the title's own watchdog firing, not a null pointer in VIctory. On NVIDIA (RTX 3080, RTX 3050 under Proton), the thing it waits for is GPU work that never completes. Onmain,Host::execute(crates/victory-gpu/src/host.rs) waits on the host fence with no timeout, so the title's submission thread stays in VIctory and the title's watchdog fires first. Open PR #1750 makes that wait end and report a GPU stall instead. It does not remove the hang. The mesh-draw hang on NVIDIA is tracked in #71. #1232, #1286 and now #2477 (GTX 1060 3 GB) reach this stop on other cards.New data point (GTX 1060 3 GB, a fork tree with wave64 emulation): with both watchdog sites patched out, the title's crash context shows the world loaded, and the run later ends in a device removal with host textures far above the card's memory. On small cards, texture residency may be a separate wall after this one.
Since these runs,
mainchanged submission order (9cc37c5: queues hold a list until the memory values it waits on are written,crates/victory-gpu/src/hold.rs), which may change which GPU work is in flight when the title waits. A run of currentmain(da82e44) would show where this stop stands now.@CaptureLance35, to complete your own run, please add the NVIDIA driver version, the Windows build, and the VIctory commit (
git rev-parse HEAD).Please describe the title's code by offset only; disassembly or bytes of the title's executable must not be posted here.
Generated by Claude Code
@nnkmn on GitHub · 2026-11-25 15:18 UTC · original
Data point from a Series X (Anaconda) build on a 3 GB GTX 1060 — a host with no wave64 support, so host waves are 32 lanes. Three things seem worth recording, because they separate problems that all look like "black screen".
1. Both self-kill sites are reachable, and the world does load
NOPing both
+0x23cf683(mov dword ptr [0], 0x4D8BD421) and the sibling at+0x2215c35(mov qword ptr [0], 0) gets past the watchdog. The title's own crash context then shows the world fully loaded: SRLfbk_stry000_FBK_STRY000_INTRO/ StatePrestream, player at<1828.47, 139.70, 2.80>, health 130/130, BUILDING 7393/22500, OBJECT 4908/27500, INSTANCE_LIST 18458/45000, TileHeap 2595/6236 MB, Game Physical 2182257472/2305818624 (94.6%). So the "3 draws black screen" state is not "the world failed to build".2. On a 32-lane host, Wave64 emulation drives compute refusals to zero — and the black screen becomes a white screen
With
VICTORY_WAVE64_EMULATE=emulate(PR #189 tree): the 102host pipeline refused error=参数错误 (0x80070057)lines disappear entirely, and 49 shader translations are refused withScreen: white, 13 draws/frame, 15 fps. That is the gap PR #192's LDS barrier work would fill, so the remaining work is at least named instead of guessed.
3. Right after world entry most draws are dropped for pipelines that do not exist yet — and they do get made
Same run, first frames inside the world:
Each new pipeline costs 55-3299 ms of CPU. After about eight minutes of leaving it alone,
draws/framehad climbed 31 -> 316 whiledroppedfell only slightly, and per-frame GPU time grew to 10.2 s. Then the driver reset:Host textures were 9692 MB at that point on a 3 GB card, so for small-VRAM hosts the wall may be TDR plus texture residency rather than translation — worth knowing before someone spends a night merging the wave64 stack expecting a picture.
The pipeline library does carry across runs:
host pipeline library loaded bytes=364252014 ms=225, and the logo splash only stutters while a frame is compiling hundreds of pipelines (audio is fine once the loading screen has a warm cache).Cross-ref: #2477 is my write-up of the pre-NOP crash.
@krcenov on GitHub · 2026-11-26 15:20 UTC · original
RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Four runs, one change at a time.
Setup:
mainat63bcca4, plus:+0x23cf683Unsignaled CrossQueueBarrier; SRLfbk_stry000_FBK_STRY000_INTROPrestream; INSTANCE_LIST 44,900/45,000VICTORY_SHADER_LOOP_LIMIT=320x80000003at+0x63966f(#698)VICTORY_POOL_SCALE=3(lhnizdo'sdiag/pool-scale,124fade) + #2644VICTORY_STEP_OVER=63966f,5149aec+0x23cf683Unsignaled CrossQueueBarrierline; BUILDING 15,124/67,500; INSTANCE_LIST 45,000/45,000--console series-sWhat these runs show:
VICTORY_POOL_SCALE=3grew BUILDING but not INSTANCE_LIST. BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash0x0BA88904is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired.+0x23cf683looks like a stop on memory, not on the GPU:Not tested: more than one run per row, the loop cap alone in Series S mode, and loop limits other than 32.
AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.
@krcenov on GitHub · 2026-11-26 15:44 UTC · original
RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Freeing RAM fixed that too (run E): the title got past the intro into gameplay (the first control prompt) and ran 16.5 minutes until I closed it, with no stop. Five runs, one change at a time.
Setup:
mainat63bcca4, plus:+0x23cf683Unsignaled CrossQueueBarrier; SRLfbk_stry000_FBK_STRY000_INTROPrestream; INSTANCE_LIST 44,900/45,000VICTORY_SHADER_LOOP_LIMIT=320x80000003at+0x63966f(#698)VICTORY_POOL_SCALE=3(lhnizdo'sdiag/pool-scale,124fade) + #2644VICTORY_STEP_OVER=63966f,5149aec+0x23cf683Unsignaled CrossQueueBarrierline; BUILDING 15,124/67,500; INSTANCE_LIST 45,000/45,000--console series-sVICTORY_TEXTURE_MIP_DROP=1What these runs show:
VICTORY_POOL_SCALE=3grew BUILDING but not INSTANCE_LIST. BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash0x0BA88904is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired.+0x23cf683looks like a stop on memory, not on the GPU:The intro played, then the first control prompt ("Move around / Move the camera") came up at about 9 min.
Frames took about 0.83 s in gameplay, against 3.7 s in run B's cutscene.
The keyboard stand-in pad was connected, and the prompt went away after keys were held. Nothing else could be checked: the 3D picture was black throughout (#1671).
It ran 16.5 minutes until I closed the window. Shutdown was clean: "title did not finish suspending in time" and a final library save. No device removal, and the #2644 step-over never fired.
Memory with the same title settings as C:
The margin is thin. During the intro load (minutes 2 to 6) free RAM still touched 0.4 GB, and moves reached 1.9-7.4 s per frame. It then recovered to about 3 GB free for the rest of the run.
I can't split the gain between the three PRs from one run. #2129 should matter least here: this cache's library was only about 315 MB.
Not tested: more than one run per row; each PR in E on its own;
VICTORY_TEXTURE_MIP_DROP=2; #2389 (it conflicts with #2146 inmake_texture); the loop cap alone in Series S mode; loop limits other than 32.AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.