[Tester] M4 Max 36 GB: world torn/overexposed, GPU OutOfMemory, then WindowServer hung and the Mac reset #521

Open
opened 2026-11-28 00:09:03 +00:00 by Stooovie · 6 comments
Stooovie commented 2026-11-28 00:09:03 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:09:03Z.


Mac

Apple M4 Max, 36 GB, macOS 27.2.1

Commit

86cefd22

How far did it get?

Further than that: boot movie, start screen and setup screens at 30 fps, story load, and the prologue world reaches the window (torn and overexposed)

What happened

Built with tools/macos/native-setup.sh on an M4 Max (Mac16,9), 36 GB, macOS 27.2.1 (26B131), console=series-x. Apple's Metal Shader Converter installed at /usr/local/lib/libmetalirconverter.dylib. The game files are on a local SSD.

What I saw

  • Boot movie, start screen and every setup screen render natively at about 30 fps, audio works, keyboard drives the pad.
  • Story mode loads and the prologue runs. The world does reach the window, but it is a torn, overexposed mess: pieces of geometry missing or unlit, bright blown-out flare-like areas over dark silhouettes, no coherent scene. Not a flat grey or black window, a broken picture.
  • Frame rate drops from 30 fps to 0.4 fps at frame ~2368 (+241.6 s); overall 9.9 fps for the run.
  • 297 refusal lines, 264 loaded shaders dropped. Biggest refusal reasons in this run: 92 a descriptor neither loaded nor built is not supported, 58 a lane-mask join of an untracked mask: data, at a join of several edges, 32 a lane mask holding lanes elsewhere read as data: a program input, 29 a descriptor's address or format read as data: an image's dwords.

This is the part I think matters most: it took the whole Mac down.

  • t=+246.0s: Metal Timeout x3 and Other x2 on frame ~2368.
  • t=+257.9s frame ~2369: Another Other, and a Metal OutOfMemory.
  • t=+283.0s frame ~2369: VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 — the process dies.
  • The same second, macOS's WindowServer hangs: /Library/Logs/DiagnosticReports/WindowServer-2026-11-28-010633.ips, bug_type 409, namespace WATCHDOG, monitoring timed out for service, "40 seconds since last successful checkin", plus WindowServer_2026-11-28-010641_Mac-Studio.userspace_watchdog_timeout.spin.
  • 01:07:17: /Library/Logs/DiagnosticReports/ResetCounter-2026-11-28-010717.diag, bug_type 115, Boot failure count: 1, Boot faults: rst btn_rst,btn_seq_reset target_off_restart. WindowServer and loginwindow both start at 01:07:17 — the Mac reset, not just the app.

Just before that, victory's own microstackshot (victory_2026-11-28-010451_Mac-Studio.diag) recorded 2147.58 MB of file-backed memory dirtied over 181 s (11.86 MB/s) — shader cache writes. RSS at the end was ~10.7 GB with ~400 % CPU.

I cannot tell from these logs whether the trigger was GPU memory exhaustion, the file-backed write volume, or something else. I am reporting it because 36 GB is above the 32 GB line the README calls comfortable for series-x, and losing the whole session (not just the game) is a hard failure mode.

Nothing exotic was set: no VICTORY_* variables, plain tools/macos/run-native.sh <folder>. Before installing the shader converter the same build ran with metal: no shader converter and presented a flat grey window while audio played, so the converter changed it from grey to a (broken) picture.

Console: series-x
Shader converter: /usr/local/lib/libmetalirconverter.dylib 60073520 Some(SystemTime { tv_sec: 1792438727, tv_nsec: 0 }) (from the installed default)
VICTORY_* variables in this shell: none

run-summary.sh
lines 5185, log span 283.0s, last frame 2369

-- frame rate (per frame block)
  frame      2  +    2.1s     6.0 fps
  frame      8  +    2.3s    35.0 fps
  frame     32  +    3.1s    30.0 fps
  frame    128  +    6.3s    30.0 fps
  frame    256  +   10.6s    30.0 fps
  frame    384  +   15.1s    28.1 fps
  frame    512  +   21.0s    21.7 fps
  frame    640  +   25.3s    30.0 fps
  frame    768  +   29.6s    30.0 fps
  frame    896  +   33.8s    30.0 fps
  frame   1024  +   38.1s    29.9 fps
  frame   1152  +   42.4s    30.0 fps
  frame   1280  +   46.6s    30.0 fps
  frame   1408  +   50.9s    30.0 fps
  frame   1536  +   56.1s    24.6 fps
  frame   1664  +   60.4s    29.8 fps
  frame   1792  +   64.7s    30.0 fps
  frame   1920  +   68.9s    30.0 fps
  frame   2048  +   73.2s    29.7 fps
  frame   2176  +   80.9s    16.7 fps
  frame   2304  +   88.3s    17.4 fps
  frame   2368  +  241.6s     0.4 fps
  overall frames 1..2368: 9.9 fps

