startup-runtime: loading-phase DirectStorage requests read past a file end and at non-zlib data #1191
Open
opened 2026-11-24 03:29:31 +00:00 by denn0x
·
38 comments
No Branch/Tag specified
main
codex/indirect-large-backed-views
codex/word3-preflight-check
codex/vertex-table-two-records
codex/live-index-alias
codex/copied-vertex-buffer-srv
codex/windows-stage-test-output
codex/preserve-live-srv-retirement
codex/share-render-target-tracking
codex/sgd5-negative-offset-fixture
coverage-dashboard
codex/mesh-loose-root
codex/mesh86-cache-padding
codex/xmem-scatter-preflight
codex/mesh-depth-ps
codex/indirect-dispatch-refresh
codex/compute-container-index
codex/startup-compute-formatted-load
codex/compute-indirect-producer
codex/compute-atomic-soffset
codex/mesh-dual-handoff
codex/startup-run-sh-watcher-control
codex/queue31-page-alias
codex/indexed-indirect-compute-root
codex/typed-buffer-view-metadata
codex/translated-indexed-address-alias
codex/fixed-mesh-create-result
codex/xmem-section-lease
codex/startup-slot86-mesh-cache
codex/restore-mesh-barrier-iteration
codex/translated-indirect-upload-index
codex/xapu-completion-opt-in
codex/translated-indexed-rect
codex/translated-indexed-indirect
codex/startup-mesh-lds-integration
codex/startup-console-ms24
codex/startup-slot57-mesh-request
codex/indirect-copy-provenance
codex/present-color-producer-trace
codex/compute-dispatch-binding-trace
codex/translated-indirect-table-buffers
codex/indirect-copy-provenance-base
codex/mix-half-literal-source
codex/translated-indirect-draw
codex/xmem-scatter-diagnostics
codex/slot148-recording-upload
codex/slot70-loading-art-verified
codex/command-list-upload-arena
codex/recover-failed-command-list
codex/startup-heap-timing-notes
codex/align-audio-input-timeline
codex/synthetic-depth-export-control
codex/startup-texture1d-on-windows
codex/1629-packed-position-fixture
codex/cpu-srv-refresh
codex/stream-root-srv-draw
codex/audio-mixer-timer
codex/startup-reload-published-shader
codex/priority-integrate-1284
codex/guest-sixteen-page-record
codex/aot-placed-dxr-batch
codex/guest-directory-selection
codex/gamesave-enumerate-read
codex/readme-archive-to-pixels
codex/pe-placed-view-draw
codex/archive-directory-gpu
codex/slot133-dxr-build
codex/materialize-placed-vertex-view
codex/dstorage-directory-offsets
codex/xg-nine-bc-copy
codex/xg-slot10-bc64-arrays
codex/dxr-guest-address-readback
codex/gpu-va-high-bits
codex/clarify-diagnostic-startup-scope
codex/xg-six-levels
codex/typed-derived-blend
codex/english-legal-text-progress
codex/address-bc-4ks
codex/dstorage-bounded-file-read
codex/wide-srv-offsets-menu
codex/startup-memory-srv
codex/bound-view-tail
codex/language-selector-readback
codex/setup-menu-progress
codex/cpu-plane-refresh
codex/startup-ubyte-vertex
codex/presenter-window-selection
codex/startup-uniform-buffer-lane
codex/intro-loop-timing
codex/static-clzero-loops
codex/document-rtx-intro
codex/startup-insertq
codex/nv12-startup-texture
codex/stream-stage-draw
codex/startup-null-uav-format
codex/startup-draw-capture
codex/shorten-windows-checks
codex/dstorage-rfc1950
codex/startup-dump-fence
codex/pr1135-review-base
codex/startup-stream-requests
codex/startup-chroma-view
codex/readme-graphics-pipeline-streams
codex/static-crt-free-tls
codex/arc-140t-rtx-5080-laptop-gpu-reports
codex/main-startup-progress-entry
codex/signed-dxil-catalogue
codex/reloc-free-preferred-base
codex/quad-dpp-bit-mask
codex/raw-srv-bounds
codex/rx9070-31044-hardware-report
codex/gpu-page-source-provenance
codex/runtime-placeholder-interior
codex/gpu-copy-queue-tile-order
codex/pe-pin-external-providers
codex/xmem-placeholder-reservations
codex/xmem-shared-physical-pages
codex/pe-package-startup
codex/xmem-tools-memory-query
codex/cpu-stack-output-import
codex/pe-load-security-cookie
codex/record-three-bvh-retests
codex/cpu-rbp-frame-anchor
codex/xmem-default-startup
codex/record-rtx-3050-ti-9597
codex/docs-readme-start-here
codex/check-compute-mad24-truncation
codex/docs-discord-community
codex/bound-rcx-branch-mutants
codex/rtx5060ti-bvh-62114
codex/837-neutral-readme-disclaimer
codex/record-rtx-3070-ti
codex/title-neutral-public-wording
codex/exe-shadow-frame-submissions
codex/exe-shadow-runtime-chain
codex/readme-polish
codex/gpu-coverage-nov23
codex/spirv-minlod
codex/shadow-shim-device
codex/exe-two-shadow-frames
codex/shim-dispatch-cleanup
codex/fix-spirv-cache-probe
codex/sampler-use
codex/ballot-bit-extract
codex/packed-fma-release
codex/cpu-packed-fma-o2
codex/publish-coverage-dashboard
codex/mesh-cbv-binding-order
codex/spirv-window-fixture
codex/ps-e32-float-uint
codex/ps-cbuffer-reads
codex/fixed-profile-rescan
codex/shim-compute-integration
codex/readme-visible-coverage
codex/readme-research-navigation
codex/integrate-pr-256
codex/indexed-mesh
codex/sampled-coverage
codex/first-ms
codex/dual-ps
codex/ps-attribute
codex/compute-first
codex/ps-export
codex/readme-research-status
codex/ps-layout
codex/blast-window
codex/chart-caption
codex/reviewer-roles
codex/blast-aot
codex/archive-program
codex/crc-stream-program
codex/exe-image-data-chain
codex/local-cpu-fixture-coverage
codex/exe-bound-frame-chain
codex/exe-mapped-comparison
codex/contribution-dependencies
codex/exe-entry-aot
codex/bink-frame-heap-integration
docs/hardware-seven-reports
codex/bink-custom-heap
codex/bink-heap-callers
codex/discussions-entry-points
codex/gpu-community-batch-64
codex/ffx-scratch-writers
codex/generic-project-documentation
codex/ffx-dispatch-rcas
codex/four-windows-gpu-reports
codex/title-neutral-project-wording
codex/community-coverage-provenance
codex/rcas-packed-texels
codex/community-gpu-retests
codex/community-build-and-gpu-reports
codex/ffx-provider-loop
codex/ffx-recurrent-views
codex/ffx-recurrent-resource
codex/amd-wave64-reports
codex/ffx-backend-slots
codex/upscaler-device-init
codex/ffx-context-lifecycle
codex/ffx-version-query
codex/ffx-provider-contract
codex/typed-object-callback
codex/cpu-ordinal-import
codex/chained-cpu-ranges
codex/cpu-import-call
codex/cpu-direct-call
codex/cpu-leaf-aot
codex/community-project-status
codex/script-state-path-replay
codex/script-state-evidence
codex/bc7-resident-tail
codex/bcpack-mip-tail
codex/bc7-texture-draw
codex/asset-ranges
codex/pixel-constants
codex/pixel-aot
codex/pre-exe-workloads
codex/root-signature-device-coverage
engineering/packed-bvh-leaves
engineering/bvh-build-and-update
engineering/intake-root-roundtrip
community/gpu-check-release
community/english-contributor-entry
gpu-check-v0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
R0Y00/Xbox2Windows#1191
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 R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T03:29:31Z.
During heavy loading, a console executable starts sending DirectStorage requests whose source ranges do not hold zlib data. They fail by the thousand, and the run ends a few minutes later.
Observed (local build of the #1135 stand-ins with a per-request trace; 284 s run, Windows 11 26300):
0x200001) on four texture archives fail. Each request's offset plus its size, rounded up to 0x100, is the next request's offset, so the index the executable uses agrees with itself. But the bytes at those offsets are not a zlib stream. The nearest valid stream is several KiB away, and no other file the executable opened has a zlib stream at the same position.Hypotheses, in order
Done when a source-built fixture pins the multi-stream layout (or rules it out), and a run past the loading screen shows no requests reading beyond the end of a file.
Related: #1144 (multi-page zlib), #1139 (BCPack), #1136.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by denn0x on 2026-11-24T04:19:30Z.
Measured cause of almost all of the failing zlib requests: the request offset is a multiple of 64 KiB past a valid stream.
Method: with a per-request trace (full 0x48-byte request and outcome), each zlib request on an RDS5 archive was matched against the archive's own boundary table. That table gives each interval's stored offset, stored size, trailing-byte count, decoded size and codec. A request matches an interval when
source size == stored size - trailing bytesandoffset - interval startis 4 KiB aligned.One run, about 30k zlib requests on RDS5 archives:
offset − 14 × 64 KiBthere is a stream of exactly the source size, with a valid Adler-32, that inflates to exactly the destination size.Why the executable adds the shift is not known. The request fields at +0x10, +0x34, +0x38 and +0x40 do not carry it. A local experiment resolves such requests by looking back in 64 KiB steps for a stream that verifies and has the right decoded size. That is a workaround, not a fix: it is not proposed for merge. The useful next step is finding where the executable computes the offset for these requests.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T05:23:10Z.
The chunked-stream and destination-capacity fixes are on main via #1214 (
0fa43ad6). The source-built test checks short final slices, bad zlib checksums and two queued submissions with matching offsets. The unrelated second submission fails and leaves its destination unchanged. This covers the known continuation shape.For the remaining report, please retry from
0fa43ad6or later with the same configuration and record the first failed request category, whether it still begins at EOF, and totals grouped by EOF, decode failure and capacity rejection. A new trace is needed to tell whether the aligned multi-stream layout still occurs. Please keep raw inputs and traces local.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:56:32Z.
Independent Windows retest of the 14-page shift reported above. At the start of each of eight affected queues, the first request of a new submission already carried the extra 896 KiB. All eight requested a 1 MiB destination at page offset zero. Later source offsets advanced by the preceding compressed length rounded to 256 bytes. The same four file objects also served ordinary unshifted reads. This narrows the trace target to the construction of the first request in a batch.
Independent retest welcome: compare one ordinary batch and one affected batch. Record the source offset before enqueue and at execution, destination page offset, compressed length, and whether the range matches the container directory. Please report the build and aggregate result only. The main development session is tracing the first offset producer. #1285 addresses the separate allocation before a read past EOF.
Source-built layout comparison on Windows, PR #1311, commit
976540cc. For the 1024 x 1024 nine-mip BC7 fixture in 64 KiB standard mode, the old slot 10 implementation reported the first three mip starts at 4 KiB page indices 0, 256, 320. The candidate returns 96, 32, 16, with the packed tail at page 0. Both cover 352 pages. At 1024 x 512 the total changes from 176 to 192 pages. Neither fixture result produces the anomalous page count 0xFFC0 on its own. The loading observations above used a modified local diagnostic executable. The relationship between the layout change and a loading outcome remains unverified.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:08:08Z.
Two saved diagnostic runs contain 88,678 and 86,734 requests. Across all 175,412, the source offset, compressed length and destination capacity agree between enqueue and worker execution. Each run had eight affected batches whose first request already carried the offset discrepancy. Successful first requests also use the same enqueue call stack. The closest successful control matches the failing request's destination size, page offset and options, but uses a different file.
The next useful observation is upstream of enqueue. For the first two entries in an affected batch and an ordinary batch, correlate the selected file/directory entry, its absolute physical offset, the batch base and entry delta (including units), and the resulting byte offset. A same-file control would let us test file selection as well as arithmetic. The existing traces record only the final offset. These observations come from modified diagnostic builds.
PR #1323 supplies a source-built Windows queue control: the shifted request can select a different valid compressed stream and still report success. Please retain the byte comparison when reproducing. An aggregate result is sufficient.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:09:16Z.
#1323 is now on main at
e3193607. I independently reran the two Windows Release storage tests, including both generated archive sizes. A shifted first offset can read a different valid page and return S_OK; the shifted request past EOF fails without modifying its destination, and the following correct request still succeeds. The remaining question is which caller first supplies an offset different from the archive directory, so #1198 stays open.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:33:58Z.
#1331 is on main at
728e41db. On RTX 4060 Laptop and WARP, the native, mapped and AOT runners agreed on the two requested ranges, queue status, decoded pages and full synthetic BC7 output. Shifting just the first request changed 8,192 of 16,384 pixels with both requests still reporting success. The independent AOT-only mutation was also caught at the first request. This strengthens the offset differential; identifying the producer in the reported startup remains open here.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T08:40:38Z.
We found same-file controls for entries after the batch head in both saved diagnostic traces. For each distinct failed zlib request, we searched the successful requests in that same run for the same volume, file ID, compressed length, destination capacity and options, with the source offset exactly 896 KiB lower. We also required a successful destination write and an inflated byte count equal to capacity.
This found 83 distinct matched ranges in one run and 77 in the other, spanning all four affected files in each. There are 63 ranges common to both runs. No failing batch head has such a match. These pairs provide observed successful reads for checking the producer's entry selection. They still do not identify the arithmetic that produced the first offset, or justify applying a constant correction to general reads.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:15:44Z.
For contributors following the loading-to-menu work, please link an existing producer-side fix or a source-built reproduction here if you have one. The useful comparison is the directory entry chosen by the reader, the base and relative offset used to form the request, and the offset received by the queue. A synthetic archive with two distinguishable records is sufficient. Main-menu navigation retests are being coordinated in #870.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:28:18Z.
#1353 is on main at
4b166b7d. The source-built native, mapped and AOT readers now request and decompress a complete sixteen-page record, then select the page within it. The single-page and sixteen-page cases passed on RTX 4060 Laptop and WARP. This supplies a reusable producer-to-queue control for the reported loading failure. The actual failing producer and its offset/count remain open here.Imported from R0Y00/Xbox2Windows. Originally posted by mumba17 on 2026-11-24T09:46:44Z.
Storage observations after confirming first-run setup, as asked on #870. Setup: RTX 3090, Ryzen 5 5600X, Windows 11 build 26300,
release, the same launcher options as my #870 report. I applied one local diagnostic toxcrdapi.cppwith no behaviour change: a count of failed requests peroutcomestring, plus one line per "destination capacity exceeded" request recording its option bits and sizes. Only shapes and counts are below.First failed request class after confirm:
destination capacity exceeded. Cumulative failed requests by outcome:e1316e1c(main)Device::slot70 unsupported memory SRV argumentslines, the path in triggered02's 09:37 report4b166b7d+ #1336Shape of the capacity-exceeded requests (554 logged across both builds, the same in each):
+0x38(read as the uncompressed size) is 0 in every one;0x1000to0xF000;0x10000or0x20000, otherwise0x8000,0x3000,0x40000or0x80000, which is 2 to 16 times the destination;Read together, this looks like a request asking for a window of a larger compressed record. That would make it the same shape as the whole-record-then-select-a-page control in #1353, with the page offset carried somewhere the stand-in doesn't read yet. That's a hypothesis only. I didn't identify the field.
With #1336, most of the earlier BCPack blanks become decodes (blanks 191 → 14 at the same point), but rejections rise. The zlib-failure cascade that follows may be a consequence of the earlier failed loads rather than a separate cause.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-24T12:40:05Z.
The first failure class,
destination capacity exceeded, from a per-request trace. Short version: these are requests for the first part of a compressed chunk, and delivering that part instead of failing the request removes the class. It does not finish the load; what happens after is at the end.Edited as asked below: the description of how the executable builds a request is removed, and what is left is request classes and counts as the stand-in sees them.
Setup.
mainatbb6c9a0cwith #1429, #1415 and #1390 merged on top (two small conflicts inxcrdapi.cpp, resolved by keeping both sides), plus a local trace line per executed request. clang-cl build under Wine 11.0 with vkd3d-proton, RTX 4070 Ti SUPER, same scripted first-run input in every run; the confirm step lands at 165 s each time.What the trace shows (225 s run, 44,266 requests, 293 failed):
destination capacity exceededpage offset + destination sizeis a multiple of 0x10000)offset + destination sizein the next 400 requests).So the caller wants the bytes up to the end of its page and the stream is longer.
Experiment. Behind a local switch, a zlib request (no BCPack) whose stream inflates to more than the destination writes the first
destination sizebytes instead of failing:zlib failedfrom 220 s (13,440 by 240 s), then a null write in the executable at 244 sWith the switch the failures that remain before the wave are 37
bcpack failedand 3 or 4zlib failed. The firstbcpack failedrequests have the same shape as above (one of them: page offset 0xc000, destination 0x4000), and a group of them steps its offset by 0x10000 with one unchanged source size. The BCPack decoder needs the full decoded size, which the request does not carry, so I have not tried those.What this does not explain.
zlib failedwave. That one is followed up in a later comment and in #1554; the lookup I first proposed for it here was wrong and is withdrawn.page tokens 0 at enqueueclimbed from 726 to 17,056 between 190 s and 230 s; in the two that stopped it stayed at 503.This is one executable on a translation-layer host, three runs with the switch. It contradicts the rule from #1144 that a destination shorter than the stream must fail the request, for this request shape at least. The self-authored archive fixture asked for below (valid bounded output against malformed and truncated streams, with exact output, untouched destination bytes and completion status) comes before any change to that rule; I have not built it yet.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T13:05:02Z.
Thanks for isolating a request class. Keep the early range assertion, first capacity refusal, and later load failure as separate observations. Before changing the queue decompression contract, use a self-authored archive to compare a valid bounded output request with malformed and truncated compressed streams. Check exact output, untouched destination bytes, and completion status. Please reduce the private-reader field trace in the original comment to observable request classes and counts. Exact offsets and field layouts are useful in the self-authored fixture.
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-24T13:53:20Z.
Follow-up on the large
zlib failedclass, kept apart from the capacity class above. Two things: a retraction and a cause.Retraction. The "window" lookup I described (step back from a request offset to a stream of the same compressed size) is wrong for this class. In the one traced run where it served requests, 43 of them were answered from an unrelated chunk. Please disregard it; I have removed it from my trial build.
What the failing requests are. Checked against the chunk tables of the two pool files that carried most of the class, parsed with
boundary()fromtools/texture_descriptors.py:zlib failedrequests on those two files0xE00000x3A0000Consecutive failing requests map to consecutive table entries with the same constant. So the data is plain zlib and intact; the requests are for valid chunks at a place shifted by a multiple of 64 KiB. My earlier guess of a second codec is also dropped.
Cause. Not the storage stand-in. The shift comes from the XG stand-in's slot-10 tiling answer, which a streaming executable uses to place each texture level in its pool. A desktop reserved resource orders the mips largest first; the pool files have them smallest first behind one shared tile. #1554 changes that answer for layout
0x10aand has the evidence (a rule that reproduces the level sizes of 39,283 texture records, a source-built test).Same executable, same scripted input, with and without #1554:
zlib failedby 250 sStill open, separately. The capacity class (your request for a self-authored archive fixture stands; I have not built it yet),
bcpack failedon partial chunks (135 by 250 s), and a loading screen that draws blank.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:11:04Z.
Thanks for retracting the size-based fallback and for comparing the same scripted run with and without the slot-10 change. The chunk-start check makes the #1554 layout path the next one to verify on Windows. Please link the exact build in that follow-up and keep the remaining capacity, partial BCPack and blank-output observations separate. This issue stays open for the remaining storage failure cases.
Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-24T14:26:42Z.
The build behind the "with" column of the table in my follow-up above:
github.com/JohnConnorNPC/Xbox2Windows@217caa3e14(branchtrial/1198-loading-runson my fork; a trial tree, not proposed for merge)It is made of:
mainatbb6c9a0c;efe1fe2d, an earlier head than the PR has now), #1415 and #1390 merged on top;0x109, and its 32-bit format range includes format 89;X2W_DSTORAGE_PREFIX=1) from my first comment;The "without" build has no commit. It was the same working tree before the tile-plan branch was added to the slot-10 answer. It also still had the size-based lookup I retracted compiled in, switched off. I did not commit that state, so I cannot link it. If you want it, I can rebuild "without" from this commit with the tile-plan branch removed and rerun both sides.
Environment. clang-cl build under Wine 11.0 (Proton Experimental) with vkd3d-proton, RTX 4070 Ti SUPER (driver 550.163.01), same scripted first-run input in both runs. Not Windows.
Thanks for verifying #1554 on Windows. The capacity class,
bcpack failedon partial chunks and the blank loading screen stay separate. This comment claims nothing new about them.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T14:38:26Z.
Thanks for pinning the trial build and listing the differences. Please rerun the pair with exactly the merged #1554 slot-10 branch enabled versus disabled, keeping the other trial changes fixed on both sides. In each run, report the same time window and count chunk-start misses and zlib failures separately. The existing result covers the trial variant, including the extra layout and format. The Windows synthetic slot-10 results separately cover the merged implementation.
Imported from R0Y00/Xbox2Windows. Originally posted by SuperCraft3M on 2026-11-24T14:44:10Z.
I am checking the remaining loading failures on native Windows 11 (26300.9711), RTX 4070 (32.0.16.2114), MSVC 19.44 Debug. Local integration: main
be484d0fplus #1390 and #1429, with the existing mapped/offline debugger integration. The public storage/tiling/BCPack-table checks pass 4/4 with an ASCII temporary directory.In a private previous-run sample, four failed BCPack requests match exact archive chunk starts and stored sizes in the existing boundary-table reader. Their requested decoded spans are smaller than the chunks' declared logical spans (one quarter of the chunk in these samples). This supports checking bounded partial-output handling separately from format support; it does not establish the source-window semantics or justify a size-based backward lookup. I am collecting descriptor-binding diagnostics separately because the blank frame also has repeated unknown-token bindings.
I will report the native-Windows loading result with the build and request classes. Raw requests, filenames, offsets, decoded data and captures remain local.
AI-assisted (Codex).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T16:28:53Z.
The BCPack request counters in #1622 are now on main at
4b84235f. The Windows Release source-built consumer reported requests 1:2, 6:1, 7:4, with only format 6 counted as zero-filled. For the next loading repro, include the aggregate BCPack summary if the process exits normally, alongside the first failing request category. Keep past-EOF, zlib and capacity failures separate. The counters leave the storage behavior unchanged.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T17:14:23Z.
The destination-page check from #1672 is on main at
7fdfe6d2. The source-built Windows Release test verified refusal before writes for non-writable memory and an exact successful follow-up on the same queue. Please keep the new destination-not-writable outcome separate from past-EOF, zlib and capacity in the next loading summary. The original loading report stays open.Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:06:13Z.
Loading summary from local startup runs. Each category is counted separately, as you asked.
Setup.
mainat9ffb8529plus local diagnostic counters inxcrdapi.cpp. The counters are uncommitted and don't change behaviour. RX 9070 XT, Windows build 26300, release build, warm cache,-MemoryGiB 32(see the note on the cap below). Input reaches the first-run acceptance page and confirms it at about 265 s; loading starts then. Counts only; the inputs stay local.Failed requests by outcome (whole run, ends at 299 s)
0x20000e), immediately followed by capacity failures.The capacity failures have one shape
All are zlib requests to page destinations (options
0x200001). Splitting page-destination requests by wherepage_offset + dest_sizeends:dest_sizedoes carry multi-page sizes.+0x38is 0 and nothing else holds a size or page count.dest_sizebytes of a longer stream.Experiment (local only, behind an env var, not proposed as a default). Filling the destination with the stream's first
dest_sizebytes, when a plain zlib stream is longer and no continuation is identified, removes these failures: 2,256 such requests served, post-confirm failures down to about 200, mostly BCPack. It doesn't move the end point below. I'm reporting it as evidence about what the title expects, not as a fix, given your note to avoid fallbacks. A source-built control would need a page destination that ends at a page boundary with a longer stream.Related observations (details on #870)
run.ps1's default-MemoryGiB 14, the same runs stop at about 290 s with a write or read fault in title code during this burst (#1586's pattern). With 32 GiB they go further. Commit reaches about 16 GiB during the burst.long) from the package's BVH builder DLL, at 299–321 s across runs, with or without the experiment.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:10:32Z.
Proposal, so the next loading summaries from anyone keep the categories separate without local patches. I'd like a go-ahead before opening the PR.
Change (
src/startup_stubs/xcrdapi.cpp, behaviour-neutral):failed by outcome: ….read failedin that count intoread at or past end of file,read crosses end of fileand other read failures, using the file size. The per-request log text stays exactlyread failed, whichstartup_storage_refusal_orderasserts.Tests:
startup_storage_refusal_order, or add a sibling, to submit one request of each refusal kind it already builds: a valid request, at EOF, crossing EOF, implausible size, a short destination, and a zlib failure. Assert the heartbeat's per-outcome counts, after making the heartbeat interval configurable for the test, or after exposing the counters through a test-only query. I'll match whichever the existing storage tests prefer.startup_storage_*anddstoragetests must stay green; they pass locally with the prototype, 11/11.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:15:42Z.
Go ahead with the behavior-neutral counter PR. For the first slice, report aggregate failure counts at the existing heartbeat, separating at/past EOF, crossing EOF, other read failure, destination capacity, non-writable destination, zlib and BCPack. Keep existing status, ordering and per-request text. Compute the EOF categories with overflow-safe comparisons. Test valid, EOF, crossing EOF, short-destination and invalid-zlib requests in a source-built fixture. Assert the exact counts and require the one-bucket negative control to fail. Reuse the current refusal-order fixture or a sibling; avoid a new public knob just to make the test run. Page-shape counts can follow separately. Link the result to #1758, which is collecting the first-failure evidence. Keep the prefix experiment outside this PR.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:18:16Z.
Claiming the behaviour-neutral counter PR as scoped (heartbeat aggregates for at/past EOF, crossing EOF, other read, capacity, non-writable, zlib and BCPack; overflow-safe EOF checks; source-built fixture with exact counts and the one-bucket negative control; no new knob; page-shape counts and the prefix experiment left out). PR link to follow, linked to #1758.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T18:34:03Z.
Counter PR: https://github.com/R0Y00/Xbox2Windows/pull/1781. Eight fixed causes on a second heartbeat line (totals line byte-for-byte unchanged), overflow-safe EOF split, per-request text and statuses unchanged. New
startup_storage_failure_countsfixture: 13 requests, exact counts per cause (sum = failed = 11), plus the registered one-bucket control (fails as required); EOF-swap and wrapping mutants recorded in the PR. Storage tests 15/15,^startup_203 passed / 0 failed / 4 capability skips. Linked to #1758.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:29:31Z.
Picking up the page-shape follow-up you left for a separate PR: aggregate heartbeat counts of page-destination requests by where
page_offset + dest_sizeends (inside the first 64 KiB page, exactly at its end, past it), each split into completed and failed. Behaviour-neutral like #1781: existing lines, statuses and per-request text unchanged, overflow-safe arithmetic, a source-built fixture with exact counts for each shape and a one-bucket negative control. PR link to follow.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T19:29:41Z.
The new independent RTX 3090 report used #1781's counters. Its later read fault was observed after local diagnostic changes and has no confirmed link to a storage request.
Open for a small source-built follow-up: track one failed request end to end, through enqueue, completion status and the first consumer read or release of its destination. Pair a successful request with one refused request of the same shape and use distinct sentinels. Verify that success publishes the expected bytes and that a failed completion cannot be mistaken for usable data. If the existing fixture already covers that last step, link the test and use the same checkpoints for a bounded local retest. Keep aggregate counters, address placement, and XDsp in their current work items.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:46:04Z.
Page-shape follow-up PR: https://github.com/R0Y00/Xbox2Windows/pull/1864. A third heartbeat line counts page-destination requests by where
page_offset + dest_sizeends (inside / at the first page's end / past it), each completed and failed, counted at the same places that already add tofailed=; 64-bit end so nothing wraps. Newstartup_storage_page_end_countsfixture with real page writes through the xmem shim (exact counts per shape, totals cross-checks, 10 edge ends) plus the registered one-bucket control; swapped-comparison and 32-bit-sum mutants recorded. Storage/heartbeat/triage group 17/17,^startup_235 passed / 0 failed / 4 capability skips.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T19:57:15Z.
#1864 is on main at
150a01d3. The two Release page-end tests passed, including the negative control that collapses the three ranges. New retests can use the built-in inside/exact-end/past-end counters and keep the completion counts separate from failures. The counters leave request behavior alone. The separate completion-to-consumer check above is still open.Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T19:58:30Z.
Claiming the queue-to-consumer follow-up.
What the existing fixtures already cover:
startup_storage_refusal_order(#1664): enqueue → status → fence order, and that a refused destination stays poisoned.startup_dstorage_destination_check(#1672): refusal before any byte is written.What neither covers:
page_offset + dest_sizeends at the first page boundary but inflates past it.Plan (source-built, sibling of the #1781/#1864 fixtures with real page writes through the xmem shim):
IsComplete/GetHResult) before the next access to that destination's pages. The query check uses the existing stand-in log points, extended to count per index. Results as aggregate counts only.Address placement, XDsp and slot 148 stay in their own items.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T20:10:54Z.
Queue-to-consumer fixture: https://github.com/R0Y00/Xbox2Windows/pull/1886. One Submit with a matched pair of page requests ending at the first page's end (S inflates to exactly 0x1000, R to 0x1800 and is refused for capacity), each with its own sentinel, status and fence. Read through the title-visible view (XMemVirtualAlloc + XMemMapPhysicalPages) at each fence and after both: S shows its exact bytes, every byte of R's page stays its sentinel and none equals R's stream prefix; the pages are then unmapped, freed and reused by an S-shaped follow-up that completes exactly. Registered accept-refused control plus a recorded prefix-writing mutant fail on R's check; stand-in unchanged. Storage group 19/19,
^startup_237 passed / 0 failed / 4 capability skips. The bounded title retest with the same checkpoints comes separately.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-24T20:32:02Z.
Bounded local retest for the queue-to-consumer checkpoints of #1886, in the title. Aggregate counts only.
Setup:
mainatdf40e4bc, release, plus one uncommitted local diagnostic inxcrdapi.cppthat only observes (no outcome changes). It links each refused page request's first page token to the status entry that reports it, then countsIsComplete/GetHResultcalls on that entry and later page writes to the same token.-MemoryGiB 32(peak commit 13.7 GiB)Counters at 280 s (#1781 and #1864 lines):
Checkpoints for refused page requests:
IsCompleteGetHResultOther paths a title could use to see failures:
Queue::GetErrorEventwas not called in this run.What this shows: in this window the title tracks these requests only through
IsCompleteon their status entries. That returns true for a completed request whether it succeeded or failed (the stand-in follows PC semantics, and #1886 shows the refused destination keeps its sentinel). The title never asks for the HRESULT. A refused request therefore looks complete to it, with its destination never written.What this doesn't show:
IsCompleteitself, or through a field the title reads directly. That is a semantics question for the status-array contract, not something this retest can settle.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:37:50Z.
The consumer-view fixture #1886 is on main. I reran the exact Release candidate: the matched requests and accept-refused control both passed their expected outcomes. The failed request left its mapped page untouched through completion and did not prevent a fresh request after release. The post-confirm loading failure still lacks a causal link to a specific completion or consumer read.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T20:42:54Z.
The Xbox GDK reference confirms that IsComplete is equivalent to GetHResult(index) != E_PENDING. A finished failure must report complete, and GetHResult is where the failure is carried. Keep that behaviour and the existing refused-page sentinel check.
The 598 request links, 34 reported status entries and absence of GetHResult on those entries narrow the next experiment. Follow one failing request's generation through its status poll, then check whether the same destination is read or consumed before any replacement write. A source-built pair can distinguish old sentinel bytes, a valid later write and a bounded refused request. Publish only aggregate results or the sequence of events; leave private bytes and traces local.
Microsoft Xbox IsComplete · Xbox GetHResult.
Imported from R0Y00/Xbox2Windows. Originally posted by sydney-0o on 2026-11-25T00:11:06Z.
I ran a native Windows A/B control for both offset deltas reported in #1554. The test took the mip starts from the real XG slot-10 call and used their difference to form requests against generated RDS5 fixtures.
Windows 10 x64 build 19045.6456, GTX 1080 Ti driver 32.0.15.8278, MSVC 19.31 Release, D3D12 debug layer off. Both XG DLLs were built from
9dcf1ae1. The negative control disabled only thetile64::Plan::supportsbranch. Both used the same Release storage consumer and XCRDAPI DLL from the local6b50e3d7build.0x10a0xE00000x3A0000For each shape, I generated two archives via the
write_intervalshelper intests/startup_storage_directory_batch.py. Both hold the same expected 4 KiB page at the plan offset. One has a different valid page at the shifted offset. The other has a stream with a bad checksum there. The requests were submitted viastartup_stub_consumer.exe dstorage-directory. With the plan, both requests returned the expected bytes andS_OK. With the desktop fallback, the valid alternate page returnedS_OK, and the checksum control returnedE_FAILwith its destination untouched. All guards were intact. Three complete A/B repetitions agreed.The separate Windows Sandbox startup pair reached slot 10 and storage requests, then stopped early at the same access violation in both variants. The live loading phase remains unmeasured on this host.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T01:28:45Z.
The field correction is on main in #2129 (
4c1b27dd). The public Xbox request ABI defines +0x38 as CancellationTag and +0x34 as IntermediateSize for zlib plus BCPack. I reran the Windows Release worker checks against the exact candidate: the large-tag zlib request succeeded within the test commit limit, and the allocation-failure/recovery and EOF/fence checks passed (2/2 overall). This removes the false size source. Please keep offset selection and overlong source ranges under separate investigation; a zero cancellation tag supplies no evidence about their intended output size. #1429 has the earlier ABI analysis and can retain its separate streaming work. https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/dstorage/structs/dstorage_requestImported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T01:58:44Z.
The source-built generation check landed in #2083 (
49f70c63). Windows Release passed both cases. Three requests reuse the same mapped page in one Submit. At their fences the results are E_FAIL → S_OK → E_FAIL. The first refusal leaves the sentinel, the valid request writes all 4,096 bytes, and the later refusal preserves those bytes and the earlier statuses. A consumer that reads the first refused destination as decoded data matches zero of 4096 bytes. This verifies the stand-in sequence. The observed startup batches still need their own offset/size attribution and status-to-consumer evidence.ctest --preset release --no-tests=error -R '^startup_storage_refused_reuse($|_accept_refused_control$)' --output-on-failureImported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T04:48:14Z.
Retest after #2129: the capacity refusals remain
Two startup runs on
mainat19e04be9, which includes the #2129 field correction and the #2083 fixture. RX 9070 XT, Windows 11 build 26300, Release. Settings are the same as the cold/warm pair posted on #870: post-confirmation input,-MemoryGiB 32,-StartupBelow40,-Render -Translate. Both runs end at the slot 148 builder stop. A local counting-only diagnostic (not for PR) tracks each refused page request through its status queries. Counts only; no offsets, paths or logs.Failure causes at the last heartbeat:
IntermediateSizefield didn't remove them. So #2129's false size source was not their cause, and the overlong source range stays the open lead.Status to consumer (refused page requests tracked through their status queries, as the title issues them):
IsCompletebefore the stopGetHResultqueriedIsCompleteon each failed request's status entry and never callsGetHResult, so a refused page completes from the title's point of view with its destination untouched. That is the sequence #2083 checks, where a consumer reading the first refused destination as decoded data matches 0 of 4,096 bytes.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T06:29:33Z.
The small-texture allocation and copy correction is on main in #2133 (
ad394d2d). Independent Windows Release verification gave 8 passed and one AddrLib skip. WARP and RTX 4060 Laptop each matched 1,536 rendered pixels from two mips written through the XG shim, with the reported allocation followed by a guard page. This covers the compact 4 KiB-aligned layout. For a startup A/B, use the same input and initial cache state and count capacity, BCPack, zlib and EOF separately. Please report the first remaining category with a reproducible source-built case if one is available. Keep the overall issue open for the remaining failures.