Skip to content

XGameRuntime: identify error messages supplied by the title - #1105

Open
gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:fix/xerrorreport-title-origin
Open

gloger2003 wants to merge 1 commit into
xcl-dev:mainfrom
gloger2003:fix/xerrorreport-title-origin

Conversation

@gloger2003

@gloger2003 gloger2003 commented Nov 24, 2026 •

Copy link
Copy Markdown

Fixes #1093. When a title passes Gaming Services repair advice to XErrorReport after an offline refusal, the existing log line looks like a diagnosis from XCL.

What is in it

  • Label the message as reported by the title. Preserve the original HRESULT, text and callback arguments.
  • Call the export from the in-tree title and check the attributed log line.

Tested

  • Windows 11 26300.9974, RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Rust 1.100.0 MSVC and DXC 1.9.2602.17.
  • The end-to-end test prints the unlabeled message and fails on the baseline. With the change it passes.
  • Workspace build and tests with four threads, debug: 741 passed, 0 failed, 41 ignored, no explicit GPU capability skips on the complete rerun. An earlier attempt ended early with an access violation in the library test process.

Regression run
Matched 60-second runs on the RX 7800 XT with identical Minecraft Preview profiles and gfx_msaa:1. Both reached the menu, with 124,513 and 124,510 non-dark pixels out of 129,600 in the last frame samples.

In separate runs with the default 4x setting, both builds lost the device (0x887a0001) before reaching the menu. The PR build then recorded exceptions in the AMD driver. The default-setting failures are separate from the message-attribution change and are investigated in #1087.

main (1x):

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3463 (PresentX 3463)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3342 MB

PR (1x):

xcl-smoke v1
commit: 5d832dc78e44dab44d86bbe32019f2a767a6d9ed
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 60
exit: 0x0
frames shown: 3479 (PresentX 3479)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3359 MB

Not tested

  • The title that originally reported the XStore refusal. The test title supplies the reported HRESULT and message directly. No Minecraft gameplay beyond the main menu.
  • Tests requiring XCL_SAMPLE_* files.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) investigated the logging path, wrote the change and test, ran the tests and drafted this description.

An offline XStore refusal can cause a title to report generic Gaming Services repair advice. Identify the caller in the XErrorReport log while preserving the original HRESULT and callback payload.

The end-to-end test calls the export from the test title and verifies the attributed log line.

Fixes xcl-dev#1093

Assisted-by: OpenAI Codex (GPT-6)
@emirduran707

Copy link
Copy Markdown
Contributor

AMD test report for 5d832dc (this PR's head, on main 47efa2e), with a regression run on the retail title, since the one in the description lost the device on both sides. Feel free to use the blocks.

Tested

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1529 (PresentX 1529)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20623 MB

PR:

xcl-smoke v1
commit: 5d832dc78e44dab44d86bbe32019f2a767a6d9ed
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1547 (PresentX 1547)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 18974 MB

The retail title calls XErrorReport(0x89240107, …) only at about 136 s, right after XCL refuses XStore (QueryApiImpl … → XStore: unavailable (offline)), so the 60 s runs above don't reach the changed line.

A suggestion, not a blocker: I had a variant of this locally before I saw the PR (I'd said so on #1093). It keeps the line as it was for other reports, and adds the class when 0x89240107 follows one of REFUSED within 2 s:

  • QueryApiImpl's refusal branch records (name, Instant::now());
  • XErrorReport then appends (the title's own text: XCL refused XStore 1 ms before – it is not available offline).

A user reading the log then sees what actually happened, not only that the text is the title's. Happy to send it as a follow-up on top of this if the maintainer wants it.

Not tested: NVIDIA; Wine; a run long enough to reach the report (beyond 60 s).

Tested and written with Claude Code (Claude Opus 5.5). The runs were made on my machine.

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XGameRuntime: an offline XStore refusal is reported as 0x89240107 "missing dependencies, run GamingRepair.exe"

3 participants