-- shader work
  first binds: 2628
  prewarm: 16384 shaders, 517 MB of DXIL, from t=+1.1s to t=+8.9s
  no timing fields on first-bind lines in this log; busiest frames by first binds:
    frame   2323  1832 first binds
    frame   2326  275 first binds
    frame   2340  67 first binds
    frame   2346  50 first binds
    frame   2325  43 first binds
  refused shaders: 297 lines, unique by reason:
  at frame~2..2369 (first t=+2.1s)
       92  translation: GFXN code at H: a descriptor neither loaded nor built is not supported
       58  translation: GFXN code at H: a lane-mask join of an untracked mask: data, at a join of several edges is not supported
       32  translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: a program input is not supported
       29  translation: GFXN code at H: a descriptor's address or format read as data: an image's dwords N to N is not supported
       14  translation: GFXN code at H: a lane-mask join of an untracked mask: a value the translation could not make is not supported
       12  translation: GFXN code at H: a cross-lane operation between host waves in divergent code is not supported
       11  translation: GFXN code at H: a lane-mask join of an untracked mask: data, on the host's lanes is not supported
       11  translation: GFXN code at H: barycentrics read directly is not supported
        6  translation: GFXN code at H: a descriptor's address or format read as data: a buffer's base address (dword N) is not supported
        5  translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width is not supported
        3  translation: GFXN code at H: a descriptor's address or format read as data: a buffer's dword N (format and type) is not supported
        3  translation: GFXN code at H: a descriptor's address or format read as data: a dword outside the descriptor is not supported

