Repository navigation
Conversation
44425d0 to
3ff557d
Compare
|
Tested 3ff557d merged onto main 4017f8f (merge c699a09, no conflicts). There is no test of the refusing path, and one is possible without faking the DLL.
From reading: every use of the system runtime's objects goes through
Tested RTX 5070 Ti (NVIDIA 610.74), Ryzen 9 9950X, Windows 11 26200, debug.
Not tested
🤖 Claude Fable 5.2 |
…tialise When System32\xgameruntime.dll loads but its InitializeApiImpl* calls fail (seen: 0x80073cfc on a Windows 11 machine where Gaming Services was not installed), XCL still handed the title the PC runtime's XAsync object. Its first use then fails fast inside xgameruntime.dll (0xC0000409) and the title dies about a second into its boot. A failed initialisation now counts like a missing DLL: pc_object() returns None, so XAsync / XAccessibility take XCL's built-in fallbacks, as they already do without the DLL. Their notes say which of the two it is. Test: a_system_runtime_that_refuses_to_initialise_is_not_used forces the refusal through a test-only result for the InitializeApiImpl* calls (FORCED_INIT) and fails without the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3ff557d to
b1f57e3
Compare
|
Test run of Tested
Review: When the system runtime's Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Test report for Tested: RTX 5090 (32-lane waves), NVIDIA 615.78.08, Ryzen 7 9800X3D, Arch-based Linux (kernel 7.2), GE-Proton11-12 (its Wine and vkd3d-proton 3.1). Retail 1.0.2.1, menus only, no input, 75 s per run. The Windows 11 Tree: this is not a clean head. Stock
Each variant ran once. Not tested: a clean PR head on Windows, and the case where the system runtime initialises (I have no working Gaming Services under Wine). AI use: Claude Code (Claude Opus 5.5) built the A/B, ran it and wrote this comment. I reviewed it before posting. |
|
Thanks for the A/B. The fallback is taken for any failed (Written with Claude Code, checked by me.) |
|
Real Windows run of this PR's head on a PC without Gaming Services, where the system runtime fails with another HRESULT: Tested
Not tested
AI use
|
Applied from upstream PR xcl-dev#235 (ofc0urse), kept local for testing: with no Gaming Services on this box the PC runtime is absent anyway, and this makes the fallback path explicit rather than handing out objects that fail on first use.
Applied from upstream PR xcl-dev#235 (ofc0urse), kept local for testing: with no Gaming Services on this box the PC runtime is absent anyway, and this makes the fallback path explicit rather than handing out objects that fail on first use.
When
System32\xgameruntime.dllloads but itsInitializeApiImpl*calls fail (seen:0x80073cfcon a Windows 11 machine where the Gaming Services package was not installed, only its service entry), XCL still handed the title the PC runtime'sXAsyncobject. Its first use fails fast inside the system DLL and the title dies about 1.5 s into its boot (Application event log: faulting modulexgameruntime.dll, exception0xc0000409). Seen with a retail title, every run, until Gaming Services was installed.What is in it
crates/xcl/src/hle/xgameruntime/api.rs: a failedInitializeApiImpl*now counts like a missing DLL.pc_object()returnsNone, soXAsyncandXAccessibilitytake XCL's built-in fallbacks (the path that already exists for machines without the DLL). Their notes say which of the two it is ("no system xgameruntime.dll" or "the system xgameruntime.dll refused to initialise"). When initialisation succeeds nothing changes.a_system_runtime_that_refuses_to_initialise_is_not_used: a test-only result for theInitializeApiImpl*calls (FORCED_INIT,cfg(test)) forces the refusal on a PC whose runtime initialises;XAsyncandXAccessibilitymust be XCL's objects. It fails without the change ("XAsync is XCL's"). It holdsASYNC_TEST_LOCKand puts the runtime state back for the other tests.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4onb1f57e3: 681 passed, 0 failed, 41 ignored. SKIPPED on this adapter (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.pc_init: fails at theXAsyncassertion. With it: passes, andthunk_protocol_with_xcl_objects_on_pc_queuesrun after it in the same process still gets the PC runtime'sXAsync.maindied 1.5 s into the retail title's boot every run and this branch reached the title's menus (earlier head3ff557d).b1f57e3:main, 0SKIPPED, forced-refusal test included (comment).0x80040154(REGDB_E_CLASSNOTREG): without this PR the title dies inxgameruntime.dllat 5.5 s, with it the menus run for the full 75 s (comment).0x80070424(ERROR_SERVICE_DOES_NOT_EXIST): without this PR the title stops with a fail-fast (0xc0000409) about 30 s in; with it the fallback is taken and the title runs the full 120 s of a smoke run, 0 crashes, 0 device removals (comment).Regression run
Both runs on this PC with Gaming Services installed and running, so the system runtime initialises in both and the new path is not taken.
Not tested
AI use
🤖 Generated with Claude Code