XGameSave: GetContainerInfo of a container with no saved data succeeds #1192

Open
github-bot wants to merge 1 commit from github-bot/gh-1192 into main AGit
Owner

@⁠emirduran707 on GitHub · 2026-11-24 13:03 UTC · original
emirduran707:gamesave-container-info-missing → main · +109 −25 · 1 files · 1 commits · open

XGameSaveGetContainerInfo returned 0x80830010 for a container that has no saved data: a name never used (a title's first launch), or a container created but never submitted. That code is not "container not found". Microsoft's own code names it E_GS_USER_QUIT: PFGameSaveFilesAPIProvider_GRTS.cpp in PlayFab/PlayFabCSdk, and HResult.cs in microsoft/XBOX-GDK-dotnet. It is the result of the "quit game" choice on the device-contention dialog. The documented E_GS_* codes before it run from 0x80830001 to 0x8083000F, and none of them means "not found".

The function's documentation lists no not-found error; the name "will return only one result if found". Microsoft's .NET wrapper (GameSaveProvider.GetContainerInfo) fails only on a failed HRESULT, and reports "not found" itself when the call succeeded and the callback was not called. So a title asking for its save slot on first launch was told the user chose to quit the game.

Now a valid name returns S_OK, and the callback is called only if the container exists. An empty or over-long name returns E_GS_INVALID_CONTAINER_NAME, the same check and error as XGameSaveCreateContainer and XGameSaveDeleteContainer. The wrong constant is removed; nothing else used it. Storage I/O errors when listing the provider root or a container's b directory (for example, when either is not a directory) return E_FAIL instead of being silently treated as "no saved data".

What is in it

  • crates/xcl/src/hle/xgameruntime/gamesave.rs:
    • try_blobs_of and each_container propagate non-NotFound I/O errors as E_FAIL through XGameSaveGetContainerInfo, XGameSaveEnumerateContainerInfo, and XGameSaveEnumerateContainerInfoByName.
    • Tests get_container_info_of_a_container_without_saved_data_succeeds_without_a_result and get_container_info_reports_storage_errors.
    • In containers_blobs_round_trip, the assertion after deleting a container now expects S_OK and no callback. Before, it asserted the wrong code.

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 on e41e105 (rebased onto main 1a0bbe3): 1250 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in lower_dxil::tests::{f16,f32}_programs_on_the_gpu; heap_window_out_of_memory_falls_back_to_the_switch_form; pso_measurement_compiles_an_exact_synthetic_record)
    • The 2 failures (gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) fail identically on unmodified main 1a0bbe3 on this GPU (seeds 722 and 1599).
  • cargo test -p xcl --lib gamesave -- --test-threads=4: 12 passed, 0 failed
  • get_container_info_reports_storage_errors failed on 0e4fefe (left: 0, right: -2147467259); passes on 5c3aaca

Regression run

main:

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1454 (PresentX 1454)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18610 MB

this PR:

xcl-smoke v1
commit: e41e10546fcaa10beeb84f906b442884d24d83b4
gpu: AMD Radeon RX 9060 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1505 (PresentX 1505)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 17336 MB

Not tested

  • What the console returns for a name over 256 bytes in this call: no source says. It now matches XGameSaveCreateContainer.
  • A title's first-launch save flow: the smoke run's data folder already has saves.
  • NVIDIA and Intel GPUs.

AI use

  • Claude Code with Claude Opus 5.5: original change, test and description.
  • Antigravity with Gemini 4 Neon: addressed the storage-error propagation finding from review, added the regression test, ran the updated test suite and smoke run, and updated this description.
  • Claude Code with Claude Opus 5.5: rebased the change onto main 1a0bbe3 (a conflict in the tests of crates/xcl/src/hle/xgameruntime/gamesave.rs; both tests kept) and reran the suite and smoke runs above.
