NVIDIA validation: 915 workspace tests pass, replay reports D3D12 errors 538/1003/527 #3
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#3
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?
@tatazildo on GitHub · 2026-11-25 22:45 UTC · original
Independent synthetic testing on commit
0a43566.System
Workspace tests
915 passed, 0 failed, 45 ignored (excluding the nested child-process result). Some hardware-specific checks also skipped internally.
Notably,
warp_budget_saturates_without_wraparound_and_preserves_draw_fieldspassed, whereas I have consistently reproduced a failure in the similarly named test in fxceless/victory-fork. I have not yet compared the implementations.Synthetic frame replay
With
VICTORY_TEST_D3D_DEBUG=1:cargo test --locked --release -p victory-gpu --features diagnostics --test replay -- --test-threads=1 --nocapture
The test passed, with byte-identical pictures across all replay variants (BLAKE3 prefix
4aaec8b6026567d0).However, the debug layer reported:
The initial unchanged replay reported 11 errors of ID 538 and 22 of ID 1003.
No device removal occurred in the supplied test logs. Reporting these in case the NVIDIA results are useful for cross-vendor validation.
ChatGPT assisted with testing and report preparation.
@Ym1r1710 on GitHub · 2026-11-25 22:55 UTC · original
Some in-game numbers from NVIDIA too, RTX 5080 16 GB + 7800X3D, commit
0a43566, diag build, Series X, prison cell start. I used the play.ps1 sets but kept eeed82b877b44b5f skipped (it faults on this card in other trees).For comparison, fxceless main with my own set runs the same spot at about 104 ms on this card. One run each, so take the frame times loosely, but the broken picture with the default set was clear.
@tatazildo on GitHub · 2026-11-25 23:00 UTC · original
Additional observations on
0a43566with the RTX 3080 Ti.Video playback remained stable at 30 FPS, but subsequent 3D rendering was considerably slower, with GPU utilization reaching 100% and high CPU utilization.
The session lasted approximately 5 minutes and 24 seconds and ended with a title suspension event. The pipeline library was successfully saved, with 1,781 pipelines created and 105 loaded.
These observations are not directly comparable with the published AMD benchmarks due to differences in hardware, configuration, presentation resolution and pipeline cache state.
ChatGPT assisted with log analysis and report preparation.
@CaptureLance35 on GitHub · 2026-11-25 23:12 UTC · original · edited 2026-11-25 23:13 UTC
Additional NVIDIA Data: RTX 3070 Ti Test
System: Windows 11, Ryzen 5 5600x, NVIDIA RTX 3070 Ti (8GB VRAM), Driver 621.24, System RAM: 32GB DDR4.
Observations:
Successfully loaded into the prologue.
Performance is extremely low (~4 FPS).
Shadows and areas out of direct sunlight are pitch black (lighting/shadows not rendering).
Using VICTORY_RELAY=2 optimization flag.
Ran victory.exe
shader-info
earlier: it successfully decoded 9282 Mesh Shaders, so decoding is fine.
Attached:
nvidia_debug.zip collected with VICTORY_D3D12_DEBUG=1. It contains the console output right up until the game was closed.
Hope this debug log helps to pinpoint the NVIDIA synchronization issue!
nvidia_debug.log
@sawetco on GitHub · 2026-11-25 23:43 UTC · original
Following up on the RTX 5080 default/Safe comparison with a test that changes just
VICTORY_THIN. This was Jason's house in free roam on main0a43566, Series X, Windows build 26300, Ryzen 5 7600X, 32 GB RAM, RTX 5070 12 GB, driver 621.24. Both runs used the same diag executable. The only local source change was a controller-input hook for repeating the route.Both started from copies of the same save and the same shader and pipeline cache (1,432 shader files). I kept the published
-Safesettings, including light DRED andSKIP_PIPELINES=none. After the starting porch view appeared and had at least 65 seconds to settle, I sent the same stick sequence and measured host-present intervals for 30 seconds. The benchmark took no window captures and ran no Cargo builds during either measurement window. Runtime shader and pipeline compilation continued.The THIN counters showed 49,743–84,140 list calls translated per frame across the reporting windows. With Safe, Jason's face, the railing, and trees were visible on the walk. With only THIN added, there were frames where his face disappeared or his skin rendered black while his white shirt and the background still showed. The blue-gray silhouette of the building also replaced its textures in one porch frame. The bottom strip had artifacts with either setting.
An earlier Safe run also washed out after turning the camera, so exposure varies even with THIN off. There is one clean timed walk per setting here. The better p95 in the THIN run came with visible rendering regressions on this card. AI-assisted measurement and report.
@Adika713 on GitHub · 2026-11-25 23:47 UTC · original
Cross-vendor check on this host: AMD Radeon RX 6950 XT (RDNA2), Ryzen 5 3600, 32 GB RAM, Windows 11, rustc/cargo 1.98.1.
With
VICTORY_TEST_D3D_DEBUG=1, base0a43566reproduces the same three groups reported here:Result: 1 passed, 0 failed, with
11 × ID 538,22 × ID 1003, and3 × ID 527in the one-submission variant. Picture prefix497b4592b929fe7d.PR #5 head
631aadcunder the same command: 1 passed, 0 failed, no ID 538 or ID 1003 notes; only3 × ID 527remains in the one-submission variant. The picture prefix is unchanged. That makes the resource-state and volatile-binding fixes in PR #5 a direct match to two of the three reported groups; the 527 experiment is still tracked separately.The synthetic replay test uses no game files. No game data was posted or committed.
AI-assisted: OpenCode, model Big Pickle.
@gomeaw on GitHub · 2026-11-25 23:46 UTC · original · edited 2026-11-25 23:49 UTC
The fork now has an NVIDIA preview branch at
5b71813. It combines the adapter, shader, and replay changes. PR #4 has a separate RTX 3060 Ti report that reached a 3D cutscene past the reporter's baseline exit. Gameplay reportFor the RTX 5080 prison-cell repro above, a useful comparison would hold the Series X profile, resolution, DRED setting, shader skip, and pipeline cache state fixed between
0a43566and5b71813.-Safeon both builds isolates the preview changes. With the same preview build and the same DRED setting, togglingTHIN,JOIN_PARTS, andUPLOAD_AHEADindividually can then isolate the rendering difference. Frame times and whether the walls and lower tiles render correctly are the measurements that matter here.For a targeted check of the reported hit-detection failure, PR #23 covers a raw/structured mismatch when the adapter logs
raw_twins=false. WARP reproduced the descriptor placement error and passed with the change. A separate matched run with shadereeed82b877b44b5fenabled can establish whether this fixes that GPU fault on this fork. PR #23 and Windows comparisonPR #18 also has a synthetic test that requires no title data. Run
cargo test --locked -p victory-shader --lib wave_ticket_counters_cover_every_id_on_wave32_hardware -- --nocaptureand report whether it prints that all 11 translated shapes wrote every console ID once. PR #18The controlled THIN-only RTX 5070 run narrows the rendering regression. For a follow-up on the same route,
-Safe -More @{VICTORY_THIN='1'; VICTORY_THIN_THREADS='1'}can distinguish problems that require multiple translation workers from ones that also occur with one. The preview now keys the shader cache by both the LDS flag switch and the effective dispatch split switch. THIN-only run@tatazildo on GitHub · 2026-11-25 23:52 UTC · original
@gomeaw thanks for the detailed suggestions! I've checked out
bfd9ef8in a separate directory and ran the exact synthetic test you suggested.Hardware:
Results:
Exit code: 0.
This independently confirms the expected result from PR #18 on an Ampere GPU.
ChatGPT assisted with testing commands and report preparation.
@owsware on GitHub · 2026-11-25 23:57 UTC · original
NVIDIA RTX 5080 Hardware Verification, PR #4 Check & 7-Run Default/-Safe Ablation (
0a43566)Tested public commit
0a43566and PR #4 (25025d2) on physical NVIDIA hardware withVICTORY_SKIP_PIPELINES=noneand isolated cache/data directories.Device & Build Specifications
22631), AMD Ryzen 7 9800X3D,32 GBRAM, NVMe SSD, Desktop.16 GBVRAM), driver576.80(hardware execution, not WARP).avatarmanz/VIctory-7900XTXmain(0a43566),diagprofile (rustc 1.98.1), Xbox Series X console mode,2560x1440SDR,VICTORY_SKIP_PIPELINES=none,VICTORY_AMBIENT=0.8.Baseline & PR #4 Synthetic Hardware Checks
cargo +1.98.1 xtask policy:246 files okcargo +1.98.1 test --locked --workspace --features diagnostics --no-fail-fast:968 passed; 0 failed; 46 ignored(+1 nested child pass)VICTORY_TEST_D3D_DEBUG=1 cargo +1.98.1 test --locked --release -p victory-gpu --features diagnostics --test replay -- --test-threads=1 --nocapture:1 passed; 0 failed, byte-identical output (4aaec8b6026567d0), reproducing D3D12 errors538,1003,527.25025d2) on RTX 5080 (cargo +1.98.1 test --locked -p victory-shader --lib both_host_waves_observe_the_lds_flag_after_the_join -- --nocapture):all 14 flag dispatches passed on a 32-lane hardware adapter(1 passed; 0 failed).Controlled 7-Run Live Ablation (
0a43566,2560x1440,VICTORY_SKIP_PIPELINES=none)Zero crashes and zero
DXGI_ERROR_DEVICE_REMOVEDacross all 7 runs (maxPriv28.6–29.9 GB):asked / refused, search)prepare failed)THIN=1, JOIN_PARTS=8, UPLOAD_AHEAD=1, DRED=light)3.9(255.4 ms)454.2 ms(43,656calls)13,353 / 2,411(329.4 ms)1,683(829.5k2,492.2k10,256.0k0,87.5k1;171in ops)-Safe(UNDER_WIDE=0, LAND_ECHO=0, DRED=0)8.7(115.2 ms)208.9 ms(35,651calls)11,092 / 385(5.8 ms)241(174.8k2,42.7k0,18.8k10,4.9k1;0in ops)LATE_WAIT_LISTS=328.8(113.8 ms)320.9 ms(44,615calls)13,732 / 2,612(206.6 ms)1,564(809.0k2,417.1k10,256.0k0,82.1k1;1,107in world ops:794k2)THIN=0, LATE_WAIT_LISTS=3210.9(91.5 ms)164.5 ms(44,104calls)13,556 / 1,000(49.0 ms)691(417.1k2,217.5k0,31.6k1,25.1k10;64in world ops:0k2)THIN=0, JOIN_PARTS=1, LATE_WAIT=06.2(161.8 ms)133.2 ms(43,432calls)12,414 /0(1.5 ms)0(0in world ops)-Safe+D3D12_DEBUG=1+LATE_WAIT_LISTS=3211.3(88.2 ms)194.6 ms(44,018calls)13,419 / 882(29.8 ms)672(420.2k2,235.3k0,9.2k1,7.0k10)-Safe+BVH_BUILDER=1+LATE_WAIT_LISTS=327.5(132.7 ms)192.4 ms(45,373calls)11,567 / 753(15.3 ms)875(388.1k10,366.1k2,92.8k0,28.2k1) +1,129.1BVH dropsKey Conclusions
Default + LATE_WAIT_LISTS=32(THIN=1) againstTHIN=0 + LATE_WAIT_LISTS=32showsTHIN=1cuts FPS10.9 -> 8.8, nearly doubles recording CPU (164.5 -> 320.9 ms), spikes table search49.0 -> 206.6 ms, more than doubles refused dynamic tables (1,000 -> 2,612), and collapses scene geometry (0 -> 794k2 compute drops in the captured world frame). MeanwhileLATE_WAIT=0eliminates all dynamic refusals (2,411 -> 0) and all indirectprepare faileddrops (1,683 -> 0), isolating theDYNAMIC = 262,144ceiling (descriptor/host.rs) as the remaining starvation bug.eeed82b877b44b5f: Ran unskipped across all 7 RTX 5080 (576.80) runs with zero GPU faults (PR #23 targets its raw/structured alignment mismatch).-Safegameplay withVICTORY_D3D12_DEBUG=1still logs8,160x ID 721,1,791x ID 538(COPY_DESTroot SRVs),706x ID 646(UAV-in-SRVcompute descriptor tables), and6x ID 622(WaveSize 64 > 32) (ID 523,ID 527, andID 1003were0).0a43566run (widest(false) = 65,535inindirect.rs), matching the issue addressed by open PR #10.Detailed Follow-Up Issues Opened
262,144cap (PORTABLE_VIEWS),State::tablesindexed-view check &THIN=1interaction1,791x ID 538,706x ID 646) & strict-driver state/format hazards (R9G9B9E5, depth clear order, integer RT blending, sparse tail VA)6refused compute PSOs) +VICTORY_BVH_BUILDER=1(3/53failed prefix-scan kernels) +>32 KiBmesh-pixel output linkingXMemsplit mappings/sub-4 GiB reserves,4 MiBloose CBV RAM inflation,30s/300swatchdog contracts &33.3 msCPU/GPU bottlenecks)Note: Hardware testing, log analysis, and sanitized issue preparation were assisted by Antigravity (
Gemini). All measurements were directly observed on local RTX 5080 hardware against public commit0a43566and PR#4(25025d2).@CaptureLance35 on GitHub · 2026-11-26 00:02 UTC · original
Tested the latest main commit (32b31f7). The crash is gone, but visual issues remain.
Screenshot attached: As you can see, the scene is rendered, but all lighting and shadows are pitch black.
Performance: ~3.8 FPS, 751 draws/frame.
This looks like the exact pipeline creation failure (slot 0x218 / 0x1c8) still affecting the lighting pass on NVIDIA."
@CaptureLance35 on GitHub · 2026-11-26 00:09 UTC · original
Tested the THIN=0 + LATE_WAIT_LISTS=32 combo on my RTX 3070 Ti (8GB) and Ryzen 5 5600X. Unfortunately, it didn't help. The FPS stayed at ~3.6 and shadows remain pitch black. Interestingly, the draw calls spiked from 751 to 6364 per frame, which likely bottlenecks my 8GB VRAM and CPU. Reverting back to default settings for now. Attached is the screenshot with the draw call counter.
@S33G on GitHub · 2026-11-26 00:33 UTC · original
RTX 3090 follow-up on NVIDIA preview
5b71813System: Windows 11 build 26100, Ryzen 9 7900X3D, 32 GB RAM, RTX 3090 24 GB, NVIDIA driver 610.88, Rust 1.98.1.
Live run: Ran the very popular homebrew application.
Synthetic replay: Both commits passed the issue’s replay test with
VICTORY_TEST_D3D_DEBUG=1.0a435665b71813IDs 538 and 1003 disappeared across the tested preview variants. The matching replay images kept the same BLAKE3 prefix,
4aaec8b6026567d0. Neither synthetic run showed device removal.@CaptureLance35 on GitHub · 2026-11-26 00:48 UTC · original
Hi @S33G , thanks for the detailed testing!
I am testing on an RTX 3070 Ti (8GB) and I am still facing the D3D12 errors (ID 538 and 1003) causing pitch-black shadows and low FPS (~4) on the main branch.
I noticed your report shows that the NVIDIA preview 5b71813 fixes these errors. Could you please tell me which repository, branch, or Pull Request contains this specific commit? I would love to test it on my hardware and provide a new debug log to help verify the fix.
Thanks in advance!
@lorenzopincinato on GitHub · 2026-11-26 03:00 UTC · original
Another NVIDIA data point, this time a low-end one: 8 GB card, 16 GB of RAM.
System
Build and settings
0a43566,cargo build --locked --profile diag -p victory --features diagnosticsvictory shadersrun first: 25,715 in the cache, 203 do not translate (195 "container without a vertex, pixel, compute or mesh program", 5 "descriptor read only as data", 3 "lane mask exchanged where not every lane runs")scripts\play.ps1 -Safe, Series X profile (default), no ray tracingWhat happened
Picture problems (same scene as the RTX 5080 report above, but with
-Safe)So the corruption reported with the default set also shows up with
-Safeon NVIDIA here.From the log at the cell
Memory (answers item 5 of findings.md for a 16 GB machine)
memory allocation of 3145728 bytes failedwhile the world loaded; a 48 GB page file fixed that. Likely the same here: 16 GB machines need a big page file.One more note:
warp_budget_saturates_without_wraparound_and_preserves_draw_fieldsin fxceless/victory-fork failed once here and passed on the next full run, so it looks unreliable rather than consistently broken.Follow-up: a crash in the opening, and splitting the
-SafesetI ran the
-Safesettings in halves to see which one brings the corruption. Same machine and commit, same settings asplay.ps1 -Safeunless stated, launched withvictory rundirectly.TEXTURE_NO_WAIT=1 SHOW_AFTER=1 AMBIENT=0.8 WIDE_BACK=1 CARD_REHASH_RUNS=1 CARD_STEPS=2 CARD_AWAKE=1 D3D12_DRED=light SKIP_PIPELINES=noneRELAY=2 JOIN_COPIES=1 INDIRECT_WINDOW=1 RELAY_COPY=1 INDIRECT_BATCH=2 MAP_THREADS=1 TITLE_PRIORITIES=0 UNDER_WIDE=0 LAND_ECHO=0-Safe)RELAY RELAY_COPY JOIN_COPIES UNDER_WIDE=0 LAND_ECHO=0, skippedThe crash: 5 of 6 runs ended the same way, whatever the settings:
unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there), at 7.5-12 min of game time in the opening mission (0x62131f35). The title's own crash log showed its physical pool at 2.18 of 2.31 GB (95%) in the one I read. It happened both in the cutscene's white fade and while loading after skipping it. The two runs that got through (the first-Safesession and the skipped one) did not reach that point at the same moment, so it may be timing- or memory-related. RAM was full (14-15.5 of 16 GB) in every run. (The title's crash reporter tried to upload a minidump each time; victory blocked it.)Series S profile: to check whether the PC running out of RAM is the cause, I ran the full
-Safeset with--console series-s(cutscene skipped). It used much less: 28.5-29.5 GB committed after the skip against ~36 GB on Series X. It crashed the same way anyway, at 10 min 53 s, frame 6378, same address. The title's crash log showed its physical pool at 1.289 of 1.339 GB (96%), the same fullness as the Series X crash (2.18 of 2.31 GB, 95%), with the pool smaller on Series S. So the PC's RAM looks ruled out; the title's own physical pool filling up is the better lead (memory the title allocates through us and never gets back?). Not proven. (On Series S the window was black most of the time from the start screen on, flickering, with the character visible for a moment once; my screenshots only caught black frames.)The corruption: it shows with group B on its own and with the full set; with group A alone the frames I saw were clean apart from small blocky skin patches, but those were not the same shots, so this only points at group B. I could not narrow it further because the halves crash before reaching the cell.
The crash is now its own issue: #76.
Two more runs, both
-Safewith the cutscene skipped:-Safe-Safe+VICTORY_RELAY=1 VICTORY_CARD_STEPS=0(the settings from #13)-Safe+ #13 settings +VICTORY_TEXTURE_POOL=0 VICTORY_TEXTURE_STAGE_MB=64validation/nvidia-preview-v4(b77dc37, contains5b71813),-SafeSo on this RTX 3070:
RELAY=1 CARD_STEPS=0removes the blocky patches on skin and hair, which agrees with #13 (there it is skinned meshes on AMD and vkd3d).RELAY=2/CARD_STEPS=2; they stay with them off.-Safetoo, but did not change the #76 crash. Refused host pipelines in its log: 5 (main: 6).Not a bug: the opening cutscene has a long fade to white; at 1-4 s a frame it lasts minutes. It looked like a white-screen fault at first.
@avatarmanz on GitHub · 2026-11-26 08:18 UTC · original
Fixed by #5, now in main (
0ce46d5a).@tatazildo on GitHub · 2026-11-26 11:51 UTC · original
@avatarmanz @gomeaw Confirmed the fix independently on my RTX 3080 Ti (i9-13900K, 64 GB DDR4, Windows 11) after updating main to
a9400a6.Repeated the exact same synthetic replay test with
VICTORY_TEST_D3D_DEBUG=1.4aaec8b6026567d0).Warnings 820 and 821 remain, concerning non-optimized clear values.
Thanks for the quick fix!
ChatGPT assisted with log analysis and report preparation.
@tatazildo on GitHub · 2026-11-26 12:02 UTC · original
Additional validation of main at
a9400a6on my RTX 3080 Ti using the sequential release workspace test suite:PR #4's hardware test also independently confirms the RTX 5080 reporter's result on Ampere:
The structured-view tests, Wave32 prefix-sum hardware test and renderer port 6 concurrent write-tracking tests also passed.
No regressions detected against my previous
0a43566sequential baseline of 915 passing tests.ChatGPT assisted with log analysis and report preparation.