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#2024
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?
@realpawski on GitHub · 2026-11-25 03:24 UTC · original
Since updating from
ffe310eto70564aethe game crashes on the first frame:host GPU device removed after a submission of 1 lists; no breadcrumbs
(DXGI_ERROR_UNSUPPORTED 0x887A0004); device removed: DXGI_ERROR_INVALID_CALL (0x887A0001)
ffe310eruns fine on the same machine. Clearing %LOCALAPPDATA%\victory and rebooting did not help.CPU: i7-13700F, Windows 10.0.26200
GPU: NVIDIA GeForce RTX 3070, driver 32.0.16.2140
@Proudnoob4 on GitHub · 2026-11-25 03:33 UTC · original
This looks like #1754: the same
DXGI_ERROR_INVALID_CALL(0x887A0001) "after a submission of 1 list" on NVIDIA since70564ae. ("1 lists" is the number of command lists in that submission, not the frame number.)The debug layer in #1754 showed the call the removal refers to:
ID3D12Device::CreateUnorderedAccessView: The format (0x56, B5G5R5A1_UNORM) cannot be used with a Typed Unordered Access View(id 342), with the removal 1 ms later. NVIDIA cards have no typed-UAV support forB5G5R5A1_UNORM. The fix is the open PR #1780, which checks every unordered texture view against the host's typed-store support. It is not merged; main is at940d32fas I write.From an RTX 4080 (Windows 10 22H2, driver 621.01,
70564ae+ #175): the sameINVALID_CALLremoval happened here too, but at about 100 s rather than at start-up. With #1780 and Cresceda's follow-up from #1754 (unordered views without a description checked too) applied, it did not come back in a 623 s run. A separate null-write crash (0xC0000005, the heap cap in #1808) still happened in some runs.To confirm it is the same thing on your 3070: run once with the Windows SDK's Graphics Tools installed and
VICTORY_D3D12_DEBUG=1. If id 342 with format 0x56 appears just before the removal, it is #1754.AI-assisted (Claude Code, Claude Opus 5.5); measured on my own machine. No game files attached.
@fiestorra on GitHub · 2026-11-25 03:54 UTC · original
Reproduced on a 4090 and bisected:
13bbd6f("one host texture per texture memory, and writable twins for depth textures") is what starts itYour report reproduces here, and the range you gave is one commit wide. Same scenario for every run: session 1 (interactive desktop), RTX 4090, driver
32.0.16.2124, release build, empty cache, 30–40 s,VICTORY_D3D12_ADAPTERunchanged.ffe310e(yours, working)70564ae(yours, broken)13bbd6f13bbd6f^=e0034c2So the 28 commits between
ffe310eand70564aecontain exactly one that turns the removal on, and it is:Seven of the eight commits I tested in between were clean, so it is not an interaction — it is that change. It replaced the texture bookkeeping with one host texture per texture memory plus writable twins for depth textures, and that is the code that now asks the device for something it refuses:
DXGI_ERROR_UNSUPPORTED (0x887A0004)withDXGI_ERROR_INVALID_CALL (0x887A0001)behind it, at the frame where the title first presents.Two practical consequences for you:
ffe310eis a real option, and it is not "an old build forever": the removal you would get onmaintoday is a different, later one (the capped view heap, the 1440pB5G5R5A1_UNORMtexture, and the UAV format), which is what #1952 is about. Both are covered by the same chain of fixes, but #1952's are further along;32.0.16.2140) is not mine (32.0.16.2124), so it is worth saying whether the removal you see also names the texture: withVICTORY_LOGat debug level the line just before the removal is the one that says which description was refused. If it is the same2560x1440 format 115I see, then the ladder in #1630 is the fix for your machine too, on top of a build that contains13bbd6f.I have not attempted a fix here: the commit is 1,600 lines of texture bookkeeping and the honest next step is the one I would not do blind — find which
CreateCommittedResourcethe twin code adds that the host refuses, which needs the debug layer's verdict on that build. That is where I would look next, and the bisect above is what makes it a one-commit search instead of a 28-commit one.No game data is involved: commit ids, counts and warnings.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 03:57 UTC · original
The debug layer names it: the writable twin is created with
ALLOW_RENDER_TARGEToverB4G4R4A4_UNORM, which is not a render-target formatI said last comment that the next step needed the layer's verdict on that build, so I built
13bbd6fwith the diagnostics and the debug layer and ran it here (session 1, RTX 4090, driver32.0.16.2124, 40 s). The layer says:Two calls, the same format, and both of them in the twin path that
13bbd6fadded.B4G4R4A4_UNORMis DXGI format 115, andresource::elementin this tree lists it with the two-byte colour formats — it is a legacy LDR layout with no render-target support on this driver, which is exactly what the two messages say.This is the same format as #1952. There, the title's 2560x1440 target is "format 115" and the texture ladder's job is to fall back to plain memory because the host will not make it a render target; here, the new twin code asks for the same format with
ALLOW_RENDER_TARGETset, and the call is refused. One format, two symptoms: a fallback ladder for the texture itself, and no fallback at all for its twin.What that means for the fix, in order of how much I would trust it:
ALLOW_RENDER_TARGETwhen the format cannot be one. A twin whose purpose is to be written by a compute pass does not need to be a render target at all —UNORDERED_ACCESSis the permission it uses, and the existing ladder already knows how to drop permissions it cannot have;R8G8B8A8_UNORMis the natural one for a 4-bit-per-channel layout) and convert on copy, which is what a "twins" design already does for depth;D3D12_CLEAR_VALUE::Formatcomplaint (id=817) follows from the same description and goes away with either.One measurement worth flagging: with the layer on, the same build did not remove the device and reached frame 512 — the layer turns the invalid call into a warning and the run continues. That is a useful tell in itself: the removal on the plain build is that call failing, not a later consequence. It also means a layer build is not a good measure of "does it work", only of "what is wrong".
I have not pushed a fix: this is the texture bookkeeping commit's ground and its author (or whoever owns the twins) knows whether the twin is meant to be renderable. But the shape of the fix is now one line of description, and the format is named.
No game data is involved: layer message text, a format name and counts.
Written with an AI assistant.
@fiestorra on GitHub · 2026-11-25 04:02 UTC · original
Measured which of the open fixes actually removes it: #1832 and #1630 together — either one alone is not enough
Following the layer's verdict (the
ALLOW_RENDER_TARGETcall overB4G4R4A4_UNORM, format 115), I built the candidates and ran each on this machine, same scenario every time: session 1, RTX 4090, driver32.0.16.2124, release, empty cache, 40 s.main940d32f)no host texturemainaloneSo
maintoday has your removal, and it takes both of those pull requests to clear it:id=599call the layer named, and after it the texture is made, logged ashost texture made only as a fallback;dropping unordered accesstwice;Both are open and green against
maintoday. What I cannot tell you from here is whether they also clear the first-frame removal you see on the 3070: mine happens later (frame 64) because this machine is further along, and a driver difference can move what the first refused call is. What I can say is that the two layer complaints are about the same format, and that format 115 is the one both fixes are about.If you want to try a build before either merges, the cheapest thing is a branch with both applied — they do not conflict with each other (
resource.rsin one place, the descriptor heap in the other) — and then look fordevice removedandhost view heap cappedin the log. The cap stays (that is #1779's ground); the removal should not.No game data is involved: counts, format name and frame numbers.
Written with an AI assistant.
@p0wny-cyber on GitHub · 2026-11-25 09:00 UTC · original
Same here on an RTX 4070 Ti, confirming this (and #2138) on another NVIDIA card.
Setup
940d32f, fresh clone,cargo build --release -p victory, Rust 1.98.1 (pinned), no local changesvictory.exe run game_scarlett_master.exe --executetranslate --cache --pipelines shaders.rpf <exe> XboxBvhBuilder.dll amd_fidelityfx_upscaler_xbox.dll: 25,985 shaders; 28,164 pipelines in the pack, 23,057 made, 3,607 already in the library, 395 skipped as "the host refuses it"What happens: 3 of 3 runs today, a few seconds after start:
Yesterday on
8e79c80/ffe310ethe same machine did not fail this way: it ended in0x887A0006after submissions of 20–28 lists instead, which matches the bisect to13bbd6fabove.The workspace tests also fail on this card in the NVIDIA-specific way of #1835:
descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views(both pass with WARP),stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride,stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros,synthetic_tests::gathers_at_a_level_match_the_hardware.Happy to test #1832 + #1630 on this card if useful.
@ChenmouXu on GitHub · 2026-11-25 10:00 UTC · original
RTX 5070 Ti (Blackwell) data point: three removals in a row, the last one inside a 27-list submission with the view heap capped at 1,000,000
Machine: RTX 5070 Ti Laptop (driver 32.0.16.1074), Ryzen 9 9955HX, 32 GB, Windows 11 26200. Title 1.0.2.1 (Series X profile), release and diag builds, shader cache warmed with
translate --cache(25,678 translated, 307 refused). main as downloaded 2026-11-25T05:15Z.I applied the open NVIDIA fixes one at a time to see which removal each one clears. All three were applied by hand as code hunks only (no git on this machine), so no test code is in my build.
no host textureE_INVALIDARG over2560x1440 format 115 (B4G4R4A4_UNORM) flags 1, then device removed at a submission of 1 listSo #1630+#1832 clears the first-frame removal exactly as reported in the comments above, and #1780 does not clear the next one on this GPU.
What the debug layer says on the all-three build
With
VICTORY_D3D12_DEBUG=1(Graphics Tools installed):host view heap capped at 1000000 ... count=1245184— the title asks for 1,245,184 slots;PORTABLE_VIEWSis 1,000,000, and the usable title range becomes 934,464.title slot past the host heap, the highest index seen being 1,245,183.slow host submission ms=1119 lists=27 pipelines={... 19 compute ...}.ID3D12Device::RemoveDevice: Device removal has been triggered ... (DXGI_ERROR_INVALID_CALL) **id=232** severity=1. There is noseverity=0message before it, and noid=342/id=599/id=817— i.e. this is not an API misuse the layer validates.Everything after the removal is
0x887A0005from pipeline/root-signature creation, i.e. fallout.My reading
The reference the GPU faults on is a title slot past the capped heap: translated shaders clamp indices below
HEAP_VIEWS(2^21) but the host heap only covers 1,000,000, anddraw.rsonly re-makes tables that reach past the host heap — a shader that indexes the bindless heap directly still reaches slots 0..1,245,183. That is the "descriptors past the host's limit are left out; a title that reaches them needs remapping" path indescriptor/host.rs.Questions:
VICTORY_D3D12_DEBUG=1the run does reach the world — the title card ("VICE CITY, TWO YEARS AGO") is drawn correctly at 3,331 draws/frame and ~6.1 s/frame — and then still removes. So the GPU does draw the first world frame here; it is one submission that kills it, not the content.Also worth noting for other NVIDIA testers: without the debug layer, #1630+#1832+#1780 gets menus but dies within ~2 minutes of advancing; with it, you get the opening scene at a slideshow rate. Happy to run any branch.
@ChenmouXu on GitHub · 2026-11-25 12:48 UTC · original
RTX 5070 Ti (Blackwell) confirms #841 on the
fx-heapmapfork: same capped heap, same black output, and present pacing is not the causeMachine: RTX 5070 Ti Laptop (Blackwell, driver 32.0.16.1074), Ryzen 9 9955HX, 32 GB, Windows 11 26200. Title 1.0.2.1, Series X profile.
Tree:
Xeltax/VIckybranchfx-heapmap-4e— it carries both the packed-target substitution (#89's ground) and the page-mapped view heap (#2121's ground), so it is the only tree I could get into the world with. Everything below is that build, release and diag, no debug layer.What it does here:
host view heap capped at 1000000 ... count=1245184: the title still wants more than the host gives; the page map just hides it.Two negative results on the flicker that may save someone a day. I patched
queue.rs::presenttwice:crate::host::settle_for_present()before the flip, so a present never runs ahead of the card. This removed thea queue still held a submission at a present: its fence was not reachedwarning (the wait is real), but the visible flashing did not change.draw::drawn() + draw::dispatched()had not advanced, so unchanged buffers are never cycled.Neither changed the flashing. So on this machine it is not present pacing and not "the frame is not finished", which points back at #841: something reaches the 2560x1440 targets but not the 3840x2160 output.
A 23 s per-frame capture of the prologue puts luminance at ~14.6 for whole seconds, with single-frame jumps to 33 / 49 / 65 / 77 and back to 14.7 -- seconds of black, then a bright frame, then black again, not a per-frame tear.
If a build with the output-surface fix lands, I will run it and report frame counts and dumps of both targets.
@Marvisak on GitHub · 2026-11-25 12:50 UTC · original · edited 2026-11-25 15:48 UTC
Automated triage for the maintainers.
Run report: RTX 3070, driver 32.0.16.2140, Windows build 26200. This is the NVIDIA boot-time removal (
DXGI_ERROR_INVALID_CALLafter a submission of 1 list) tracked in #1753, the oldest complete report, which also started with70564ae. The comments here bisect it to13bbd6f. The debug layer namesB4G4R4A4_UNORM(format 115) as a render target andB5G5R5A1_UNORMwith unordered access. Inmain(da82e44),host_descincrates/victory-gpu/src/resource.rsstill passes both to the host unchanged. #1952 is the same chain.Update from the reporter:
940d32f+ #1630 + #1832 clears the first-frame removal on the 3070 too. The game now reaches the loading screen at 30 fps. Right after it, the device is removed withDXGI_ERROR_DEVICE_HUNG(0x887A0006) after a submission of 25 lists. That later removal is the NVIDIA world hang tracked in #71, with the capped view heap (count=1245184over the 1,000,000 limit) in #1760. Open PR #1906 (view addresses for tables made afresh in the dynamic slots) cleared a hang of this shape on another RTX 3070. A run with it, andVICTORY_D3D12_DRED=1, would show whether it is the same dispatch here.ChenmouXu's RTX 5070 Ti run with #1906 ended on a debug-layer state mismatch. A title buffer was used as a vertex/constant buffer while a barrier said unordered access.
mainhas changed exactly that since: in315cea1, title buffers' copies are no longer transitioned, and the indirect clamp writes into a buffer of the list's own (crates/victory-gpu/src/indirect.rs). A rerun on currentmainwould show whether that mismatch is gone.Generated by Claude Code
@realpawski on GitHub · 2026-11-25 13:41 UTC · original
Tested
940d32f+ #1630 + #1832 on the RTX 3070 (driver 32.0.16.2140, Windows 10.0.26200, i7-13700F), release build, no other changes.The first-frame removal is gone: no more DXGI_ERROR_INVALID_CALL after a submission of 1 list.
The game now reaches the loading screen at 30 fps.
Right after the loading screen it removes:
host GPU device removed after a submission of 25 lists; no breadcrumbs (0x887A0004); device removed: DXGI_ERROR_DEVICE_HUNG (0x887A0006)
So #1630 + #1832 clear the boot-time removal on the 3070 as well. What remains looks like the later 25-33 list removal on the first world frame (#71 / #747).
@ChenmouXu on GitHub · 2026-11-25 14:22 UTC · original
Same wall here, and there is a branch that passes it:
Xeltax/VIcky@fx-heapmap-4e. It carries the packed-target substitution (#89's ground) and the page-mapped view heap (#2121's ground), and with it the 25-list removal is gone entirely.On an RTX 5070 Ti (Blackwell, driver 32.0.16.1074), release build, no debug layer:
device removedevents. Before that, main + #1630 + #1832 + #1780 removed at a submission of 27-33 lists, same as your 25.host view heap capped at 1000000; views past it read a null slot ... count=1245184.Caveat: the picture flickers badly -- seconds of black, then one bright frame, then black. I tried two patches in
queue.rs::present(waiting onsettle_for_present()before the flip, and skipping the flip when nothing was drawn); neither changed the flicker, so it is not present pacing.Also tried
Belobug/VIctory-Belobug-AMD, which is #1 on PortWatch. On NVIDIA it does not flicker, but it renders garbage: a cross-hatched grey block, a blown-out red/yellow sun, large black regions. So on NVIDIA the two builds fail differently, and fx-heapmap is the one that at least shows the world.Worth a try on the 3070 -- it is the same GPU family as the one that authored it.
@Slay326 on GitHub · 2026-11-25 14:48 UTC · original
The hang after the loading screen may be the one #1906 fixes. On an RTX 3070 the host view heap is capped at 1,000,000 slots, so tables past it are made afresh in the dynamic slots, and a shader that reads a view's address as data (the BVH builder's base) indexed the view-address buffer past its end. On my RTX 3070 that gave
DXGI_ERROR_DEVICE_HUNG2-6 minutes in (the first indirect compute dispatch after the world starts); with #1906 the same build ran 420 s and later 480 s runs without a removal. Another RTX 3070 tester confirmed it in #1906 (15 min, no removal).If you try it:
VICTORY_D3D12_DRED=1and the stopped command in the removal line would show whether it is the same dispatch (an indirect compute dispatch,indirect kind 2 max 1).AI-assisted.
@ChenmouXu on GitHub · 2026-11-25 15:30 UTC · original
RTX 5070 Ti (Blackwell): still removes, and the debug layer names a different failure -- a resource barrier state mismatch, not view addresses
First, #1906 does what it says on the machine you tested, and the failure here looks like a separate bug, so this is a "does not cover 50-series yet" report rather than a regression.
Machine: RTX 5070 Ti Laptop (Blackwell, driver 32.0.16.1074), Ryzen 9 9955HX, 32 GB, Windows 11 26200. Title 1.0.2.1 (Series X), release and diag builds, shader cache warmed with translate.
Tree: your branch (fix/view-addresses-dynamic-slots) with the three open NVIDIA fixes applied on top -- #1630 + #1832 + #1780 -- because without them the title's packed targets remove the device on the first frame. So this is main + all four.
What happens:
slot unknownCbv bindings, e.g.6a62009bc6a4146e Cbv s1+56: Constant(0x3f1e7b0, 656) ... slot unknown.id=527 severity=1
ID3D12CommandQueue1::ExecuteCommandLists: Using ResourceBarrier on Command List
('victory host list 157'): Before state (0x8: D3D12_RESOURCE_STATE_UNORDERED_ACCESS)
of resource ('title buffer 0x36860000+0xae00000') does not match with the state
(0x1: D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER) specified in preceding
ResourceBarrier or as InitialState
So the same buffer is declared a vertex/constant buffer while the preceding barrier or the initial state says unordered access. That is resource-state tracking, not the view-address buffer #1906 fixes -- which fits with 30-series passing and 50-series not.
Two questions:
I have no 40-series to test; this is the only NVIDIA card here.
@potatoe0100 on GitHub · 2026-11-26 14:11 UTC · original
Two things have merged since this was reported, both on current
main(63bcca4):B5G5R5A1_UNORMremoval: #2462 (ea488a9) and #2286 (bac1364). #1753, where it was tracked, was closed as fixed.2bba792), suggested above for the hang after the loading screen.B4G4R4A4_UNORM(format 115) render targets are still refused onmain(#89 and #2767 are open for it). In the #1832 run on #2563 that refusal was not fatal. A rerun on63bcca4would show what is left.AI-assisted (Claude)