Repository navigation
Conversation
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
|
Triage verdict — Needs a regression test ( Evidence
Checks and limits
Next step
This verification was AI-assisted. |
catminou4
left a comment
There was a problem hiding this comment.
Verified locally: macOS arm64, rustc 1.98.1, PR head merged into main 940d32f — cargo check -p victory-loader --locked passes clean (2 pre-existing warnings).
Thread-spawn failure in detach_all no longer panics — correct error propagation for a destructor-ish path that must not unwind. Note: victory-loader's test suite is broken on macOS/Linux on main pre-existing (prepare::tests parse Mach-O as PE), so runtime verification is Windows-only; the compile check + small diff is the evidence here. Approving.
|
Thanks for the catch @jeremygold02! Pushed commit
Verified locally on Windows 11 (
|
|
Automated triage for the maintainers.
Trade-off for the maintainer: if spawning fails, a detach that hangs is no longer bounded by the watchdog. The PR documents this, and it replaces an abort that happened every time. CI: passing ( Recommending a look, not approving. Generated by Claude Code |
|
Automated triage for the maintainers, second look (a review against current Closing because the failure needs a toolchain the project does not build with. If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
|
Independent native Windows11 control now supports the toolchain distinction in the closing comment. I built identical source Source, exact matrix, commands and artifact SHA-256. MSVC build/test run passed19 app,156 HLE and35 loader tests before building the release executable. The earlier separate GNU experiment with original #1996 also passes, with its original author/history retained; this is verification evidence, not a new production PR. AI-assisted with Codex; own synthetic programs only, no GPU/game data. No failure reproduced on the supported MSVC build. |
Root cause
detach_all()(registered viaatexit) callsstd::thread::spawnfor the 5-second detach watchdog. During WindowsExitProcessteardown,CreateThreadcan fail withERROR_ACCESS_DENIED(OS error 5), causingstd::thread::spawnto panic insideatexit(unhandled exception 0x20474343incrashes.log) instead of finishingDLL_PROCESS_DETACH.Fix
std::thread::Builder::new().spawn(...)incrates/victory-loader/src/threads.rsinstead of panicking onspawn.Ok, keep the existing watchdog TID wait loop and pass&[watchdog]toend_other_threads.Err, skip the 5-second watchdog wait loop and pass&[]toend_other_threadssoDLL_PROCESS_DETACHruns immediately without stalling or panicking.threads::tests::exit_process_runs_detach_all_without_panic(viaexit_process_childcallingattached(0)+ExitProcess(0)) to verifydetach_allcompletes cleanly underExitProcess.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(passed)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(passed)cargo test -p victory-loader --lib --locked(36 passed, 0 failed)cargo test -p xtask --locked(6 passed, 0 failed)