Handle upload allocation failures and bound ray-tracing scans #625
No reviewers
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!625
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-625"
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?
@cnuonr on GitHub · 2026-11-28 01:57 UTC · original
cnuonr:fix/upload-allocation-failures→main· +115 −29 · 1 files · 2 commits · merged 2026-11-29 00:24 UTCProblem
A failed commit of an early upload reservation removes its address from the pool even though Windows still holds the reservation. Subsequent uploads can no longer retry it. An unrepresentable block-rounded length also panics in the allocator. The process-heap fallback uses an infallible allocation even though callers already handle a missing upload.
The ray-tracing address scan also treats adjacent occupied blocks as a single upload. It reads into the next allocation and into padding beyond the requested byte count.
Changes
Verification
cargo test --locked -p victory-gpu --lib upload::testspassed all 9 tests on Windows. A simulated commit failure, the two rounding-overflow cases, and both scan-boundary cases fail on the original implementation. The heap fallback test checks zero initialization and rejection of an unrepresentable capacity. The tests use generated data.Handle upload allocation failures without losing reservationsto Handle upload allocation failures and bound ray-tracing scans