Deferred buffer copies expose later bytes across submissions and within one command list #844
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#844
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?
@thegonsalez1 on GitHub · 2026-11-28 07:36 UTC · original
On
63b902fe1720, a GPU read can see a later CPU-source copy to the same destination. This reproduces across submissions and between two reads in a single command list. All inputs are synthetic. The adapter was an RTX 5060 8 GB on Windows 11, driver 621.40, using a release MSVC build.CopyBufferRegioncalls, each followed by GPU readback, 8 MiB + 256 bytes per copy0x21, second0x51throughout0x51. The second read matched in full. This also happened with two-sided backing and successful snapshots. The 256-byte command-position control returned both expected values.The cross-submission test holds the direct queue on a fence until all three submissions return. A five-second watchdog fails the test if submitting waits for the queue. The single-list test needs no fence gate. It checks the selected copy path and the bytes across both readback ranges.
Step::Copychanges guest memory while preparing the submission. On a one-sided shadow a refresh can overwrite the mapping an earlier GPU command will read. Two-sided shadows normally preserve a submission’s input, but whensend::takereturnsNone,card_beforereads from reusable staging. Within a single list both deferred writes run before the upload prelude and native list, so a submission-owned snapshot can contain only the second value. Deferred execution · Upload preludeAn earlier PC-memory failure was mentioned in closed PR #119. I reproduced these cases on Foxhound
3d52ac8a978band with PR #60 applied to main and enabled. That PR’s own copy-queue readback and retirement test passed. PRs #34, #194 and #641 also retained these failures in the same hardware tests. With three submissions in flight, the owned upload buffers peaked at 24 MiB for 256-byte copies and 48 MiB for the 8 MiB + 256-byte workload.Reproduce on Windows
Save the test-only diff below as
copy-ordering-reproducer.patchand apply it to63b902fe1720withgit apply. Run the commands in a fresh PowerShell with the project’s Rust/MSVC prerequisites.The refusal switch exists only in the test build and leaves the spare pool available. For the small single-list control, set
COPY_PROBE_BYTES=256andCOPY_PROBE_PLACED=1before running that test.OpenAI Codex provided AI assistance by preparing the reproducer, running the hardware tests, and drafting this report.
Test-only regression patch
@github-actions[bot] on GitHub · 2026-11-28 07:36 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@trustno1-coder on GitHub · 2026-11-29 19:48 UTC · original
Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.
If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!