xgameruntime: gifting UI completes its block, speech without used, MountWithUi and TitleId gaps (RT-OFFLINE-GDK-SHIM-GAPS) #2520

Merged
Tyrannys merged 1 commit from upstream-pr/2520 into main 2026-11-29 01:04:55 +00:00
Tyrannys commented 2026-11-28 00:23:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tyrannys on 2026-11-28T00:23:19Z.


Package RT-OFFLINE-GDK-SHIM-GAPS: item 3 of @kevincommits' finding on #1608 (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7226429207). Thank you for the find. Claim: https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230865771.

What changes

  1. xgameruntime_store.cpp, slot 82 XStoreShowGiftingUIAsync.
    • Now offline_failure_async<82, 5>, like the other 14 offline *Async slots (review M11). Its block is started and completed with E_FAIL, so a caller waiting on it gets an answer.
    • The block is the 5th argument: storeContextHandle, storeId, name, extendedJsonData, async. Microsoft's own bindings in microsoft/XBOX-GDK-dotnet (Native.Store.cs) have this signature. xgameruntime-docs lists the slot but not its arguments.
  2. xgameruntime_offline.cpp, XSpeechSynthesizerGetStreamData.
    • A host stream (LEONIDA_LOCAL_SPEECH=1) is forwarded even when used is null. bufferUsed is _Out_opt_. Before, the call fell through and returned E_INVALIDARG.
    • The host provider was a block-scope static, first built on a title thread. It is now made once into a namespace-scope atomic. This is the same Wine guard issue this file already avoids in env_is_one.
    • A test hook, xgameruntime_offline_set_host_speech, sets a fake host.
  3. xgameruntime.cpp, XPackageMountWithUiAsync.
    • Mounting the game's own package completes with E_ACCESSDENIED, as XPackageMount refuses it. Before, it completed with E_GAMEPACKAGE_NO_PACKAGE_IDENTIFIER.
    • A block used again before its result was read closes the earlier mount's handle; before, that handle leaked in s_active_mounts. If the new run does not start, the earlier mount keeps its place.
  4. xgameruntime.cpp, XGameGetXboxTitleId. It skips a <TitleId> inside an XML comment, as package_locales already does. The comment stripping is now one shared helper.

Tests

New checks, following the repros:

  • xgameruntime_store_test: slot 82 with the block as the 5th argument starts and completes with E_FAIL, and slot 83 returns E_FAIL.
  • xgameruntime_offline_test, with a fake host accessibility object: a host stream's data is forwarded with and without used. With no host, a foreign stream is still refused.
  • xgameruntime_test:
    • a block reused for a second mount closes the first mount (its path size gives ERROR_NOT_FOUND);
    • the game's own package completes with E_ACCESSDENIED;
    • <!-- <TitleId>DEADBEEF</TitleId> --><Game><TitleId>12345678</TitleId></Game> gives 0x12345678.

With main's logic, 5 of the new checks fail. The fake host needs the new hook, so for that check only the && used condition was put back. With the fix, all pass, and ctest -R xgameruntime passes 8/8.

