Repository navigation
Conversation
A device-removed report read BreadcrumbCount ops from a node's pCommandHistory; on an RTX 3070 Ti the runtime's count ran past the history it had committed and the report crashed at op 15,360. Read the history page by page through the kernel up to the first page that cannot be read, and say when it is cut short. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 26, 2026
Closed
Dukestar69
approved these changes
Nov 26, 2026
Dukestar69
left a comment
There was a problem hiding this comment.
Reviewed the diff and verified locally on Windows 11 x64:
- Reading DRED breadcrumb history page-by-page via
ReadProcessMemory(readable_history) and bounds-checkingdone < history.len()instopped_at/in_flightcleanly prevents access violations whenBreadcrumbCountruns past committed pages. cargo test -p victory-gpu --lib host::breadcrumbs:: -- --test-threads=1: 1 passed, 0 failed (a_history_shorter_than_its_count_is_read_as_far_as_it_is_there).cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.cargo clippy -p victory-gpu --features diagnostics --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
|
WARP verification report (test report only, no code changes)
AI-assisted: verification by Claude Code (Claude Sonnet 5.5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
VICTORY_D3D12_DRED,Host::removal_datamakes a slice ofBreadcrumbCountops over each unfinished node'spCommandHistoryand walks all of it. On an RTX 3070 Ti (driver 621.40, Windows 11 26200) one removal's report crashed VIctory instead:0xc0000005reading op 15,360 of a node's history, exactly 60 KiB in, where the memory was reserved but not committed. So that removal's report was lost. It was 1 of 3 DRED removals I have, in aVICTORY_GPU_TIMING=1run (#2703 + #2841 on my NVIDIA stack). The other reports on this card read histories of 17,030 to 19,268 ops without trouble, so the history is not capped at 15,360; in that one, the runtime's count ran past the history it had committed.This PR:
read, as the title-memory copies do), page by page, up to the first page that cannot be read;but only its first N commands can be readwhen the history is cut short;Test:
host::breadcrumbs::a_history_shorter_than_its_count_is_read_as_far_as_it_is_theremakes a two-page reservation with only the first page committed, and a count of two pages. With the old read (from_raw_partsover the count) put back, the test process dies with0xc0000005 STATUS_ACCESS_VIOLATION; with this PR it passes.Checks on the RTX 3070 Ti: both clippy commands and
cargo xtask policypass.cargo test --workspace --locked --no-fail-fastgives the same results asmainon this card (twovictory-gpuview-heap-cap failures,dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views, and thevictory-shadercrash of #2571), plus the new test passing.Not tested: a real removal with a cut-short history. That needs a GPU fault, and
ID3D12Device5::RemoveDevicewaits until the GPU is idle, so afterwards DRED lists no unfinished nodes (checked on this card). So there is no forced-removal test here.Claimed on #1633. AI-assisted (Claude Code).
🤖 Generated with Claude Code