startup: committed upload and readback buffers (device slot 127) fail with E_INVALIDARG on Windows 10 #1900
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#1900
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?
@lukaslw-lab on GitHub · 2026-11-24 20:41 UTC · original
AI-assisted (Claude Code).
The D3D12 stand-in creates every slot 127 resource in
D3D12_RESOURCE_STATE_COMMON. D3D12 requires upload-heap resources to start inGENERIC_READand readback-heap resources inCOPY_DEST(CreateCommittedResource2, D3D12_HEAP_TYPE). The Windows 10 runtime enforces this, so those creations fail there.Commit or build:
mainat4c5afa8e,devandreleasepresets.Reproduction: call device slot 127 through
D3D12XboxCreateDevicewith a buffer on an upload or readback heap (initial layout0xffffffff, no clear value), on WARP or hardware. Source-built fixture in the linked PR.mainS_OK0x800700570x800700570x800700570x80070057Startup observation (sanitized, Windows 10 host above,
run.ps1 -Render -FakeUser -GpuMirror -HostCpu, scripted input through the first-run pages): early in startup a title subsystem creates three upload buffers and its readback buffers through slot 127. All are refused and the title keeps null objects without checking them.How this was traced (method only; addresses and executable details kept local): static analysis in IDA of the faulting function, its caller and the subsystem's constructor, which pairs each upload-buffer creation with the field the fault reads; then debugger memory watches and hit counters in startup runs. The constructor fills its other fields, while the field that receives the upload buffer stays null from construction until the post-confirm load reads it. The buffer sizes in the stand-in log (150, 128 and 320 entries of 768 bytes) match the constructor's capacities.
mainE_INVALIDARGS_OK-MemoryGiB 16the commit cap (peak 15.7 GiB); at 20 GiB, peak 16.8 GiB, a later failure with system commit exhausted on this 16 GB RAM hostNo scene or menu after the load was observed. This may be why Windows 11 reports in #870 / #1758 get past this point and Windows 10 ones do not.
Environment: Windows 10 22H2 (19045), RTX 3080 Ti driver 32.0.16.1047 and WARP (in-box), debug layer off.