Profile M: RTX 4070 SUPER, Windows 11, Ryzen 7 9800X3D, MSVC RelWithDebInfo. CPU only. The full suite was not run because a boot was running. git diff --check and scripts/check_no_game_data.py are clean. No open PR touches these functions. No game files used.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5534880480 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520). Originally posted by [Tyrannys](https://github.com/Tyrannys) on 2026-11-28T00:23:19Z. --- Package **RT-OFFLINE-GDK-SHIM-GAPS**: item 3 of @kevincommits' finding on #1608 (https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7226429207). Thank you for the find. Claim: https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7230865771. ## What changes 1. **`xgameruntime_store.cpp`, slot 82 `XStoreShowGiftingUIAsync`.** - Now `offline_failure_async<82, 5>`, like the other 14 offline `*Async` slots (review M11). Its block is started and completed with `E_FAIL`, so a caller waiting on it gets an answer. - The block is the 5th argument: `storeContextHandle, storeId, name, extendedJsonData, async`. Microsoft's own bindings in microsoft/XBOX-GDK-dotnet (`Native.Store.cs`) have this signature. xgameruntime-docs lists the slot but not its arguments. 2. **`xgameruntime_offline.cpp`, `XSpeechSynthesizerGetStreamData`.** - A host stream (`LEONIDA_LOCAL_SPEECH=1`) is forwarded even when `used` is null. `bufferUsed` is `_Out_opt_`. Before, the call fell through and returned `E_INVALIDARG`. - The host provider was a block-scope static, first built on a title thread. It is now made once into a namespace-scope atomic. This is the same Wine guard issue this file already avoids in `env_is_one`. - A test hook, `xgameruntime_offline_set_host_speech`, sets a fake host. 3. **`xgameruntime.cpp`, `XPackageMountWithUiAsync`.** - Mounting the game's own package completes with `E_ACCESSDENIED`, as `XPackageMount` refuses it. Before, it completed with `E_GAMEPACKAGE_NO_PACKAGE_IDENTIFIER`. - A block used again before its result was read closes the earlier mount's handle; before, that handle leaked in `s_active_mounts`. If the new run does not start, the earlier mount keeps its place. 4. **`xgameruntime.cpp`, `XGameGetXboxTitleId`.** It skips a `<TitleId>` inside an XML comment, as `package_locales` already does. The comment stripping is now one shared helper. ## Tests New checks, following the repros: - `xgameruntime_store_test`: slot 82 with the block as the 5th argument starts and completes with `E_FAIL`, and slot 83 returns `E_FAIL`. - `xgameruntime_offline_test`, with a fake host accessibility object: a host stream's data is forwarded with and without `used`. With no host, a foreign stream is still refused. - `xgameruntime_test`: - a block reused for a second mount closes the first mount (its path size gives `ERROR_NOT_FOUND`); - the game's own package completes with `E_ACCESSDENIED`; - `<!-- <TitleId>DEADBEEF</TitleId> --><Game><TitleId>12345678</TitleId></Game>` gives `0x12345678`. With main's logic, 5 of the new checks fail. The fake host needs the new hook, so for that check only the `&& used` condition was put back. With the fix, all pass, and `ctest -R xgameruntime` passes 8/8. Profile M: RTX 4070 SUPER, Windows 11, Ryzen 7 9800X3D, MSVC RelWithDebInfo. CPU only. The full suite was not run because a boot was running. `git diff --check` and `scripts/check_no_game_data.py` are clean. No open PR touches these functions. No game files used. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
timbot103 commented 2026-11-28 01:33:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T01:33:55Z.


Reviewed at head c030bfd2e on Windows 11 (MSVC 2022 19.44).

Verification

  • Built xgameruntime_test, xgameruntime_store_test, xgameruntime_offline_test, xgameruntime_user_test, xgameruntime_gamesave_test, and gta6rt.
  • All 5 suites passed (432 checks total, 0 failures: xgameruntime_test 189, xgameruntime_store_test 29, xgameruntime_offline_test 77, xgameruntime_user_test 46, xgameruntime_gamesave_test 91).

Finding (Request changes)

  • Failed MountWithUiAsync reuse can strand an unread prior mount handle (xgameruntime.cpp:1525-1550; third_party/xtaskqueue/Source/Task/AsyncLib.cpp:434-440, 478-503):
    If a prior MountWithUiAsync completed on async (with its handle still unread in g_ui_mounts) and the caller reuses that completed XAsyncBlock with queue == nullptr when no default process task queue is set, AllocState() passes the active-signature check (AsyncLib.cpp:478), zeroes async->internal, fails AllocStateNoCompletion() with E_NO_TASK_QUEUE, and writes internal->status = E_NO_TASK_QUEUE (AsyncLib.cpp:500).
    pkg_mount_with_ui_async then sees FAILED(hr) and restores g_ui_mounts[async] = replaced (xgameruntime.cpp:1536). Because the block's prior completion state was already overwritten and the caller received a synchronous failure from MountWithUiAsync, discarding async leaves replaced stranded in g_ui_mounts without closing it.
    Only restoring replaced when hr == E_INVALIDARG (where AllocState() rejected an in-flight block without touching internal), and closing replaced on other XAsyncRun failures, keeps ownership consistent.

Gifting slot 82 (xgameruntime_store.cpp:495), optional null used in speech (xgameruntime_offline.cpp:759-766), and comment-skipping TitleId lookup (xgameruntime.cpp:1645-1650) all look good.

AI-assisted review + local MSVC verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7231756541 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7231756541). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-28T01:33:55Z. --- Reviewed at head `c030bfd2e` on Windows 11 (MSVC 2022 `19.44`). ### Verification - Built `xgameruntime_test`, `xgameruntime_store_test`, `xgameruntime_offline_test`, `xgameruntime_user_test`, `xgameruntime_gamesave_test`, and `gta6rt`. - All 5 suites **passed** (432 checks total, 0 failures: `xgameruntime_test` 189, `xgameruntime_store_test` 29, `xgameruntime_offline_test` 77, `xgameruntime_user_test` 46, `xgameruntime_gamesave_test` 91). ### Finding (Request changes) - **Failed `MountWithUiAsync` reuse can strand an unread prior mount handle (`xgameruntime.cpp:1525-1550`; `third_party/xtaskqueue/Source/Task/AsyncLib.cpp:434-440`, `478-503`):** If a prior `MountWithUiAsync` completed on `async` (with its handle still unread in `g_ui_mounts`) and the caller reuses that completed `XAsyncBlock` with `queue == nullptr` when no default process task queue is set, `AllocState()` passes the active-signature check (`AsyncLib.cpp:478`), **zeroes `async->internal`**, fails `AllocStateNoCompletion()` with `E_NO_TASK_QUEUE`, and writes `internal->status = E_NO_TASK_QUEUE` (`AsyncLib.cpp:500`). `pkg_mount_with_ui_async` then sees `FAILED(hr)` and restores `g_ui_mounts[async] = replaced` (`xgameruntime.cpp:1536`). Because the block's prior completion state was already overwritten and the caller received a synchronous failure from `MountWithUiAsync`, discarding `async` leaves `replaced` stranded in `g_ui_mounts` without closing it. Only restoring `replaced` when `hr == E_INVALIDARG` (where `AllocState()` rejected an in-flight block without touching `internal`), and closing `replaced` on other `XAsyncRun` failures, keeps ownership consistent. Gifting slot 82 (`xgameruntime_store.cpp:495`), optional null `used` in speech (`xgameruntime_offline.cpp:759-766`), and comment-skipping `TitleId` lookup (`xgameruntime.cpp:1645-1650`) all look good. AI-assisted review + local MSVC verification.
zmasi commented 2026-11-28 07:36:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T07:36:24Z.


