Repository navigation
Backlog
Labels
priority: P0Highest project priority
Description
Part of #870. After the first-run acceptance page is confirmed and the main load starts, the process ends on an unhandled C++ exception raised from the package's BVH builder DLL (XboxBvhBuilder.dll). @triggered02 first reported it on #870: b9c9f624, GTX 1660 SUPER, 223 s. It reproduces on an RX 9070 XT on current main. There's no dedicated issue yet, so this collects the evidence in one place.
Observed (RX 9070 XT, driver 32.0.31044.16, Windows build 26300, release build, warm cache, -MemoryGiB 32)
| Run | Base | End |
|---|---|---|
| n | 80f413a7 |
309 s |
| o | 80f413a7 |
321 s |
| q | 9ffb8529 |
299 s |
- Same end in every run: second-chance
0xe06d7363, params0x19930520, image baseXboxBvhBuilder.dll. - Thrown type: read from the throw info in the local DLL, the catchable type is the built-in
long(.J). That's consistent with a thrown HRESULT. The thrown value wasn't captured in these runs. - What precedes it:
- The BVH archives are opened.
- The storage burst from startup-runtime: loading-phase DirectStorage requests read past a file end and at non-zlib data #1198 is under way: by 290 s, capacity 2,049, BCPack 199, zlib 6, past-EOF 2 failures.
- A few no-op command-list and device slots are logged in the last seconds.
- One stream pipeline is left as a placeholder (no translation for its shader).
- No stand-in log line in these runs records a return address inside the BVH DLL.
- Slot 70: in these runs it refuses 9 calls, all early in startup and none near the throw. They are mostly 1×1 3D
unsupported_descriptionplus twobuffer_unavailable. The slot-70 path @triggered02 saw before the throw onb9c9f624may be partly covered since d3d12_xs: support buffer memory SRVs on slot 70 #1456/startup: report all slot70 refusal reasons and quote launch arguments #1598, so it's not yet clear it explains this end point. - Not the storage experiment: a local experiment that serves the capacity-exceeded requests (startup-runtime: loading-phase DirectStorage requests read past a file end and at non-zlib data #1198) does not change the end point (309 s vs 321 s).
- Not the memory cap: with
-MemoryGiB 14these runs stop earlier, at about 290 s, in title code (see P0: main executable startup progress #870), so the cap is ruled out as the cause here.
Not established
- the HRESULT value;
- which call or data check produces it;
- whether a stand-in returns a failure or wrong data to the builder;
- whether the builder is reading BVH data that a refused or BCPack-failed storage request never delivered.
Proposed next step (measurement only, no behaviour change)
- Capture the throw. Stop at the first-chance
0xe06d7363(debug_launch.py --stop-first-chance 1), read the thrown value and the caller chain inside the builder, and map the frames to the last stand-in calls and storage requests before the throw. - Check the storage side. Tag storage failures by archive (BVH archives vs others), to see whether the builder's input was among the refused requests.
- Share sanitized results here. Only the HRESULT category, the stand-in slot or storage category involved, and counts; addresses, names and paths stay local.
- Only if a stand-in contract is implicated, propose a source-built fixture for it.
I'd like to take steps 1–3, coordinating with @triggered02 if they're already on it. I'll post results here before proposing any code change.
AI-assisted.
Metadata
Metadata
Assignees
Labels
priority: P0Highest project priority
Activity
R0Y00 commentedon Nov 24, 2026
P0 startup task — identify the first failing contract before the BVH builder exception.
@MasterDomino, please take the local measurement you proposed and coordinate with @triggered02 for an independent confirmation if they can reproduce it. Use a fixed build, input sequence and memory cap with measured headroom. Record the commit, Windows build, adapter/driver, cache state, peak process commit and the last responsive screen. At the first matching throw, report the thrown value or HRESULT category, the first relevant caller or stand-in slot, and whether the immediately preceding requests for the builder input completed, failed, or cannot be associated. Distinguish that run from the earlier cap-limited access violation. Reproduce the same first failing event twice, or report what varies.
Only publish the sanitized result and aggregate request counts. Keep exact addresses, paths, raw logs and local data out of the issue. Once the first failing call or missing-data dependency has been isolated, link a separate source-built control with successful and failed cases. This measurement can proceed while the independent storage counters in #1198 are being reviewed.
MasterDomino commentedon Nov 24, 2026
Claiming the measurement as scoped. One run with the thrown value captured is done; a second reproduction with the same build, input and 32 GiB cap is running now, and I'll post the sanitized result with the requested fields once both agree. @triggered02, if you can reproduce on your side, the first thing to compare would be the thrown HRESULT at the builder's throw.
AI-assisted.
MasterDomino commentedon Nov 24, 2026
The storage counter slice from #1198 is up as #1781, so later reproductions here can report failures by cause from the stock heartbeat.
AI-assisted.
MasterDomino commentedon Nov 24, 2026
Result: first failing contract, plus the one behind it
Setup (fixed for every run below):
mainat9ffb8529, release build, plus local uncommitted diagnostics listed per experiment-MemoryGiB 32; peak process commit 14.6–16.2 GiB, so the cap is not reachedThis is a different end point from the cap-limited access violation at about 290 s with
-MemoryGiB 14.1. First failing event (reproduced twice: runs r and s)
0x80070057(E_INVALIDARG), at 299.7 s and 298.7 s.DestAccelerationStructureData can not have more than 40b of address set.XMemVirtualAllocresults: 9/9 above 2^40.2. Local placement experiments
VirtualAlloc2withMEM_ADDRESS_REQUIREMENTS,HighestEndingAddress = 2^40 − 1)3. Second failing contract (reproduced twice: runs u and v)
0x80004005(E_FAIL), at 299.0 s and 296.3 s.Failed to allocate upload buffer.0x280) and an alignment (16), and expects a non-null pointer to upload memory.Likely next contract (not reproduced, from reading the builder's code locally)
The same builder routine writes command packets directly into the command list object's own buffer: a write pointer and limits at fixed offsets in the list object. Our list wrapper has no such layout. Once slot 148 returns memory, this is the next place I'd expect it to fail.
Proposed next steps
Placement below 2^40. A source-built control for the xmem placement:
VirtualAlloc2calls, behind a check that the reservation succeeded.Does this belong under gpu: establish the D3D12ConfigureVirtualMemoryX startup contract #874, the virtual-memory contract? It changes where all title memory lives, so I'd like your direction before a PR.
Slot 148. It needs its semantics established before any implementation: lifetime of the returned memory, whether the GPU address equals the CPU pointer, and alignment. If your local build has a known contract for it, a pointer would help. Otherwise I can propose a source-built probe that records the calls and arguments first.
All three experiments are local and uncommitted. Only aggregate counts are shared here.
AI-assisted.
startup: count failed DirectStorage requests by cause in the heartbeat
R0Y00 commentedon Nov 24, 2026
Thanks for reproducing both stops with matched runs. The placement check and the later upload-allocation failure are now separate evidence.
Address placement, in scope for a focused PR. Under the existing #874 virtual-memory work, use an explicit startup compatibility configuration for the non-fixed XMem allocation path actually traced to the BVH destination. Document the path, allocation attributes and the address domain the builder receives. Prove that the whole range is below the exclusive 40-bit limit, including alignment and the last byte, and check actual GPU virtual addresses if those are what the consumer receives. Keep ordinary allocations and explicit fixed addresses on their current paths. An exhausted low range must produce the existing API failure with a distinct diagnostic and roll back any partial allocation. Use a deterministic forced high-address, overflow or exhausted-range control. The experiment that lowered every address was diagnosis; this scope does not use truncation, masking or high-address fallback.
Slot 148. Main development owns production wiring. Reuse the existing #1774 arena for the independent ABI and lifetime control. Submit A while the GPU is blocked on a fence, Reset and write a distinct B, then release the gate and compare the exact A and B payloads after GPU completion on WARP and hardware. Record the CPU pointer/GPU address relationship, alignment, invalid arguments and refusal after a normal Close. Treat the proposed command-buffer interaction as a separate hypothesis until observed. #1781 is now on main at 4e732d5 for comparable storage counts.
MasterDomino commentedon Nov 24, 2026
Claiming the address-placement PR as scoped above (under #874): an explicit startup compatibility configuration for the non-fixed XMem path traced to the BVH destination, whole-range proof below the exclusive 2^40 limit including alignment and the last byte, ordinary and fixed-address paths unchanged, a distinct diagnostic plus rollback on an exhausted low range, and a deterministic forced-high/exhausted control. First step is narrowing the experiment to the single path the destination comes from; no masking, truncation or fallback. I'm leaving slot 148 to main development and the #1774 arena unless you want the ABI/lifetime control from me as well.
AI-assisted.
mumba17 commentedon Nov 24, 2026
Independent NVIDIA retest, and the two end points after slot 148
Retest on the unmodified executable, to complement the runs above. The failures come in the same order. Below each one is what follows when it is bypassed locally. Every bypass is a local, uncommitted diagnostic switch, not a proposed fix. None of them overlaps the claimed placement PR, the #1774 arena or the XDsp slice.
Setup
mainata1f2625d(sections 1–3) andecc6e6ce(section 4), release-MemoryGiB 24; peak process commit 17.6–17.9 GiBecc6e6ce, the first run found none of its pipelines (keys changed), so I re-translated them before the section 4 run.1. 40-bit destination check (4 runs)
Same as runs r/s:
E_INVALIDARGwith the same builder debug text.A second diagnostic route to the same placement: the local launcher started the process with high-entropy ASLR off (
PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY,HIGH_ENTROPY_ASLR_ALWAYS_OFF). That keeps every non-fixed allocation low, and all 16 elements then pass the check (1 run). Like run u, this is diagnosis, not the scoped fix.2. Slot 148 (1 run)
Same as runs u/v:
Failed to allocate upload buffer,E_FAIL. It follows a null from command-list slot 148, called with0x280bytes (16 × 40) and 16-byte alignment.With a local bump allocator answering slot 148 (diagnostic only), the builder completed more than 200 batches with no rejection. The trace stops counting at 200.
3. Next end point: audio stream activation (1 run,
a1f2625d, 199.2 s)chad.dll!XDspActivatesix times. The stand-in returns 0 without writing anything.XDspSubmitCommandfour times with a null first argument. The audio thread then faults on a read at a small offset from null.This is the XDsp slice claimed on #870. I'm not taking it; this only records the observed call shape for whoever lands it.
4. Next end point with a diagnostic activation (1 run,
ecc6e6ce, 244.9 s)I have not tied the faulting read to a failed request. So this only places the end point inside the #1198 storage phase.
Pipelines at the end: 14 translated, 64 missing (new loading-phase pipelines). After translation,
gfx2hlslstill refuses 110 cache entries.AI-assisted (Claude Code).
R0Y00 commentedon Nov 24, 2026
Thanks for the independent RTX 3090 retest. This reproduces the 40-bit destination rejection and then the slot 148 refusal in the same order as the RX 9070 XT report. The downstream results used local diagnostic changes, so the production acceptance remains the scoped placement change and a real slot 148 implementation. Please keep the ordered first-failure checkpoints for the next retest on the exact production candidate.
The activation and null-context submit observation belongs with the existing XDsp claim. For the later read fault, #1198 is the right place for a separate correlation check. A focused next step is to follow one failing request through its completion status and destination lifetime, then determine whether the consumer reads that destination before success, after failure, or after release. Use a bounded, source-built queue-to-consumer control with both success and failure. The counts in this report alone do not link the fault to a request. No new claim is needed for address placement, the slot 148 implementation, or XDsp.
MasterDomino commentedon Nov 24, 2026
Small tooling proposal for these reports, since every comparison here needs the thrown value.
When
tools/startup/debug_launch.pystops on an unhandled0xe06d7363(MSVC C++ exception), the exception object is still on the throwing thread's stack. Today the stop line prints only the parameters. I'd add one line after it:longreads directly.longor a class name.That's how runs r–v got their values; locally it's a three-line change. It's read-only: no change to when or whether the launcher stops.
Test: a source-built program that throws
long(0x80070057)unhandled, and one that throws a small class. The test asserts the printed value and type. A negative control prints from the wrong parameter, and the assertion must fail.May I open it as a small separate PR?
AI-assisted.
MasterDomino commentedon Nov 24, 2026
Placement PR: #1860 (opt-in
X2W_XMEM_STARTUP_BELOW_40, only the traced0x283large-page startup blocks; whole-range check with release on failure; deterministic exhausted, boundary and impossible-size controls; three test-build mutants). Checkpoints on that exact candidate (82749f0f+ PR, RX 9070 XT, same input,-MemoryGiB 32): all three0x283blocks below 2^40, the builder's 40-bit check passes, and the run ends at 299.8 s on the slot 148E_FAIL— the order reported above, with the first checkpoint cleared.AI-assisted.
R0Y00 commentedon Nov 24, 2026
Yes to a small sanitized diagnostic. Please check the preserved #1801 branch with its author first; that draft covered this same MSVC exception path. A useful first slice is an allowlisted scalar HRESULT summary when the x64 MSVC record and the exact built-in long type are both validated. For other objects, return a known type category or an unavailable result. Keep raw object bytes, arbitrary type names and addresses out of the report. Preserve the stop behavior. Use source-built throws for a known scalar and a class, with wrong-parameter/unreadable-memory controls that leave the value unavailable.
xmem: opt-in placement of 0x283 startup blocks below 2^40
R0Y00 commentedon Nov 24, 2026
#1860 is now on main at d648979. I reran Release on the exact candidate: six passes, including exhaustion, last-byte bounds, rollback, deployed-build isolation and the mapped-pages regression. The opt-in stays limited to the traced startup allocation. The RX 9070 XT startup retest in this thread reached the slot 148 refusal after clearing the address check. That remaining startup blocker keeps this issue open.
startup: count DirectStorage page requests by where they end in the h…
2 remaining items
tooling: add a run end-point section to the startup triage report
R0Y00 commentedon Nov 25, 2026
#1774 is on main at
971a9eb2. It provides the standalone arena and idle-reset fixture. The RTX 3090 comparison in #870 keeps the production boundary open: the standard run stops at the upload allocation, while a local diagnostic stand-in reaches the opening sequence.The draft #2068 already covers delayed-fence readback with a page reference retained by the test. Please keep that as the independent control. The production acceptance is a source-built client using the actual list slot: submit A, hold its queue behind a fence, Reset with a valid allocator, write and submit B, then release the fence and compare both payloads. Include allocation refused after successful Close. Keep production integration with the existing owner, and link an independent rerun on this thread when that candidate is available. Use #2068 for comments about the standalone test.
startup: control upload arena payload lifetime across a reset behind …
Merge pull request #2068 from tedin7/x2w-1758-next-slice
test: dispatch rays after a placed PERFORM_UPDATE and document the AL…
MasterDomino commentedon Nov 25, 2026
Status check after #2068, plus an offer.
On
mainat19e04be9(RX 9070 XT, Release, same post-confirmation input as above), command-list slot 148 is still the no-op. Both cold- and warm-cache runs this morning stop at the builder'sFailed to allocate upload buffer, at 293.0 s and 290.6 s, right afterCommandList::slot148. The #870 report has the counts.Is the production slot 148 candidate in progress with its owner? If it helps, I can write the source-built acceptance client you described against the real list slot:
Close.On
maintoday it would report the missing slot, so the candidate would have a ready target. Either way, I'll link an independent rerun of the same startup input here once the candidate is available.AI-assisted.
R0Y00 commentedon Nov 25, 2026
Yes, please take the source-built acceptance client for the real command-list slot 148. Keep production wiring with its current owner. Reuse #2068's payloads and overwrite control, but drive the actual list and queue. The client should neither retain the first upload page itself nor supply a fallback allocator. Current main should report the missing slot explicitly.
For the candidate run, verify the writable CPU range and the matching aligned GPU address at the traced 640-byte, 16-byte-aligned request. Submit A, hold execution behind a fence, reset with a valid allocator, write and submit distinct B, then release the gate and check both payloads byte for byte. Include a successful Close followed by an allocation refusal with no usable output, and a forced early reuse control that changes A's readback. A harness running only the standalone arena belongs in the existing #2068 coverage.
Please link the draft fixture PR here with the exact build and Windows Release CTest commands. Run WARP and your RX 9070 XT when the production candidate is ready, then repeat the same post-confirmation input. Report the first new stopping point separately from the source-built result. Thanks for showing that the warm cache reached 18/18 translated pipelines with no skipped translated draws and still hit the same upload refusal.
MasterDomino commentedon Nov 25, 2026
Taking the source-built acceptance client for the real slot 148 as scoped above. Production wiring stays with its owner.
The client:
I'll link the draft PR here with the build and Windows Release CTest commands. Once the candidate is ready, I'll run it on WARP and the RX 9070 XT, then repeat the same post-confirmation input and report the first new stopping point separately.
AI-assisted.
MasterDomino commentedon Nov 25, 2026
Draft acceptance client: #2210. It is test-only; nothing in
src/changes.It drives the actual console list and queue through whatever slot 148 the build installs. It keeps no upload page and supplies no allocator. It reuses #2068's 0xA1/0xB2 payloads and overwrite control. It covers:
On current main all four tests skip with an explicit
slot 148 not implemented. Commit342554daonab9a020c, Windows 11 build 26300, MSVC 19.44:Result: 12 passed (
list_resubmit8,upload_arena2,upload_lifetime2), and the 4 new tests skipped on WARP and the RX 9070 XT, with the debug layer on and off.Three questions for the candidate are in the PR:
x2w_d3d12_upload_gpu_address(list, cpu, bytes)from the module that implements slot 148, because no implemented console slot reads a raw title GPU address into anything observable.When the candidate is available I'll run it on WARP and the RX 9070 XT, then repeat the post-confirmation input and report the first new stopping point separately.
AI-assisted.
startup: add slot 148 acceptance client
startup: require the slot 148 acceptance and read on the submitted lists
MasterDomino commentedon Nov 25, 2026
Independent rerun with the production slot 148 (#2216). The source-built result and the startup result are reported separately, as you asked.
1. Source-built acceptance (#2210)
The client in #2210 (
a1c3c173, treefeb40ff2) on realmaina78de99a, which includes #2216 as940cd178. Windows 11 build 26300, MSVC 19.44, Release. The adapters were WARP 10.0.26100.9818 and AMD Radeon RX 9070 XT (1002:7550, driver 32.0.31044.16), each with the debug layer on and off.slot148_acceptance4,list_resubmit8,upload_arena2,upload_lifetime2.2. Startup, same post-confirmation input
mainatc374c7bf, which contains runtime: allocate command-list upload memory on the recording allocator #2216. Release, unmodified, with no local diagnostics.-Render -Translate -FakeUser -GpuMirror -StartupBelow40 -MemoryGiB 32, and the shader cache from the earlier runs.19e04be9, posted on #870)c374c7bf)Failed to allocate upload bufferfrom the builder, second-chance C++ exception at 290.6 sFailed to allocate upload buffer/CommandList::slot148no-opab9a020c: 8,487 in 285 s)First new stopping point: none within 600 s. The run continued past the builder and through the post-confirmation load to the time limit. The observations below cover what limits further progress. I have not checked any of them against the title's intended output.
compute stage not supported(presumably the device slot 67 compute requests that startup: publish translation requests for device slot 67 compute pipelines #2195 publishes), 354v_mul_hi_u32and 48v_fma_mix_f32, plus a tail of smaller reasons. The count includes retries of earlier failures, and I haven't matched the refusals to the 503 missing pipelines or the 80,634 undrawn draws.d3d12_xs.dllsite, all handled, rose from about 540 per run before runtime: allocate command-list upload memory on the recording allocator #2216 (which stopped at 290 s) to 60,022. 34,760 came in minute 4 and 24,059 in minute 5 of the post-confirmation load, then they fell to under 1,000 per minute. They read a title-range address. The run continued after each one, and I haven't attributed them.Counts only; images and logs stay local.
AI-assisted.
startup: add slot 148 acceptance client (#2210)
R0Y00 commentedon Nov 25, 2026
The source-built slot 148 acceptance is now on main in #2210. The final revision passed 4/4 independently on WARP and RTX 4060 Laptop with the debug layer enabled and disabled. Thanks for the RX 9070 XT replay with production #2216. It clears the previous allocation stop in that setup and runs to the 600-second limit, with a black capture at the limit. Keep the first unsupported pipeline and the storage failures in their existing threads so the upload fix and the remaining rendering behavior can be verified independently.