Runs that "crash" ~30 s after a stall (e.g. at the prologue) are the title's own watchdog: how to identify and disable it #3624
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from Marvisak/VIctory. Originally posted by transbinaryunicorn-sys on 2026-11-27T23:17:55Z.
Hi
Played around with claude and found out something importand, the Whatchdog can cause trouble
here is a detailed Claude generated help. got ingame after 5 hours chasing clouds cause of the whatchdog...
If your run ends with this at the transition into the prologue (or after any long stall):
then it is not a crash in VIctory or in the translated code. It is the title's own watchdog, which deliberately writes to address 0 when the game has not sent a heartbeat for 30 seconds. Whatever stalls the game (GPU hang/TDR, slow pipeline creation with a cold cache, loading) only triggers it.
Offsets are for image
b99f876b74d4a77f, title version930.048.020-vb_sub_story. See below for how to find them in other versions.How it works
The watchdog runs on its own thread (function at image
+0x2215a60, thread start around+0x2215ea0):Sleep(1000)).0x1471b6338, written by the function at0x1422159f0) with the last value it saw.mov $0x1e, %ebp). At 0 it calls a crash hook and then executesmovl $0x4d8bd421, 0x0at+0x23cf683. That is a deliberate write to NULL with the code0x4D8BD421.Sleep(machine suspended) or the suspend/resume notifications reset the countdown.0x1471b6334only enables an extra check over 64 per-subsystem entries. Setting it to 0 does not stop the 30 s countdown.0x1471b6340(bit 0) is the watchdog's quit flag. It is checked at the start (+0x2215ab8) and in every round (+0x2215c44,+0x2215dba). If it is set, the thread cleans up and returns. Nothing crashes.The title's crash report (
<data_dir>/<title id>/temp/victory-*.crash.log) is written at that moment and looks normal (game state, streaming requests, pools). It does not mention the watchdog.Workaround (diagnostics build)
VICTORY_POKE(diagnostics builds,apps/victory/src/run.rs) keeps writing the byte, so the watchdog thread exits on its next wake-up. With it, runs that used to end at the prologue continue into the game.This hides the stall, it does not fix it. If the game is waiting on something that never comes (e.g. a real GPU hang), it will now hang instead of exiting. Still, it shows whether a "crash" is a real fault or just a slow phase. For example, on Linux + RTX 5090 with a cold cache, the prologue first runs at ~1 fps and then continues.
Finding it in another title version
The crash instruction is unique and easy to find in the converted image (
<cache_dir>/images/victory-image-<hash>.dll):Its caller is the watchdog loop. Look for
mov $0x1e, %ebp(the 30 s countdown) and, at the top of the function, amovb <flag>(%rip), %al; testb $0x1, %al; jne <exit>. That<flag>is the quit flag. Its address minus the image base (0x140000000) is the RVA forVICTORY_POKE.Suggestion
Ideas for something better than a POKE:
That last one alone would have saved me a day: I spent it bisecting shaders, vkd3d options and driver behavior on Linux/NVIDIA before I saw that the "crash" was intentional.
Related, for Linux users without the native
d3dcompiler_47.dllWine's builtin
d3dcompiler_47(vkd3d-shader) rejects the indirect argument clamp HLSL:Then every indirect execution is dropped (~1300/frame in the world) and the world renders black while menus work. Rewriting the clamp to
StructuredBuffer<uint>(b.Load3(a)→uint3(b[a/4], b[a/4+1], b[a/4+2]),b.InterlockedOr(a, …)→InterlockedOr(b[a/4], …), no[allow_uav_condition]) plus serializing the root signature withD3D12SerializeRootSignaturewhenCreateRootSignatureon the blob fails (vkd3d-shader drops the[RootSignature]attribute) fixes it. I can post details if anyone needs them.Setup used: Nobara Linux, RTX 5090, NVIDIA 615.78.08, GE-Proton11-7, vkd3d-proton master
71cae09, DXVK dxgi, built from thegabeparra/victory-4090tree.