-- dropped work / warnings (by template)
      37  victory_gpu::native::glue: native draws so far frame=N recorded=N encoded=N no_pipeline=N no_texture=N mesh=N mesh_indirect=N indirect=N texture_copie
       9  victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N", "fence H: signal of N queued N.
       7  victory_gpu::native::glue: work held for a wait that does not hold: ["queue H: N held, head for N.Ns, waits [\"H cmp N ref H mask H now Some(N)\"]"]
       3  victory_gpu::native::glue: work held for a wait that does not hold: ["queue H: N held, head for N.Ns, waits [\"H cmp N ref H mask H now Some(N)\"]", "
       3  victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N"]
       1  victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N", "queue H: N held, head for N.Ns
       1  victory_gpu::native::glue: native host drops work: a dispatch without a host compute pipeline (first time; counted in "native draws so far")
       1  victory_gpu::native::glue: native host drops work: a rectangle-list draw of a described pipeline, drawn without its fourth corner (first time; counted
       1  victory_hle::host_posix::fake_dll: GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump
       1  victory_gpu::native::glue: native host drops work: a dispatch of thread counts without a host compute pipeline (first time; counted in "native draws s
       1  victory_gpu::native::glue: native host drops work: a draw without a host render pipeline (refused or not translated) (first time; counted in "native d
       1  victory_gpu::native::glue: native host drops work: an indirect rectangle-list draw (first time; counted in "native draws so far")

-- GPU errors
  Other=5 Timeout=3 OutOfMemory=1
  Timeout        t=+246.0s frame~2368
  Other          t=+246.0s frame~2368
  Timeout        t=+246.2s frame~2368
  Other          t=+246.2s frame~2368
  Timeout        t=+251.0s frame~2368
  Other          t=+251.0s frame~2368
  Other          t=+257.9s frame~2369
  Other          t=+257.9s frame~2369
  OutOfMemory    t=+257.9s frame~2369

-- audio
  the device kept playing (no fallback to silence)
  mixer seconds: 279, spatial stream activations: 2, DSP connects: 1, DSP streams: 0

-- how it ended
  VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  (at +283.0s, frame~2369)
  last frame reached: 2369

Log

victory-20261128-010841-1455.log.gz (sha256 e5374573d6d3e7f9b6e23de3d49b6043e36f11ad905833fadbad3df1be8736ad), scrubbed by tools/macos/tester-report.sh

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6656494614 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:09:03Z. --- ### Mac Apple M4 Max, 36 GB, macOS 27.2.1 ### Commit 86cefd22 ### How far did it get? Further than that: boot movie, start screen and setup screens at 30 fps, story load, and the prologue world reaches the window (torn and overexposed) ### What happened Built with `tools/macos/native-setup.sh` on an M4 Max (Mac16,9), 36 GB, macOS 27.2.1 (26B131), console=series-x. Apple's Metal Shader Converter installed at `/usr/local/lib/libmetalirconverter.dylib`. The game files are on a local SSD. **What I saw** - Boot movie, start screen and every setup screen render natively at about 30 fps, audio works, keyboard drives the pad. - Story mode loads and the prologue runs. The world does reach the window, but it is a torn, overexposed mess: pieces of geometry missing or unlit, bright blown-out flare-like areas over dark silhouettes, no coherent scene. Not a flat grey or black window, a broken picture. - Frame rate drops from 30 fps to **0.4 fps** at frame ~2368 (+241.6 s); overall 9.9 fps for the run. - 297 refusal lines, 264 loaded shaders dropped. Biggest refusal reasons in this run: 92 `a descriptor neither loaded nor built is not supported`, 58 `a lane-mask join of an untracked mask: data, at a join of several edges`, 32 `a lane mask holding lanes elsewhere read as data: a program input`, 29 `a descriptor's address or format read as data: an image's dwords`. **This is the part I think matters most: it took the whole Mac down.** - `t=+246.0s`: Metal **Timeout x3** and Other x2 on frame ~2368. - `t=+257.9s` frame ~2369: Another `Other`, and a **Metal `OutOfMemory`**. - `t=+283.0s` frame ~2369: `VIctory: unhandled exception 0xc0000005 at image+0x55e56f8` — the process dies. - The same second, macOS's WindowServer hangs: `/Library/Logs/DiagnosticReports/WindowServer-2026-11-28-010633.ips`, bug_type 409, namespace WATCHDOG, `monitoring timed out for service`, "40 seconds since last successful checkin", plus `WindowServer_2026-11-28-010641_Mac-Studio.userspace_watchdog_timeout.spin`. - `01:07:17`: `/Library/Logs/DiagnosticReports/ResetCounter-2026-11-28-010717.diag`, bug_type 115, `Boot failure count: 1`, `Boot faults: rst btn_rst,btn_seq_reset target_off_restart`. WindowServer and loginwindow both start at 01:07:17 — **the Mac reset**, not just the app. Just before that, victory's own microstackshot (`victory_2026-11-28-010451_Mac-Studio.diag`) recorded 2147.58 MB of file-backed memory dirtied over 181 s (11.86 MB/s) — shader cache writes. RSS at the end was ~10.7 GB with ~400 % CPU. I cannot tell from these logs whether the trigger was GPU memory exhaustion, the file-backed write volume, or something else. I am reporting it because 36 GB is above the 32 GB line the README calls comfortable for series-x, and losing the whole session (not just the game) is a hard failure mode. Nothing exotic was set: no `VICTORY_*` variables, plain `tools/macos/run-native.sh <folder>`. Before installing the shader converter the same build ran with `metal: no shader converter` and presented a flat grey window while audio played, so the converter changed it from grey to a (broken) picture. Console: series-x Shader converter: /usr/local/lib/libmetalirconverter.dylib 60073520 Some(SystemTime { tv_sec: 1792438727, tv_nsec: 0 }) (from the installed default) VICTORY_* variables in this shell: none <details><summary>run-summary.sh</summary> ``` lines 5185, log span 283.0s, last frame 2369 -- frame rate (per frame block) frame 2 + 2.1s 6.0 fps frame 8 + 2.3s 35.0 fps frame 32 + 3.1s 30.0 fps frame 128 + 6.3s 30.0 fps frame 256 + 10.6s 30.0 fps frame 384 + 15.1s 28.1 fps frame 512 + 21.0s 21.7 fps frame 640 + 25.3s 30.0 fps frame 768 + 29.6s 30.0 fps frame 896 + 33.8s 30.0 fps frame 1024 + 38.1s 29.9 fps frame 1152 + 42.4s 30.0 fps frame 1280 + 46.6s 30.0 fps frame 1408 + 50.9s 30.0 fps frame 1536 + 56.1s 24.6 fps frame 1664 + 60.4s 29.8 fps frame 1792 + 64.7s 30.0 fps frame 1920 + 68.9s 30.0 fps frame 2048 + 73.2s 29.7 fps frame 2176 + 80.9s 16.7 fps frame 2304 + 88.3s 17.4 fps frame 2368 + 241.6s 0.4 fps overall frames 1..2368: 9.9 fps -- shader work first binds: 2628 prewarm: 16384 shaders, 517 MB of DXIL, from t=+1.1s to t=+8.9s no timing fields on first-bind lines in this log; busiest frames by first binds: frame 2323 1832 first binds frame 2326 275 first binds frame 2340 67 first binds frame 2346 50 first binds frame 2325 43 first binds refused shaders: 297 lines, unique by reason: at frame~2..2369 (first t=+2.1s) 92 translation: GFXN code at H: a descriptor neither loaded nor built is not supported 58 translation: GFXN code at H: a lane-mask join of an untracked mask: data, at a join of several edges is not supported 32 translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: a program input is not supported 29 translation: GFXN code at H: a descriptor's address or format read as data: an image's dwords N to N is not supported 14 translation: GFXN code at H: a lane-mask join of an untracked mask: a value the translation could not make is not supported 12 translation: GFXN code at H: a cross-lane operation between host waves in divergent code is not supported 11 translation: GFXN code at H: a lane-mask join of an untracked mask: data, on the host's lanes is not supported 11 translation: GFXN code at H: barycentrics read directly is not supported 6 translation: GFXN code at H: a descriptor's address or format read as data: a buffer's base address (dword N) is not supported 5 translation: GFXN code at H: a lane mask holding lanes elsewhere read as data: written by a scalar instruction of the other width is not supported 3 translation: GFXN code at H: a descriptor's address or format read as data: a buffer's dword N (format and type) is not supported 3 translation: GFXN code at H: a descriptor's address or format read as data: a dword outside the descriptor is not supported -- dropped work / warnings (by template) 37 victory_gpu::native::glue: native draws so far frame=N recorded=N encoded=N no_pipeline=N no_texture=N mesh=N mesh_indirect=N indirect=N texture_copie 9 victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N", "fence H: signal of N queued N. 7 victory_gpu::native::glue: work held for a wait that does not hold: ["queue H: N held, head for N.Ns, waits [\"H cmp N ref H mask H now Some(N)\"]"] 3 victory_gpu::native::glue: work held for a wait that does not hold: ["queue H: N held, head for N.Ns, waits [\"H cmp N ref H mask H now Some(N)\"]", " 3 victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N"] 1 victory_gpu::native::glue: work held for a wait that does not hold: ["fence H: signal of N queued N.Ns ago, GPU at N", "queue H: N held, head for N.Ns 1 victory_gpu::native::glue: native host drops work: a dispatch without a host compute pipeline (first time; counted in "native draws so far") 1 victory_gpu::native::glue: native host drops work: a rectangle-list draw of a described pipeline, drawn without its fourth corner (first time; counted 1 victory_hle::host_posix::fake_dll: GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump 1 victory_gpu::native::glue: native host drops work: a dispatch of thread counts without a host compute pipeline (first time; counted in "native draws s 1 victory_gpu::native::glue: native host drops work: a draw without a host render pipeline (refused or not translated) (first time; counted in "native d 1 victory_gpu::native::glue: native host drops work: an indirect rectangle-list draw (first time; counted in "native draws so far") -- GPU errors Other=5 Timeout=3 OutOfMemory=1 Timeout t=+246.0s frame~2368 Other t=+246.0s frame~2368 Timeout t=+246.2s frame~2368 Other t=+246.2s frame~2368 Timeout t=+251.0s frame~2368 Other t=+251.0s frame~2368 Other t=+257.9s frame~2369 Other t=+257.9s frame~2369 OutOfMemory t=+257.9s frame~2369 -- audio the device kept playing (no fallback to silence) mixer seconds: 279, spatial stream activations: 2, DSP connects: 1, DSP streams: 0 -- how it ended VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] (at +283.0s, frame~2369) last frame reached: 2369 ``` </details> ### Log victory-20261128-010841-1455.log.gz (sha256 e5374573d6d3e7f9b6e23de3d49b6043e36f11ad905833fadbad3df1be8736ad), scrubbed by tools/macos/tester-report.sh
derz92 commented 2026-11-28 00:11:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by derz92 on 2026-11-28T00:11:08Z.


The same thing happened here once: M5 Max, 36 GB, macOS 26.5, main b998bb65 with VICTORY_METAL_RESIDENCY_SETS=heap. Command buffers timed out in the world, the stop couldn't finish 4 of them, the driver kept about 6 GB, and about 3 minutes later WindowServer's watchdog reset the Mac (#357).

A practical data point, not a proven cause: since then I've run all world runs with VICTORY_METAL_RESIDENCY_SETS=1, roughly 30 runs of 3 to 8 minutes each on #437's tree with VICTORY_TEXTURE_DROP_TOP_MIP=1 and VICTORY_OUTPUT=1280x720. There were no GPU time-outs, no out-of-memory errors, and GPU "In use system memory" peaked at about 14 GB and came back at every exit. Heap mode also ran clean twice here before, so I can't pin the hang on it. But if you want to keep testing without risking another reset, those three switches are the safest setup I've found. Also, a watcher that stops the run at the first command buffer failed has kept the driver's memory from being stranded every time since.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7230714057 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7230714057). Originally posted by [derz92](https://github.com/derz92) on 2026-11-28T00:11:08Z. --- The same thing happened here once: M5 Max, 36 GB, macOS 26.5, main b998bb65 with `VICTORY_METAL_RESIDENCY_SETS=heap`. Command buffers timed out in the world, the stop couldn't finish 4 of them, the driver kept about 6 GB, and about 3 minutes later WindowServer's watchdog reset the Mac (#357). A practical data point, not a proven cause: since then I've run all world runs with `VICTORY_METAL_RESIDENCY_SETS=1`, roughly 30 runs of 3 to 8 minutes each on #437's tree with `VICTORY_TEXTURE_DROP_TOP_MIP=1` and `VICTORY_OUTPUT=1280x720`. There were no GPU time-outs, no out-of-memory errors, and GPU "In use system memory" peaked at about 14 GB and came back at every exit. Heap mode also ran clean twice here before, so I can't pin the hang on it. But if you want to keep testing without risking another reset, those three switches are the safest setup I've found. Also, a watcher that stops the run at the first `command buffer failed` has kept the driver's memory from being stranded every time since.
Stooovie commented 2026-11-28 00:16:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:16:39Z.


Thanks — the residency switch is the difference between losing my Mac and only losing the game. Numbers from an M4 Max, 36 GB, macOS 27.2.1, 86cefd22, series-x, with exactly your set:

VICTORY_METAL_RESIDENCY_SETS=1
VICTORY_TEXTURE_DROP_TOP_MIP=1
VICTORY_OUTPUT=1280x720

What changed

  • It reached the world and ran there for about 4 minutes (frames up to ~1814), around 1.5 fps.
  • Memory: footprint_mb 19.0 → 20.8 GB, metal_mb 19.9 → 20.5 GB, RSS 15.4 GB. Steady climb, no runaway.
  • Zero Metal timeouts, zero OutOfMemory, and the Mac stayed up. My previous run (default residency, no OUTPUT) did the opposite: Timeout x3, then OutOfMemory, then unhandled exception 0xc0000005, then WindowServer's watchdog and a full reset (this issue's first post).
  • The picture is unchanged by the switches: still torn and overexposed, which I read as #258 and not something these three touch.

How it ended this time

# exit code 139 — a plain SIGSEGV, no diagnostic line before it, roughly 30 s after metal: pipeline archive written: 217 ms. There is no .ips for victory in ~/Library/Logs/DiagnosticReports; the nearest thing is MTLCompilerService_2026-11-28-011343_Mac-Studio.diag (175 KB).

Your watcher idea works but never had anything to catch: I watched the run log for command buffer failed / timeout, it never matched, and the process died of the segfault instead.

Cumulative counters at the end, if useful: no_pipeline=100026 draws dropped (of recorded=426193), mesh=3681, 296 refusal lines. Still no VICTORY_* variables beyond your three. Happy to attach the full log if someone wants it.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7230786640 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7230786640). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:16:39Z. --- Thanks — the residency switch is the difference between losing my Mac and only losing the game. Numbers from an M4 Max, 36 GB, macOS 27.2.1, `86cefd22`, series-x, with exactly your set: ``` VICTORY_METAL_RESIDENCY_SETS=1 VICTORY_TEXTURE_DROP_TOP_MIP=1 VICTORY_OUTPUT=1280x720 ``` **What changed** - It reached the world and ran there for about 4 minutes (frames up to ~1814), around 1.5 fps. - Memory: `footprint_mb` 19.0 → 20.8 GB, `metal_mb` 19.9 → 20.5 GB, RSS 15.4 GB. Steady climb, no runaway. - **Zero Metal timeouts, zero `OutOfMemory`, and the Mac stayed up.** My previous run (default residency, no `OUTPUT`) did the opposite: `Timeout` x3, then `OutOfMemory`, then `unhandled exception 0xc0000005`, then WindowServer's watchdog and a full reset (this issue's first post). - The picture is unchanged by the switches: still torn and overexposed, which I read as #258 and not something these three touch. **How it ended this time** `# exit code 139` — a plain SIGSEGV, no diagnostic line before it, roughly 30 s after `metal: pipeline archive written: 217 ms`. There is no `.ips` for `victory` in `~/Library/Logs/DiagnosticReports`; the nearest thing is `MTLCompilerService_2026-11-28-011343_Mac-Studio.diag` (175 KB). Your watcher idea works but never had anything to catch: I watched the run log for `command buffer failed` / timeout, it never matched, and the process died of the segfault instead. Cumulative counters at the end, if useful: `no_pipeline=100026` draws dropped (of `recorded=426193`), `mesh=3681`, 296 refusal lines. Still no `VICTORY_*` variables beyond your three. Happy to attach the full log if someone wants it.
Stooovie commented 2026-11-28 00:29:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:29:01Z.


Two things from an M4 Max that may be worth knowing, then I'll stop spamming this issue.

1. The same VIctory translation is fast and coherent on a PC GPU. LooperSalty/AnyXboxX vendors VIctory in third_party/victory and reports ~24 fps median in the world at 1080p (RTX 4070 SUPER + i7-13700KF), 30 fps in scenes up to ~4,000 draws, playable with mouse and keyboard. NVIDIA warps are 32 lanes too, so the wave64 split is not what costs us the picture. If the world can be coherent there and not here, I would look at the Metal backend and the Mac-side memory/aliasing path before the refusal count.

2. The SIGSEGV here came ~30 s after the pipeline archive was written. In my run with derz92's safe switches the log ends: metal: pipeline archive written: 217 ms (t+~3m51s), two more first binds at frame 1814, then # exit code 139 with no diagnostic line. #519 adds VICTORY_NO_PIPELINE_ARCHIVE=1 and describes Metal dying inside MTLBinaryArchive open/populate. I am building that branch on the M4 Max and running the same scenario with and without the archive; I'll post what happens either way — including if it makes no difference.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7230947318 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7230947318). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:29:01Z. --- Two things from an M4 Max that may be worth knowing, then I'll stop spamming this issue. **1. The same VIctory translation is fast and coherent on a PC GPU.** `LooperSalty/AnyXboxX` vendors VIctory in `third_party/victory` and reports ~24 fps median in the world at 1080p (RTX 4070 SUPER + i7-13700KF), 30 fps in scenes up to ~4,000 draws, playable with mouse and keyboard. NVIDIA warps are 32 lanes too, so the wave64 split is not what costs us the picture. If the world can be coherent there and not here, I would look at the Metal backend and the Mac-side memory/aliasing path before the refusal count. **2. The SIGSEGV here came ~30 s after the pipeline archive was written.** In my run with derz92's safe switches the log ends: `metal: pipeline archive written: 217 ms` (t+~3m51s), two more first binds at frame 1814, then `# exit code 139` with no diagnostic line. #519 adds `VICTORY_NO_PIPELINE_ARCHIVE=1` and describes Metal dying inside `MTLBinaryArchive` open/populate. I am building that branch on the M4 Max and running the same scenario with and without the archive; I'll post what happens either way — including if it makes no difference.
Stooovie commented 2026-11-28 00:33:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:33:55Z.


A/B done on the M4 Max, same scenario, VICTORY_NO_PIPELINE_ARCHIVE=1 from #519 cherry-picked onto 86cefd22 (9-line change, built clean).

The archive is not the trigger. With archives off there is no metal: pipeline archive written line at all, so the switch does what it says — and the run still died, in the same place in the title:

0x55e56f8,
) info=[0, 0] rax=0xf91b0e450 rcx=0xf91b0e3e0 rdx=0xf91b0e350 rsp=0xf91b0e2e0 r8
INFO title: WER - Saving t:\game_scarlett_master-20261128-013300-4994.crash.log - 2545 bytes
VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 [0, 0, ...]
# exit code 134

