The title's "Building" pool fills up at low frame rates and the title stops at its own breakpoint #42

Open
opened 2026-11-26 14:43:49 +00:00 by github-bot · 2 comments
Owner

@⁠64bitMango on GitHub · 2026-11-26 11:17 UTC · original

From our Wine/D3DMetal port of the same build (1.0.2.1), in case it saves you time once the world runs.

What happens. About 8 minutes and ~185 world frames into the prologue (at 3-5 s a frame), the title raises a breakpoint (0x80000003) at image +0x5149aec (0x145149aec at base 0x1_4000_0000). That is the int3 its pool allocator hits when a pool's free list is empty. Same with ray-structure builds on or off; no stall or GPU error first.

Which pool. It is created at +0x5ad8e40 with 224-byte elements; its size comes from a lookup by name hash 0x5411e15c (joaat("Building"), map buildings). Capacity 22,500. In one run it held 8,521 / 9,088 / 10,866 at world frames 1 / 40 / 80. Our guess (unproven): map sections stream in by time but are released by rendered frames, so at seconds per frame they pile up. At a normal frame rate it would likely never fill.

Workarounds we found.

  • Step over the assert: the callers handle a null result (we did it with a "skip this title int3" switch, as in your loader's VICTORY_SKIP_TITLE_INT3).
  • Enlarge the pool at load: at +0x5ad8e60 replace the call e8 db 60 5f ff (the size lookup) with mov eax, 0x10000 = b8 00 00 01 00 (keep it at or below 65,536). We worked this out from the code but haven't confirmed it in a long run.

Related: after any gap of roughly 12 s or more with no new frame, the title's own frame watchdog thread ends the process with a write to address 0 (we saw it at +0x2215c35 and +0x23cf683). Long GPU stalls or slow first frames can trigger it.

**@⁠64bitMango** on GitHub · 2026-11-26 11:17 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42) From our Wine/D3DMetal port of the same build (1.0.2.1), in case it saves you time once the world runs. **What happens.** About 8 minutes and ~185 world frames into the prologue (at 3-5 s a frame), the title raises a breakpoint (0x80000003) at image +0x5149aec (0x145149aec at base 0x1_4000_0000). That is the `int3` its pool allocator hits when a pool's free list is empty. Same with ray-structure builds on or off; no stall or GPU error first. **Which pool.** It is created at +0x5ad8e40 with 224-byte elements; its size comes from a lookup by name hash 0x5411e15c (joaat("Building"), map buildings). Capacity 22,500. In one run it held 8,521 / 9,088 / 10,866 at world frames 1 / 40 / 80. Our guess (unproven): map sections stream in by time but are released by rendered frames, so at seconds per frame they pile up. At a normal frame rate it would likely never fill. **Workarounds we found.** - Step over the assert: the callers handle a null result (we did it with a "skip this title int3" switch, as in your loader's `VICTORY_SKIP_TITLE_INT3`). - Enlarge the pool at load: at +0x5ad8e60 replace the call `e8 db 60 5f ff` (the size lookup) with `mov eax, 0x10000` = `b8 00 00 01 00` (keep it at or below 65,536). We worked this out from the code but haven't confirmed it in a long run. Related: after any gap of roughly 12 s or more with no new frame, the title's own frame watchdog thread ends the process with a write to address 0 (we saw it at +0x2215c35 and +0x23cf683). Long GPU stalls or slow first frames can trigger it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:43:49 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 13:28 UTC · original

Thanks for documenting the "Building" pool int3 (image+0x5149aec) and the watchdog details, @⁠64bitMango. The watchdog addresses (+0x2215c35 / +0x23cf683) already match what testers are seeing during stalled prologue/slow-storage loads (#15, #26), so having the "Building" pool behavior and VICTORY_SKIP_TITLE_INT3 / size notes recorded here will save time once runs reach deeper into the prologue. Added the bug label.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 13:28 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42#issuecomment-7193402762) Thanks for documenting the `"Building"` pool `int3` (`image+0x5149aec`) and the watchdog details, @⁠64bitMango. The watchdog addresses (`+0x2215c35` / `+0x23cf683`) already match what testers are seeing during stalled prologue/slow-storage loads (#15, #26), so having the `"Building"` pool behavior and `VICTORY_SKIP_TITLE_INT3` / size notes recorded here will save time once runs reach deeper into the prologue. Added the `bug` label.
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 15:56 UTC · original

Status: not reachable yet. The story load stops in the prologue (see #15) well before this pool fills. Recorded for when runs get that far. No action needed.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 15:56 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42#issuecomment-7196969267) Status: not reachable yet. The story load stops in the prologue (see #15) well before this pool fills. Recorded for when runs get that far. No action needed.
This discussion has been locked. Commenting is limited to contributors.
No description provided.