[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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
3fd73fdHow far did it get?
Further than that
What happened
Two runs back to back with
tools/macos/run-native.sh, one per console model. NoVICTORY_*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
story000_restofworld.rpfand others), 1 min 58 s inmetal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)frame=1984 recorded=33940 encoded=33939 no_pipeline=1 texture_copies=36.Run 2:
--console series-s, 3 min 05 sfirst-chance exception code=0xc0000005at image+0x23cf683VIctory: unhandled exception 0xc0000005 at image+0x55e56f8image+0x55e56f8).vm_statandmemory_pressure5 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.What this adds
Log
I will attach the two
runs/<date>/victory.logfiles (Series X and Series S) in a comment, with my home folder and host names replaced.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T16:46:44Z.
victory-series-s.log
victory-series-x.log
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
3fd73fdplus #108/#105/#106 merged,VICTORY_METAL_RESIDENCY_SETSunset (per-encoder naming):0xc0000005 at image+0x55e56f8, after a first-chance atimage+0x23cf683(the title's own fatal path: a deliberate null write). The title's own crash log (~/.cache/victory/data/*/temp/*.crash.log) namesUnsignaled CrossQueueBarrier, so the access violation looks like the symptom of a barrier the title expected and never saw.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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:13:39Z.
Thanks, both logs are very useful.
Unsignaled CrossQueueBarrier: this matches #80. A command buffer the GPU fails never signalled its fences. c3de092e fixes that and lands on main soon.7730dca) should remove that on a second run. We're measuring cold vs warm runs now.VICTORY_METAL_TEXTURE_BUDGET_MB) sounds like the right shape. A PR would be welcome.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.
0xc0000005 at image+0x55e56f80xc0000005 at image+0x55e56f8So 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_statevery 20 s during run 3 (start at 16:58:40, world packages open at 16:59:30):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:
All 179 have
hr=0x8007001e. Then, at 17:04:37, a first-chance0x80000003at image+0x4da6315, a first-chance0xc0000005, 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:
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.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:22:54Z.
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, noVICTORY_*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
0xc0000005 at image+0x55e56f80xc0000005 at image+0x55e56f8dstorage: request failedSo the warm run saves about 4 s on the first world frame and ends the same way: a first-chance
0xc0000005at image+0x23cf683, then the unhandled one.What the logs and the cache folder say about the cache:
hit=false. Nohit=trueline in either log.falsein the cold run, 8falsein the warm one, notruein 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)dstorage: request failed … hr=0x8007001elines of run 3 are gone in both runs.Memory
Wired memory from
vm_stat, warm run (start 17:42:20, world packages open at 17:43:12):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
Files
I will attach the two logs (home folder and host names replaced) in the next comment.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T17:58:40Z.
victory-182c14f-cold.log
victory-182c14f-warm.log
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.
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.hit=true.9ef554f) fixes the green flicker and smooths the pacing. Could you check whether the back-and-forth is gone there?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, noVICTORY_*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
182c14fcoldb6f15becold0xc0000005 at image+0x55e56f80xc0000005 at image+0x55e56f8Frames 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
0xc0000005at 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
513ade25cb1150ab@0x904,b8bfee7990f709b6@0x54c,f124718a99930343@0x42c,f87303668ac205fd@0x400c565c326d2764ae@0xd00,20db23d0b37f4e9e@0xd10A lane-mask join of an untracked mask (data, on the host's lanes)
3760b3db9e8a610c@0x8b0,7b8bad18b0021356@0xaa4,e54669f44a0c9082@0x1fe0A whole-wave section step the simulation does not follow
306d5f041f840a74@0x1580,88ad6f92ab81d773@0x24c,e185298e4595124e@0xc58,f83816315f6f4c63@0xc1c57112cf780dbfc5c@0x1acA descriptor's address or format read as data
7bc776ad7536135c@0x110,cd4e49742135ce3b@0x10ec,e487768c1c93ecf7@0x6547b38de487d3fa16a@0x11cAll 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
"A sampler built from computed words" went from 23 (
182c14fcold) 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:
Files
I will attach the log (home folder and host names replaced) in the next comment.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by ItsMariusBC on 2026-11-26T18:27:10Z.
victory-b6f15be-cold.log
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 has9ef554f, so this is what I saw with it. I did not record this one, so it is by eye.What the same log (
victory-b6f15be-cold.log) has on the last two:padding=0on 102 of them,padding=480on 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.
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, thentools/macos/run-native.sh <game folder>. Please attachruns/<date>/victory.log, include the commit (git rev-parse --short HEAD), and add a line on what you saw on screen.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), noVICTORY_*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
shaders prewarmed n=16384 pending=5180 dxil_mb=42, the last such line0xc0000005at image+0x23cf683, then0xc0000005 at image+0x55e56f8Wired memory from
vm_stat:Against the
b6f15berun 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
shaders prewarmed n=16384 pending=0 dxil_mb=42metal: command buffer failed: Insufficient Memory (kIOGPUCommandBufferCallbackErrorOutOfMemory)0xc0000005at image+0x2215c350xc0000005 at image+0x55e56f8system.memory.total14155776 andsystem.memory.free10616832.Wired memory from
vm_stat: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
3fd73fdat the top of this issue.What I saw on screen
By eye and ear, the same for both runs:
Files
I will attach the two logs (home folder and host names replaced) in the next comment.
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:
AudioQueueasks 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.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.dllis loaded and just before the movie's sound starts. The rest of the first 28 s holds 30 frames a second.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!