DirectStorage: handle BCPack output allocation failure #1381
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1381
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1381"
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?
@hajduzsolt on GitHub · 2026-11-24 15:25 UTC · original
hajduzsolt:fix/bcpack-output-allocation→main· +55 −1 · 2 files · 2 commits · openRuntime fix verified with unit tests and RX 9070 XT smoke run.
What is in it
Tested
cargo build --workspacecargo test -p xcl --lib oversized_output_returns_allocation_error: 1 passed.cargo test --workspace -- --test-threads=4 --nocapture: 752 passed, 0 failed, 41 ignored. The reported passes include tests that return early.test_title_draws_with_a_root_signature_under_the_debug_layeranduploads_start_from_each_subresources_state, because the D3D12 debug layer is unavailable.Regression run
main:
PR:
Not tested
AI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@futurepro62 on GitHub · 2026-11-24 15:33 UTC · original · edited 2026-11-24 15:38 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
a714559(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.oversized_output_returns_allocation_error.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 16:49 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@throny on GitHub · 2026-11-25 00:26 UTC · original
Two contributors checked independently and found that #1438 #1785 solves the same problem (for #1392) in a different way: #1607, group D54. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@anes66 on GitHub · 2026-11-25 06:02 UTC · original
CPU-only allocator-refusal verification on exact head
a71455945d0373b19b67f845251a4e1991509374passed. Optional test companion 98886cb adds one test only, directly on that head.The existing
usize::MAXregression covers a capacity overflow. This additional case uses a representable, block-aligned 128 MiB output size and a 64 MiB Windows Job Object process-commit cap applied only to an isolated test child, so it exercises a real allocator refusal without exhausting the machine's memory.Tested
Error::Allocation; the child completed normally. Creating/configuring/assigning the job must succeed or the test fails.cargo test --locked -p xcl --lib hle::bcpack::tests:: -j 2 -- --nocapture --test-threads=1: 8 passed / 0 failed / 0 ignored / 0 skips. This includes the original oversized-output test, synthetic fixtures, malformed-input checks and the new child test. The nested child summary is the same test invocation and is not counted again.vec![0u8; out_len]: the child aborted and stderr containedmemory allocation of 134217728 bytes failed; the parent test failed as expected. Restored before the final passing suite and commit.Not tested
Whole-system exhaustion, intermediate decoder allocations, downstream DirectStorage error mapping, release, full workspace/GPU suite, retail smoke or newer-main integration. This verifies graceful refusal of the output allocation, not that every allocation in a title run becomes recoverable or that #1381 fixes a particular retail crash.
AI use: Codex (GPT-6; exact variant unavailable) wrote the test and temporary negative control, ran CPU verification and prepared this report.
@hajduzsolt on GitHub · 2026-11-25 14:46 UTC · original
Thanks @anes66 for the additional regression test. Commit
17bcfe6includes your isolated child-process test, which checks that each supported BCPack mode reports allocation refusal under a 64 MiB process commit limit rather than aborting.cargo test -p xcl --lib output_allocation_refused_by_windows_returns_an_error -- --test-threads=2: 1 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=2: passed, 0 failures; the xcl unit suite reported 709 passed and 21 ignored, with additional workspace and documentation tests passing.The updated head is queued for automated RX 9070 XT smoke verification.
@DavidM1911 on GitHub · 2026-11-26 05:03 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.