DXGI_ERROR_DEVICE_HUNG (0x887A0006) at world load on 9070xt; many compute shaders fail to translate #597
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#597
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?
@TheOnlyTGKK on GitHub · 2026-11-24 05:18 UTC · original
Environment
git rev-parse --short HEAD]What works
Boot, first-boot screens, intro video, profile screen, loading into the world.
What happens
Entering the world, the picture is black and the cutscene runs at ~1 fps. After a few
seconds the host GPU is removed and Windows resets the display driver (screen goes
black briefly).
Log
host GPU device removed after a submission of 26 lists (also seen with 32 lists);
no breadcrumbs ... (0x887A0004); device removed ... (0x887A0006)
Seen at frames ~1074 and ~1108 on separate runs.
With VICTORY_D3D12_DEBUG=1 the debug layer reports DXGI_ERROR_DEVICE_HUNG and no
validation errors. DRED showed indirect mesh draws (indirect kind 10) in flight.
Shader translation warnings just before the hang (examples)
crashes.log
@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
Cross-vendor RTX 4080 data point. The same world-entry device removal occurs on NVIDIA RTX 4080: all four runs exited with
0x887A0005and reported0x887A0006. No run had a page fault; DRED stopped in indirect execution or mesh dispatch. Each run also had 64–106 unique refused shader pipelines before failure, and #334 did not prevent the removal. Full report: #334AI-assisted test report.
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 08:48 UTC · original
Both of the shader translation warnings cited in this report:
hash 476446edcac7d521: a lane mask holding lanes elsewhere read as data is not supportedhash f133e35efed2a48a: a select on an untracked mask is not supportedHave now been diagnosed and fixed in
victory-shader:a select on an untracked mask: Resolved in branchfix/shader-untracked-and-opaque-lane-masksby supporting untracked and constant masks inv_cndmask_b32andv_add_co_ci_u32.a lane mask holding lanes elsewhere read as data: Resolved in branchfix/shader-lane-mask-ballots-and-data-readsby resolving constant and boolean masks directly inmask_dword, allowing safe host ballots viawaveActiveBallot, and lifting the stage restriction onAtom::OpaqueandAtom::Constant.Details and branches:
#653
https://github.com/LAKSHYA-cmd-tech/VIctory/tree/fix/shader-lane-mask-ballots-and-data-reads
@rouges78 on GitHub · 2026-11-24 08:55 UTC · original · edited 2026-11-24 09:07 UTC
Code-reading data point, with two defects reproduced on hardware. No title run behind any of this (I have no dump on this machine yet), so I can't say it changes the device loss.
Setup: RTX 4080, Windows 11, main at
6af0fae.1. The indirect budget wraps (reproduced). In
indirect.rsevery record adds its cost to the list's budget word with a plain 32-bitInterlockedAdd, rejected records included. 64 garbage draw records of 2^26 bring the word back to zero and work is let in again. Running the clamp alone over 128 all-ones draw records (kind 0, stride 16) and reading the buffer back: 4 records stay live and the budget word reads 0; the design says 2 and 2^27.2. A compare-exchange reservation is not the fix (also reproduced). I first replaced the add with a saturating
InterlockedCompareExchangeloop, still 64 threads per group. It passes the garbage cases, but with 65,536 records of one vertex instance each (all fit) the retries grow with the record count and the device was removed three runs out of three, with three nvlddmkm event 153 entries. Noting it so nobody else takes that route. What works here is one thread walking the records in order with a saturating count: about 27 ms for 65,536 records, 0.4 s for 2^20, so it needs a cap on records per execution (or a count-buffer-aware clamp).3. A failed dynamic table still runs its draw. In
draw.rs, whenhost.dynamic(n)returnsNone,tables()continues andbind()passes the title's own table offset, which on a capped heap is past the host's. Exhaustion warns once, butn > DYNAMICreturnsNonewith no warning at all (descriptor/host.rs, top ofdynamic()), so a log without "no free dynamic descriptor slots" does not show the fallback was not taken. That may matter for the runs above where the warning was gone and the device was still lost. A root view the title did not set is skipped the same way and the command still runs.Update: main has since fixed the dynamic-slot part of this (
3c81420: a table that gets no dynamic slots, for either reason, now drops its draw). The root view case is unchanged on main.4. The loop limit does not bound nested loops. On a conditional back edge the limit is folded into the branch condition, so a capped lane leaves by the loop's ordinary exit and keeps running, and the counter restarts at each entry. Two nested loops can still do 2^20 x 2^20 iterations per lane. The comment on
LOOP_LIMITsays the lane leaves the program, which is only true for an unconditional back edge.Branch with three commits: https://github.com/rouges78/VIctory/tree/fix/597-bounded-indirect-and-bindings (the serial clamp with tests that run on the real device, where the wrap test fails on the current shader; dropping draws and dispatches whose table or root view cannot be bound; the comment fix). The second one drops commands that run today on an unset binding, and I have not run the menus with it. Happy to open PRs for whichever of these is wanted, the budget fix first since it stands on its own.
Edit: the budget fix alone, on current main (one commit, CI commands pass locally): https://github.com/rouges78/VIctory/tree/fix/indirect-budget-wrap. Opening a PR is refused for my account right now, so it stays a branch until that changes. #583 and #242 fix the same wrap with a compare-exchange loop and also read the count buffer, which this does not; I tested my own loop, not theirs, and the test
records_within_the_budget_all_runon that branch is the case to run against them.AI-assisted analysis (Claude, cross-checked with Codex); the hardware results above are from real runs on the card.
@rouges78 on GitHub · 2026-11-24 11:33 UTC · original
@rpmaster2 your "page fault ... inside freed texture" runs match a lifetime gap I found reading current
main(ffe310e). It is untested against the title (I have no dump here), so I would be glad if you could A/B it with your 480 s procedure.What I think happens. Translated shaders index the host descriptor heaps directly, and lists hold only the textures they transition, so a texture read only through a heap slot is kept alive by that slot alone (
HostHeap::kept).Host::executewaits for the GPU holding only its own lock; meanwhile other title threads keep recording, andmirrornulls the slot of a released texture (or remakes a changed one) and drops its last reference. The running submission may already have read the old descriptor, so it reads freed memory. Thea title texture was released while a list not yet reset names its host copyline is the protected case (a list holds the copy), not the fault itself.A second, related gap: the title's descriptor heap owns its host heap outright, and lists keep only the
ID3D12DescriptorHeap. If the title releases a heap before submitting a list that binds it, the references its slots held go with it.Branch: https://github.com/rouges78/VIctory/tree/fix/heap-slot-lifetime (two commits on
ffe310e, CI commands pass locally, a test for each on an RTX 4080):To try it:
What would settle it: 5 runs of
mainand 5 of the branch, diag build,VICTORY_D3D12_DRED=1. Diagnostics builds of the branch log two counters:a heap slot let go of a resource while a submission ran(fix 1's case);a descriptor heap was released while a list not yet reset names it(fix 2's case).If the removals stop and the first counter grows, this was it. If the counters stay at zero and the removals stay, this rules the idea out.
Not covered: rewriting a descriptor that a running submission may read is still outside D3D12's rules (this only keeps the memory valid), and aliasing and UAV barriers still name resources without holding them.
AI-assisted analysis (Claude, cross-checked with Codex); the tests ran on real hardware, the title did not.
@capobrrr00-afk on GitHub · 2026-11-24 12:13 UTC · original
Follow-up with breadcrumbs (diag build, VICTORY_D3D12_DRED=1, Windows 10 + RTX 3060, #175 merged onto main @
ffe310e):The world-entry hang stops at list 20, command 689 of 1471:
"indirect kind 10 max 1 ... [mesh 26d1667415d4754b, pixel 8e9b3db8a3eeba51]"
-> DEVICE_HUNG (0x887A0006).
With VICTORY_SKIP_PIPELINES=26d1667415d4754b there is no hang: 80 s in the world
until I closed the window, 0 device removals.
VICTORY_SHADER_LOOP_LIMIT=4096 takes world frames from ~8.4 s to ~1.5-3.5 s.
Most of the remaining time is CPU-side "preparing" (~1-1.7 s/frame), GPU 0.2-0.5 s.
800-1400 draws/frame are still dropped without a host pipeline, so the scene stays dark.
Happy to run more with other skip lists or VICTORY_GPU_TIMING=1.
@acleofe on GitHub · 2026-11-24 12:21 UTC · original
Independent CPU-arithmetic confirmation of the indirect-budget wrap on main
ffe310eb2098e52169f4c44db5ffdabf43a72622.This confirms the arithmetic already reported by @rouges78 above; it is not a new discovery or a GPU/game reproduction.
In
indirect.rs, rejected records still increment the uint32 budget throughInterlockedAdd. With 128 equal-cost draw records at the clamp's maximum cost (2^26), the counter wraps after 64 records and admits more work:2^27.2^28; final counter: 0.The following Python reproduction was run locally and its assertions passed. It models uint32 arithmetic only. For identical-cost records, atomic ordering changes the surviving record identities, not the admitted count.
#242 and #583 already address this area. We have not tested either patch, their contention behavior, or whether this defect causes the reported retail hang.
The other concerns from our source review are also already covered here: the descriptor/resource lifetime hypothesis in this comment, and conditional/nested loop limits in @rouges78's report. Separately,
pipeline/make.rsexplicitly documents losing one-time work when a pipeline misses its wait budget; that is a rendering-correctness limitation, not proof of the device-removal cause.Validation limits: no retail game files, crash reproduction, GPU execution of this reproducer, or proposed fix tested in this follow-up. This is supporting evidence for the existing investigation, not a claim that one defect explains every hang.
AI use: Codex (GPT-6 family; exact model variant unavailable) performed the source review and ran the arithmetic check. Community GPU/game results remain attributed to their original reports.
@rpmaster2 on GitHub · 2026-11-24 08:31 UTC · original · edited 2026-11-24 12:31 UTC
Same GPU/driver family as the report: Radeon RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB RAM, pagefile 32/48 GB.
Build:
mainat1f858b0, diag profile, Rust 1.98.1. Run with the retail 1.0.2.1 executable and timed Enter presses.Observed:
no free dynamic descriptor slots: a table is not made n=133(also 135 and 178 on other runs);DRED on
main(VICTORY_D3D12_DRED=1, diag build): page fault; the view heap and sampler heap are reported past their ends; a list stopped at command 179/416; the dispatches include compute186de5778eb555c8withUav s0+24: None. Skipping186de5778eb555c8,b585907117661f1b,dc20f390c4354fb4did not prevent the removal.Fixes tested on the same host:
past the host heaplines; stillno free dynamic descriptor slots n=133and the same TDR.no free dynamic descriptor slots n=135and the same TDR.Diagnostics branch
aycow:gpu/descriptor-allocation-demand@82e4aa6 withVICTORY_DESCRIPTOR_DEMAND=1, at the first failed rebuilt table (frame 1096):LocalNew13,879 tables / 71,536 slots;LocalReuse2,906 / 39,215;NoRange1 / 178;SharedNewandSharedReuse0 (demand measurement before reuse).Mixed12,212 tables / 72,250 slots withduplicate_untracked11,947 / 71,159;CbvOnly3,710 / 3,725 withduplicate_untracked3,707 / 3,722;Unresolved864 / 34,954 withduplicate_untracked864 / 34,954.no free dynamic descriptor slots n=178and device removal.No game data: counts, shader hashes, driver version and error strings only.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@rpmaster2 on GitHub · 2026-11-24 10:06 UTC · original · edited 2026-11-24 12:31 UTC
Update with a longer window and a controlled A/B; this replaces the "one clean run" reading from my earlier comment.
Host: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB,
main@58fed37, diag build,VICTORY_D3D12_DRED=1.Runs of 480 s (the earlier 200-240 s runs were simply shorter than the crash window):
mainmain+ #688main+ #609Every crash has the same shape:
host GPU device removed after a submission of N lists; page fault at 0x...; inside freed ["texture ... (type 34)"]. Freed textures seen across the runs: 1024x1024 f98/f99/f95/f83, 1024x2048 f98, 2048x2048 f98, 512x512 f29, 256x256 f99. In two runs the stopped list is7d85c9cab3c80721, with tables from shaderf0c7efd2aceb2aaanaming placed SRVs. The log reportsa title texture was released while a list not yet reset names its host copybefore the removal.So on RDNA4:
main@58fed37(0 occurrences), i.e. fixed by what is already merged, not by #688;Correction to my earlier comment: the
view heap ... past its endtext in the DRED line only says where the fault address lies relative to the heaps. A texture address is outside them, so that text always appears and is not evidence of a wrong heap handle.Separately, the world is still black for a translation reason, not a memory one: across five runs 501 unique shaders refuse translation and their draws are dropped - top causes
a select on an untracked mask(463 log lines),a lane mask holding lanes elsewhere read as data(400),a descriptor read only as data(328),a structured buffer of unknown stride(233),an address in an SGPR that is no root parameter(175). Several of those have open PRs (#585, #702, #710, #645).No game data in this comment: sizes, formats, hashes and counters only.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@rpmaster2 on GitHub · 2026-11-24 12:14 UTC · original · edited 2026-11-24 12:31 UTC
Two behaviours worth recording, both seen on screen and confirmed in the log.
Frames alternate between black and drawn. Over 8 minutes at 0.6 fps in the world: 30
a black frame after a frame that was notand 15levels after the black frame. Between them the frame is drawn (44-163 draws) and, for 5-10 s at a time, part of the scene is correct on screen - not just UI. So on this host the world pass does reach the screen intermittently; it is not that nothing renders. Whatever produces the black frame removes the drawn one rather than never drawing it.Subtitles pile up at low frame rate and are correct once fps rises. During the cutscene at 0.5-1 fps several lines are produced per rendered frame and all of them land on the UI layer (the text becomes unreadable, then clears when the scene changes). On a later screen at ~30 fps one line per frame and no overlap. That fits the wall-clock timeline vs per-frame rendering: it is a symptom of the frame rate, not a separate UI defect, unless the UI target is supposed to be cleared per produced line.
On the removal itself, the picture is unchanged and now has a little more detail. With diagnostic logging of every host texture creation and release (my local build,
main@58fed37, no other change): 2 of 3 runs still lose the device with the samepage fault ... inside freed ["texture 1024x1024 f98 ..."]; the third survived 480 s. In the run that failed, a burst of 1024x1024 f98/f99/f83 creations happens 40-60 ms before the fault, i.e. the fault coincides with the title making textures of the same shape rather than with a quiet period.Note for anyone doing the same:
ID3D12Resource::GetGPUVirtualAddress()returns 0 for every host texture on this device (D3D12.X device 0x20004), so address matching does not work here; DRED's own freed-allocation names do. I am now giving each host texture a unique number in its D3D12 name so DRED names the exact instance and the log gives its lifetime.No game data: counts, formats, hashes and error strings only.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@rpmaster2 on GitHub · 2026-11-24 12:19 UTC · original · edited 2026-11-24 12:31 UTC
@rouges78 running your protocol now: 5 runs of
main@ffe310eand 5 offix/heap-slot-lifetime(0df7c54), diag builds,VICTORY_D3D12_DRED=1, 480 s each, the same save restored before every run, interleaved (base, fix, base, fix, ...) so machine drift hits both.Per run I log: whether the device was removed, the lists in the failing submission, the page-fault address with the freed texture description when there is one, max frame, and your two counters:
a heap slot let go of a resource while a submission rana descriptor heap was released while a list not yet reset names itBaseline expectation from my earlier runs on this host:
mainloses the device in essentially every 480 s run (7 of 8 so far, frames 1090-1500), alwayspage fault ... inside freed ["texture 1024x1024 ..."]. I will post the ten results together, including the negative case.No game data: counters, formats, error strings only.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@rpmaster2 on GitHub · 2026-11-24 13:25 UTC · original
@rouges78 I ran your protocol, and the result is a partial negative: the first fix is exercised heavily, the second never fires, and removals continue.
Setup:
main@ffe310evsfix/heap-slot-lifetime(0df7c54), diag builds,VICTORY_D3D12_DRED=1, 480 s per run, the same save restored before every run, interleaved. Same host as before (RX 9070 XT, Adrenalin 26.11.2, Win 11 26300).While
fixruns were in flight the slot counter reached n=512 within one run, so fix 1's window is certainly being used - it is not a dead path. Fix 2's counter stayed at 0 in every run, so on this title the heap-release path never happens and it is untested here, not disproved.What this does not show: any reduction in removals. main lost the device in 3 of 4 valid runs, fix in 2 of 3. Both fault shapes appear on
fix: one freed texture (2048x2048 f98) and one with no freed node. The second shape matters for your hypothesis - that fault lands inside a title-memory copy (the message prints the nearest copy below the fault address with a 0x670000 offset), so at least some removals here are not a stale descriptor to a released host texture at all.The remaining runs were lost: after the third removal the environment degraded (three runs produced no log output at all) and then the machine froze on a driver reset and was rebooted. I have stopped game runs for now. When I resume I will do the same 5+5 again, with
VICTORY_D3D12_DEBUG=1on thefixruns so the stopped list is named for the no-freed-node case.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@rouges78 on GitHub · 2026-11-24 14:18 UTC · original
@rpmaster2 thank you, that is exactly the test it needed. I read it as a negative for my hypothesis: the slot path is hit on every run and the device is still lost at the same rate, with a freed texture among the faults. So
fix/heap-slot-lifetimeis not a fix for #597 and I am not proposing it as one. (Seven runs cannot show a small effect either way, but a freed-texture fault on the branch is enough to say the gap I closed is not the one being hit.)On the fault with no freed node, one thing about how to read the line.
shadow::nearprints the closest title memory copy starting below the address and never checks that the address is inside it. So "offset 0x670000" means inside only if it is smaller than the+lenprinted just before it. If the line has noinside [...]list either, the address is in no live allocation and no recently freed one, which is what a read past the end of that copy looks like.There is a path in
mainthat can produce that.root_viewindraw.rsbinds root CBVs and SRVs by address alone: it finds the copy holding the first byte and passes its host address toSet*RootShaderResourceView/Set*RootConstantBufferView. D3D12 does no bounds check on root descriptors, so a shader that indexes beyond the end of the copy reads unmapped host memory. On the console the same read lands in whatever title memory follows, so it would be harmless there. I have not confirmed this is what happens; it is a reading of the code.The log can settle it without another run, if you still have the removal line of fix run 3 (or main run 2):
nearest title memory copy below it: START+LEN at host GPU, offset 0x670000part, with thenearest abovepart and anyinside [...]list;rootN=ADDR host (GPU, LEFT)entries.If the fault address is one of those
GPUvalues plus something at or beyond itsLEFT, it is a root view read past the end of its copy. If the offset is belowLEN, the address is inside a live copy and this idea is wrong too.Small note on the counter: it logs only when the count is a power of two, so the last
nprinted is the count and the number of lines is not.No hurry given the driver reset;
VICTORY_D3D12_DEBUG=1on the next round will help for the same reason.AI-assisted analysis (Claude); read from the code at
ffe310e, not tested against the title.@bunbeans2-arch on GitHub · 2026-11-24 07:30 UTC · original · edited 2026-11-24 14:21 UTC
Same card here, with numbers from a few runs on it in case they help.
Setup: AMD Radeon RX 9070 XT, driver 32.0.32015.7029; Intel Core i9-9900K; 31.9 GB RAM; Windows 11 Pro build 22631. Diagnostics build (
--profile diag --features diagnostics) ofmaind2a4baeplus the PRs named per run and a local input change of mine (keys pressed from a file; diagnostics only), title 1.0.2.1,VICTORY_D3D12_DRED=1, one cache dir shared by all runs. After the first run's first-time setup, every run had the same input: Enter at the account screen and at the start artwork.maind2a4bae: host GPU device removed 241 s after start, 23.4 s after the one-time warningno free dynamic descriptor slots: a table is not made. #336 is for that case (its code comment names world runs on an RX 9070 XT, #59), and with it (through #493) that warning did not appear in any run below. It may be what you hit too.With #493 (it carries #336's two commits) and more on top, all from the opening cutscene:
d2a4bae)int3(below)int3descriptor/host.rs)VICTORY_SHADER_LOOP_LIMIT=65536No
page fault atin any of these removals (main's either), and the work in flight differs each time. In v11 and v12 one list was in flight, stopped at command 92 of 111 (a compute dispatch) and at command 376 of 668. With one run per build I can't say any of these PRs changes how long it lasts, and v13 is one run too (see the loop-limit section below; per #71 a lower limit does not stop the world hang on NVIDIA, so I make no claim about the world hang from it).indirect kind 0: prepare failed(the rectangle-list refusal inexecute_indirect) dropped 256.0/frame; with #346 there were no such lines in v10, v11 or v12. The picture behind the cutscene still stays black or a flat fill.The title's own
int3after many minutes at these frame rates (18.2 min in v10). Two runs stopped with0x80000003in title code, at+0x5149aec(a #493-only run) and+0x63966f(v10). At+0x63966fthe code is a pool allocator taking a slot from a free list: when the list head is0x1fffe(empty), it jumps to theint3, and the code after it returns null, the same null the function's own early-out returns.+0x5149aechas the same instructions around itsint3(an inlined copy, it seems), andraxends in1fffethere too. I take it the title's pools run empty because frames take seconds here and slots come back too slowly. That is a guess I have not tested. Turning theint3at+0x63966finto a NOP locally (v11, v12) just continues to that null return. I have no log of whether that path was taken, so I'm not proposing it.A story save made in a run breaks the next start. In v3 the title wrote a story save 15.8 min after start. Every later start then lost the device 1.7 to 2.1 min after start, during the loading artwork: 5 runs on 4 builds, including the #493 + #454 build that had run 19.3 min in v3. With that save moved out of the save folder, the same build ran until my 5-minute stop. If someone else sees early losses after a long first run, that may be why. More on the cause below.
Update: that save-load loss goes away when one loop in one pixel shader stops sooner (24 more runs, same saved state each time). Builds: v12's, then with #459 added (it did not change the result), then with local diagnostics-only changes of mine on top.
04b9be3756e8f41cwith pixel shader1af4a50c7fb40c97avoided the loss (2 runs); skipping another candidate shader did not. The mesh shader has no backward branch; the pixel shader has 9.VICTORY_SHADER_LOOP_LIMITat 4096 or 65536, 4 of 4 runs got past the load and ran until my stop. A local change that lowers the limit for1af4a50c7fb40c97only did the same (1 run), and so did lowering it for just one of that shader's seven counted loops (2 runs). Lowering the other loops without that one did not help (3 runs covering 5 of the other 6).count - 1 > index, compared unsigned, wherecountis a dword read from a small structured buffer (2044-byte stride) through an SRV table. If the GPU reads 0 there, the bound wraps to the largest unsigned value and the loop only ends at the limit, which at the default would take far too long on every lane.[0, 0, 0, 0]with the range not marked busy, twice[1, 0, 0, 1]with it marked busy (title memory held[5, 5, ...]each time). In another run, once[0, 0, 300, 0], not busy. All of these were in the same large heap copy, and I could not tie one to the draw that hung.[5, 5, ...]before it, and both runs lost the device (22 s and 48 s after the pipeline). So at refresh the copy of that dword was right in every case I logged.0c0380d9ec648626,54bcc8478432ba15,738350c1a01b713a,a83a0864ccef9b67), each through one byte-address UAV over the whole 174 MB heap copy, so every record in that heap counts as busy while they are in a list. Skipping those four pipelines did not help either (lost 41 s after the pipeline, 1 run).Update 2: the cause of that save-load loss is a refused host view; a raw view there fixes it, as in #206 (5 more runs, same saved state).
buffer_srvindescriptor/host.rsmakes the host view from the title's own description, and when the buffer's start in its host copy is not a multiple of the view's element size it makes none, so the slot reads zeros. With a local log of those views, every logged view of that 2044-byte buffer was structured with one 2044-byte element, and every one was refused: 243 of 243 in one run. They sat at 95 different offsets in the 174 MB heap copy, none a multiple of 2044 and all multiples of 16. Socountreads 0 there and the loop only ends at the limit, as described above.buffer view not on an element of its host copyis a one-time warning, and in these runs it fires first for another buffer. A counter in my log reached 4000 other refused views before the loss in one run, and 34000 by my stop in a run that got past the load. The ones it listed were structured with stride 32 (64 or 96 bytes long), plus a few with stride 304 in another run.05981dd, merged cleanly): default limit, no loss, 215 s from the pipeline to my stop (1 run). A build of a public branch that carries it together with other open PRs also got past this load: no loss in 284 s (1 run).So for this load a raw view in that slot is the fix, and the loop-limit workaround is not needed with it. #206 itself is a draft now: per the reports there, a raw view under a slot the shader declares structured faulted on an NVIDIA card, and its author plans a raw window only for slots declared raw. My local check is that narrower form for this one buffer, and it is enough here. Two things I have not shown: what the other refused views do to the picture, and why the every-view read above hid the hang. (Correction: an earlier version of this comment said my read covered only one record per view; the count is read at a fixed offset from the buffer's start.) Until that lands,
VICTORY_SHADER_LOOP_LIMIT=65536got past the load in my runs (the shader cache keys on the limit, so the first start rebuilds it).@rpmaster2 on GitHub · 2026-11-24 14:36 UTC · original
@rouges78 agreed, and thanks for taking it as the negative it is. For the record the branch did exercise what it claims: the slot counter fired on every
fixrun (19, 8, 15, and up to 512 within one run), the heap counter never fired. It simply does not touch the fault.One detail that may matter to whoever picks this up next: of the removals I have on
main, more than half print a freed node (inside freed ["texture 1024x1024 f98 ..."]), but two print none at all and the fault lands inside a title-memory copy instead. So there may be two faults to chase, and the freed-node one may not be the one that ends most runs.AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@rouges78 on GitHub · 2026-11-24 18:39 UTC · original
@rpmaster2 for the removals with no freed node: #951 measured that fault on NVIDIA (Aftermath, RTX 3080): mesh shaders read through root SRVs megabytes past the end of their title-memory copy. The fix is on a fork branch (
gangg111/VIctory,gpu-189), and jamesn-xt backported it with a synthetic test on an RTX 4080. It would be the one to A/B with your 480 s procedure. AI-assisted (Claude); I have not run it.@rpmaster2 on GitHub · 2026-11-24 19:43 UTC · original
@rouges78 thanks - #951 is exactly the shape of the fault that ends my long runs now, and your note on reading
shadow::nearis useful: our latest one printsno title memory copy below it; the nearest above: 0x6fbd80000+0x71ac0, so by that rule the address is in no live and no recently freed allocation.What it looks like here, in case it changes where you would point: a 900 s run on a stack of open PRs (189/211/282/493/587 on
ffe310e,--console series-s) survived 13 minutes, reached the credits and then the "Prologue" cutscene (up to 5,959 draws/frame), and ended with that no-freed-node fault. Every earlier removal on this host died at 3-5 minutes withinside freed ["texture ..."], so the fault you point at is the one that matters once the game gets further.I fetched
gangg111/VIctory gpu-189and the two root-SRV commits (a3a8fe7,94908df) cherry-pick cleanly ontoffe310eon their own, so tomorrow I will A/B exactly those two againstmainwith the 480 s procedure and report both the fault shape and how far the run gets, not only whether it removes the device.One caveat on the A/B: on this host the removal is not deterministic (main survived some 300-480 s runs and died in others), so I will run five per side and report the distribution, as with your branch.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@rpmaster2 on GitHub · 2026-11-24 20:12 UTC · original
@rouges78 A/B of the #951 root-SRV commits on the stack that reaches the prologue, and it is a positive on this host.
Setup:
main@ffe310e+ #189 + #211 + #282 + #493 + #587 (the stack from #1317),--console series-s, diag build, DRED on, 42Enterpresses over 1.83-7.31 s, RX 9070 XT / Adrenalin 26.11.2, 900 s cap.a3a8fe794908dfSo with the root-SRV copy in place the run lasted the full window instead of dying at 8.4 minutes, and it kept running long enough to reach frame 13,027 - ten times the baseline's last frame.
Caveats, because one pair is not proof:
after a submission of 32 listswith noinside freed [...]list and nono title memory copyphrase either, so I cannot say from this run alone that the fix removed the exact shape you described - only that the removal did not happen with it.a3a8fe7conflicted indraw.rswith #493's tabled root-SRV path, and I resolved it by keeping the tabled branch, using the value binding, and keeping gpu-189'sVICTORY_ROOT_LOGdiagnostic;94908dfthen applied as a no-op. If the repeat holds, I will rebuild fromgangg111/VIctory gpu-189directly to rule my resolution out.I will also try #1388 as you suggested for the no-freed-node shape on the baseline, since the two may be the same defect seen from different sides.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@rpmaster2 on GitHub · 2026-11-24 20:17 UTC · original
A scope correction to my previous comment, before anyone reads the 896 vs 506 s as an improvement.
Both runs in that pair ended in the credits cutscene, not in the prologue: the only run today that reached the prologue is the 13-minute one described in #1317. Since the two builds were showing different amounts of the same credits sequence at different times, the survival difference can be scene content rather than the fix - a longer run may simply have had more left to draw.
So the honest reading of that pair is: with the root-SRV commits the run did not lose the device in 896 s, but I cannot yet separate the fix from the content. What would separate them is either (a) the same scene reached in both, or (b) a repeat pair with the frame schedule that reliably reaches the prologue, counting how far each gets, not only whether it dies.
I will run the repeat that way. Until then, treat the number as "no removal in 15 minutes on the branch", not as "the fix removed the fault".
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
@Marvisak on GitHub · 2026-11-25 01:49 UTC · original
Automated triage for the maintainers.
@TheOnlyTGKK, the environment lines in the report are still template placeholders. Please fill in:
git rev-parse --short HEAD).Several fixes for what this thread found have landed since the report, so a run on current
main(diag build,VICTORY_D3D12_DRED=1) with the completehost GPU device removed ...line would tell us which failure is left:3c81420, a draw whose table gets no slots is dropped (crates/victory-gpu/src/draw.rs).main. The clamp incrates/victory-gpu/src/indirect.rsnow has one group charge the records in order (since256d7b9). The fork branchfix/indirect-budget-wrapis therefore superseded.d71c388reads root views through bounded views of the host copy, so reads past the copy give 0.The remaining
inside freed ["texture ..."]removals on the RX 9070 XT are tracked in #557.The untranslated-shader warnings are separate rendering gaps, with several open PRs. The fork branches for them mentioned above (LAKSHYA-cmd-tech's mask branches) are not PRs yet. Pull requests are open to everyone, so please open them as PRs to get them reviewed.
Generated by Claude Code