**@⁠emirduran707** on GitHub · 2026-11-24 13:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192) `emirduran707:gamesave-container-info-missing` → `main` · +109 −25 · 1 files · 1 commits · open `XGameSaveGetContainerInfo` returned `0x80830010` for a container that has no saved data: a name never used (a title's first launch), or a container created but never submitted. That code is not "container not found". Microsoft's own code names it `E_GS_USER_QUIT`: `PFGameSaveFilesAPIProvider_GRTS.cpp` in PlayFab/PlayFabCSdk, and `HResult.cs` in microsoft/XBOX-GDK-dotnet. It is the result of the "quit game" choice on the device-contention dialog. The documented `E_GS_*` codes before it run from `0x80830001` to `0x8083000F`, and none of them means "not found". The function's documentation lists no not-found error; the name "will return only one result if found". Microsoft's .NET wrapper (`GameSaveProvider.GetContainerInfo`) fails only on a failed HRESULT, and reports "not found" itself when the call succeeded and the callback was not called. So a title asking for its save slot on first launch was told the user chose to quit the game. Now a valid name returns `S_OK`, and the callback is called only if the container exists. An empty or over-long name returns `E_GS_INVALID_CONTAINER_NAME`, the same check and error as `XGameSaveCreateContainer` and `XGameSaveDeleteContainer`. The wrong constant is removed; nothing else used it. Storage I/O errors when listing the provider root or a container's `b` directory (for example, when either is not a directory) return `E_FAIL` instead of being silently treated as "no saved data". **What is in it** - `crates/xcl/src/hle/xgameruntime/gamesave.rs`: - `try_blobs_of` and `each_container` propagate non-`NotFound` I/O errors as `E_FAIL` through `XGameSaveGetContainerInfo`, `XGameSaveEnumerateContainerInfo`, and `XGameSaveEnumerateContainerInfoByName`. - Tests `get_container_info_of_a_container_without_saved_data_succeeds_without_a_result` and `get_container_info_reports_storage_errors`. - In `containers_blobs_round_trip`, the assertion after deleting a container now expects `S_OK` and no callback. Before, it asserted the wrong code. **Tested** - AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` on e41e105 (rebased onto `main` `1a0bbe3`): 1250 passed, 2 failed, 46 ignored; 8 SKIPPED (6 in `lower_dxil::tests::{f16,f32}_programs_on_the_gpu`; `heap_window_out_of_memory_falls_back_to_the_switch_form`; `pso_measurement_compiles_an_exact_synthetic_record`) - The 2 failures (`gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`, `gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3`) fail identically on unmodified `main` `1a0bbe3` on this GPU (seeds 722 and 1599). - `cargo test -p xcl --lib gamesave -- --test-threads=4`: 12 passed, 0 failed - `get_container_info_reports_storage_errors` failed on `0e4fefe` (`left: 0`, `right: -2147467259`); passes on `5c3aaca` **Regression run** main: ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1454 (PresentX 1454) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 18610 MB ``` this PR: ``` xcl-smoke v1 commit: e41e10546fcaa10beeb84f906b442884d24d83b4 gpu: AMD Radeon RX 9060 XT title: 21222967 seconds: 60 exit: 0x0 frames shown: 1505 (PresentX 1505) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 17336 MB ``` **Not tested** - What the console returns for a name over 256 bytes in this call: no source says. It now matches `XGameSaveCreateContainer`. - A title's first-launch save flow: the smoke run's data folder already has saves. - NVIDIA and Intel GPUs. **AI use** - Claude Code with Claude Opus 5.5: original change, test and description. - Antigravity with Gemini 4 Neon: addressed the storage-error propagation finding from review, added the regression test, ran the updated test suite and smoke run, and updated this description. - Claude Code with Claude Opus 5.5: rebased the change onto `main` `1a0bbe3` (a conflict in the tests of `crates/xcl/src/hle/xgameruntime/gamesave.rs`; both tests kept) and reran the suite and smoke runs above.
XGameSaveGetContainerInfo returned 0x80830010 whenever no stored
container matched the name: on first launch, for a container that was
created but never written, and for an empty or too-long name. A title
that checks FAILED(hr) treats its own first launch as a save error.

0x80830010 is not "container not found". Microsoft's code defines it as
the user quitting from the device-contention dialog:
- PlayFab/PlayFabCSdk, Source/PlayFabGameSave/Source/Platform/Windows/
  PFGameSaveFilesAPIProvider_GRTS.cpp (c2c0321):
  "static const HRESULT E_GS_USER_QUIT = 0x80830010;"
- microsoft/XBOX-GDK-dotnet, src/GDK.Net/HResult.cs (ef349b1):
  "EGsUserQuit = unchecked((int)0x80830010)"; the E_GS_* codes before it
  run from 0x80830001 to 0x8083000F, none of them "not found".
The XGameSaveGetContainerInfo reference page says the name "will return
only one result if found" and lists as common errors only
E_GS_INVALID_CONTAINER_NAME, E_GS_USER_CANCELED,
E_GS_CONTAINER_NOT_IN_SYNC, E_GS_CONTAINER_SYNC_FAILED and
E_GS_HANDLE_EXPIRED. GDK.Net's GameSaveProvider.GetContainerInfo
(a089dcc) calls it, throws only on a failed HRESULT, and reports "not
found" itself when the call succeeded but the callback added nothing.

A missing container now returns S_OK without calling the callback. An
empty or over-256-byte name returns E_GS_INVALID_CONTAINER_NAME, the
check XGameSaveCreateContainer and XGameSaveDeleteContainer already make
with valid_container_name_length. The E_GS_CONTAINER_NOT_FOUND constant
had no other user and is removed. Storage I/O errors when listing the
provider root or a container's blob directory now return E_FAIL instead
of being reported as "no saved data".

containers_blobs_round_trip asserted the wrong code after deleting a
container; it now asserts S_OK and that the callback was not called,
which checks more than before. The new tests cover a never-created
container, a created but never-submitted one, a 256-byte name, empty
and 257-byte names, and unreadable provider/container storage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:46:31 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 13:23 UTC · original

Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.

  • cargo test -p xcl --lib gamesave: 11 passed, 0 failed — includes the new get_container_info_of_a_container_without_saved_data_succeeds_without_a_result.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 13:23 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7132763739) Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug. - `cargo test -p xcl --lib gamesave`: **11 passed, 0 failed** — includes the new `get_container_info_of_a_container_without_saved_data_succeeds_without_a_result`. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Author
