HLE: identify DirectStorage physical page write failures #329

Open
github-bot wants to merge 3 commits from github-bot/gh-329 into main AGit
Owner

@⁠avt0m4t48 on GitHub · 2026-11-24 23:34 UTC · original
avt0m4t48:fix/dstorage-physical-write-diagnostics → main · +92 −67 · 2 files · 3 commits · open

Refs #268.

DirectStorage's terminal physical-page write warning reports the unknown page ID, an invalid page range, or the Win32 mapping or commit error captured at the failure site. The branch includes main's new buffered-write retry behavior. If it exhausts its retries, it logs the retry count and the final attempt's specific error in the same warning. The request still reports E_INVALIDARG.

On the updated head, seven source-built checks passed using the production destination and physical-memory logic with simulated Win32 calls. With retries off, the original five checks cover direct writes, fallback, missing pages, map failure and commit failure. With two retries enabled, one check verifies a transient write recovers and logs the number of attempts. Another verifies a map error followed by commit errors reports the final commit error. The diagnostic assertion for the final attempt failed on main. Windows MSVC HLE and GPU test targets type-checked with warnings denied.

Native Windows error injection and the cutscene symptom remain unverified. AI-assisted using Codex.

**@⁠avt0m4t48** on GitHub · 2026-11-24 23:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/329) `avt0m4t48:fix/dstorage-physical-write-diagnostics` → `main` · +92 −67 · 2 files · 3 commits · open Refs #268. DirectStorage's terminal physical-page write warning reports the unknown page ID, an invalid page range, or the Win32 mapping or commit error captured at the failure site. The branch includes main's new buffered-write retry behavior. If it exhausts its retries, it logs the retry count and the final attempt's specific error in the same warning. The request still reports E_INVALIDARG. On the updated head, seven source-built checks passed using the production destination and physical-memory logic with simulated Win32 calls. With retries off, the original five checks cover direct writes, fallback, missing pages, map failure and commit failure. With two retries enabled, one check verifies a transient write recovers and logs the number of attempts. Another verifies a map error followed by commit errors reports the final commit error. The diagnostic assertion for the final attempt failed on main. Windows MSVC HLE and GPU test targets type-checked with warnings denied. Native Windows error injection and the cutscene symptom remain unverified. AI-assisted using Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:40:51 +00:00
Author
Owner

@⁠avt0m4t48 on GitHub · 2026-11-25 14:11 UTC · original

Merged 0b0074e into this branch at 2014383. The resolution preserves the new retry counters and page-written notifications and adds the final write error to the terminal warning.

The seven simulated host-error controls still pass, including a successful retry and an exhausted sequence where the final error differs from the first. Native Windows also passed all 14 DirectStorage tests and 12 physical-memory tests. The native suite exercises source-built requests and page mappings. Host mapping/commit errors were injected in the separate simulation.

Exact-head Windows run

AI-assisted using Codex.

**@⁠avt0m4t48** on GitHub · 2026-11-25 14:11 UTC · [original](https://github.com/fxceless/victory-fork/pull/329#issuecomment-7164890527) Merged `0b0074e` into this branch at `2014383`. The resolution preserves the new retry counters and page-written notifications and adds the final write error to the terminal warning. The seven simulated host-error controls still pass, including a successful retry and an exhausted sequence where the final error differs from the first. Native Windows also passed all 14 DirectStorage tests and 12 physical-memory tests. The native suite exercises source-built requests and page mappings. Host mapping/commit errors were injected in the separate simulation. [Exact-head Windows run](https://github.com/avt0m4t48/victory-fork/actions/runs/45630281568) AI-assisted using Codex.
This pull request has changes conflicting with the target branch.
  • crates/victory-hle/src/modules/xmem.rs
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.
git fetch -u origin '+refs/pull/329/head:github-bot/gh-329'
git switch 'github-bot/gh-329'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-329'
git switch 'github-bot/gh-329'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-329'
git switch 'github-bot/gh-329'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-329'
git switch 'main'
git merge --squash 'github-bot/gh-329'
git switch 'main'
git merge --ff-only 'github-bot/gh-329'
git switch 'main'
git merge 'github-bot/gh-329'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.