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

Merged
emirduran707 merged 1 commit from upstream-pr/1192 into main 2026-11-30 01:35:50 +00:00
emirduran707 commented 2026-11-24 13:03:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T13:03:37Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5472673311 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-24T13:03:37Z. --- `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.
thehollowedone commented 2026-11-24 14:06:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T13:14:07Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7132539160 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7132539160). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-24T13:14:07Z. --- 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.
DavidM1911 commented 2026-11-24 14:06:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:23:34Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7132763739 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1192#issuecomment-7132763739). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T13:23:34Z. --- 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.
fromthemoonx commented 2026-11-24 14:06:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T13:54:53Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7133526604 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7133526604). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-11-24T13:54:53Z. --- **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.
kacper-serewis commented 2026-11-24 21:09:26 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kacper-serewis on 2026-11-24T20:21:17Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7143415660 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7143415660). Originally posted by [kacper-serewis](https://github.com/kacper-serewis) on 2026-11-24T20:21:17Z. --- 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.
emirduran707 commented 2026-11-24 21:30:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T21:21:16Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7144817535 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7144817535). Originally posted by [emirduran707](https://github.com/emirduran707) on 2026-11-24T21:21:16Z. --- 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.
DavidM1911 commented 2026-11-26 04:07:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T03:52:40Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7182100481 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7182100481). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-26T03:52:40Z. --- 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
futurepro62 commented 2026-11-26 09:07:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-26T08:55:45Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7187194759 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7187194759). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-26T08:55:45Z. --- 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://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) 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.
throny commented 2026-11-28 07:07:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T07:07:27Z.


merge-check claim
head: e41e10546f

<!-- greyfinch-sync:ivall/xcl:comment:7235730996 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7235730996). Originally posted by [throny](https://github.com/throny) on 2026-11-28T07:07:27Z. --- merge-check claim head: e41e10546fcaa10beeb84f906b442884d24d83b4
throny commented 2026-11-28 07:18:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T07:18:18Z.


merge-check
base: e429936c
head: e41e10546f
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2128 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (reported on #3041: they arrive with the merge of #2959); base alone: 2126 passed, 9 failed, 48 ignored.
review: no blocking finding. No path is built from the title's container name: the root is listed and decoded names are compared, and the new length check (1 to 256 bytes) matches CreateContainer's. The removed error constant has no other users. Not blocking: a container folder that answers access-denied (for instance one pending deletion) now fails the whole enumeration where it was skipped before. Not verified: that the console returns success for a missing container. The tests remove only their own per-process folders under the temp directory.
performance: none (save API only).
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7235848160 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7235848160). Originally posted by [throny](https://github.com/throny) on 2026-11-28T07:18:18Z. --- merge-check base: e429936c head: e41e10546fcaa10beeb84f906b442884d24d83b4 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2128 passed, 9 failed, 48 ignored (26 SKIPPED lines). The 9 failures are main's own at e429936c on this GPU (reported on #3041: they arrive with the merge of #2959); base alone: 2126 passed, 9 failed, 48 ignored. review: no blocking finding. No path is built from the title's container name: the root is listed and decoded names are compared, and the new length check (1 to 256 bytes) matches CreateContainer's. The removed error constant has no other users. Not blocking: a container folder that answers access-denied (for instance one pending deletion) now fails the whole enumeration where it was skipped before. Not verified: that the console returns success for a missing container. The tests remove only their own per-process folders under the temp directory. performance: none (save API only). verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
saintwolf commented 2026-11-30 01:25:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T01:25:59Z.


merge-check claim
head: e41e10546f

<!-- greyfinch-sync:ivall/xcl:comment:7266131107 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7266131107). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T01:25:59Z. --- merge-check claim head: e41e10546fcaa10beeb84f906b442884d24d83b4
saintwolf commented 2026-11-30 01:33:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T01:33:06Z.


merge-check
base: 53e85fb124
head: e41e10546f
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2794 passed, 1 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone)
review: none (read the full +109/-25 diff in crates/xcl/src/hle/xgameruntime/gamesave.rs: removes the misnamed E_GS_CONTAINER_NOT_FOUND (0x80830010 = E_GS_USER_QUIT), returns S_OK without invoking the callback when a valid container has no saved data, validates name length with E_GS_INVALID_CONTAINER_NAME, propagates non-NotFound I/O errors as E_FAIL across GetContainerInfo/EnumerateContainerInfo/EnumerateContainerInfoByName, and adds regression tests; no duplicates found in open/merged PRs or #1607; not tested: retail title first-launch save flow and >256-byte container name behavior on real console)
performance: none (no hot-path work added; only directory error propagation on container/blob enumeration)
verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)

<!-- greyfinch-sync:ivall/xcl:comment:7266233120 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1192#issuecomment-7266233120). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T01:33:06Z. --- merge-check base: 53e85fb124eae624641e9884517e4f3c4a7d8794 head: e41e10546fcaa10beeb84f906b442884d24d83b4 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2794 passed, 1 failed, 49 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 2 no xgameruntime.dll, 1 cannot disable the driver cache 0x887A002D); failing: hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline (also fails on base 53e85fb1 alone) review: none (read the full +109/-25 diff in crates/xcl/src/hle/xgameruntime/gamesave.rs: removes the misnamed E_GS_CONTAINER_NOT_FOUND (0x80830010 = E_GS_USER_QUIT), returns S_OK without invoking the callback when a valid container has no saved data, validates name length with E_GS_INVALID_CONTAINER_NAME, propagates non-NotFound I/O errors as E_FAIL across GetContainerInfo/EnumerateContainerInfo/EnumerateContainerInfoByName, and adds regression tests; no duplicates found in open/merged PRs or #1607; not tested: retail title first-launch save flow and >256-byte container name behavior on real console) performance: none (no hot-path work added; only directory error propagation on container/blob enumeration) verdict: safe to merge hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1183
No description provided.