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 11:17:00 +00:00 by 64bitMango · 2 comments
64bitMango commented 2026-11-26 11:17:00 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by 64bitMango on 2026-11-26T11:17:00Z.


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6625487307 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42). Originally posted by [64bitMango](https://github.com/64bitMango) on 2026-11-26T11:17:00Z. --- 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.
LakshanSivakumar commented 2026-11-26 13:28:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T13:28:34Z.


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7193402762 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42#issuecomment-7193402762). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T13:28:34Z. --- 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 commented 2026-11-26 15:56:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T15:56:56Z.


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.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7196969267 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/42#issuecomment-7196969267). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T15:56:56Z. --- 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.
Sign in to join this conversation.
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
LakshanSivakumar/Native-Victory-macOS#42
No description provided.