Owner

@⁠kacper-serewis on GitHub · 2026-11-24 20:21 UTC · original

On 0e4fefe a storage error is reported as "no saved data": S_OK with the callback not called.

Tested: Windows 11, debug, CPU only. Both cases return (S_OK, 0 callbacks):

  • the provider's root cannot be listed (it is a file)
  • the container's b is a file, so its blobs cannot be listed

each_container drops the errors. Before, both gave 0x80830010 like a missing container (read from the code, not run); now a title could take them for a first launch. Suggested: let each_container return the error, e.g. E_FAIL, and return it from XGameSaveGetContainerInfo.

Test (append to gamesave.rs)
#[cfg(test)]
mod lookup_probe {
    use super::*;
    unsafe extern "system" fn hit(_i: *const ContainerInfo, ctx: *mut c_void) -> bool { *(ctx as *mut u32) += 1; true }
    #[test]
    fn unreadable_storage_is_not_no_save() {
        let mut pr = Provider { magic: MAGIC_PROVIDER, root: std::env::current_exe().unwrap() };
        let mut n = 0u32;
        let r = unsafe { XGameSaveGetContainerInfo(&mut pr, b"slot\0".as_ptr(), &mut n as *mut _ as *mut c_void, Some(hit)) };
        assert_eq!((r, n), (E_FAIL, 0));
    }
    #[test]
    fn unreadable_container_is_not_no_save() {
        let root = std::env::temp_dir().join(format!("xcl-probe-{}", std::process::id()));
        std::fs::create_dir_all(root.join("slot")).unwrap();
        std::fs::write(root.join("slot").join("b"), b"not a directory").unwrap();
        let mut pr = Provider { magic: MAGIC_PROVIDER, root: root.clone() };
        let mut n = 0u32;
        let r = unsafe { XGameSaveGetContainerInfo(&mut pr, b"slot\0".as_ptr(), &mut n as *mut _ as *mut c_void, Some(hit)) };
        std::fs::remove_dir_all(&root).unwrap();
        assert_eq!((r, n), (E_FAIL, 0));
    }
}

AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. I checked the points before posting.

