Unhandled xgameruntime exception #1292
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?
Imported from ivall/xcl. Originally posted by Itsig0 on 2026-11-24T14:30:52Z.
s
Imported from ivall/xcl. Originally posted by Key-rs on 2026-11-24T14:41:38Z.
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.Imported from ivall/xcl. Originally posted by Rednaxeh on 2026-11-24T14:46:23Z.
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).
Imported from ivall/xcl. Originally posted by Rednaxeh on 2026-11-24T14:57:33Z.
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).
Imported from ivall/xcl. Originally posted by Key-rs on 2026-11-24T15:12:03Z.
#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
xcl: XGameRuntime: InitializeApiImplEx2(0x633600002712, 0x65f400001edd, flags 0x2) – title goes through the GDK thunks
xcl: XGameRuntime PC: initialization → 0x80070424
xcl: XGameRuntime: InitializeApiImplEx2(0x633600002712, 0x65f400001832, flags 0x3) – title goes through the GDK thunks
xcl: XGameRuntime PC: initialization → 0x80070424
xcl: D3D12.X: console shaders in the PSO without a translation:
mesh pipeline with its MS 8c274e3123b82f44 in the AS slot – refused
(same for f8b4ec63795b957a, c505395fd3869f71, 8880e152e9d88cf5, c107ef58496ad61d, fb5ee08e44bf0a18 …)
upstream-sync referenced this issue2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by Itsig0 on 2026-11-29T18:50:51Z.
The issue persists for me in version:
0fe06eb0.The xgameruntime.dll is present on my system and the Gaming Services App is installed.
Console output
XCL 0.1.0 – starting ''
exe: H:\xmas\game_scarlett_master.exe
data: D:\Users\pasca\AppData\Local\XCL''
MicrosoftGame.Config: title memory Advanced, PLS 2048 MB, TitleId 7952987A
console: imports d3d12_xs.dll
xcl: DXC: dxcompiler 1.9.2609.5 (01b62ad4), dxil 1.9.2609.5, from D:\Users\pasca\xcl\target\release
GPU: NVIDIA GeForce RTX 4080 (16048 MiB VRAM)
NOTE: waves of 32–32 lanes: the console's 64-lane programs run as two 32-lane halves (slower; vertex / pixel shaders that read lanes 32–63 can differ)
DXC 1.9.2609.5 (01b62ad4): D:\Users\pasca\xcl\target\release
xcl: XCL 0.1.0 – host for 'RockstarGamesInc.28872443D20A7'
xcl: game: H:\xmas\game_scarlett_master.exe (read-only folder: H:\xmas)
xcl: XCL data: D:\Users\pasca\AppData\Local\XCL\RockstarGamesInc.28872443D20A7
xcl: console: Xbox Series X (anaconda) (title memory 13824 MiB, mode advanced)
xcl: Shader preparation: only the 6 shaders earlier runs used (XCL_PREPARE_ALL=1: every record)
xcl: XCL window created (1280x720)
xcl: Shader preparation window 0x20756
xcl: DXC: dxcompiler 1.9.2609.5 (01b62ad4), dxil 1.9.2609.5, from D:\Users\pasca\xcl\target\release
Game exited with code 0xc0000005 (3221225477)
CRASH: unhandled exception 0xc0000005 in xgameruntime.dll+0x1098ce (read at address 0x0) rax=0x0 rbx=0x0 rcx=0x0 rdx=0x0 rsi=0xc34e5c0 rdi=0x0 rbp=0x0 r8=0xc34e5c0 r9=0xc34e5c0 r10=0x570000 r11=0x175507a50 r12=0x0 r13=0x0 r14=0x707cf4f00 (vtable game_scarlett_master.exe+0x6187d60) r15=0x0 rsp=0xc34e4e0 (vtable game_scarlett_master.exe+0x5f41040); on the stack: game_scarlett_master.exe+0x5f41040, game_scarlett_master.exe+0x5f41040, xgameruntime.dll+0x10e5a7, game_scarlett_master.exe+0x55de08c, game_scarlett_master.exe+0x55de08c, ucrtbase.dll+0x50d9
Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 75, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, system: 766)
Unimplemented functions called (4):
20× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501)
19× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e)
19× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9)
19× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820)
Writes to game files redirected to the overlay: 6
Logs
report.json
xcl.log