World rendering: device removed with a page fault inside a freed texture and garbage descriptor handles #772
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#772
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?
@Allmightly on GitHub · 2026-11-24 10:13 UTC · original
Summary
Title: GTA6 Xbox build
1.0.2.1(game_scarlett_master.exe).The title reaches the main menu and renders it at 30 fps, and it loads into the world
(the world's pipelines translate and thousands of draws are issued per frame), but the
host GPU device is then removed with
0x887A0004/0x887A0006after 60–150 s. WithVICTORY_D3D12_DRED=1the removal reports a page fault inside an already freedtexture, plus descriptor handles past the end of the view/sampler heap.
Build
8e79c80(8e79c80e4b71e252bcd271e0587aa662c4770008).cargo build --releaseandcargo build --profile diag --features diagnostics, both clean.D3D12Core.dll1.620.2 inD3D12\next to theexe,
D3D12SDKVersion = 620,D3D12SDKPath = .\D3D12\exported viabuild.rs).Needed because Windows 10 19045's inbox
d3d12.dllrejects the title'sCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXEDroot signatureflags (
root signature: Unsupported bit-flag set).With 1.722.1-preview / version 722 I get
0x887E0003; 1.620.2 / 620 works.System
10.0.19045.0x73bf), driver32.0.21045.29003(26.11.2, 2026-11-17).victory.toml:game_dir= the title,cache_dir/data_diron E:.Reproduction
VICTORY_KEYS(diag build) advances the menus: legal notices → first-run wizard →ToS → world. Menu renders fine, 30 fps,
drawn = 5376/5376.World entry: frames take 1.5–2.1 s,
drawn1135–4703, private memory 23.6–24.3 GB,Srv s0+40: placed dim 1 42991392x1, then the device is removed.What did not fix it
VICTORY_COPY_MODE=none: removed after 4 lists.VICTORY_COPY_MODE=plain: crash inside the menu.VICTORY_SHADER_LOOP_LIMIT=64: 0 fps.VICTORY_D3D12_DEBUG=1+VICTORY_GPU_TIMING=1: removed at frame 1337.still removed, after a submission of 27/16/30 lists — so this is not "submission too long".
VICTORY_SKIP_PIPELINES=0184869d6e47e5fa(a compute pipeline that shows up in every slowsubmission): still removed.
DRED report (
VICTORY_D3D12_DRED=1)The breadcrumbs show every earlier list completing, then the fault inside a pipeline:
9d790882d65f0ae3, whose tracked constants areu8=0xa00000 [heap 327680: null],u9=0x20c0b60 [heap 1073243: null],u10=0x20c09e0 [heap 1073231: null],u14=0x35a6b40, and whose descriptor table is80e6426bcce9ceb7, sampling e.g.Reading
Two separate things point at descriptor liveness rather than at data content:
that runs later still holds a descriptor (or a directly-indexed slot) for it.
view heap ... slot 566987264/sampler heap ... slot 1139159808are absurd slotnumbers derived from a handle (or from a value read out of title memory as a handle),
i.e. a descriptor table is being built from a stale/garbage index rather than from a
live allocation.
Question: is "resource freed while a submitted draw still references it" a known gap for
this title — e.g. the title frees a render target between frames and we still execute the
previous frame's list against it, or a dynamic-descriptor slot gets recycled while a
descriptor table built earlier still points at it? Anything you would like me to dump
(
VICTORY_DUMP_TARGETS, per-draw descriptor tables,VICTORY_CRASH_SAVE) to pin it down?I have the full
run30log (breadcrumbs of all 30 lists, heaps, the freed allocationreport) and can paste it or attach it.
@MartinIndra02 on GitHub · 2026-11-24 10:15 UTC · original
Two quick pointers on the DRED output:
inside freed ["texture 1024x1024 f83 ..."]): yes, this is a known lifetime gap onmain— PR #431 (GPU: free host textures only after running submissions, and make them on first use) specifically addresses host textures being freed while a recorded/submitted command list still references them.view heap ... 0x436914000 past its end (slot 566987264)/sampler heap ... slot 1139159808: those aren't garbage descriptor indices — DRED's reporter just prints the byte offset from each descriptor heap's GPUVA to the faulting address (0x104fa0000 + 0x2e00000 + 0x436914000 == 0x53e6b4000, the freed texture's address). So the fault itself is the freed texture, not an out-of-bounds heap slot.No game data; AI-assisted.
@Sunkiller-qc on GitHub · 2026-11-24 12:54 UTC · original
Same signature as #557 (device removed, page fault "inside freed" a 1024x1024 texture during world rendering). The latest results there change the picture: h0useadv found that the faulting texture had no view at all, and that the fault is most likely a read past the end of a 4 MB title-memory host copy. The freed texture is just whatever was at that address before. KingKaom confirmed it on RDNA4.
So #431 alone may not fix this. Your log would be more useful on #557, and I'd close this as a duplicate.
@Marvisak on GitHub · 2026-11-25 03:51 UTC · original
Automated triage for the maintainers.
Thanks, a complete report (RX 6900 XT, driver 26.11.2, Windows 10 19045 with a local Agility SDK opt-in,
8e79c80, DRED output). Thepage fault ... inside freed ["texture 1024x1024 ..."]device removal in the world is tracked in #557, the oldest complete report of it. Please add your full log there.On the two readings: the
view heap ... past its end (slot ...)lines are offsets from each heap to the fault address, not descriptor indices the title used, as noted above. #557's latest results point to a read past the end of a title memory copy, not to a live view of the freed texture. Since8e79c80,maingainedd71c388, which binds root views as bounded views of their host copy (crates/victory-gpu/src/draw.rs). Please retry on currentmain(Windows 10 still needs your Agility opt-in, see #84) and say whether the fault remains. #609 (open) is the candidate for the freed-texture lifetime case.Generated by Claude Code