Repository navigation
Conversation
…s request The title writes a request's page list after enqueueing it, and a queue half full is submitted on its own, so a read can start before the list is filled. It then names page 0 (no page: numbers start at 0x10_0000) and the request fails, leaving its model or texture unwritten. The list is now read again for up to 8 ms; late and still-zero lists are counted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapt fxceless/victory-fork#97 to snapshot the title page list with ReadProcessMemory before checking or writing it.
Full test environment
Merge note against current The conflict is the whole retry block, so I left this PR out of my integration build instead of stacking both loops. The part Related observation from the same runs (RX 9060 XT, Exact state and data
|
|
Closing: as noted above, main's |
What
A DirectStorage request into physical pages (
PAGE_DESTINATION) whose page list names page 0 is read again for up to 8 ms before the request fails.Why
The title writes a request's page list after enqueueing it, and
queue()submits a queue on its own once half of it is enqueued. A worker can then start the read before the list is filled: it names page 0, which is no page (numbers start at0x10_0000),xmem::write_physicalreturns false and the request fails withE_INVALIDARG. Nothing logs it, and the title never reads a request's result (it only polls for completion), so the model or texture is silently left unwritten.Two measurements on the same machine (RTX 3070, Windows 11, Series X profile, a world load into the first story pack):
Measured on this fork (main at 4e17478 plus this change). The same change is proposed upstream as Marvisak/VIctory#1726.
Changes
into_destination: ifwrite_physicalfails and the list holds a 0, the title's list is read again every 1 ms, 8 times. Recovered writes are counted and logged at powers of two (written late). A request that still fails keeps the existing warning, and lists that stay at 0 are counted (still names page 0 after 8 ms).a_page_list_filled_after_its_request_starts: the list is filled 2 ms after the request is submitted, and the data must arrive. It fails without the change (checked with the retries set to 0) and passes with it, repeatedly.Verification
No game data is used or committed. AI-assisted (Claude Code).
🤖 Generated with Claude Code