#2520 | head c030bfd2ed (merged cleanly with main 09c1539483) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^xgameruntime" --output-on-failure | red on main: xgameruntime_test fails (3 of 189 checks failed: reused XAsyncBlock leaked the earlier mount handle, mounting the game's own package returned E_GAMEPACKAGE_NO_PACKAGE_IDENTIFIER instead of E_ACCESSDENIED, and <TitleId> inside an XML comment was matched); xgameruntime_store_test fails (1 of 29: XStoreShowGiftingUIAsync failed synchronously instead of completing XAsyncBlock); xgameruntime_offline_test fails to link (LNK2019: missing xgameruntime_offline_set_host_speech; on main, speech_stream_data required non-null used) | green on PR+main: 8/8 CTests pass (xgameruntime 189/189, xgameruntime_user, xgameruntime_gamesave 91/91, xgameruntime_store 29/29, xgameruntime_offline 77/77, xgameruntime_offline_hdr 77/77, xgameruntime_user_gamertag, xgameruntime_user_gamertag_long); check_no_game_data.py 0 violations | Windows 11, RTX 3090 (610.88), Vulkan SDK 1.4.363.1 | AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7236047849 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7236047849). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T07:36:24Z. --- #2520 | head c030bfd2ed973b36df9373d7a1e1df5b2d4c8fae (merged cleanly with main 09c153948386fd658fe2f999f6176efbaa8c8345) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^xgameruntime" --output-on-failure` | red on main: `xgameruntime_test` fails (`3 of 189 checks failed`: reused `XAsyncBlock` leaked the earlier mount handle, mounting the game's own package returned `E_GAMEPACKAGE_NO_PACKAGE_IDENTIFIER` instead of `E_ACCESSDENIED`, and `<TitleId>` inside an XML comment was matched); `xgameruntime_store_test` fails (`1 of 29`: `XStoreShowGiftingUIAsync` failed synchronously instead of completing `XAsyncBlock`); `xgameruntime_offline_test` fails to link (`LNK2019`: missing `xgameruntime_offline_set_host_speech`; on `main`, `speech_stream_data` required non-null `used`) | green on PR+main: `8/8` CTests pass (`xgameruntime` `189/189`, `xgameruntime_user`, `xgameruntime_gamesave` `91/91`, `xgameruntime_store` `29/29`, `xgameruntime_offline` `77/77`, `xgameruntime_offline_hdr` `77/77`, `xgameruntime_user_gamertag`, `xgameruntime_user_gamertag_long`); `check_no_game_data.py` `0` violations | Windows 11, RTX 3090 (610.88), Vulkan SDK 1.4.363.1 | AI-assisted: yes
timbot103 commented 2026-11-28 14:36:23 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by timbot103 on 2026-11-28T14:36:23Z.

