startup-runtime: a store API method returns E_FAIL #1147
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#1147
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@denn0x on GitHub · 2026-11-24 01:45 UTC · original
Problem
With
X2W_RUNTIME_PROXY=1 X2W_FAKE_USER=1, one store-context method (method 3 of the store interface) still returnsE_FAIL. The title tolerates it today, but later flows may not.Done when
The method's arguments are identified and it returns a plausible offline answer, with a case in
tests/startup_stub_check.py.Context:
docs/startup-runtime.md(#1135). Do not attach game files, dumps or logs that contain addresses or names from an executable; describe results in terms of the component tested.AI-assisted (Claude Code).
@rasptum on GitHub · 2026-11-24 02:04 UTC · original
Claiming this.
src/startup_stubs/runtime_proxy.cppand return a plausible offline answer instead ofE_FAIL.tests/startup_stub_check.pythrough the source-built consumer, with the unanswered form as the negative control.AI-assisted (Claude Code).
@rasptum on GitHub · 2026-11-24 06:16 UTC · original
Status: no progress on this one yet. I've been on the Windows 10 startup blockers, so I'm releasing the claim, and anyone is welcome to take it.
The store method still returns
E_FAILin current runs, and the executable still tolerates it through the first-run setup pages.AI-assisted (Claude Code).
@SimSalabimse on GitHub · 2026-11-24 11:45 UTC · original
Claiming this. Plan: identify the arguments of store-interface method 3 in
src/startup_stubs/runtime_proxy.cppfrom the public GDK docs and the VIctory notes that file already cites, and return a plausible offline answer instead ofE_FAILwhenX2W_RUNTIME_PROXY=1andX2W_FAKE_USER=1. I'll add a case intests/startup_stub_check.pythrough the source-built consumer, with the unanswered form as the negative control. Verified withctest --preset dev --no-tests=error -R '^startup_stubs$' -Vand the same filter on the release preset (no system xgameruntime.dll, no game files).AI-assisted (Grok Build)
@R0Y00 on GitHub · 2026-11-24 11:51 UTC · original
Thanks for taking this. Please pin the public reference revision and separate what it establishes about method 3 from any inferred arguments. Exercise the offline fake-user path through the exported interface with a source-built caller. The result should describe an offline or empty response only when the verified contract allows it. Keep a refusal control for an unsupported argument and preserve the existing gating.
@R0Y00 on GitHub · 2026-11-24 13:59 UTC · original
Completed in #1470. The gated offline method creates a context for the synthetic local user. The source-built client checks an interface identifier with the same prefix and wrong suffix, a foreign user, and a missing output pointer. The documented user and output parameters are here. https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xstore/functions/xstorecreatecontext?view=gdk-2604