Launcher: the profile ask's bound comes, and an install holds no window #480
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!480
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-480"
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?
@erdemcisse on GitHub · 2026-12-02 15:53 UTC · original
erdemcisse:launcher-profile-answer→main· +55 −11 · 1 files · 1 commits · closed without mergingThe title profile row asks
victory.exe title-profile status, and Load title profile askstitle-profile install.AskVictorybounded that ask -- but the bound could not come:ReadToEndreturns when the pipe closes, and the pipe closes when the process has gone, so the wait after it is always true. Avictory.exethat stalls -- a game folder on a network share, an install whose folder does not answer -- leaves the row at "checking..." for good. The comments above both call sites say the work is slow (it hashes the game's executable, "100 MB and more"), which is why it is worth bounding at all.Measured with a stand-in that says nothing and stays five seconds, the two spellings of the method side by side, bound 1000 ms:
loaded C:\gamesWhat changed
BeginOutputReadLine/BeginErrorReadLine) into lists under a lock.EndProcess, the call the rest of the launcher uses) and the answer is "victory.exe did not answer".title-profilewrites its notes (its log) to that pipe too, so this is gated on a non-zero exit: a run that ended well says nothing new.Not changed
The strings the row and the button show, the 60-second bound itself, and
CheckProfile(already off the UI thread).Tested here
scripts/build-launcher.ps1builds the patched file with the csc this PC has (C# 5), and the launcher starts. The table above is a scratchharness.exeholding both spellings of the method and a stand-invictory.exe(sleep, optional lines on either pipe, optional failing exit); each row is one run. The real binary answers this game folder in 171 ms withnot-loaded, unchanged by this patch.@erdemcisse on GitHub · 2026-12-02 16:05 UTC · original
CI is red here in a test of a crate this change does not touch:
descriptor::tests::records_copied_as_bytes_are_made_at_the_next_syncpanicked atcrates/victory-gpu/src/descriptor.rs:2736(assert!(host.made(5))), 619 passed, 1 failed, in run 46920076425.It is order-dependent, not this commit:
sync_heaps()walks every heap registered, so a round of another test can take this heap's changed page for itself and then make no slot from it. The same file names that forcleared_before_made(crates/victory-gpu/src/descriptor.rs:2785-2787) and retries there; this test did not. With a second thread callingsync_heaps()it misses slot 5 in 2 or 3 of 200 rounds, and a round or two later makes it, so nothing is lost.#481 makes this test try again in the same way
cleared_before_madedoes.The whole workspace passes here on this commit: release build,
cargo test --workspace --locked, both clippy passes with-D warnings, andcargo xtask policy.00d75806f3to0cfa62cae5@erdemcisse on GitHub · 2026-12-03 15:14 UTC · original
Closing: superseded by
74941fcanda22cdefon main.AskVictorynow reads both pipes as they come, ends victory.exe at the 60-second bound, and the install runs off the window's thread, which is what this PR did. Rebasing would add nothing.Pull request closed