Diagnostics: the hang watch names the event or semaphore each blocked thread waits on #31
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp!31
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/31/head"
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?
@Sr-0w on GitHub · 2026-11-25 13:35 UTC · original
Sr-0w:diagnostics/wait-objects→main· +509 −2 · 10 files · 1 commits · merged 2026-11-25 14:00 UTCA retail game's 30 s watchdog fired in this state:
The stacks showed who was waiting, but not which object, nor whether anything still signals it.
With
--watch-hang, the loader now keeps shims on the game'sCreateEventW/A,CreateSemaphoreExW,SetEvent,ReleaseSemaphore,CloseHandleandWaitForSingleObject(Ex)(WaitObjectShims). Without the flag they are removed, so a normal run still calls kernel32 directly.WaitObjectsrecords, for each object:It also records each thread's wait in progress. The hang dump lists every thread blocked for a second or more, with the handle, the timeout, how the object was created, and its last signal or "never signaled".
Tests:
Docs:
debugging.md(Hang watchdog) and the--watch-hangrow inloader.md.🤖 Generated with Claude Code
@ThatRecompDev on GitHub · 2026-11-25 14:00 UTC · original
great diagnostic, merged. danik's intro path sits on the story load until the watchdog with the loader idle, so knowing which event nobody ever sets is exactly what we need there.