image+0x55e56f8 is the same address my very first run hit (that one ended exit code 134 too, while the run in between ended with a bare exit code 139). So the fault is in the title's own emulated code at a fixed address, not in Metal's archive.

What preceded it this time: 25 × metal: command buffer failed: … kIOGPUCommandBufferCallbackErrorTimeout (GPU timeout, code 2), then the title's access violation, then the abort. My earlier safe-switch run on main had zero timeouts and still died by SIGSEGV, so the timeouts change the exit path rather than cause the fault.

Net: #519 is worth having on its own merits (it is a real crash in MTLBinaryArchive on your M5 Pro), but it does not fix the exit 139/134 here. The thread I would pull next is what the title does at +0x55e56f8 — with Developer Mode on I can get a host backtrace for that, and I'll post it if it points anywhere.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231014177 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7231014177). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:33:55Z. --- A/B done on the M4 Max, same scenario, `VICTORY_NO_PIPELINE_ARCHIVE=1` from #519 cherry-picked onto `86cefd22` (9-line change, built clean). **The archive is not the trigger.** With archives off there is no `metal: pipeline archive written` line at all, so the switch does what it says — and the run still died, in the same place in the title: ``` 0x55e56f8, ) info=[0, 0] rax=0xf91b0e450 rcx=0xf91b0e3e0 rdx=0xf91b0e350 rsp=0xf91b0e2e0 r8 INFO title: WER - Saving t:\game_scarlett_master-20261128-013300-4994.crash.log - 2545 bytes VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 [0, 0, ...] # exit code 134 ``` `image+0x55e56f8` is the same address my very first run hit (that one ended `exit code 134` too, while the run in between ended with a bare `exit code 139`). So the fault is in the title's own emulated code at a fixed address, not in Metal's archive. **What preceded it this time:** 25 × `metal: command buffer failed: … kIOGPUCommandBufferCallbackErrorTimeout` (GPU timeout, code 2), then the title's access violation, then the abort. My earlier safe-switch run on main had zero timeouts and still died by SIGSEGV, so the timeouts change the exit path rather than cause the fault. Net: #519 is worth having on its own merits (it is a real crash in `MTLBinaryArchive` on your M5 Pro), but it does not fix the `exit 139/134` here. The thread I would pull next is what the title does at `+0x55e56f8` — with Developer Mode on I can get a host backtrace for that, and I'll post it if it points anywhere.
Stooovie commented 2026-11-28 00:38:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:38:32Z.


