xcl run: a thread dump line reaches the title's frames under a deep stack #1734
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!1734
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1734"
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?
@JRamos1993 on GitHub · 2026-11-24 20:02 UTC · original
JRamos1993:thread-dump-title-frames→main· +59 −2 · 1 files · 1 commits · openA thread dump line showed each thread's top 14 frames. A title thread deep in XCL, the driver or DXC had all 14 of its frames there, so its line named no title frame and read like one of XCL's own threads. Examples are a compute pipeline the thread builds in a bind, or a compile it waits for. I misread such lines in a world-load stall of the retail title in #846; my report there explains how.
The dump now unwinds up to 96 frames. When none of the top 14 is in the title's code but a deeper one is, the line adds how many frames were left out and the title's first 4 frames from there. All other lines are unchanged. Related: #846, #924.
#253 changes the same call (
unwindreads a copy of the stack there). Whichever of the two lands second needs a one-line rebase.What is in it
crates/xcl/src/eh.rs:dump_framespicks a line's frames: the topDUMP_FRAMES(14). When none of those is in the title's code, it adds… N frames …and the title's firstDUMP_TITLE_FRAMES(4) frames.dump_threadsunwindsDUMP_UNWIND(96) frames and passes them to it.modules::image_base_for_addr: the images XCL maps itself, which are the title's exe and DLLs. It takes no lock.a_dump_line_reaches_the_title_frames_under_a_deep_stackanda_dump_line_is_the_top_frames_otherwise.Tested
x86_64-pc-windows-msvc, and again withx86_64-pc-windows-gnu.x86_64-pc-windows-gnu.cargo test --workspace -- --test-threads=4ond18b275, aftercargo build --workspace: 860 passed, 0 failed, 42 ignored, the same with both toolchains. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows). Both new tests pass.XCL_NETWORK=0 XCL_PRESS_AT=25:A XCL_THREAD_DUMP_AT=88,96.… N frames …and their first title frames. Those frames were 18 to 53 frames deep.main, such threads' lines had no title frame.Regression run (60 s, no input)
main:
PR:
In these 60 s runs the title takes one of two paths, whatever the build: about 16–17 GB peak commit with ~1,600 frames, or about 25–26 GB with ~1,300 frames. Two other runs took the heavier path: a second
mainrun onc160d86(1,302 frames, 26.5 GB) and an earlier PR run onbe07955(this change with 40 frames: 1,361 frames, 25.4 GB). Without a thread dump this change does not run.Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 21:14 UTC · original · edited 2026-11-24 21:56 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
d18b275(on its basec160d86).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 859 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_dump_line_reaches_the_title_frames_under_a_deep_stack,a_dump_line_is_the_top_frames_otherwise.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 860 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 22:37 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
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.