fix(hooks): stop the hang after the binoculars scene (view finish job spinning on an object the instance map lacks) #103
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/gamingwithhomie--larp!103
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-103"
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?
@Molier on GitHub · 2026-12-05 18:29 UTC · original
Molier:fix/view-finish-hang→main· +203 −3 · 2 files · 1 commits · merged 2026-12-05 19:00 UTCFixes #55, fixes #66 (the hang right after the binoculars scene in chapter 1, Donny / the boat mission:
stall: no frame begun for 20 s, then the title's watchdog writes to 0 at+0x2215c35).Cause
In all four hangs we captured (full stack dumps from larp's stall reporter, plus one crash dump), every title thread waits on one job thread, and that thread is not waiting: it spins in the view finish job's lookup of an object in the frame's instance map. That lookup never stops at an empty slot (the map's other lookup does), so an object the map does not hold makes it loop for ever. The whole frame waits on it, nothing is submitted ("between submissions (of 0 lists), 0 threads of ours noted a wait"), and ~30 s later the watchdog ends the process.
Change
In the
view_finishedhook, before the title's job runs, larp looks up every object of the view's list the same way the job will. Objects the map does not hold are left out of a copy of the list for that call; the title's own list pointer and count are restored afterwards. Each case is logged (view finish: the frame's instance map does not hold the object ...) with the object's pool, key and whether the map holds it under the pool index's low four bits.crates/larp-game/src/hooks.rs, like the other hooks.Tested
RX 9070 XT, Linux (Proton GE 11-16), on a branch with this commit on top of current main: the scene that hung 4 times out of 4 played through. The log showed the guard firing once: one frame, one view, 16 of 610 objects (pools 1 and 4) not in the map, none of them held under another pool index. So it is not a truncated pool index; a few objects simply reach the job without having been inserted for that frame, around the scene change. Nothing visibly missing.
This is a guard, not the root fix of why those objects were not inserted; the log lines make that traceable if anyone wants to dig further. Windows not tested by me; the hook path is the same.