Second occurrence tonight, and this one says more than the first: after the game died, the compositor never came back. Three WindowServer watchdog timeouts in two minutes, then a hard reset by hand:

01:35:17  WindowServer-2026-11-28-013517.ips                    userspace_watchdog_timeout.spin
01:36:07  WindowServer_2026-11-28-013607_Mac-Studio             userspace_watchdog_timeout.spin
01:36:57  WindowServer_2026-11-28-013657_Mac-Studio             userspace_watchdog_timeout.spin
01:37:38  ResetCounter-2026-11-28-013738.diag                   (button reset)

Timeline: the run (with your three safe switches, archives off) aborted at 01:33:00 with the title's 0xc0000005 at image+0x55e56f8 after 25 kIOGPUCommandBufferCallbackErrorTimeouts. The first WindowServer timeout is at 01:35:17 — about two minutes later, exactly the delay you described in #357. Each restart timed out again ~50 s later, the display stayed black through it, and the only way out was holding the power button. No kernel panic was logged.

Two things I would call evidence rather than opinion:

  1. The stranded GPU work after the title's crash is enough to wedge the compositor repeatedly, not just once. A reset is not needed for this either — it happened with 36 GB and the "safe" settings.
  2. Headless runs have not done this. My first run was --headless --seconds 240 on default settings, it ended by the timer, and the Mac was fine. Windowed runs are the ones that took the compositor down, both times. If other testers are losing their sessions, --headless is the difference, and that is worth putting in the docs next to the memory notes.

