loader: carry the watchdog hooks from upstream #454 (VICTORY_NO_WATCHDOG) #364

Open
github-bot wants to merge 1 commit from github-bot/gh-364 into main AGit
Owner

@⁠meeyao on GitHub · 2026-11-24 23:56 UTC · original
meeyao:linux-watchdog → main · +104 −0 · 3 files · 1 commits · open

The title ends its own process when it decides the GPU has stopped making progress: a deliberate mov dword [0], imm32 at +0x23cf683, called from +0x2215c35, about 6–8 minutes after the world starts (earlier during loading on a cold pipeline compile).

This carries the opt-in VICTORY_NO_WATCHDOG hooks from upstream Marvisak/VIctory #454. They check the build hash (b99f876b74d4a77f) and the exact bytes, jump over the call, and NOP the deliberate fault. Off unless the variable is set; if #454 lands upstream this can be dropped in its favour.

Evidence:

  • @⁠Peppacodes on Windows (RTX 5080): as published, the title killed itself during loading at +0x23cf683; with these hooks the first cold compile became a single 122 s frame and the lit opening scene rendered at ~310 ms/frame.
  • On Linux/Proton every run ended at +0x23cf683 after 6–8 minutes; with the hooks the world kept running.

Do not patch the watchdog thread's entry instead. That was tried: it stops the kills but the title then never draws (0 shaders translated, 0 frames). The comment in hooks.rs records it.

Checked with cargo xwin check --all-targets -p victory-loader --target x86_64-pc-windows-msvc.

**@⁠meeyao** on GitHub · 2026-11-24 23:56 UTC · [original](https://github.com/fxceless/victory-fork/pull/364) `meeyao:linux-watchdog` → `main` · +104 −0 · 3 files · 1 commits · open The title ends its own process when it decides the GPU has stopped making progress: a deliberate `mov dword [0], imm32` at `+0x23cf683`, called from `+0x2215c35`, about 6–8 minutes after the world starts (earlier during loading on a cold pipeline compile). This carries the opt-in `VICTORY_NO_WATCHDOG` hooks from upstream Marvisak/VIctory #454. They check the build hash (`b99f876b74d4a77f`) and the exact bytes, jump over the call, and NOP the deliberate fault. Off unless the variable is set; if #454 lands upstream this can be dropped in its favour. Evidence: - @⁠Peppacodes on Windows (RTX 5080): as published, the title killed itself during loading at `+0x23cf683`; with these hooks the first cold compile became a single 122 s frame and the lit opening scene rendered at ~310 ms/frame. - On Linux/Proton every run ended at `+0x23cf683` after 6–8 minutes; with the hooks the world kept running. Do not patch the watchdog thread's entry instead. That was tried: it stops the kills but the title then never draws (0 shaders translated, 0 frames). The comment in `hooks.rs` records it. Checked with `cargo xwin check --all-targets -p victory-loader --target x86_64-pc-windows-msvc`.
The title ends its own process when its main thread has not advanced,
writing to address 0 at +0x23cf683. Upstream Marvisak/VIctory #454 adds
the opt-in hook; this fork does not have it, so VICTORY_NO_WATCHDOG was
silently ignored and every run died after six to eight minutes.

The hooks check the build hash (b99f876b74d4a77f) and the exact bytes,
then jump over the call and NOP the deliberate fault. Do not patch the
watchdog thread's entry instead: that stops the kills but the title then
never draws.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:41:44 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/364/head:github-bot/gh-364'
git switch 'github-bot/gh-364'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-364'
git switch 'github-bot/gh-364'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-364'
git switch 'github-bot/gh-364'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-364'
git switch 'main'
git merge --squash 'github-bot/gh-364'
git switch 'main'
git merge --ff-only 'github-bot/gh-364'
git switch 'main'
git merge 'github-bot/gh-364'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.