**@⁠kacper-serewis** on GitHub · 2026-11-24 20:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7143415660) On `0e4fefe` a storage error is reported as "no saved data": `S_OK` with the callback not called. **Tested:** Windows 11, debug, CPU only. Both cases return `(S_OK, 0 callbacks)`: - the provider's root cannot be listed (it is a file) - the container's `b` is a file, so its blobs cannot be listed `each_container` drops the errors. Before, both gave 0x80830010 like a missing container (read from the code, not run); now a title could take them for a first launch. Suggested: let `each_container` return the error, e.g. `E_FAIL`, and return it from `XGameSaveGetContainerInfo`. <details><summary>Test (append to gamesave.rs)</summary> ```rust #[cfg(test)] mod lookup_probe { use super::*; unsafe extern "system" fn hit(_i: *const ContainerInfo, ctx: *mut c_void) -> bool { *(ctx as *mut u32) += 1; true } #[test] fn unreadable_storage_is_not_no_save() { let mut pr = Provider { magic: MAGIC_PROVIDER, root: std::env::current_exe().unwrap() }; let mut n = 0u32; let r = unsafe { XGameSaveGetContainerInfo(&mut pr, b"slot\0".as_ptr(), &mut n as *mut _ as *mut c_void, Some(hit)) }; assert_eq!((r, n), (E_FAIL, 0)); } #[test] fn unreadable_container_is_not_no_save() { let root = std::env::temp_dir().join(format!("xcl-probe-{}", std::process::id())); std::fs::create_dir_all(root.join("slot")).unwrap(); std::fs::write(root.join("slot").join("b"), b"not a directory").unwrap(); let mut pr = Provider { magic: MAGIC_PROVIDER, root: root.clone() }; let mut n = 0u32; let r = unsafe { XGameSaveGetContainerInfo(&mut pr, b"slot\0".as_ptr(), &mut n as *mut _ as *mut c_void, Some(hit)) }; std::fs::remove_dir_all(&root).unwrap(); assert_eq!((r, n), (E_FAIL, 0)); } } ``` </details> **AI use:** Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. I checked the points before posting.
Author
Owner

@⁠emirduran707 on GitHub · 2026-11-24 21:21 UTC · original

Fixed in 5c3aaca (squashed and force-pushed).

try_blobs_of and each_container now treat only ErrorKind::NotFound as absent data and return E_FAIL on other I/O errors (such as a provider root or container b path that is a file), propagating it from XGameSaveGetContainerInfo, XGameSaveEnumerateContainerInfo, and XGameSaveEnumerateContainerInfoByName.

Reproduced both cases with get_container_info_reports_storage_errors (returned S_OK / 0 instead of E_FAIL on 0e4fefe); on 5c3aaca cargo test -p xcl --lib gamesave passes 12/12 and the full workspace suite passes (743 passed, 0 failed, 41 ignored).

AI use: Antigravity with Gemini 4 Neon wrote the fix, test, and this reply.

**@⁠emirduran707** on GitHub · 2026-11-24 21:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7144817535) Fixed in `5c3aaca` (squashed and force-pushed). `try_blobs_of` and `each_container` now treat only `ErrorKind::NotFound` as absent data and return `E_FAIL` on other I/O errors (such as a provider root or container `b` path that is a file), propagating it from `XGameSaveGetContainerInfo`, `XGameSaveEnumerateContainerInfo`, and `XGameSaveEnumerateContainerInfoByName`. Reproduced both cases with `get_container_info_reports_storage_errors` (returned `S_OK` / `0` instead of `E_FAIL` on `0e4fefe`); on `5c3aaca` `cargo test -p xcl --lib gamesave` passes 12/12 and the full workspace suite passes (743 passed, 0 failed, 41 ignored). **AI use:** Antigravity with Gemini 4 Neon wrote the fix, test, and this reply.
Author
Owner

@⁠thehollowedone on GitHub · 2026-11-24 13:14 UTC · original · edited 2026-11-24 21:31 UTC

Independent first-launch check using XCL’s bundled test title with a scratch save-flow fixture. Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, release. I built with cargo build --offline --locked --release --workspace and launched a separate process for each case with xcl run <test-title> -- --save-probe=<write|read>.

  • On 47efa2e, the title’s first query returned 0x80830010 with zero callbacks. The fixture stopped before saving.
  • On 0e4fefe, the same first query returned S_OK with zero callbacks. The title then submitted one synthetic blob and exited successfully.
  • On a second launch with that scratch profile, the query returned S_OK and invoked the callback once. The reported blob count, byte count, and read-back payload all matched.

This exercised the title’s named XGameRuntime imports and on-disk persistence across processes. Retail save behavior was outside the test.

AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the fixture and drafted this report.

Retest on 5c3aacad

I checked both enumeration APIs with synthetic save files. A provider root that was a file returned E_FAIL with zero callbacks on both APIs. In a two-slot provider, an exact prefix for the damaged slot also returned E_FAIL with zero callbacks. An unmatched prefix returned S_OK with zero callbacks, and the case-insensitive prefix for the healthy slot returned its correct name, blob count and size.