For anyone scripting this: watch the run log for command buffer failed and kill the process on the first one — that is derz92's advice and it is what I am doing from now on. I am not running the windowed path again on this machine until the crash at +0x55e56f8 is understood.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231076592 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7231076592). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:38:32Z. --- Second occurrence tonight, and this one says more than the first: after the game died, **the compositor never came back**. Three WindowServer watchdog timeouts in two minutes, then a hard reset by hand: ``` 01:35:17 WindowServer-2026-11-28-013517.ips userspace_watchdog_timeout.spin 01:36:07 WindowServer_2026-11-28-013607_Mac-Studio userspace_watchdog_timeout.spin 01:36:57 WindowServer_2026-11-28-013657_Mac-Studio userspace_watchdog_timeout.spin 01:37:38 ResetCounter-2026-11-28-013738.diag (button reset) ``` Timeline: the run (with your three safe switches, archives off) aborted at 01:33:00 with the title's `0xc0000005 at image+0x55e56f8` after 25 `kIOGPUCommandBufferCallbackErrorTimeout`s. The first WindowServer timeout is at 01:35:17 — about two minutes later, exactly the delay you described in #357. Each restart timed out again ~50 s later, the display stayed black through it, and the only way out was holding the power button. No kernel panic was logged. Two things I would call evidence rather than opinion: 1. The stranded GPU work after the title's crash is enough to wedge the compositor repeatedly, not just once. A reset is not needed for this either — it happened with 36 GB and the "safe" settings. 2. **Headless runs have not done this.** My first run was `--headless --seconds 240` on default settings, it ended by the timer, and the Mac was fine. Windowed runs are the ones that took the compositor down, both times. If other testers are losing their sessions, `--headless` is the difference, and that is worth putting in the docs next to the memory notes. For anyone scripting this: watch the run log for `command buffer failed` and kill the process on the first one — that is derz92's advice and it is what I am doing from now on. I am not running the windowed path again on this machine until the crash at `+0x55e56f8` is understood.
Stooovie commented 2026-11-28 00:45:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Stooovie on 2026-11-28T00:45:25Z.


