Repository navigation
Conversation
|
Regression run, plus two review notes. Native Windows 11, RTX 5070 Ti (Blackwell, 32-lane, driver 32.0.16.1742), 32 GB. Same title, 180 s each, no uncommitted changes.
This PR @ Frames 1377 vs 1479 (93 %), peak commit 15040 vs 15064 MB (100 %), no device removal, no crash, exit 0x0. Inside the 80 % / 125 % bounds — but see the note at the end about the frame counts on this machine. Not tested: neither build stopped on the NULL-scatter path, so this run does not confirm the fix fires. 1. 2. Three points on the change itself (static read, not from a test):
All of this is one title on one GPU, and that machine had other heavy load on it during the runs — treat the frame counts as indicative and the review points as questions, not as a block. |
A retail game unmaps addresses while it streams its world with
XMemMapPhysicalPagesScatter(addresses, n, NULL); it checks the result
and runs into its own int3 when the call fails (+0xb18de7, then its
crash reporter). XCL refused a NULL page array with
ERROR_INVALID_PARAMETER. Page 0 already means "unmap this address" in a
scatter, so no array is taken as page 0 for every address.
Test scatter_without_pages_unmaps: two pages mapped and written, unmapped
with no array (the call succeeds, the addresses are no longer committed),
mapped again they read what was written. It fails without the change
("refused").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1822092 to
3ae0841
Compare
|
@yyc160 thanks for the regression run and the review. Pushed
Tested on |
|
Regression run for this PR's head on Windows, as asked in #175. Tested
Regression run main: PR: Not tested
🤖 Claude Opus 5.5 |
|
Tested on native Windows 11, RTX 4060 Laptop 8 GB (7956 MiB), driver 621.24, 15 GB RAM, release MSVC build. The newer retail title (TitleID 7952987A) with the Series S profile ( Without #495/#496: With both: the run went past that point (XStore query at 186 s) and played on until 354.5 s. No device removal and no failed scatter calls logged. The run then ended on #333 (
So on 8 GB the Series S profile trades target pages for sparse pools and starts 1.2 GB higher. It lasted about 12 s longer after the load point than Series X did. It is not a way around #333. Caveats: one run, no AI use: the crash was traced and this comment drafted with Claude Opus 5.5; I ran the game and checked the results. |
|
Native Windows 11 / RX 7900 XT, retail 1.0.2.1, Series S profile. The local control accepted A, then took 0x80000003 at title+0xb18de7 at 41.473 s (RCX 0x57, R8 zero). Adding 3ae0841 plus #615's presentation overlay to the same integration build, with the same saved profile, input and initial application caches, got past that breakpoint and into world streaming. The isolated scatter_without_pages_unmaps regression passed in the combined workspace suite. I did not instrument the scatter return value in the retail run. The follow-up run ended at 168.731 s at the separate title+0x23cf683 watchdog, with zero device removals. The full combined suite passed 730 tests, 0 failed, 41 ignored; one nominal pass reported SKIPPED for missing xgameruntime.dll. Commands: cargo build --workspace --offline --locked and cargo test --workspace --offline --locked -- --test-threads=4 --nocapture, followed by a release hardware run. Codex (GPT-6) ran the checks and summarized the local logs. |
|
Test report on Windows + NVIDIA for On the Series S profile ( Tested
Regression run This block is from the local merge, not from this PR's head alone: on this card the title does not reach the scatter without #242, so a run of this PR alone would only show the earlier assert. Not tested
AI use
|
|
Test report: retail title, a run confirming the problem this PR fixes Not a run of this PR's head ( Hardware / build
Without the fix
With the fix
Not tested
AI use
|
|
Windows validation on a GTX 1650 (4 GB) Retail 1.0.2.1 in the Series S profile. I compared
The final sampled 1920×1080 frame had 0 of 129,600 non-dark samples. The report also recorded 45 calls to queue slot #31 (the case tracked in #1031). This is Windows runtime evidence that the scatter change clears the assertion at AI use Codex (GPT-6) prepared the local cherry-pick, ran the comparison, and wrote the report from the generated logs. |
|
Confirming the diagnosis on Series S ( Setup: NVIDIA GeForce RTX 2060 Laptop 6 GB (driver 595.79), i7-10750H, 16 GB RAM, Windows 11 10.0.26200, release build.
I did not port the test. |
|
Test report from Windows: the same assert reproduces here and the same change fixes it.
AI use: Claude Code (Claude Opus 5.5) found the assert, wrote the local change and this report. |
# Conflicts: # crates/xcl/src/hle/kernelx.rs
|
RTX 5080, Series S profile: the title stops at this
Setup: RTX 5080 16 GB (driver 610.47), i7-7700K, 16 GB RAM, Windows 10 22H2, release, Not tested: this head rebased on AI use: Claude Code with Claude Fable 5.2 ran the title and wrote this. |
A retail game unmaps addresses while it streams its world with
XMemMapPhysicalPagesScatter(addresses, n, NULL). It checks the result and runs into its ownint3when the call fails (+0xb18de7; the function at+0xb18dc0calls the scatter through its IAT slot and breaks on 0), then its crash reporter. XCL refused a NULL page array withERROR_INVALID_PARAMETER. Page 0 already means "unmap this address" in a scatter, so no array is now taken as page 0 for every address. Part of #175 (#175 (comment)).What is in it
hle/kernelx.rs:XMemMapPhysicalPagesScatterwith a NULL page array unmaps each address (through the existing page-0 path).scatter_without_pages_unmaps: two pages mapped and written, unmapped with no array (the call succeeds, the addresses are no longer committed), mapped again they read what was written. Without the change it fails ("no page array: unmapped, not refused").Tested
from_ifacechecks relaxed and-Db_ndebug=true, as in Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257; DXVK 3.1.1 dxgi), Rust stablex86_64-pc-windows-gnu(cross-built), releasemain2997c9a+ this commit): CPU tests--skip gpu:: --test-threads=4: 364 passed, 0 failed, 3 ignored; GPU testsgpu:: --test-threads=1: 271 passed, 0 failed, 18 ignored (run serially: with 4 threads this card sometimes loses the device, NVRM Xid 109, in tests this change does not touch).mesh_dispatch::tests::gpu_*/paired_*were excluded: they hang this GPU onmaintoo.SKIPPEDon this adapter:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)int3at+0xb18de7at ~113 s; after, the run went on past it.Regression run
scripts/smoke.ps1needs Windows (see Not tested).Not tested
scripts/smoke.ps1blocks and no MSVC build; this PR needs someone to run the regression on Windows before it can be merged.AI use
🤖 Generated with Claude Code