[GH-ISSUE #1602] finding: post-#984 main (1cfc29af7) on 5060 Ti / Proton 11 SLR, watchdog defused — full boot arc: 529 s pool-commit convoy → ttdb content load → fatal INT3 at exe+0x131a2ad (E_INVALIDARG) after 28.3-min pipeline-compile storm #43

Open
opened 2026-11-26 20:14:05 +01:00 by 4ld0 · 2 comments
Owner

Originally created by @tengotengo on GitHub (Nov 25, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1602

finding: first run on post-#984 main (1cfc29af7) — 5060 Ti / Proton 11 SLR, watchdog defused, cold cache: full boot arc across 3 runs (run-1 49-event trace → run-2/3 long-holds)

Post-#984 main (branch launch3 @ 1cfc29af7; build chain 82 min, 26,503/26,503 graphics .spv reconciled against spirv/index.json, 0 missing / 0 extra) on RTX 5060 Ti + 32 GB RAM, Proton 11 SLR (cachyos-11.0-20261015-slr), dedicated prefix, RPF page cache pre-faulted (all 12 .rpf = 121.5 GiB read in 51.7 s at ~2.5 GB/s), env LEONIDA_TITLE_WATCHDOG=0 + LEONIDA_KEYBOARD_PAD=1. dry-run + --init both exit 0. LEONIDA_HANG_DUMP= does not exist in post-#984 main's runtime source (boot-branch-only knob) — a no-op env var in this build.

--trace + --trace-d3d12 timeline (run-1, 49 events):

  • t=1.27 s — 4 modules mapped @ 0x140000000 (game exe 0xb06d000, no relocations), TLS callbacks OK
  • t=2.52 s — XMemVirtualAlloc 24 GiB ×2 (attrs 0x21 / 0x3) + 1.14 GiB (0x183) + 2.15 GiB (0x283); t=2.98 s XMemAllocatePhysicalPages 11,360 pages (0x280)
  • t=2.84–2.89 s — all 12 .rpf opened
  • t=3.26 s — package_splash_window (first window reached on Proton in this operation — launch-1 on the pre-#984 stack died pre-window at t≈5 s)
  • t=9.24 s — package_splash_present (first present)
  • t=24.10 s — story arena: 185 MiB (0x7) + 10 MiB (0x27) virtual; t=30.10 s 64 MiB default alloc
  • t=30.59 s — XMemAllocatePhysicalPages 99,776 pages (attrs 0x380, caller exe+0x1e6c232) = 6.09 GiB — the 0x380 site among the four measured XMemAllocatePhysicalPages call sites (words {0x180, 0x280, 0x280, 0x380}); consistent with the 6.09 GB pool term in the 32 GB OOM analysis quoted on this issue
  • t=30.64 s — XMemVirtualAlloc 6,538,919,936 B (attrs 0x23, caller exe+0x1e6c278) — size exactly 99,776 × 64 KiB — LAST EVENT of the 49-event trace

What the 49-event trace "stall" actually is (runs 2–3, long-holds):

  • It is a deterministic ~529 s CPU-side per-page commit convoy, NOT a deadlock: run-2 resumed at t=559.72 s (528.78 s gap), run-3 at t=557.56 s (527.18 s gap). 30-second CPU deltas across the park: steady ~1.7 user + 0.7 kernel cores (run-3: ≈ 99,776 pages × ~12.7 ms core-time/page), never flat; swap flat (362→363 MiB) and no backing file (LEONIDA_XMEM_BACKING_DIR unset → pagefile-backed section) → CPU-side fault path, not pagefile I/O. eu-stack mid-park: all threads in wine waits, zero frames in the game image; wineserver idle in epoll with nothing queued to signal.
  • Resumption (~t=557–560 s): ACP audio HAL init (ApuCreateHeap 477 MiB cached, AcpHalCreate/Connect) + XMemAlloc 384 KiB (0xf0814000 — a round-1 exe-measured XMemAlloc value) + 97 file_open events = 49 distinct opens: the ENTIRE ttdb content database (maps×8, terrain×9, interiors×4, peds×10, props×6, vehicles×4, weapons×2, vfx, ui×2, lighting, graphics .ttpf) + pack/core_bvh4/core_bvh4.rpf + pack/core_licenses/core_licenses_data.rpf + t:\telemetrycache.dat.
  • Then STALL #2 (pin t=563.94 s run-3 / t=565.35 s run-2): a TRUE FATAL WALL — a 28.3-min compute-pipeline-compile storm: eu-stack top thread (455 s utime, 40% of process CPU) in thunk64_vkCreateComputePipelines → _nv002nvvm (NVIDIA driver compute-pipeline compile) + vkWaitSemaphores; ~1.9 user + 0.1 kernel cores with NO decay over the full 28 min (utime 106,410 → 346,231 ticks over 1260 s); GPU VRAM 1.1 → 3.1 GiB (pipelines landing on-device); RAM peak 9,916 MiB of 32 GB, swap flat — no OOM wall; fd count 628–632 (no per-page handle explosion; one section + one scratch view backs the pool).
  • FATAL END (run-3, t=2262.82 s): exception 0x80000003 (INT3) at game_scarlett_master.exe+0x131a2ad — a NEW int3 site — r8=0x80070057 (E_INVALIDARG), rdx=0xffffff01, rcx=0x981, r12=0xc13, r15=0x282; stack +0x131a2ad ← +0x24740d5 ← +0x2473903 ← +0x3239287 ← +0x221c29c ← +0x2215eca ← kernel32/ntdll — routed through the 0x2474xxx device/heap family (home of the +0x2474606 device-removed int3) and the 0x2215xxx supervisor frame from the 30 s watchdog path. WER wrote its own MDMP (315,288 B).

Context: with the watchdog ARMED (the default), this run would have died in the ~529 s convoy phase at t≈61 s — the pre-#984 "30 s watchdog" deaths on this stack were the same time-slicing of an earlier slow phase (the t≈5 s one); the compile wall is only observable with LEONIDA_TITLE_WATCHDOG=0. This is the community's known cold pipeline-compile wall, now observed on Proton/Blackwell to its (fatal) end. Side note: Proton conhost spun 99% CPU in wayland_window_surface_flush (a Wayland surface re-flush loop) — CPU tax, not a stall factor.

No game data. AI-assisted.

ROUND-7 CORRECTION (2026-11-25 19:0xZ — see the new round-7 finding on #1608): the wild-branch mechanism in the ROUND-6 section above was WRONG. The fatal int3 at +0x131a2ad is the arena page resolver's OWN test %al,%al; je (byte 84 c0 — tests AL, the low byte of RAX, the callee's success flag; the round-6 note misread it as testing R8). The trace has rax=0x0, so the trap fired LEGITIMATELY — no corrupted indirect branch. The al=0 came from vtable slot 133 (call *0x428(%r10) @ 0x14193e2d4) on the D3D12XboxCreateDevice device returning E_INVALIDARG 0x80070057; r8=0x80070057 and rdx=0xffffff01 at the trap are the slot-133 method's own leftovers (the hr wrapper 0x144e9b660 is pass-through for E_INVALIDARG). Every traced register matches that failure tail: rcx=0x981 = u16@O+0x10 loaded at 0x14193e2fc (0x981&0x1f80=0x980 = the dispatch tag), r13=0x1197fe0000 = the 64 KiB page VA. Verdict: a port-side slot-133 d3d12-device gap (the known slot-133 stop family — cf. slauko 7156293568, #1544, #1558), not title-side arena corruption.

Originally created by @tengotengo on GitHub (Nov 25, 2026). Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/1602 finding: first run on post-#984 main (1cfc29af7) — 5060 Ti / Proton 11 SLR, watchdog defused, cold cache: full boot arc across 3 runs (run-1 49-event trace → run-2/3 long-holds) Post-#984 main (branch launch3 @ 1cfc29af7; build chain 82 min, 26,503/26,503 graphics .spv reconciled against spirv/index.json, 0 missing / 0 extra) on RTX 5060 Ti + 32 GB RAM, Proton 11 SLR (cachyos-11.0-20261015-slr), dedicated prefix, RPF page cache pre-faulted (all 12 .rpf = 121.5 GiB read in 51.7 s at ~2.5 GB/s), env LEONIDA_TITLE_WATCHDOG=0 + LEONIDA_KEYBOARD_PAD=1. dry-run + --init both exit 0. LEONIDA_HANG_DUMP=<sec> does not exist in post-#984 main's runtime source (boot-branch-only knob) — a no-op env var in this build. --trace + --trace-d3d12 timeline (run-1, 49 events): - t=1.27 s — 4 modules mapped @ 0x140000000 (game exe 0xb06d000, no relocations), TLS callbacks OK - t=2.52 s — XMemVirtualAlloc 24 GiB ×2 (attrs 0x21 / 0x3) + 1.14 GiB (0x183) + 2.15 GiB (0x283); t=2.98 s XMemAllocatePhysicalPages 11,360 pages (0x280) - t=2.84–2.89 s — all 12 .rpf opened - t=3.26 s — package_splash_window (first window reached on Proton in this operation — launch-1 on the pre-#984 stack died pre-window at t≈5 s) - t=9.24 s — package_splash_present (first present) - t=24.10 s — story arena: 185 MiB (0x7) + 10 MiB (0x27) virtual; t=30.10 s 64 MiB default alloc - t=30.59 s — XMemAllocatePhysicalPages 99,776 pages (attrs 0x380, caller exe+0x1e6c232) = 6.09 GiB — the 0x380 site among the four measured XMemAllocatePhysicalPages call sites (words {0x180, 0x280, 0x280, 0x380}); consistent with the 6.09 GB pool term in the 32 GB OOM analysis quoted on this issue - t=30.64 s — XMemVirtualAlloc 6,538,919,936 B (attrs 0x23, caller exe+0x1e6c278) — size exactly 99,776 × 64 KiB — LAST EVENT of the 49-event trace What the 49-event trace "stall" actually is (runs 2–3, long-holds): - It is a deterministic ~529 s CPU-side per-page commit convoy, NOT a deadlock: run-2 resumed at t=559.72 s (528.78 s gap), run-3 at t=557.56 s (527.18 s gap). 30-second CPU deltas across the park: steady ~1.7 user + 0.7 kernel cores (run-3: ≈ 99,776 pages × ~12.7 ms core-time/page), never flat; swap flat (362→363 MiB) and no backing file (LEONIDA_XMEM_BACKING_DIR unset → pagefile-backed section) → CPU-side fault path, not pagefile I/O. eu-stack mid-park: all threads in wine waits, zero frames in the game image; wineserver idle in epoll with nothing queued to signal. - Resumption (~t=557–560 s): ACP audio HAL init (ApuCreateHeap 477 MiB cached, AcpHalCreate/Connect) + XMemAlloc 384 KiB (0xf0814000 — a round-1 exe-measured XMemAlloc value) + 97 file_open events = 49 distinct opens: the ENTIRE ttdb content database (maps×8, terrain×9, interiors×4, peds×10, props×6, vehicles×4, weapons×2, vfx, ui×2, lighting, graphics .ttpf) + pack/core_bvh4/core_bvh4.rpf + pack/core_licenses/core_licenses_data.rpf + t:\telemetrycache.dat. - Then STALL #2 (pin t=563.94 s run-3 / t=565.35 s run-2): a TRUE FATAL WALL — a 28.3-min compute-pipeline-compile storm: eu-stack top thread (455 s utime, 40% of process CPU) in thunk64_vkCreateComputePipelines → _nv002nvvm (NVIDIA driver compute-pipeline compile) + vkWaitSemaphores; ~1.9 user + 0.1 kernel cores with NO decay over the full 28 min (utime 106,410 → 346,231 ticks over 1260 s); GPU VRAM 1.1 → 3.1 GiB (pipelines landing on-device); RAM peak 9,916 MiB of 32 GB, swap flat — no OOM wall; fd count 628–632 (no per-page handle explosion; one section + one scratch view backs the pool). - FATAL END (run-3, t=2262.82 s): exception 0x80000003 (INT3) at game_scarlett_master.exe+0x131a2ad — a NEW int3 site — r8=0x80070057 (E_INVALIDARG), rdx=0xffffff01, rcx=0x981, r12=0xc13, r15=0x282; stack +0x131a2ad ← +0x24740d5 ← +0x2473903 ← +0x3239287 ← +0x221c29c ← +0x2215eca ← kernel32/ntdll — routed through the 0x2474xxx device/heap family (home of the +0x2474606 device-removed int3) and the 0x2215xxx supervisor frame from the 30 s watchdog path. WER wrote its own MDMP (315,288 B). Context: with the watchdog ARMED (the default), this run would have died in the ~529 s convoy phase at t≈61 s — the pre-#984 "30 s watchdog" deaths on this stack were the same time-slicing of an earlier slow phase (the t≈5 s one); the compile wall is only observable with LEONIDA_TITLE_WATCHDOG=0. This is the community's known cold pipeline-compile wall, now observed on Proton/Blackwell to its (fatal) end. Side note: Proton conhost spun 99% CPU in wayland_window_surface_flush (a Wayland surface re-flush loop) — CPU tax, not a stall factor. No game data. AI-assisted. ROUND-7 CORRECTION (2026-11-25 19:0xZ — see the new round-7 finding on #1608): the wild-branch mechanism in the ROUND-6 section above was WRONG. The fatal int3 at +0x131a2ad is the arena page resolver's OWN `test %al,%al; je` (byte 84 c0 — tests AL, the low byte of RAX, the callee's success flag; the round-6 note misread it as testing R8). The trace has rax=0x0, so the trap fired LEGITIMATELY — no corrupted indirect branch. The al=0 came from vtable slot 133 (`call *0x428(%r10)` @ 0x14193e2d4) on the D3D12XboxCreateDevice device returning E_INVALIDARG 0x80070057; r8=0x80070057 and rdx=0xffffff01 at the trap are the slot-133 method's own leftovers (the hr wrapper 0x144e9b660 is pass-through for E_INVALIDARG). Every traced register matches that failure tail: rcx=0x981 = u16@O+0x10 loaded at 0x14193e2fc (0x981&0x1f80=0x980 = the dispatch tag), r13=0x1197fe0000 = the 64 KiB page VA. Verdict: a port-side slot-133 d3d12-device gap (the known slot-133 stop family — cf. slauko 7156293568, #1544, #1558), not title-side arena corruption.
Author
Owner

@lixonik commented on GitHub (Nov 25, 2026):

Thanks for recording this while #14 was full. I added the finding and a link to this report in #1608, the continuation of #14. If this was only a temporary place to post the finding and you are tracking the startup stall elsewhere, would you consider closing it?

<!-- gh-comment-id:7154639778 --> @lixonik commented on GitHub (Nov 25, 2026): Thanks for recording this while #14 was full. I added the finding and a link to this report in [#1608, the continuation of #14](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7154627786). If this was only a temporary place to post the finding and you are tracking the startup stall elsewhere, would you consider closing it?
Author
Owner

@tengotengo commented on GitHub (Nov 25, 2026):

Thanks for the index entry and the quick read. Keeping #1602 open — it's the permanent data record (the index bullet links here for detail), and I've just amended the body to the full run-1→3 arc: the t≈30.6 s "stall" is actually a deterministic ~529 s CPU-side pool-commit convoy that COMPLETES (runs 2–3 resumed at t≈557–560 s into ACP audio init + the full ttdb content-DB load), and the real wall is a 28.3-min compute-pipeline-compile storm ending in a new fatal INT3 at exe+0x131a2ad on E_INVALIDARG, routed via the 0x2474xxx/0x2215xxx families — details in the body. Filing the focused data point on #1608 now.

<!-- gh-comment-id:7156910745 --> @tengotengo commented on GitHub (Nov 25, 2026): Thanks for the index entry and the quick read. Keeping #1602 open — it's the permanent data record (the index bullet links here for detail), and I've just amended the body to the full run-1→3 arc: the t≈30.6 s "stall" is actually a deterministic ~529 s CPU-side pool-commit convoy that COMPLETES (runs 2–3 resumed at t≈557–560 s into ACP audio init + the full ttdb content-DB load), and the real wall is a 28.3-min compute-pipeline-compile storm ending in a new fatal INT3 at exe+0x131a2ad on E_INVALIDARG, routed via the 0x2474xxx/0x2215xxx families — details in the body. Filing the focused data point on #1608 now.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#43
No description provided.