Unhandled xgameruntime exception #1302
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1302
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?
@Itsig0 on GitHub · 2026-11-24 14:30 UTC · original
Game and package version
Retail Game 1.0.2.1
What happens
The window opens but it promptly crashes while trying to render the first frames.
XCL version
930e8b4GPU and driver version
NVIDIA GeForce RTX 4080, 621.14
Windows version
Windows 11 26H2 (26300.9974)
report.json and xcl.log
xcl.log
report.json
Console output
@Key-rs on GitHub · 2026-11-24 14:41 UTC · original
Same fault, reproduced on a second machine — plus the failure chain that precedes it
This is the identical crash signature (same offsets for the vtable/stack frames, same
xgameruntime.dll+0x1098ce), so it is one deterministic fault and not machine-specific. What may help is the sequence before the null read, which the report above does not show.Environment
main @ 47efa2e(2026-11-24 10:24),cargo build --release, rustc 1.99.1dxcompiler.dll+dxil.dll), fromD:\Windows Kits\10\bin\10.0.26100.0\x64viaXCL_DXC_DIRgame_scarlett_master.exeD3D12.X: backend 'real' – NVIDIA GeForce RTX 4060 Laptop GPU (7956 MiB VRAM)Crash
0x6187d60,0x5f41040,0x55de08candxgameruntime.dll+0x10e5a7all match the report above exactly.What happens immediately before the fault
With
XCL_CONSOLE_LISTS=1andXCL_LIST_TRACE=1:Two command lists carry a record the parser does not know (
0xc000b600), the remainder of each list is skipped, and bothClose()calls then fail withE_FAIL; the null read follows within the same second. Hypothesis: a failedCloseleaves the recording/allocator association unset and thexgameruntimethunk dereferences it.Deterministic
A second run with all tracing switches removed crashes at the same address, in the same way — the fault does not depend on the tracing paths.
Console-only slots called before the crash
With console-list tracing enabled, the older slot set is used instead:
#21 #22 #23 #34 #50 #52 #70 #71 #72 #74 #139(allID3D12GraphicsCommandList(console)).Not a regression from the 2026-11-24 commits
Built
7ac0828(2026-11-23 05:57) from source and ran the same package: it fails earlier, on the title's own assert —so
mainhas moved past device/heap/UMA/sparse-window and window creation; the remaining gap sits on the command-list record path. This build also contains02bfd1d(the no-high-entropy-ASLR link change), and the outcome is unchanged by it.Offer
I can attach the full 18.6 MB trace log (D3D12 calls + console list records) or a trimmed window around the fault if that is useful. The structured
report.jsonfrom this run is also available.@Rednaxeh on GitHub · 2026-11-24 14:46 UTC · original
From the log: the system XGameRuntime (
System32\xgameruntime.dll, Gaming Services) is present but refuses to initialise on this PC –XGameRuntime PC: initialization → 0x80110474(COMADMIN_E_REGDB_SYSTEMERR), at bothInitializeApiImplEx2calls (1.3 s and 3.8 s; the title makes the same two calls on a working PC). XCL logs the failure and carries on as if it had succeeded:pc_initstill callsstart_pc_async, andQueryApiImplkeeps handing the title that runtime's objects (XAsync: PC,XDisplay: PC,XClosed: PC). The crash is a null read inside that DLL (rcx=0) right after the second failed initialisation, at 3.821 s on the same thread.Claiming the XCL side: when the system runtime's initialisation fails, XCL treats it as absent – its own XTaskQueue / XAsync and XAccessibility, the rest
missing, as on a PC without Gaming Services – and the warning names the HRESULT and says to repair Gaming Services. A unit test covers the fallback. I cannot reproduce the broken Gaming Services here (RDNA3, init succeeds), so the run on the reporter's PC will be the proof; @Itsig0, repairing Gaming Services (Settings → Apps → Gaming Services → Repair / Reset) should also get you past this on currentmain.Written with Claude Code (Claude Fable 5.1).
@Rednaxeh on GitHub · 2026-11-24 14:57 UTC · original
Correction: this is already fixed by #235 (ofc0urse, open since yesterday, mergeable on current
main): a refusedInitializeApiImpl*makespc_objectreturn nothing, so XAsync and XAccessibility are XCL's, as on a PC without Gaming Services – the same change I described above, with a test of the forced refusal and runs on NVIDIA, RDNA4 and Wine. I withdraw my claim; I had searched for the HRESULT and missed it. What this issue adds to #235 is a third HRESULT for the same refusal:0x80110474here,0x80073cfcand0x80040154(Wine) over there. @Itsig0 @Key-rs, a build of #235's head merged onmainshould get your runs past this crash; until it merges, repairing Gaming Services (Settings → Apps → Gaming Services → Repair) is the way around it.Written with Claude Code (Claude Fable 5.1).
@Key-rs on GitHub · 2026-11-24 15:12 UTC · original
#235 fixes this on the RTX 4060 Laptop — plus a fourth HRESULT for the same refusal
Merged
refs/pull/235/headontomainlocally (merge commit0aca19f, one file touched:hle/xgameruntime/api.rs), rebuilt, ran the same package with the same settings. Thexgameruntime.dll+0x1098cenull read is gone.Result after #235
Process stayed alive at ~7.6 GB working set; 8 100+ frames presented at a steady 30.0 fps. No crash, no watchdog kill within the ~10 minutes observed.
One correction to the HRESULT list
On this machine the refused initialisation reports
0x80070424(ERROR_SERVICE_DOES_NOT_EXIST), not0x80110474:That is because the
Microsoft.GamingServicespackage is not installed at all here (Get-AppxPackage *GamingServices*returns nothing);System32\xgameruntime.dllexists as an OS file, but nothing initialises it. So the family is now0x80110474,0x80073cfc,0x80040154(Wine) and0x80070424— the last one is the "package absent" variant, which is probably the most common on a plain Windows install.Repairing Gaming Services would not have helped in this case (there is no package to repair), so #235's fallback is the only way through — good confirmation that the PR addresses the class rather than one HRESULT.
What is left after the fix (not part of #1302, for the record)
The title now sits in pipeline compilation and presents a blank surface:
26 of 57 797 queued pipelines were refused so far, all of them mesh pipelines whose MS sits in the AS slot. Consistent with the mesh-pipeline gap tracked elsewhere; not a regression from this change.
Offer
I can attach the full log of the post-#235 run (
xcl-run-pr235.log, ~9 k lines, no tracing switches) if it is useful for the merge decision.