Repository navigation
Conversation
A gate held past a minute now prints one line a minute naming what kept it: the releaser signalling, a title ExecuteCommandLists, a running write group or action, the present settle, the title still calling, or the quiet window. Counts and seconds only. list_value_progress.h gains hold_reason()/hold_text()/report_due() beside the policy; decide() and can_progress() are untouched. The pure test covers every outcome and the 59/60/61 s rate limit.
b6347e8 to
55eb8ab
Compare
|
The
Every other check passes ( I could not rerun the job — AI-assisted. |
KelboLive
left a comment
There was a problem hiding this comment.
Checked hold_reason() against can_progress(): same tests, same order, and both are rebuilt from this pass's groups/view/activity under mutex_ (d3d12_xs_list_values.h:1180-1251), so nothing stale or guessed is reported. Log volume is fine — one process-wide Pump (:481-484), one report_due() per 60 s (list_value_progress.h:195-198), not per gate — and the fprintf under mutex_ adds no new lock order. The pure test pins the reason set: removing the write_running branch from hold_reason() fails it (list_value_progress_test.cpp:574).
But several wordings over-claim, and a diagnostics line that blames the wrong thing is worse than none:
submittingis the worst. It also fires onqueue_holds::any_progress()— unretired GPU work on any attached queue, async inbox items, worker turns, a pump pass, an unpumped signal (queue_holds.h:55-61,:174-181) — so the line can say "a title ExecuteCommandLists is in progress" while the title is completely idle.title_callingreads a masked value.activity.title_call_ms = max(title_call_ms_, last_progress_ms_)(:1192), andchoose_release()bumpslast_progress_ms_on layer progress (:1185,:1209,:1238), so for up to 2 s after a landing a silent title is reported as "still making queue calls". Honest todecide(), misleading to a reader.releasingover-claimslanded_any: it means "a write landed this pass", not "has gates to signal" (theActivitycomment says "or this pass moved";hold_textdrops that).write_running/action_runningare half true — the code's own comment at:1204says "running or already completed (waiting for the next pass to land)", and thedone >= …disjunct prints "running" for a group that finished. Usually transient, but a 60 s-old line can name a finished group.youngis not a cause. When the title has been quiet ≥2 s,decide()releases a candidate gate asstalled; a gate that still stays shut is not a candidate (an action gate, or a gate chained behind another queue's root), so "no candidate gate has waited out the quiet window yet" restates the last-resort test instead of naming the blocker.settlingis a 2 ms window that will essentially never hit a 60 s boundary — drop it or fold it in.
Two coverage notes: nothing tests note_held() or its call sites (removing the shim call at :1212 leaves the pure test green, and xs_proxy_mock_test holds gates far under 60 s), and wording is unpinned beyond non-empty plus young != settling (swapping write_running's text for settling's passes). Also, when any_relaying is set (:1143) choose_release() is not called at all, so a gate held behind a relay still prints nothing.
Suggested: split submitting into "a title call" vs "GPU work still unretired", drop or merge settling, and name the actual blocker in the young fallback (which queue's root or which action gate).
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
|
Review addressed in
On Not reopening: the close notice says the legacy C++ runtime is deprecated in favour of the Rust |
Claimed in the coordination issue as: CXX-HELD-GATE-LINE
What and why
A held console wait stays held while anything can make progress, and
docs/d3d12_xs_console_abi.md§5.5 lists the three deliberate ways it may go without its value. When none of them applies and the value never lands, the runtime says nothing: on this machine one run stood 101 minutes in one held console value with no presents and no queue calls, and the only way to learn why is to readd3d12_xs_list_values.h.This adds one diagnostic line, at most once a minute, once the oldest gate has been held for a minute:
The reason is one of the conditions
can_progress()reads, in its order — the releaser signalling, a titleExecuteCommandListsin progress, a running write group, a running action — then the shim's 2 ms present settle, then, when nothing can progress, the title still making queue calls or no candidate gate having waited out the quiet window. Counts and seconds only: no address, no title value.runtime/src/list_value_progress.h:Hold,hold_text(),hold_reason()(the same conditions, in the same order) andreport_due()(a minute's age, then one line a minute), next to the policy.decide()andcan_progress()are byte-for-byte unchanged; nothing reads the new functions.runtime/shims/d3d12_xs_list_values.h:note_held()and one call at each hold path inchoose_release(). It is aGetTickCount64()comparison and two integer tests per pass;fprintfruns once a minute at most.Tested
runtime/test/list_value_progress_test.cpp: everyhold_reason()outcome, thedecide()answer unchanged beside it, andreport_due()at 1 s, one ms short of a minute, exactly a minute, right after a line, a minute after one, and with a clock that went back. Built with clang-cl/xwin and run under Wine 11.22:all checks passed, exit 0.xs_proxy_mock_test(compiles the shim and drives the pump end to end) built and run under the same Wine:PASS (12 allocations refused on purpose), exit 0; no new compiler warnings in either changed file.cmake -S runtime -B runtime/build/windows -G Ninja --toolchain runtime/cmake/clang-cl-xwin.cmake -DXWIN_DIR=$HOME/.local/share/xwin-sdk -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_SDL3=OFF -DLEONIDA_VULKAN_HEADERS_FETCH=OFF.choose_release().No game files, no game data and no GPU: both tests are synthetic and CPU-only.
GPUs tested: none needed (CPU-only tests, Wine 11.22 on Linux).
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md. (n/a: runtime diagnostics only)