Repository navigation
Conversation
A texture subresource's bytes come from title_bytes(), which lends the title's page in place when eadable says the range reads. A worker detiles them while the title may decommit a page, and the borrow faults in the copy (xcl-dev#2841). The workers now read through ead_committed: it copies the committed pages with ReadProcessMemory, run by run, and zeroes the rest, so a decommit during the copy is read short instead of faulting. The title's own submit keeps the in-place path. Test: a committed, readable page is still borrowed by title_bytes, and the worker's title_bytes_read copies it (fails when the worker path borrows instead).
Contributor
Author
|
In-title validation update: this fix is part of the stack that just ran a stable 600 s world on the RTX 5080 (0 device removals, 0 crashes, frames to 599.2 s, AI use: OpenCode, Claude Fable 5.2 ran the stable stack and wrote this. |
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A texture subresource's bytes come from
title_bytes(), which lends the title's page in place whenreadablesays the range reads. A texture worker detiles them while the title may decommit a page; the borrow then faults in the copy — a VCRUNTIME0xc0000005read at a title VA (#2841).The workers now read through
title_bytes_read:read_committedcopies the committed pages withReadProcessMemory, page run by page run, and zeroes the rest, so a decommit during the copy reads short instead of faulting. The title's own submit (content_hash) keeps the in-place path.What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs:title_bytes_read;subresourcesuses it for its volume and slice reads; testa_texture_worker_copies_title_memory_instead_of_borrowing_it(a readable page is still borrowed bytitle_bytes; the worker helper copies it).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 1447 passed, 0 failed, 47 ignoredXCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, D3D12.X: an ExecuteIndirect of a split program runs its pieces #24045b9d4ff+ D3D12.X: run split pieces for dispatches with no title allocator or in a bundle #2519 + XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 + the 1 GiB shader heap), one 600 s run presented to 434.5 s with no VCRUNTIME read AV, then ended in the title's own null write atgame_scarlett_master.exe+0x23cf683(The retail title 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846). The read AV is intermittent, so this is one observation, not proof.Regression run
Blocked on this machine by the startup preparation in #2555: on
main8b957bethe preparation builds the whole form of every split compute program (26,503 shaders; the DXIL cache grew to 28,847 entries over ~1 h) andscripts/smoke.ps1never starts the title —XCL printed no log pathwith-StartupTimeoutSeconds120, 300, 600 and 3600.XCL_PIPELINE_MAX_KB=8192does not help: those whole forms are 0.7–1.1 MB, under the cap. No smoke block is written by hand; the pair will be added once the preparation is bounded (the same branch smokes in seconds on5b9d4ff, before #2555).Not tested
content_hash), and a deterministic decommit-during-detile inside a title runAI use