When the callback continued past the healthy slot, both an unfiltered scan and a prefix covering both slots reported the healthy result first and then returned E_FAIL. Stopping after the healthy callback returned S_OK. After restoring the damaged slot's synthetic blob directory, both slots enumerated and the healthy blob still contained its original bytes.

Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC debug. cargo test --offline --locked -p xcl --lib <filter> -- --nocapture --test-threads=1 passed 12/12 for the stock gamesave tests and 1/1 for the added scratch_enumeration_distinguishes_damaged_saves fixture, with zero skips. Using the prior save implementation made the same fixture fail because enumeration returned S_OK for the file at the provider root. No retail saves were used.

AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the fixture and drafted this update.

**@⁠thehollowedone** on GitHub · 2026-11-24 13:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7132539160) · edited 2026-11-24 21:31 UTC Independent first-launch check using XCL’s bundled test title with a scratch save-flow fixture. Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, release. I built with `cargo build --offline --locked --release --workspace` and launched a separate process for each case with `xcl run <test-title> -- --save-probe=<write|read>`. - On [`47efa2e`](https://github.com/ivall/xcl/commit/47efa2ecea0a12934719ae69b81930cf02a4b1c3), the title’s first query returned `0x80830010` with zero callbacks. The fixture stopped before saving. - On [`0e4fefe`](https://github.com/ivall/xcl/commit/0e4fefea67daae000e20fa6de7254c041009356a), the same first query returned `S_OK` with zero callbacks. The title then submitted one synthetic blob and exited successfully. - On a second launch with that scratch profile, the query returned `S_OK` and invoked the callback once. The reported blob count, byte count, and read-back payload all matched. This exercised the title’s named XGameRuntime imports and on-disk persistence across processes. Retail save behavior was outside the test. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote and ran the fixture and drafted this report. **Retest on [`5c3aacad`](https://github.com/xcl-dev/xcl/commit/5c3aacad576997b983e14069f71beaa674c29ebe)** I checked both enumeration APIs with synthetic save files. A provider root that was a file returned `E_FAIL` with zero callbacks on both APIs. In a two-slot provider, an exact prefix for the damaged slot also returned `E_FAIL` with zero callbacks. An unmatched prefix returned `S_OK` with zero callbacks, and the case-insensitive prefix for the healthy slot returned its correct name, blob count and size. When the callback continued past the healthy slot, both an unfiltered scan and a prefix covering both slots reported the healthy result first and then returned `E_FAIL`. Stopping after the healthy callback returned `S_OK`. After restoring the damaged slot's synthetic blob directory, both slots enumerated and the healthy blob still contained its original bytes. Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC debug. `cargo test --offline --locked -p xcl --lib <filter> -- --nocapture --test-threads=1` passed 12/12 for the stock `gamesave` tests and 1/1 for the added `scratch_enumeration_distinguishes_damaged_saves` fixture, with zero skips. Using the [prior save implementation](https://github.com/xcl-dev/xcl/commit/47efa2ecea0a12934719ae69b81930cf02a4b1c3) made the same fixture fail because enumeration returned `S_OK` for the file at the provider root. No retail saves were used. AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the fixture and drafted this update.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 03:52 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 03:52 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7182100481) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
Author
Owner

@⁠fromthemoonx on GitHub · 2026-11-24 13:54 UTC · original · edited 2026-11-26 04:12 UTC

Rerun on the new head e41e105 (storage errors now reported): still passes on the RTX 3060, and the new get_container_info_reports_storage_errors catches the old "every error is no data" handling.

result
cargo test --workspace --no-fail-fast -- --test-threads=4, e41e105 merged onto main b49be18 (clean) 1437 passed, 0 failed, 47 ignored; 25 SKIPPED lines
get_container_info_of_a_container_without_saved_data_succeeds_without_a_result and get_container_info_reports_storage_errors, alone, 30 runs each 30 of 30 each
hle::xgameruntime::gamesave:: (13 tests), --test-threads=8, 30 runs 30 of 30
scratch: both Err(e) if e.kind() == ErrorKind::NotFound arms widened to Err(_) get_container_info_reports_storage_errors fails; the other 12 pass

Same machine, debug. The reports below are for 0e4fefe.


Whole-suite run, to go with the two runs above (gamesave tests and the test title's save probe).

Tested

  • NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 stable-x86_64-pc-windows-msvc; debug
  • Exact head 0e4fefea67daae000e20fa6de7254c041009356a (on its base 47efa2e): cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4: 742 passed, 0 failed, 41 ignored
  • Merged onto current main 930e8b4 (no conflict): 752 passed, 0 failed, 41 ignored
  • Fails without the change: with gamesave.rs as on main plus only get_container_info_of_a_container_without_saved_data_succeeds_without_a_result, it fails with left: -2138898416, right: 0. That is 0x80830010 (E_GS_USER_QUIT), the code the description is about.
  • gamesave tests, 10 runs: 10 of 10 passed (11 each)
  • SKIPPED (no wave64 on this adapter): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware

Not tested

  • A retail title's first launch; release build.

AI use

  • Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above, including the check without the change, and wrote this report from the output.
**@⁠fromthemoonx** on GitHub · 2026-11-24 13:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7133526604) · edited 2026-11-26 04:12 UTC **Rerun on the new head `e41e105` (storage errors now reported): still passes on the RTX 3060, and the new `get_container_info_reports_storage_errors` catches the old "every error is no data" handling.** | | result | |---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4`, `e41e105` merged onto `main` `b49be18` (clean) | 1437 passed, 0 failed, 47 ignored; 25 `SKIPPED` lines | | `get_container_info_of_a_container_without_saved_data_succeeds_without_a_result` and `get_container_info_reports_storage_errors`, alone, 30 runs each | 30 of 30 each | | `hle::xgameruntime::gamesave::` (13 tests), `--test-threads=8`, 30 runs | 30 of 30 | | scratch: both `Err(e) if e.kind() == ErrorKind::NotFound` arms widened to `Err(_)` | `get_container_info_reports_storage_errors` fails; the other 12 pass | Same machine, debug. The reports below are for `0e4fefe`. --- Whole-suite run, to go with the two runs above (`gamesave` tests and the test title's save probe). **Tested** - NVIDIA GeForce RTX 3060 12 GB, driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974); rustc 1.100.0 `stable-x86_64-pc-windows-msvc`; debug - **Exact head `0e4fefea67daae000e20fa6de7254c041009356a`** (on its base `47efa2e`): `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`: **742 passed, 0 failed, 41 ignored** - **Merged onto current `main` `930e8b4`** (no conflict): **752 passed, 0 failed, 41 ignored** - **Fails without the change:** with `gamesave.rs` as on `main` plus only `get_container_info_of_a_container_without_saved_data_succeeds_without_a_result`, it fails with `left: -2138898416, right: 0`. That is `0x80830010` (`E_GS_USER_QUIT`), the code the description is about. - `gamesave` tests, 10 runs: **10 of 10 passed** (11 each) - SKIPPED (no wave64 on this adapter): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` **Not tested** - A retail title's first launch; release build. **AI use** - Claude Code (Claude Opus 5.5) ran the builds and tests on the machine above, including the check without the change, and wrote this report from the output.
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-26 08:55 UTC · original

NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head e41e1054 (on its base 1a0bbe3).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1240 passed, 0 failed, 44 ignored. SKIPPED (no wave64, no xgameruntime.dll): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, test_title_draws_with_a_root_signature_under_the_debug_layer, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • The new tests ran and passed: get_container_info_of_a_container_without_saved_data_succeeds_without_a_result, get_container_info_reports_storage_errors.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1251 passed, 0 failed, 46 ignored. SKIPPED: f16_programs_on_the_gpu (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f16_programs_on_the_gpu (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), f32_programs_on_the_gpu (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows), test_title_draws_with_a_root_signature_under_the_debug_layer (no xgameruntime.dll).
  • --skip leaves out tests that fail on main b49be183 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-26 08:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7187194759) NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head `e41e1054` (on its base `1a0bbe3`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **1240 passed, 0 failed, 44 ignored**. SKIPPED (no wave64, no xgameruntime.dll): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `test_title_draws_with_a_root_signature_under_the_debug_layer`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - The new tests ran and passed: `get_container_info_of_a_container_without_saved_data_succeeds_without_a_result`, `get_container_info_reports_storage_errors`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **1251 passed, 0 failed, 46 ignored**. SKIPPED: `f16_programs_on_the_gpu` (f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f16_programs_on_the_gpu` (f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `f32_programs_on_the_gpu` (f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))), `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows), `test_title_draws_with_a_root_signature_under_the_debug_layer` (no xgameruntime.dll). - `--skip` leaves out tests that fail on main `b49be183` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://git.gtahub.st/github/xcl-dev--xcl/issues/1651)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1192/head:github-bot/gh-1192'
git switch 'github-bot/gh-1192'

Merge

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