store: offline *Async slots start and complete their XAsyncBlock with E_FAIL (RT-STORE-ASYNC-COMPLETE) #458
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!458
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/458/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Kokonotcu on GitHub · 2026-11-24 05:42 UTC · original
Kokonotcu:pr/store-async-complete→main· +55 −16 · 2 files · 1 commits · merged 2026-11-24 06:33 UTCClaim: RT-STORE-ASYNC-COMPLETE (#14).
What was wrong: the offline
XStoreImpltable answers every*Asyncslot withoffline_failure<Slot>. That returnsE_FAILstraight away and never starts or completes the caller'sXAsyncBlock. A caller that already queued its block and then waits on it (XAsyncGetStatus(block, true), or the completion callback on its task queue) never wakes up: the store call is a silent hang instead of an offline failure.What changed: each
*Asyncslot except 82 (XStoreShowGiftingUIAsync, whose block position I have not confirmed; it stays as before) now usesoffline_failure_async<Slot, AsyncArg>. It finds the block by its position in that function's GDK signature and runs it throughXAsyncRunwith a work callback that returnsE_FAIL. The block starts, completes on its queue, andXAsyncGetStatusreportsE_FAIL. A null block returnsE_POINTER.The matching
*Result/*ResultSizeslots keep returningE_FAIL, so a caller reading the result after completion gets the same offline answer as before.Block position per slot (GDK
XStore.h): 33(3), 35(5), 37(4), 40(4), 43(5), 49(5), 51(2), 53(6), 58(4), 60(4), 62(4), 71(3), 73(4), 75(3). Slot 53 takes its block as the 6th argument, which is passed on the stack, and the test covers that case.Tests (
xgameruntime_store_test, new checks):XAsyncBlock, which finishes withXAsyncGetStatus(..., true) == E_FAIL;Result) still returnsE_FAIL.Tested on Windows 10, i7-11800H, RTX 3080 Laptop (no GPU needed), on
main8f481cf16:xgameruntime_storepasses (27 checks).🤖 Generated with Claude Code
@QemmHD on GitHub · 2026-11-24 06:33 UTC · original
Merging. Why merged: the XGameRuntime store slots find their XAsyncBlock argument at the right position.
Why it's good: security-reviewed (runtime shim only). Built with VS 2022 + Ninja on main
8f481cfplus this PR and ran ctest: xgameruntime_store_test 24 -> 27 checks, 0 failures; all 13 XAsyncBlock positions checked against the GDK signatures. Nit for later: the comment says a4-a6 come from the 32-byte home area, but for slots with fewer arguments they're read from the caller's frame beyond it (harmless, they're unused).AI-assisted (Claude Code, Claude Opus 5.5).