[Tester] M5 Pro, 24 GB: past the 53 s timeout; Series X runs out of GPU memory at world load, Series S crashes at image+0x55e56f8 on the first world frame #110

Closed
opened 2026-11-26 16:32:30 +00:00 by ItsMariusBC · 15 comments
ItsMariusBC commented 2026-11-26 16:32:30 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T16:32:30Z.


Mac

M5 Pro, 24 GB, macOS 27.2.1

Commit

3fd73fd

How far did it get?

Further than that

What happened

Two runs back to back with tools/macos/run-native.sh, one per console model. No VICTORY_* variables set beyond the script's defaults. Metal Shader Converter 4.0.3. Keyboard only. The game files are on an external NVMe SSD (exFAT, USB at 10 Gb/s). Times below are the log's (UTC).

Neither run hit the Metal GPU timeout at about 53 s (#2). Both ended at world load, in ways that look like #8 and #79, on a 24 GB Mac.

Run 1: Series X (the script's default above 16 GB), 4 min 21 s

Time Event
16:16:39 Start
16:16:53 Frame 256. Menus are smooth
16:18:37 World packages open (story000_restofworld.rpf and others), 1 min 58 s in
16:17:52 First "native host drops work": a rectangle-list draw drawn without its fourth corner
16:19:06 More dropped work: "a texture copy or resolve", "a draw without a host render pipeline", and one shader refused ("a sampler built from computed words is not supported")
16:19:52 First "work held for a wait that does not hold" (8 in all)
16:20:36 The GPU is at 4066 and stays there until the end
16:21:00 metal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)
  • Last "native draws so far" line: frame=1984 recorded=33940 encoded=33939 no_pipeline=1 texture_copies=36.
  • 33 "a descriptor was not mirrored … is not in a mapped pool" lines, 476 "dstorage: a status entry is still pending" warnings.
  • On screen: the loading screen never ends. I closed the window.
  • Seen during the boot movie and menus: flicker, jumps, and a short "rewind" effect where earlier frames seem to show again.

Run 2: --console series-s, 3 min 05 s

Time Event
16:24:41 Start
16:25:17 World packages open, 36 s in
16:25:31 Frame 1344. About 27 frames a second up to here (192 frames every 6 to 7 s)
16:25:38 Frame 1472
16:26:13 Frame 1664
16:27:02 Frame 1728
16:27:16 Frame 1737, the last one in the log: first binds of the world's pipelines, until the crash
16:27:45 first-chance exception code=0xc0000005 at image+0x23cf683
16:27:46 VIctory: unhandled exception 0xc0000005 at image+0x55e56f8
  • The crash address is the one in #8 (image+0x55e56f8).
  • No Metal "Insufficient Memory" error in this log.
  • System memory read with vm_stat and memory_pressure 5 s before the crash: 21.2 GB wired, 2 % free, 9.2 GB of 10 GB swap in use. Some of that swap came from other work on the Mac earlier in the day. After the exit: 5.2 GB wired, 70 % free.
  • 122 shaders refused. The six most common reasons (103 of them):
    • 52: "FSPX metadata resource of root type 0: root constants in a compute shader"
    • 22: "an image store of some channels is not supported"
    • 12: "a buffer descriptor built around a computed address is not supported"
    • 7: "a cross-lane operation between host waves in divergent code is not supported"
    • 6: "a sampler built from computed words is not supported"
    • 4: "a structured buffer of unknown stride is not supported"
  • 141 "a descriptor was not mirrored" lines, 619 "dstorage: a status entry is still pending" warnings, 2 "work held for a wait that does not hold".

What this adds

  • #2 (timeout at about 53 s) did not reproduce on this Mac in two runs.
  • #8 is titled for 16 GB Macs. A 24 GB Mac reaches the same end on Series X (Metal out of memory) and the same crash address on Series S.

Log

I will attach the two runs/<date>/victory.log files (Series X and Series S) in a comment, with my home folder and host names replaced.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6631024938 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T16:32:30Z. --- ### Mac M5 Pro, 24 GB, macOS 27.2.1 ### Commit 3fd73fd ### How far did it get? Further than that ### What happened Two runs back to back with `tools/macos/run-native.sh`, one per console model. No `VICTORY_*` variables set beyond the script's defaults. Metal Shader Converter 4.0.3. Keyboard only. The game files are on an external NVMe SSD (exFAT, USB at 10 Gb/s). Times below are the log's (UTC). Neither run hit the Metal GPU timeout at about 53 s (#2). Both ended at world load, in ways that look like #8 and #79, on a 24 GB Mac. ### Run 1: Series X (the script's default above 16 GB), 4 min 21 s | Time | Event | | --- | --- | | 16:16:39 | Start | | 16:16:53 | Frame 256. Menus are smooth | | 16:18:37 | World packages open (`story000_restofworld.rpf` and others), 1 min 58 s in | | 16:17:52 | First "native host drops work": a rectangle-list draw drawn without its fourth corner | | 16:19:06 | More dropped work: "a texture copy or resolve", "a draw without a host render pipeline", and one shader refused ("a sampler built from computed words is not supported") | | 16:19:52 | First "work held for a wait that does not hold" (8 in all) | | 16:20:36 | The GPU is at 4066 and stays there until the end | | 16:21:00 | `metal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)` | - Last "native draws so far" line: `frame=1984 recorded=33940 encoded=33939 no_pipeline=1 texture_copies=36`. - 33 "a descriptor was not mirrored … is not in a mapped pool" lines, 476 "dstorage: a status entry is still pending" warnings. - On screen: the loading screen never ends. I closed the window. - Seen during the boot movie and menus: flicker, jumps, and a short "rewind" effect where earlier frames seem to show again. ### Run 2: `--console series-s`, 3 min 05 s | Time | Event | | --- | --- | | 16:24:41 | Start | | 16:25:17 | World packages open, 36 s in | | 16:25:31 | Frame 1344. About 27 frames a second up to here (192 frames every 6 to 7 s) | | 16:25:38 | Frame 1472 | | 16:26:13 | Frame 1664 | | 16:27:02 | Frame 1728 | | 16:27:16 | Frame 1737, the last one in the log: first binds of the world's pipelines, until the crash | | 16:27:45 | `first-chance exception code=0xc0000005` at image+0x23cf683 | | 16:27:46 | `VIctory: unhandled exception 0xc0000005 at image+0x55e56f8` | - The crash address is the one in #8 (`image+0x55e56f8`). - No Metal "Insufficient Memory" error in this log. - System memory read with `vm_stat` and `memory_pressure` 5 s before the crash: 21.2 GB wired, 2 % free, 9.2 GB of 10 GB swap in use. Some of that swap came from other work on the Mac earlier in the day. After the exit: 5.2 GB wired, 70 % free. - 122 shaders refused. The six most common reasons (103 of them): - 52: "FSPX metadata resource of root type 0: root constants in a compute shader" - 22: "an image store of some channels is not supported" - 12: "a buffer descriptor built around a computed address is not supported" - 7: "a cross-lane operation between host waves in divergent code is not supported" - 6: "a sampler built from computed words is not supported" - 4: "a structured buffer of unknown stride is not supported" - 141 "a descriptor was not mirrored" lines, 619 "dstorage: a status entry is still pending" warnings, 2 "work held for a wait that does not hold". ### What this adds - #2 (timeout at about 53 s) did not reproduce on this Mac in two runs. - #8 is titled for 16 GB Macs. A 24 GB Mac reaches the same end on Series X (Metal out of memory) and the same crash address on Series S. ### Log I will attach the two `runs/<date>/victory.log` files (Series X and Series S) in a comment, with my home folder and host names replaced.
ItsMariusBC commented 2026-11-26 16:46:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T16:46:44Z.


victory-series-s.log
victory-series-x.log

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198083370 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7198083370). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T16:46:44Z. --- [victory-series-s.log](https://github.com/user-attachments/files/35474711/victory-series-s.log) [victory-series-x.log](https://github.com/user-attachments/files/35474710/victory-series-x.log)
AeroUp commented 2026-11-26 16:54:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AeroUp on 2026-11-26T16:54:24Z.


Same two ends here (M3 Pro, 18 GB), at 3fd73fd plus #108/#105/#106 merged, VICTORY_METAL_RESIDENCY_SETS unset (per-encoder naming):

  • Series S: 0xc0000005 at image+0x55e56f8, after a first-chance at image+0x23cf683 (the title's own fatal path: a deliberate null write). The title's own crash log (~/.cache/victory/data/*/temp/*.crash.log) names Unsignaled CrossQueueBarrier, so the access violation looks like the symptom of a barrier the title expected and never saw.
  • Metal footprint just before it: 7.07 GB wrapped title memory + 2.0-3.0 GB host texture copies + 28 MB heaps; 26 000 host textures by frame 4096, still climbing. On 18 GB that is a large part of the machine, and it is consistent with your 21.2 GB wired / 2 % free.
  • What the fence dump says at the stall (3 s watchdog, new): no queue holding work, no command buffer in flight, and a fence at completed 5948 / requested 5949. So it is not a parked queue or a slow GPU at that instant.

What did not change it here: #108 (pool backing on VirtualFree, the pages-owned-twice of #15) and #105 (null view for a buffer view of memory in no pool) are both in; the crash is identical. Dropped texture copies/resolves are now done as real blits (that class of dropped work is gone), also no change.

Next thing I am trying is a ceiling on host texture copies: least-recently-bound sampled textures are dropped under a byte budget (VICTORY_METAL_TEXTURE_BUDGET_MB, default 1536 MiB) and rebuilt from title memory on their next bind; render targets are never dropped. If the end is memory pressure rather than a lost signal, that is where it should show.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198244972 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7198244972). Originally posted by [AeroUp](https://github.com/AeroUp) on 2026-11-26T16:54:24Z. --- Same two ends here (M3 Pro, 18 GB), at 3fd73fd plus #108/#105/#106 merged, `VICTORY_METAL_RESIDENCY_SETS` unset (per-encoder naming): - Series S: `0xc0000005 at image+0x55e56f8`, after a first-chance at `image+0x23cf683` (the title's own fatal path: a deliberate null write). The title's own crash log (`~/.cache/victory/data/*/temp/*.crash.log`) names `Unsignaled CrossQueueBarrier`, so the access violation looks like the symptom of a barrier the title expected and never saw. - Metal footprint just before it: 7.07 GB wrapped title memory + 2.0-3.0 GB host texture copies + 28 MB heaps; 26 000 host textures by frame 4096, still climbing. On 18 GB that is a large part of the machine, and it is consistent with your 21.2 GB wired / 2 % free. - What the fence dump says at the stall (3 s watchdog, new): no queue holding work, no command buffer in flight, and a fence at completed 5948 / requested 5949. So it is not a parked queue or a slow GPU at that instant. What did not change it here: #108 (pool backing on `VirtualFree`, the pages-owned-twice of #15) and #105 (null view for a buffer view of memory in no pool) are both in; the crash is identical. Dropped texture copies/resolves are now done as real blits (that class of dropped work is gone), also no change. Next thing I am trying is a ceiling on host texture copies: least-recently-bound sampled textures are dropped under a byte budget (`VICTORY_METAL_TEXTURE_BUDGET_MB`, default 1536 MiB) and rebuilt from title memory on their next bind; render targets are never dropped. If the end is memory pressure rather than a lost signal, that is where it should show.
LakshanSivakumar commented 2026-11-26 17:13:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:13:39Z.


Thanks, both logs are very useful.

  • Series S, Unsignaled CrossQueueBarrier: this matches #80. A command buffer the GPU fails never signalled its fences. c3de092e fixes that and lands on main soon.
  • The next wall after that: the first world frame stalls about 26 s on ~1,160 first-time pipeline builds, and the title's watchdog fires. The disk shader and pipeline cache on main (7730dca) should remove that on a second run. We're measuring cold vs warm runs now.
  • Series X out of memory: that's #8 / #79. @AeroUp, a byte budget on host texture copies (VICTORY_METAL_TEXTURE_BUDGET_MB) sounds like the right shape. A PR would be welcome.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198681036 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7198681036). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T17:13:39Z. --- Thanks, both logs are very useful. - **Series S, `Unsignaled CrossQueueBarrier`:** this matches #80. A command buffer the GPU fails never signalled its fences. c3de092e fixes that and lands on main soon. - **The next wall after that:** the first world frame stalls about 26 s on ~1,160 first-time pipeline builds, and the title's watchdog fires. The disk shader and pipeline cache on main (7730dca) should remove that on a second run. We're measuring cold vs warm runs now. - **Series X out of memory:** that's #8 / #79. @AeroUp, a byte budget on host texture copies (`VICTORY_METAL_TEXTURE_BUDGET_MB`) sounds like the right shape. A PR would be welcome.
ItsMariusBC commented 2026-11-26 17:20:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:20:28Z.


Three more results from the same Mac (M5 Pro, 24 GB, macOS 27.2.1, commit 3fd73fd), all on --console series-s. Times are the log's (UTC).

1. VICTORY_METAL_NO_RESIDENCY_SETS=1 (what #76 makes the default)

Same command as run 2 above, with that variable set.

Run 2 (sets on) Run 3 (sets off)
Length 3 min 05 s 5 min 57 s
Last frame in "native draws so far" 1728 3136
Metal "Insufficient Memory" none none
Metal timeout none none
Shaders refused 122 4
End 0xc0000005 at image+0x55e56f8 0xc0000005 at image+0x55e56f8

So on 24 GB the change roughly doubles how far the run gets, and the crash address at the end is the same.

Wired memory read with vm_stat every 20 s during run 3 (start at 16:58:40, world packages open at 16:59:30):

Time Wired Free Frame
16:58:58 8.2 GB 58 % 448
16:59:18 14.9 GB 17 % 960
17:00:39 16.1 GB 11 % 2752
17:00:59 18.2 GB 8 % 2944
17:01:42 20.6 GB 3 % 3097
17:02:03 6.9 GB 63 % 3097
17:03:03 9.9 GB 48 % 3119
17:04:18 16.9 GB 10 % 3136

In run 2 it was at 21.2 GB with 2 % free 5 s before the crash and I have no later reading. Here it peaks at 20.6 GB and then drops, so memory does get released with the sets off.

Frames slow down sharply after about frame 3000: 3008 at 17:01:08, 3072 at 17:01:24, 3136 at 17:03:36. From 17:01:47 there are 28 "work held for a wait that does not hold" warnings, the longest 17.0 s.

2. DirectStorage reads fail just before the crash

New in run 3. From 17:04:18 to 17:04:37 the log has 179 lines like:

dstorage: request failed: reading the source options=0x200001 offset=889598720 source_size=5627 destination_size=24576 intermediate_size=0 tag=0 name="" hr=0x8007001e

All 179 have hr=0x8007001e. Then, at 17:04:37, a first-chance 0x80000003 at image+0x4da6315, a first-chance 0xc0000005, and the unhandled exception at image+0x55e56f8.

The drive itself looks fine: it stayed mounted at 10 Gb/s, the kernel log has no I/O error for it in the 4 minutes around the failures, and reading 200 MB from two of the game's files right after the crash ran at 540 to 650 MB/s. Wired memory was 16.9 GB with 10 % free when the failures started. I have not checked whether the two are linked.

3. The boot movie alternates between two moments

This is the "rewind" effect from my first post. In a screen recording of the boot movie sampled at 16 frames a second, consecutive frames go back and forth between two points of the movie instead of moving forward:

  • gold arches, another scene, the gold arches again;
  • green jungle, purple jungle, green, purple, green;
  • purple star, yellow-green star, purple, yellow-green.

Every other frame is an older picture. The contact sheet in the next comment reads left to right, top to bottom, 1.5 s in all. The logo also sits on a grey background; I don't know whether that is expected.

Files

I will attach the run 3 log (home folder and host names replaced) and the contact sheet in the next comment.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198852710 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7198852710). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T17:20:28Z. --- Three more results from the same Mac (M5 Pro, 24 GB, macOS 27.2.1, commit 3fd73fd), all on `--console series-s`. Times are the log's (UTC). ## 1. `VICTORY_METAL_NO_RESIDENCY_SETS=1` (what #76 makes the default) Same command as run 2 above, with that variable set. | | Run 2 (sets on) | Run 3 (sets off) | | --- | --- | --- | | Length | 3 min 05 s | 5 min 57 s | | Last frame in "native draws so far" | 1728 | 3136 | | Metal "Insufficient Memory" | none | none | | Metal timeout | none | none | | Shaders refused | 122 | 4 | | End | `0xc0000005 at image+0x55e56f8` | `0xc0000005 at image+0x55e56f8` | So on 24 GB the change roughly doubles how far the run gets, and the crash address at the end is the same. Wired memory read with `vm_stat` every 20 s during run 3 (start at 16:58:40, world packages open at 16:59:30): | Time | Wired | Free | Frame | | --- | --- | --- | --- | | 16:58:58 | 8.2 GB | 58 % | 448 | | 16:59:18 | 14.9 GB | 17 % | 960 | | 17:00:39 | 16.1 GB | 11 % | 2752 | | 17:00:59 | 18.2 GB | 8 % | 2944 | | 17:01:42 | 20.6 GB | 3 % | 3097 | | 17:02:03 | 6.9 GB | 63 % | 3097 | | 17:03:03 | 9.9 GB | 48 % | 3119 | | 17:04:18 | 16.9 GB | 10 % | 3136 | In run 2 it was at 21.2 GB with 2 % free 5 s before the crash and I have no later reading. Here it peaks at 20.6 GB and then drops, so memory does get released with the sets off. Frames slow down sharply after about frame 3000: 3008 at 17:01:08, 3072 at 17:01:24, 3136 at 17:03:36. From 17:01:47 there are 28 "work held for a wait that does not hold" warnings, the longest 17.0 s. ## 2. DirectStorage reads fail just before the crash New in run 3. From 17:04:18 to 17:04:37 the log has 179 lines like: ``` dstorage: request failed: reading the source options=0x200001 offset=889598720 source_size=5627 destination_size=24576 intermediate_size=0 tag=0 name="" hr=0x8007001e ``` All 179 have `hr=0x8007001e`. Then, at 17:04:37, a first-chance `0x80000003` at image+0x4da6315, a first-chance `0xc0000005`, and the unhandled exception at image+0x55e56f8. The drive itself looks fine: it stayed mounted at 10 Gb/s, the kernel log has no I/O error for it in the 4 minutes around the failures, and reading 200 MB from two of the game's files right after the crash ran at 540 to 650 MB/s. Wired memory was 16.9 GB with 10 % free when the failures started. I have not checked whether the two are linked. ## 3. The boot movie alternates between two moments This is the "rewind" effect from my first post. In a screen recording of the boot movie sampled at 16 frames a second, consecutive frames go back and forth between two points of the movie instead of moving forward: - gold arches, another scene, the gold arches again; - green jungle, purple jungle, green, purple, green; - purple star, yellow-green star, purple, yellow-green. Every other frame is an older picture. The contact sheet in the next comment reads left to right, top to bottom, 1.5 s in all. The logo also sits on a grey background; I don't know whether that is expected. ## Files I will attach the run 3 log (home folder and host names replaced) and the contact sheet in the next comment.
ItsMariusBC commented 2026-11-26 17:22:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:22:54Z.


boot-movie-frames [victory-series-s-no-residency-sets.log](https://github.com/user-attachments/files/35475966/victory-series-s-no-residency-sets.log)
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7198918105 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7198918105). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T17:22:54Z. --- <img width="2415" height="1013" alt="boot-movie-frames" src="https://github.com/user-attachments/assets/6910c25b-9bed-4bc7-95b7-3ebe14e36f3e" /> [victory-series-s-no-residency-sets.log](https://github.com/user-attachments/files/35475966/victory-series-s-no-residency-sets.log)
ItsMariusBC commented 2026-11-26 17:57:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:57:02Z.


Cold and warm runs on current main (182c14f), same Mac (M5 Pro, 24 GB, macOS 27.2.1), --console series-s, no VICTORY_* variables set. The second run started 2 min 40 s after the first one ended, with the disk cache the first one wrote. Times are the log's (UTC).

Cold against warm

Cold (cache empty) Warm (cache from the cold run)
Length 7 min 18 s 6 min 18 s
First world frame 3281 3352
First binds on that frame 792 739
Time on that frame 26.7 s (17:39:13.433 to 17:39:40.167) 22.6 s (17:48:14.592 to 17:48:37.170)
End 0xc0000005 at image+0x55e56f8 0xc0000005 at image+0x55e56f8
Shaders refused 120 129
"work held for a wait that does not hold" 27, longest 12.0 s 22, longest 8.1 s
Metal out of memory / timeout none none
dstorage: request failed none none

So the warm run saves about 4 s on the first world frame and ends the same way: a first-chance 0xc0000005 at image+0x23cf683, then the unhandled one.

What the logs and the cache folder say about the cache:

  • The cache folder had 517 files after the cold run and 610 after the warm one.
  • "native shader translation" lines: 26 in the cold run and 31 in the warm one, all with hit=false. No hit=true line in either log.
  • "library conversion … from the disk cache": 25 false in the cold run, 8 false in the warm one, no true in either.

I can't tell from the log where the 22.6 s go on the warm run.

Against the earlier runs in this issue (3fd73fd)

  • The 179 dstorage: request failed … hr=0x8007001e lines of run 3 are gone in both runs.
  • The "root constants in a compute shader" refusals are gone. The most common reasons now:
    • cold: 38 "a descriptor outside the heaps", 23 "a sampler built from computed words", 12 "a cross-lane operation between host waves in divergent code", 10 "LDS shared in a wave the host splits, in divergent code", 7 "a descriptor changed after loading";
    • warm: 58 "a sampler built from computed words", 15 "a descriptor outside the heaps", 15 "a cross-lane operation between host waves in divergent code", 10 "LDS shared in a wave the host splits, in divergent code", 6 "a lane mask holding lanes elsewhere read as data".
  • Before the world frame the runs are clean: 4 refusals in the cold run and 3 in the warm one before it, and frames come at 16 to 19 a second up to frame 2816 (frame 1024 to 2816 takes 109 s cold and 95 s warm).

Memory

Wired memory from vm_stat, warm run (start 17:42:20, world packages open at 17:43:12):

Time Wired Free Frame
17:42:50 8.3 GB 59 % 768
17:43:19 14.6 GB 23 % 1600
17:44:47 15.9 GB 15 % 2944
17:45:17 19.1 GB 7 % 3147
17:46:18 21.1 GB 2 % 3284
17:46:49 8.5 GB 47 % 3330
17:47:22 13.1 GB 38 % 3330
17:47:54 21.1 GB 3 % 3330
17:48:25 5.1 GB 64 % 3352

The cold run has the same shape: 21.0 GB with 2 % free at 17:36:39, then 10.8 GB at 17:37:00 and 20.5 GB at 17:37:22. Frames slow down as it climbs: in the warm run, 3264 at 17:45:42, 3328 at 17:46:40, then frame 3330 for more than a minute.

Still there

  • The boot movie still alternates between two moments, as in the contact sheet above.

Files

I will attach the two logs (home folder and host names replaced) in the next comment.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7199880627 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7199880627). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T17:57:02Z. --- Cold and warm runs on current main (182c14f), same Mac (M5 Pro, 24 GB, macOS 27.2.1), `--console series-s`, no `VICTORY_*` variables set. The second run started 2 min 40 s after the first one ended, with the disk cache the first one wrote. Times are the log's (UTC). ## Cold against warm | | Cold (cache empty) | Warm (cache from the cold run) | | --- | --- | --- | | Length | 7 min 18 s | 6 min 18 s | | First world frame | 3281 | 3352 | | First binds on that frame | 792 | 739 | | Time on that frame | 26.7 s (17:39:13.433 to 17:39:40.167) | 22.6 s (17:48:14.592 to 17:48:37.170) | | End | `0xc0000005 at image+0x55e56f8` | `0xc0000005 at image+0x55e56f8` | | Shaders refused | 120 | 129 | | "work held for a wait that does not hold" | 27, longest 12.0 s | 22, longest 8.1 s | | Metal out of memory / timeout | none | none | | `dstorage: request failed` | none | none | So the warm run saves about 4 s on the first world frame and ends the same way: a first-chance `0xc0000005` at image+0x23cf683, then the unhandled one. What the logs and the cache folder say about the cache: - The cache folder had 517 files after the cold run and 610 after the warm one. - "native shader translation" lines: 26 in the cold run and 31 in the warm one, all with `hit=false`. No `hit=true` line in either log. - "library conversion … from the disk cache": 25 `false` in the cold run, 8 `false` in the warm one, no `true` in either. I can't tell from the log where the 22.6 s go on the warm run. ## Against the earlier runs in this issue (3fd73fd) - The 179 `dstorage: request failed … hr=0x8007001e` lines of run 3 are gone in both runs. - The "root constants in a compute shader" refusals are gone. The most common reasons now: - cold: 38 "a descriptor outside the heaps", 23 "a sampler built from computed words", 12 "a cross-lane operation between host waves in divergent code", 10 "LDS shared in a wave the host splits, in divergent code", 7 "a descriptor changed after loading"; - warm: 58 "a sampler built from computed words", 15 "a descriptor outside the heaps", 15 "a cross-lane operation between host waves in divergent code", 10 "LDS shared in a wave the host splits, in divergent code", 6 "a lane mask holding lanes elsewhere read as data". - Before the world frame the runs are clean: 4 refusals in the cold run and 3 in the warm one before it, and frames come at 16 to 19 a second up to frame 2816 (frame 1024 to 2816 takes 109 s cold and 95 s warm). ## Memory Wired memory from `vm_stat`, warm run (start 17:42:20, world packages open at 17:43:12): | Time | Wired | Free | Frame | | --- | --- | --- | --- | | 17:42:50 | 8.3 GB | 59 % | 768 | | 17:43:19 | 14.6 GB | 23 % | 1600 | | 17:44:47 | 15.9 GB | 15 % | 2944 | | 17:45:17 | 19.1 GB | 7 % | 3147 | | 17:46:18 | 21.1 GB | 2 % | 3284 | | 17:46:49 | 8.5 GB | 47 % | 3330 | | 17:47:22 | 13.1 GB | 38 % | 3330 | | 17:47:54 | 21.1 GB | 3 % | 3330 | | 17:48:25 | 5.1 GB | 64 % | 3352 | The cold run has the same shape: 21.0 GB with 2 % free at 17:36:39, then 10.8 GB at 17:37:00 and 20.5 GB at 17:37:22. Frames slow down as it climbs: in the warm run, 3264 at 17:45:42, 3328 at 17:46:40, then frame 3330 for more than a minute. ## Still there - The boot movie still alternates between two moments, as in the contact sheet above. ## Files I will attach the two logs (home folder and host names replaced) in the next comment.
ItsMariusBC commented 2026-11-26 17:58:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:58:40Z.


victory-182c14f-cold.log
victory-182c14f-warm.log

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7199912413 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7199912413). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T17:58:40Z. --- [victory-182c14f-cold.log](https://github.com/user-attachments/files/35477103/victory-182c14f-cold.log) [victory-182c14f-warm.log](https://github.com/user-attachments/files/35477104/victory-182c14f-warm.log)
LakshanSivakumar commented 2026-11-26 18:10:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:10:20Z.


Thanks for the cold/warm runs and the memory readings.

  • The crash at image+0x55e56f8 after the first world frame: this is the one we're on now (branch fix/prologue-crash). The title reads arrays of empty half-float AABBs as pointers, which correlates with a Metal texture row-pitch assertion. A row-pitch guard is being tested; not confirmed as the fix yet.
  • The 22–27 s first world frame: shaders are now translated ahead on 6 worker threads (146f7e9d, same branch), so it no longer trips the title's 30 s watchdog. Only translations and conversions of 20 ms or more are logged, so fast disk hits don't show up as hit=true.
  • The wired-memory climb and the slowdown after frame ~3000: these match what we see, and we're tracking down what keeps growing.
  • The boot movie: main (9ef554f) fixes the green flicker and smooths the pacing. Could you check whether the back-and-forth is gone there?
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200136881 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7200136881). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T18:10:20Z. --- Thanks for the cold/warm runs and the memory readings. - **The crash at image+0x55e56f8 after the first world frame:** this is the one we're on now (branch `fix/prologue-crash`). The title reads arrays of empty half-float AABBs as pointers, which correlates with a Metal texture row-pitch assertion. A row-pitch guard is being tested; not confirmed as the fix yet. - **The 22–27 s first world frame:** shaders are now translated ahead on 6 worker threads (146f7e9d, same branch), so it no longer trips the title's 30 s watchdog. Only translations and conversions of 20 ms or more are logged, so fast disk hits don't show up as `hit=true`. - **The wired-memory climb and the slowdown after frame ~3000:** these match what we see, and we're tracking down what keeps growing. - **The boot movie:** main (9ef554f) fixes the green flicker and smooths the pacing. Could you check whether the back-and-forth is gone there?
ItsMariusBC commented 2026-11-26 18:25:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T18:25:17Z.


One run on b6f15be (after #118, #120, #121 and #122), same Mac (M5 Pro, 24 GB, macOS 27.2.1), --console series-s, no VICTORY_* variables set. The shader cache folder is a new one on this commit, so this is a cold run. Times are the log's (UTC).

The run

182c14f cold b6f15be cold
Length 7 min 18 s 5 min 08 s
First world frame 3281 3861
First binds on that frame 792 764
Time on that frame 26.7 s 29.5 s (18:18:55.638 to 18:19:25.142)
End 0xc0000005 at image+0x55e56f8 0xc0000005 at image+0x55e56f8
"work held for a wait that does not hold" 27 3
Shaders refused 120 218
Metal out of memory / timeout none none

Frames come faster and without the slowdown of the earlier runs: frame 1024 at 18:14:56, 2816 at 18:16:29, 3328 at 18:17:08, 3712 at 18:18:02. The end is the same: a first-chance 0xc0000005 at image+0x23cf683, then the unhandled one. Wired memory was 21.5 GB with 2 % free 16 s before it.

The refusals the new messages name

Only 1 refusal comes before the world frame. The 18 with a named cause:

A lane mask holding lanes elsewhere read as data

  • a scalar operation not modelled: 513ade25cb1150ab @0x904, b8bfee7990f709b6 @0x54c, f124718a99930343 @0x42c, f87303668ac205fd @0x40
  • written by a scalar instruction of the other width: 0c565c326d2764ae @0xd00, 20db23d0b37f4e9e @0xd10

A lane-mask join of an untracked mask (data, on the host's lanes)

  • 3760b3db9e8a610c @0x8b0, 7b8bad18b0021356 @0xaa4, e54669f44a0c9082 @0x1fe0

A whole-wave section step the simulation does not follow

  • a value that is no reduction or prefix: 306d5f041f840a74 @0x1580, 88ad6f92ab81d773 @0x24c, e185298e4595124e @0xc58, f83816315f6f4c63 @0xc1c
  • an EXEC write that is no constant: 57112cf780dbfc5c @0x1ac

A descriptor's address or format read as data

  • an image's dwords 5 to 7: 7bc776ad7536135c @0x110, cd4e49742135ce3b @0x10ec, e487768c1c93ecf7 @0x654
  • a dword outside the descriptor: 7b38de487d3fa16a @0x11c

All 18 are compute programs. The hashes differ from the ones in the earlier log, but several offsets match the ones #120, #121 and #122 quote (0x8b0, 0xc1c, 0xc58, 0x1ac, 0x110, 0x10ec, 0x11c).

The rest of the refusals

Count Reason
145 a sampler built from computed words
18 a cross-lane operation between host waves in divergent code
12 a descriptor outside the heaps
9 LDS shared in a wave the host splits, in divergent code
4 a buffer descriptor built around a computed address
3 a 16-bit read of a 32-bit input

"A sampler built from computed words" went from 23 (182c14f cold) to 145 here, in 145 different programs: 80 compute and 65 vertex and pixel pairs. It is now two thirds of all refusals.

Also new in this log, three times just before the world frame:

a piece of title work was refused error=render targets of different sizes or samples: (1920, 1080, 1) and (3840, 2160, 1)

Files

I will attach the log (home folder and host names replaced) in the next comment.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200443043 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7200443043). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T18:25:17Z. --- One run on b6f15be (after #118, #120, #121 and #122), same Mac (M5 Pro, 24 GB, macOS 27.2.1), `--console series-s`, no `VICTORY_*` variables set. The shader cache folder is a new one on this commit, so this is a cold run. Times are the log's (UTC). ## The run | | 182c14f cold | b6f15be cold | | --- | --- | --- | | Length | 7 min 18 s | 5 min 08 s | | First world frame | 3281 | 3861 | | First binds on that frame | 792 | 764 | | Time on that frame | 26.7 s | 29.5 s (18:18:55.638 to 18:19:25.142) | | End | `0xc0000005 at image+0x55e56f8` | `0xc0000005 at image+0x55e56f8` | | "work held for a wait that does not hold" | 27 | 3 | | Shaders refused | 120 | 218 | | Metal out of memory / timeout | none | none | Frames come faster and without the slowdown of the earlier runs: frame 1024 at 18:14:56, 2816 at 18:16:29, 3328 at 18:17:08, 3712 at 18:18:02. The end is the same: a first-chance `0xc0000005` at image+0x23cf683, then the unhandled one. Wired memory was 21.5 GB with 2 % free 16 s before it. ## The refusals the new messages name Only 1 refusal comes before the world frame. The 18 with a named cause: **A lane mask holding lanes elsewhere read as data** - a scalar operation not modelled: `513ade25cb1150ab` @0x904, `b8bfee7990f709b6` @0x54c, `f124718a99930343` @0x42c, `f87303668ac205fd` @0x40 - written by a scalar instruction of the other width: `0c565c326d2764ae` @0xd00, `20db23d0b37f4e9e` @0xd10 **A lane-mask join of an untracked mask** (data, on the host's lanes) - `3760b3db9e8a610c` @0x8b0, `7b8bad18b0021356` @0xaa4, `e54669f44a0c9082` @0x1fe0 **A whole-wave section step the simulation does not follow** - a value that is no reduction or prefix: `306d5f041f840a74` @0x1580, `88ad6f92ab81d773` @0x24c, `e185298e4595124e` @0xc58, `f83816315f6f4c63` @0xc1c - an EXEC write that is no constant: `57112cf780dbfc5c` @0x1ac **A descriptor's address or format read as data** - an image's dwords 5 to 7: `7bc776ad7536135c` @0x110, `cd4e49742135ce3b` @0x10ec, `e487768c1c93ecf7` @0x654 - a dword outside the descriptor: `7b38de487d3fa16a` @0x11c All 18 are compute programs. The hashes differ from the ones in the earlier log, but several offsets match the ones #120, #121 and #122 quote (0x8b0, 0xc1c, 0xc58, 0x1ac, 0x110, 0x10ec, 0x11c). ## The rest of the refusals | Count | Reason | | --- | --- | | 145 | a sampler built from computed words | | 18 | a cross-lane operation between host waves in divergent code | | 12 | a descriptor outside the heaps | | 9 | LDS shared in a wave the host splits, in divergent code | | 4 | a buffer descriptor built around a computed address | | 3 | a 16-bit read of a 32-bit input | "A sampler built from computed words" went from 23 (182c14f cold) to 145 here, in 145 different programs: 80 compute and 65 vertex and pixel pairs. It is now two thirds of all refusals. Also new in this log, three times just before the world frame: ``` a piece of title work was refused error=render targets of different sizes or samples: (1920, 1080, 1) and (3840, 2160, 1) ``` ## Files I will attach the log (home folder and host names replaced) in the next comment.
ItsMariusBC commented 2026-11-26 18:27:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T18:27:10Z.


victory-b6f15be-cold.log

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200479070 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7200479070). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T18:27:10Z. --- [victory-b6f15be-cold.log](https://github.com/user-attachments/files/35477834/victory-b6f15be-cold.log)
ItsMariusBC commented 2026-11-26 18:30:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T18:30:44Z.


On the boot movie: the run above (b6f15be) already has 9ef554f, so this is what I saw with it. I did not record this one, so it is by eye.

  • Back-and-forth: better than before, but not clean yet. It still happens now and then.
  • Sound: small skips and crackles during the movie and the menus.
  • Menus: not really smooth.
  • Colours: they look off.

What the same log (victory-b6f15be-cold.log) has on the last two:

  • Frames before the world packages open (18:15:10): frame 64 at 18:14:22 and frame 1280 at 18:15:08, so about 26 a second on average. Of the 19 "native draws so far" steps of 64 frames in that stretch, 7 are under 25 frames a second. The timestamps I used are to the second, so this is coarse.
  • "WASAPI: render client released frames in the last second": 303 lines. 136 are at 47,500 frames or more, 154 between 46,000 and 47,499, 13 under 46,000. The average is 47,015 against the 48,000 I would expect. padding=0 on 102 of them, padding=480 on the other 201. I don't know whether that is what I hear.

I can record the boot movie on the next run and post a contact sheet like the first one, if that helps.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200546388 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7200546388). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T18:30:44Z. --- On the boot movie: the run above (b6f15be) already has 9ef554f, so this is what I saw with it. I did not record this one, so it is by eye. - **Back-and-forth:** better than before, but not clean yet. It still happens now and then. - **Sound:** small skips and crackles during the movie and the menus. - **Menus:** not really smooth. - **Colours:** they look off. What the same log (`victory-b6f15be-cold.log`) has on the last two: - Frames before the world packages open (18:15:10): frame 64 at 18:14:22 and frame 1280 at 18:15:08, so about 26 a second on average. Of the 19 "native draws so far" steps of 64 frames in that stretch, 7 are under 25 frames a second. The timestamps I used are to the second, so this is coarse. - "WASAPI: render client released frames in the last second": 303 lines. 136 are at 47,500 frames or more, 154 between 46,000 and 47,499, 13 under 46,000. The average is 47,015 against the 48,000 I would expect. `padding=0` on 102 of them, `padding=480` on the other 201. I don't know whether that is what I hear. I can record the boot movie on the next run and post a contact sheet like the first one, if that helps.
LakshanSivakumar commented 2026-11-26 18:46:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:46:42Z.


@ItsMariusBC @AeroUp Main (49e7c648) now gets past the first world frame's 30 s stall, so Series S should reach the next crash: one frame after the world frame, on the BVH-node garbage described in #15. A rerun on current main, Series S and Series X, would tell us whether Series X still runs out of GPU memory at the world load. Steps: git pull && tools/macos/native-setup.sh, then tools/macos/run-native.sh <game folder>. Please attach runs/<date>/victory.log, include the commit (git rev-parse --short HEAD), and add a line on what you saw on screen.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7200840410 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7200840410). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T18:46:42Z. --- @ItsMariusBC @AeroUp Main (49e7c648) now gets past the first world frame's 30 s stall, so Series S should reach the next crash: one frame after the world frame, on the BVH-node garbage described in #15. A rerun on current main, Series S and Series X, would tell us whether Series X still runs out of GPU memory at the world load. Steps: `git pull && tools/macos/native-setup.sh`, then `tools/macos/run-native.sh <game folder>`. Please attach `runs/<date>/victory.log`, include the commit (`git rev-parse --short HEAD`), and add a line on what you saw on screen.
ItsMariusBC commented 2026-11-26 19:18:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T19:18:59Z.


Both runs on 49e7c64 (git pull && tools/macos/native-setup.sh), same Mac (M5 Pro, 24 GB, macOS 27.2.1), no VICTORY_* variables set, Series S first and Series X right after. Times are the log's (UTC).

Short answer: on 24 GB, Series X still runs out of GPU memory at the world load, and Series S still stops on the first world frame.

Series S: 4 min 23 s, stops on the first world frame

Time Event
19:00:20 Start
19:01:30 World packages open
19:02:11 Frame 2688
19:02:17 shaders prewarmed n=16384 pending=5180 dxil_mb=42, the last such line
19:02:31 Frame 2816
19:02:51 Frame 2880
19:04:15.939 Frame 2929: 697 first binds, until 19:04:43.768 (27.8 s)
19:04:43 First-chance 0xc0000005 at image+0x23cf683, then 0xc0000005 at image+0x55e56f8
  • 70 shaders refused, 2 of them before the world frame. The most common: 20 "a descriptor outside the heaps", 9 "a lane-mask join of an untracked mask: data, on the host's lanes", 8 "a cross-lane operation between host waves in divergent code", 7 "LDS shared in a wave the host splits, in divergent code".
  • 12 "work held for a wait that does not hold", the longest 9.1 s. No Metal out of memory or timeout.

Wired memory from vm_stat:

Time Wired Free Frame
19:00:49 8.2 GB 55 % 768
19:01:18 14.6 GB 18 % 1472
19:02:17 5.2 GB 58 % 2688
19:02:48 20.7 GB 3 % 2816
19:03:21 21.7 GB 1 % 2905
19:04:31 21.6 GB 1 % 2929

Against the b6f15be run above: the world frame comes earlier (2929 against 3861), it takes about as long (27.8 s against 29.5 s), and wired memory passes 20 GB about 2 min 30 s into the run instead of about 4 min. Frames slow down from there, well before the world frame.

Series X: 3 min 14 s, Metal out of memory

Time Event
19:06:26 Start
19:06:46 shaders prewarmed n=16384 pending=0 dxil_mb=42
19:07:34 World packages open
19:08:32 Frame 1984, the last "native draws so far" line
19:08:50 First "work held for a wait that does not hold" (8 in all, the longest 22.2 s, GPU at 3982)
19:09:04, 19:09:16 metal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)
19:09:37 First-chance 0xc0000005 at image+0x2215c35
19:09:39 0xc0000005 at image+0x55e56f8
  • No shader refused: the run ends before the world frame.
  • The game's own crash report says system.memory.total 14155776 and system.memory.free 10616832.

Wired memory from vm_stat:

Time Wired Free Frame
19:06:48 9.0 GB 57 % 576
19:07:18 19.8 GB 6 % 1152
19:07:47 19.9 GB 5 % 1664
19:08:17 21.2 GB 2 % 1920
19:08:59 21.7 GB 1 % 1984

Two things stand out. Wired memory is already at 19.8 GB 16 s before the world packages open. And the last frame is 1984, the same as in my first Series X run on 3fd73fd at the top of this issue.

What I saw on screen

By eye and ear, the same for both runs:

  • It starts fine, but everything is very slow: the game runs slowed down, and so does the boot movie.
  • The sound still crackles a little and has drop-outs.
  • The picture is not right either.

Files

I will attach the two logs (home folder and host names replaced) in the next comment.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7201447123 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7201447123). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T19:18:59Z. --- Both runs on 49e7c64 (`git pull && tools/macos/native-setup.sh`), same Mac (M5 Pro, 24 GB, macOS 27.2.1), no `VICTORY_*` variables set, Series S first and Series X right after. Times are the log's (UTC). Short answer: on 24 GB, Series X still runs out of GPU memory at the world load, and Series S still stops on the first world frame. ## Series S: 4 min 23 s, stops on the first world frame | Time | Event | | --- | --- | | 19:00:20 | Start | | 19:01:30 | World packages open | | 19:02:11 | Frame 2688 | | 19:02:17 | `shaders prewarmed n=16384 pending=5180 dxil_mb=42`, the last such line | | 19:02:31 | Frame 2816 | | 19:02:51 | Frame 2880 | | 19:04:15.939 | Frame 2929: 697 first binds, until 19:04:43.768 (27.8 s) | | 19:04:43 | First-chance `0xc0000005` at image+0x23cf683, then `0xc0000005 at image+0x55e56f8` | - 70 shaders refused, 2 of them before the world frame. The most common: 20 "a descriptor outside the heaps", 9 "a lane-mask join of an untracked mask: data, on the host's lanes", 8 "a cross-lane operation between host waves in divergent code", 7 "LDS shared in a wave the host splits, in divergent code". - 12 "work held for a wait that does not hold", the longest 9.1 s. No Metal out of memory or timeout. Wired memory from `vm_stat`: | Time | Wired | Free | Frame | | --- | --- | --- | --- | | 19:00:49 | 8.2 GB | 55 % | 768 | | 19:01:18 | 14.6 GB | 18 % | 1472 | | 19:02:17 | 5.2 GB | 58 % | 2688 | | 19:02:48 | 20.7 GB | 3 % | 2816 | | 19:03:21 | 21.7 GB | 1 % | 2905 | | 19:04:31 | 21.6 GB | 1 % | 2929 | Against the b6f15be run above: the world frame comes earlier (2929 against 3861), it takes about as long (27.8 s against 29.5 s), and wired memory passes 20 GB about 2 min 30 s into the run instead of about 4 min. Frames slow down from there, well before the world frame. ## Series X: 3 min 14 s, Metal out of memory | Time | Event | | --- | --- | | 19:06:26 | Start | | 19:06:46 | `shaders prewarmed n=16384 pending=0 dxil_mb=42` | | 19:07:34 | World packages open | | 19:08:32 | Frame 1984, the last "native draws so far" line | | 19:08:50 | First "work held for a wait that does not hold" (8 in all, the longest 22.2 s, GPU at 3982) | | 19:09:04, 19:09:16 | `metal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)` | | 19:09:37 | First-chance `0xc0000005` at image+0x2215c35 | | 19:09:39 | `0xc0000005 at image+0x55e56f8` | - No shader refused: the run ends before the world frame. - The game's own crash report says `system.memory.total` 14155776 and `system.memory.free` 10616832. Wired memory from `vm_stat`: | Time | Wired | Free | Frame | | --- | --- | --- | --- | | 19:06:48 | 9.0 GB | 57 % | 576 | | 19:07:18 | 19.8 GB | 6 % | 1152 | | 19:07:47 | 19.9 GB | 5 % | 1664 | | 19:08:17 | 21.2 GB | 2 % | 1920 | | 19:08:59 | 21.7 GB | 1 % | 1984 | Two things stand out. Wired memory is already at 19.8 GB 16 s before the world packages open. And the last frame is 1984, the same as in my first Series X run on 3fd73fd at the top of this issue. ## What I saw on screen By eye and ear, the same for both runs: - It starts fine, but everything is very slow: the game runs slowed down, and so does the boot movie. - The sound still crackles a little and has drop-outs. - The picture is not right either. ## Files I will attach the two logs (home folder and host names replaced) in the next comment.
ItsMariusBC commented 2026-11-26 20:31:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T20:31:35Z.


Two of the things I reported above on the boot movie now have a fix, each as a pull request:

  • Sound (crackles and drop-outs in the movie and the menus): #144. The AudioQueue asks for 10 ms buffers 10.7 ms apart, with two back to back every 160 ms, and the title's event was set once per request, so one period in sixteen played as silence. The event now ticks on a clock of its own. Gaps in the recorded output went from 39 in 16.3 s of sound to 1 in 16.9 s, and that one is in what the title mixes.
  • Colours (the movie too bright): #145. The native host drew into the texture of a render target view and ignored the view's format. The movie is drawn through a plain view of an sRGB texture, so it was encoded twice. The Windows host already passes the view's description on.

Both were measured on 49e7c64, Series S, same Mac as above (M5 Pro, 24 GB). They are rebased on main (57b7ebd) and the tests and the clippy gate pass there, but I have not run the game on that base yet.

One thing I still see in the logs of these runs: a slowdown of about 2 s (12 to 13 frames a second) around frames 832 to 858, right after amd_fidelityfx_upscaler_xbox.dll is loaded and just before the movie's sound starts. The rest of the first 28 s holds 30 frames a second.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7202786256 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7202786256). Originally posted by [ItsMariusBC](https://github.com/ItsMariusBC) on 2026-11-26T20:31:35Z. --- Two of the things I reported above on the boot movie now have a fix, each as a pull request: - **Sound (crackles and drop-outs in the movie and the menus): #144.** The `AudioQueue` asks for 10 ms buffers 10.7 ms apart, with two back to back every 160 ms, and the title's event was set once per request, so one period in sixteen played as silence. The event now ticks on a clock of its own. Gaps in the recorded output went from 39 in 16.3 s of sound to 1 in 16.9 s, and that one is in what the title mixes. - **Colours (the movie too bright): #145.** The native host drew into the texture of a render target view and ignored the view's format. The movie is drawn through a plain view of an sRGB texture, so it was encoded twice. The Windows host already passes the view's description on. Both were measured on 49e7c64, Series S, same Mac as above (M5 Pro, 24 GB). They are rebased on main (57b7ebd) and the tests and the clippy gate pass there, but I have not run the game on that base yet. One thing I still see in the logs of these runs: a slowdown of about 2 s (12 to 13 frames a second) around frames 832 to 858, right after `amd_fidelityfx_upscaler_xbox.dll` is loaded and just before the movie's sound starts. The rest of the first 28 s holds 30 frames a second.
LakshanSivakumar commented 2026-11-26 23:18:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T23:18:27Z.


Closing, since everything here is fixed or has its own issue now. The Series S crash on the first world frame is fixed (the prologue now runs into the world, see #15). The boot movie's sound gaps were fixed by #144, and the render-target format by #145. What's left: Series X running out of GPU memory on 24 GB is #8 / #79 (please try VICTORY_METAL_RESIDENCY_SETS=heap), and the shader disk cache that never hits is #180. Thanks a lot for the detailed runs!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7205430925 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/110#issuecomment-7205430925). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T23:18:27Z. --- Closing, since everything here is fixed or has its own issue now. The Series S crash on the first world frame is fixed (the prologue now runs into the world, see #15). The boot movie's sound gaps were fixed by #144, and the render-target format by #145. What's left: Series X running out of GPU memory on 24 GB is #8 / #79 (please try `VICTORY_METAL_RESIDENCY_SETS=heap`), and the shader disk cache that never hits is #180. Thanks a lot for the detailed runs!
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#110
No description provided.