The crash reproduces headless (so nobody has to risk their session for it) and the log now shows what precedes it:

00:42:51.890  WARN victory_gpu::native::glue: recovered 12 command buffers the GPU never reported on
00:42:56.329  WARN ...seh::dispatch: first-chance exception code=0xc0000005 at=0x1423cf683
              image=Some(0x23cf683) info=[1, 0]      <- a write, the title handles this one
00:42:56.335  WARN ...seh::dispatch: first-chance exception code=0xc0000005 at=0x1455e56f8
              image=Some(0x55e56f8) info=[0, 0]      <- a read, this one is fatal
VIctory: unhandled exception 0xc0000005 at image+0x55e56f8

The title's own Breakpad then collected memory.load_percent=25, system.memory.free=10616832, vm.vma.size=137438953344 and wrote its WER crash log, so the fault is in the game's code, not in Victory's.

The fault comes ~5 s after 12 command buffers were recovered that the GPU never reported on, and this run had 25 kIOGPUCommandBufferCallbackErrorTimeout before it. My earlier windowed run without your switches had zero timeouts and still died, so I am not claiming the timeouts are proven causal — but the pattern (timeouts, then a recovered batch, then a guest fault at a fixed address) is consistent across runs, and it points the same way as #442: a GPU pass that never finishes, the producers of what it reads, and the title left with a half-written frame.