Review: COMMENTED


Static code audit against c030bfd2e + ec740bcc3. Request changes.

  • MAJOR · runtime/shims/xgameruntime.cpp:1538 — If a finished mount is still unread and reuse fails with E_NO_TASK_QUEUE, AllocState has already overwritten the old completion. The rollback restores the old mount to the map, where it remains if the caller discards the failed block. Close the old handle when the failed begin invalidates its completion. Preserve it when the original operation still owns the block.
  • MAJOR · runtime/shims/xgameruntime_store.cpp:496 — On an undispatched manual queue, gifting Async returns S_OK and the block is E_PENDING, but gifting Result returns terminal E_FAIL. Have Result take the block and return its nonblocking status. Pass that same block in the test and check pending status, completion, and callback delivery.
  • MINOR · runtime/shims/xgameruntime.cpp:1065 — The literal <!-- inside a legal XML processing instruction is treated as an unterminated comment. This can discard the real TitleId later in the file. Skip processing instructions when recognizing XML comments and add a fixture for this case.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6098418081 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#pullrequestreview-6098418081). Originally posted by [timbot103](https://github.com/timbot103) on 2026-11-28T14:36:23Z. **Review:** COMMENTED --- Static code audit against `c030bfd2e` + `ec740bcc3`. Request changes. - **MAJOR** · `runtime/shims/xgameruntime.cpp:1538` — If a finished mount is still unread and reuse fails with `E_NO_TASK_QUEUE`, `AllocState` has already overwritten the old completion. The rollback restores the old mount to the map, where it remains if the caller discards the failed block. Close the old handle when the failed begin invalidates its completion. Preserve it when the original operation still owns the block. - **MAJOR** · `runtime/shims/xgameruntime_store.cpp:496` — On an undispatched manual queue, gifting Async returns `S_OK` and the block is `E_PENDING`, but gifting Result returns terminal `E_FAIL`. Have Result take the block and return its nonblocking status. Pass that same block in the test and check pending status, completion, and callback delivery. - **MINOR** · `runtime/shims/xgameruntime.cpp:1065` — The literal `<!--` inside a legal XML processing instruction is treated as an unterminated comment. This can discard the real TitleId later in the file. Skip processing instructions when recognizing XML comments and add a fixture for this case. AI-assisted.
lixonik commented 2026-11-28 20:10:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-28T20:10:33Z.

Review: COMMENTED


Reviewed and locally tested c030bfd2e (runtime/shims/xgameruntime*.cpp, runtime/test/xgameruntime*_test.cpp).

Local verification:

  • Built xgameruntime_test, xgameruntime_store_test, xgameruntime_offline_test, xgameruntime_user_test, xgameruntime_gamesave_test (MSVC Release / Ninja) and ran ctest -R ^xgameruntime: 8/8 passed (xgameruntime, xgameruntime_user, xgameruntime_gamesave, xgameruntime_store, xgameruntime_offline, xgameruntime_offline_hdr, xgameruntime_user_gamertag, xgameruntime_user_gamertag_long).
  • python -I scripts/check_no_game_data.py: passed.

Holding off on approval because code inspection confirms two remaining gaps from the earlier audit:

  1. runtime/shims/xgameruntime_store.cpp:495-496: XStoreShowGiftingUIAsync was switched to offline_failure_async<82, 5>, but XStoreShowGiftingUIResult (slot 83) still uses offline_failure<83> instead of reading the block via XAsyncGetStatus, so calling Result before the manual queue dispatches returns E_FAIL rather than E_PENDING.
  2. runtime/shims/xgameruntime.cpp:1525-1545: in pkg_mount_with_ui_async, restoring g_ui_mounts[async] = replaced on FAILED(hr) after XAsyncRun has already invalidated the prior completion can strand the previous mount handle if the caller discards the failed async block.

