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!815
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-815"
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?
@kibagami-nc on GitHub · 2026-11-28 06:48 UTC · original
kibagami-nc:dstorage/failed-request-names-its-file→main· +128 −7 · 1 files · 2 commits · openTwo commits on main (
716a0c99). The first commit of this PR (a failed request names its file) is already in main and v2026.11.29.01. These two make a damaged game file say so, once, by name:What happens
The title asks DirectStorage for blocks of its archives at the offsets its archive tables name. When the file's bytes there are not the package's, the request fails, and the title goes on without the data and stops later at an address of its own. Until now, nothing in the log said the file was the cause:
pack\story000\story000.rpf, which was shorter than that (0x80070026, end of file). The title trapped at+0x29defb1two minutes later. Such a file still starts with9FPR, so the header check passes. A complete copy is 20,022,508,672 bytes.levels.rpfwas of the right size (76,155,065,056 bytes), but over part of it held the bytes 16 further on, after an extraction that went wrong. A zlib request there failed with0x8007000d, and the title stopped at+0x4da6315four milliseconds later. Five runs gave the same stop. A zlib block starts with0x78; the damaged copy read25 42 31 b4there.The change
The first such failure of a file logs one error line. Main's
warnwith the request's details stays as it is.File::cut_shortfromread_into, where it already returnsEND_OF_FILE.File::damagedfrom both zlib paths inexecute, plain and before BCPack, onINVALID_DATAfrom a file only (a memory source has no file to name).Filekeeps: a flag for each, beside main'snameandpath.Nothing else changes: same requests, same results, same error record.
Tests
a_read_past_the_end_tells_once_that_the_file_is_cut_short: a read inside the file says nothing; a read past its end fails withEND_OF_FILEand is told, only once.a_block_that_does_not_unpack_says_the_file_is_damaged_once: #3335's bytes where a block starts fail withINVALID_DATAand are told, only once. A memory source fails the same way, with no file.cargo test -p victory-hle --locked: 425 passed, including main'sa_request_names_the_file_it_readsanda_failed_request_is_in_the_error_record.cargo clippy -p victory-hle --all-targets: nothing indstorage.rs.@Dukestar69 on GitHub · 2026-11-28 07:06 UTC · original · approved these changes
LGTM — verified on Windows:
cargo test -p victory-hle --lib dstoragepassed (19/19, includinga_request_names_the_file_it_reads)cargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
DirectStorage: a failed request names the file it read (#812)to DirectStorage: a failed request names its file; a read past a file's end says it is cut short (#812, #1250)96270e51dato51e45cb9b5@trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
DirectStorage: a failed request names its file; a read past a file's end says it is cut short (#812, #1250)to DirectStorage: a read past a file's end says the file is cut short (#1250)51e45cb9b5tob091e6b9adDirectStorage: a read past a file's end says the file is cut short (#1250)to DirectStorage: a damaged game file says so by name, cut short (#1250) or not unpacking (#3335)View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.