A core was written this time (62 GB, Mach-O arm64 — lldb refuses it as "unknown core file format", probably because it was still being written when I opened it). Say the word and I'll keep one and dig; otherwise the log above is the useful part. Files are on a local SSD, ulimit -c unlimited, --headless --seconds 420, your three switches, main at 86cefd22.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7231168668 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/521#issuecomment-7231168668). Originally posted by [Stooovie](https://github.com/Stooovie) on 2026-11-28T00:45:25Z. --- The crash reproduces headless (so nobody has to risk their session for it) and the log now shows what precedes it: ``` 00:42:51.890 WARN victory_gpu::native::glue: recovered 12 command buffers the GPU never reported on 00:42:56.329 WARN ...seh::dispatch: first-chance exception code=0xc0000005 at=0x1423cf683 image=Some(0x23cf683) info=[1, 0] <- a write, the title handles this one 00:42:56.335 WARN ...seh::dispatch: first-chance exception code=0xc0000005 at=0x1455e56f8 image=Some(0x55e56f8) info=[0, 0] <- a read, this one is fatal VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 ``` The title's own Breakpad then collected `memory.load_percent=25`, `system.memory.free=10616832`, `vm.vma.size=137438953344` and wrote its WER crash log, so the fault is in the game's code, not in Victory's. **The fault comes ~5 s after 12 command buffers were recovered that the GPU never reported on**, and this run had 25 `kIOGPUCommandBufferCallbackErrorTimeout` before it. My earlier windowed run without your switches had zero timeouts and still died, so I am not claiming the timeouts are proven causal — but the pattern (timeouts, then a recovered batch, then a guest fault at a fixed address) is consistent across runs, and it points the same way as #442: a GPU pass that never finishes, the producers of what it reads, and the title left with a half-written frame. A core was written this time (62 GB, Mach-O arm64 — lldb refuses it as "unknown core file format", probably because it was still being written when I opened it). Say the word and I'll keep one and dig; otherwise the log above is the useful part. Files are on a local SSD, `ulimit -c unlimited`, `--headless --seconds 420`, your three switches, main at `86cefd22`.
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#521
No description provided.