AI-assisted (Antigravity, Gemini).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6099901227 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#pullrequestreview-6099901227). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-28T20:10:33Z. **Review:** COMMENTED --- Reviewed and locally tested `c030bfd2e` (`runtime/shims/xgameruntime*.cpp`, `runtime/test/xgameruntime*_test.cpp`). Local verification: - Built `xgameruntime_test`, `xgameruntime_store_test`, `xgameruntime_offline_test`, `xgameruntime_user_test`, `xgameruntime_gamesave_test` (MSVC Release / Ninja) and ran `ctest -R ^xgameruntime`: 8/8 passed (`xgameruntime`, `xgameruntime_user`, `xgameruntime_gamesave`, `xgameruntime_store`, `xgameruntime_offline`, `xgameruntime_offline_hdr`, `xgameruntime_user_gamertag`, `xgameruntime_user_gamertag_long`). - `python -I scripts/check_no_game_data.py`: passed. Holding off on approval because code inspection confirms two remaining gaps from the earlier audit: 1. `runtime/shims/xgameruntime_store.cpp:495-496`: `XStoreShowGiftingUIAsync` was switched to `offline_failure_async<82, 5>`, but `XStoreShowGiftingUIResult` (slot 83) still uses `offline_failure<83>` instead of reading the block via `XAsyncGetStatus`, so calling Result before the manual queue dispatches returns `E_FAIL` rather than `E_PENDING`. 2. `runtime/shims/xgameruntime.cpp:1525-1545`: in `pkg_mount_with_ui_async`, restoring `g_ui_mounts[async] = replaced` on `FAILED(hr)` after `XAsyncRun` has already invalidated the prior completion can strand the previous mount handle if the caller discards the failed async block. AI-assisted (Antigravity, Gemini).
OreoFR commented 2026-11-28 22:03:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:03:49Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head c030bfd2e; green run in a merge package of 2 PRs, no new ctest failure vs main
  • Test: ctest -R "^(xgameruntime|xgameruntime_store|xgameruntime_offline)$"
  • Red on main: xgameruntime 3 failures, xgameruntime_store 1 failure (gifting UI), xgameruntime_offline does not link (xgameruntime_offline_set_host_speech missing)
  • Green with the PR: 3/3 OK
  • Verdict: READY
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246469593 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7246469593). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T22:03:49Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `c030bfd2e`; green run in a merge package of 2 PRs, no new ctest failure vs main - Test: `ctest -R "^(xgameruntime|xgameruntime_store|xgameruntime_offline)$"` - Red on main: xgameruntime 3 failures, xgameruntime_store 1 failure (gifting UI), xgameruntime_offline does not link (xgameruntime_offline_set_host_speech missing) - Green with the PR: 3/3 OK - Verdict: READY - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
enlight3d commented 2026-11-29 00:46:52 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T00:46:52Z.


Run on PR head c030bfd2e (base d44285197, 1 commit; the base is old), checked against main 1bc055e6c (and origin/main c7753ed98): git merge-tree --write-tree finds no conflict with either.

Environment: NVIDIA GeForce RTX 3090 (24 GB), driver 621.40, Windows 11 Pro (build 26300), MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, SDL3 3.4.20 static installed. CPU tests only.

Configure (as scripts/build_runtime.ps1 does, own build folder): cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON. Only the test targets were built, not the whole runtime: cmake --build runtime/build -j 8 --target xgameruntime_test xgameruntime_store_test xgameruntime_offline_test xgameruntime_user_test xgameruntime_gamesave_test (the last two are not changed by the PR, built so the whole xgameruntime group runs).

Green (PR head): ctest -R "^xgameruntime" --output-on-failure -> 8/8 passed (xgameruntime, _user, _gamesave, _store, _offline, _offline_hdr, _user_gamertag, _user_gamertag_long).

