Skip to content

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

Open
meeyao wants to merge 1 commit into
fxceless:mainfrom
meeyao:linux-watchdog
Open

meeyao wants to merge 1 commit into
fxceless:mainfrom
meeyao:linux-watchdog

Conversation

@meeyao

@meeyao meeyao commented Nov 24, 2026

Copy link
Copy Markdown

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.

…DOG)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant