Crash: VICTORY_STACKS_AT_KILL=1 prints every thread's stack when the title writes to address 0, its GPU watchdog's kill #1121

Merged
101Leafy merged 4 commits from upstream-pr/1121 into main 2026-11-29 08:16:57 +00:00
101Leafy commented 2026-11-28 13:42:52 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T13:42:52Z.


Problem

When the frame loop stops, the title's GPU watchdog (the thread at image+0x2215a60) waits 30 s and then writes to address 0 to end the process. The crash report names that write and the watchdog's own stack, but not what the frame loop was stuck in. VICTORY_STACKS=<seconds> can catch it only when the hang time is known ahead.

Change

VICTORY_STACKS_AT_KILL=1 (diagnostics builds) prints every thread's stack, through the existing stacks::dump_stacks, at the first access violation that writes to address 0. It runs once per process, from the first-chance handler, after the usual report. Off by default, and the plain build is unchanged.

Tested

Built with and without diagnostics. It only does something when set.

Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540723875 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1121). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T13:42:52Z. --- ### Problem When the frame loop stops, the title's GPU watchdog (the thread at image+0x2215a60) waits 30 s and then writes to address 0 to end the process. The crash report names that write and the watchdog's own stack, but not what the frame loop was stuck in. `VICTORY_STACKS=<seconds>` can catch it only when the hang time is known ahead. ### Change `VICTORY_STACKS_AT_KILL=1` (diagnostics builds) prints every thread's stack, through the existing `stacks::dump_stacks`, at the first access violation that writes to address 0. It runs once per process, from the first-chance handler, after the usual report. Off by default, and the plain build is unchanged. ### Tested Built with and without `diagnostics`. It only does something when set. Tested on: not run on a GPU yet. It was only built (see above), so there is no before and after to report.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1121
No description provided.