Red (behavioural: the PR's tests and the test hook xgameruntime_offline_set_host_speech kept; xgameruntime.cpp and xgameruntime_store.cpp put back to base d44285197; in xgameruntime_offline.cpp only the && used condition of speech_stream_data put back). Rebuilt xgameruntime_test xgameruntime_store_test xgameruntime_offline_test, ctest -R "^xgameruntime(_store|_offline|_offline_hdr)?$" -> 0/4 passed, 5 new checks fail:

xgameruntime:         FAIL the earlier mount the block held was closed, not leaked
                      FAIL slots 37/38 for the game's own package complete with E_ACCESSDENIED
                      FAIL slot 3 skips a <TitleId> inside an XML comment
xgameruntime_store:   FAIL XStoreShowGiftingUIAsync (block as 5th argument) starts and completes with E_FAIL (the block does not hang)
xgameruntime_offline: FAIL and forwarded without `used` too, not refused with E_INVALIDARG   (also in _offline_hdr)

Red (literal revert of xgameruntime_offline.cpp too): xgameruntime_offline_test does not link (unresolved xgameruntime_offline_set_host_speech), so for that one test the plain revert is only "the new hook is missing"; the run above is the behavioural red.
Link check: merged into main 1bc055e6c, gta6rt.exe builds and links (RelWithDebInfo, MSVC 19.44); no new imports vs main.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248345603 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7248345603). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-11-29T00:46:52Z. --- Run on PR head `c030bfd2e` (base `d44285197`, 1 commit; the base is old), checked against main `1bc055e6c` (and origin/main `c7753ed98`): `git merge-tree --write-tree` finds no conflict with either. Environment: NVIDIA GeForce RTX 3090 (24 GB), driver 621.40, Windows 11 Pro (build 26300), MSVC 14.44 (VS 2022 Build Tools), Ninja, RelWithDebInfo, SDL3 3.4.20 static installed. CPU tests only. Configure (as scripts/build_runtime.ps1 does, own build folder): `cmake -S runtime -B runtime/build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON`. Only the test targets were built, not the whole runtime: `cmake --build runtime/build -j 8 --target xgameruntime_test xgameruntime_store_test xgameruntime_offline_test xgameruntime_user_test xgameruntime_gamesave_test` (the last two are not changed by the PR, built so the whole `xgameruntime` group runs). **Green** (PR head): `ctest -R "^xgameruntime" --output-on-failure` -> 8/8 passed (`xgameruntime`, `_user`, `_gamesave`, `_store`, `_offline`, `_offline_hdr`, `_user_gamertag`, `_user_gamertag_long`). **Red** (behavioural: the PR's tests and the test hook `xgameruntime_offline_set_host_speech` kept; `xgameruntime.cpp` and `xgameruntime_store.cpp` put back to base `d44285197`; in `xgameruntime_offline.cpp` only the `&& used` condition of `speech_stream_data` put back). Rebuilt `xgameruntime_test xgameruntime_store_test xgameruntime_offline_test`, `ctest -R "^xgameruntime(_store|_offline|_offline_hdr)?$"` -> 0/4 passed, 5 new checks fail: ``` xgameruntime: FAIL the earlier mount the block held was closed, not leaked FAIL slots 37/38 for the game's own package complete with E_ACCESSDENIED FAIL slot 3 skips a <TitleId> inside an XML comment xgameruntime_store: FAIL XStoreShowGiftingUIAsync (block as 5th argument) starts and completes with E_FAIL (the block does not hang) xgameruntime_offline: FAIL and forwarded without `used` too, not refused with E_INVALIDARG (also in _offline_hdr) ``` Red (literal revert of `xgameruntime_offline.cpp` too): `xgameruntime_offline_test` does not link (unresolved `xgameruntime_offline_set_host_speech`), so for that one test the plain revert is only "the new hook is missing"; the run above is the behavioural red. Link check: merged into main 1bc055e6c, gta6rt.exe builds and links (RelWithDebInfo, MSVC 19.44); no new imports vs main.
MoonEyes commented 2026-11-29 01:04:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T01:04:58Z.


Merged after enlight3d (Thib)'s red/green run (RUN, RTX 3090, driver 621.40, Windows 11: green with this PR, red without it, and gta6rt.exe still links) and a re-check here: no conflict with main f64162d0a, same head as run, no-game-data green, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on main or Vulkan: vk_xdxr_postbuild_readback vk_bindless_dimensions d3d12_compile_pool xbox_present ).

AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248546832 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7248546832). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T01:04:58Z. --- Merged after **enlight3d** (Thib)'s red/green run ([RUN](https://github.com/ProjectLeonida/mandy/pull/2520#issuecomment-7248345603), RTX 3090, driver 621.40, Windows 11: green with this PR, red without it, and `gta6rt.exe` still links) and a re-check here: no conflict with `main` f64162d0a, same head as run, `no-game-data` green, and the only ctest failures in the Windows/macOS CI jobs are tests this diff does not touch (known on `main` or Vulkan: vk_xdxr_postbuild_readback vk_bindless_dimensions d3d12_compile_pool xbox_present ). _AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes._
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
ProjectLeonida/mandy!2520
No description provided.