Deterministic crash at frame ~800 entering the intro mission (fbk_stry000 prestream): null-pointer write in title code #404

Open
opened 2026-11-27 16:57:59 +00:00 by wz11wz · 11 comments
wz11wz commented 2026-11-27 16:57:59 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-27T16:57:59Z.


Environment

M1 Max (64 GB), macOS 26 (Darwin 27.2), console=series-x, commit 5e986bb (the #375 branch; VICTORY_METALFX=1 was set, but the FidelityFX interception never ran in these sessions - zero ffx* calls logged - so this crash is independent of that experiment).

Reproduction

Windowed interactive runs, advancing past the menus with Enter. Two runs crash deterministically: frame 807 and 799 (~2m25s / ~2m15s in). By contrast, two headless runs with auto-Enter (240 s and 600 s, frames 6784 and 17792) never crash.

Signature

WARN victory_loader::native::seh::dispatch: first-chance exception code=0xc0000005
     at=0x1455e56f8  rax=0x0  info=[1, 0]        <- write through a null pointer, title code
INFO title: BacktraceBreakpad:...http_upload.cc:488 ...  <- the title's own crash handler runs
WARN victory_loader::native::seh::dispatch: first-chance exception code=0xc0000005 ...
VIctory: unhandled exception 0xc0000005 -> exit 134    <- and faults again during upload

~4 s before the first fault, one warning: work held for a wait that does not hold: ["fence 0x6000021e1e00: ..."].

Both crashes sit at the same script state

crash 1 crash 2
Frame 807 799
Running time 2m25s 2m15s
Current SRL fbk_stry000_FBK_STRY000_INTRO same
SRL State Prestream same
Camera <1833.103394, 139.042648, 15.986642> same
Unsignaled CrossQueueBarrier 10858212 10858212

The intro mission is pre-streaming its assets when the null write happens - same camera, same barrier count, ~10 frames apart in two independent sessions.

crash log 1 (frame 807)
###### DEBUG INFO ######

========= SYSTEM INFO =========
Game Running Time: 0h:2m:25s
Game Timestamp: [T:176361]
Game State: Game Running [T:30867]
Frame: 807
Paused: No
Streaming Requests: 403
TileHeap: used (3461Mb) - total (6236Mb)

========= MEMORYINFO =========
Game Virtual: 936404432/1228931056
Resource Virtual: 0/0
Game Physical: 2182278848/2305818624
Resource Physical: 0/0
Unused: 0/590348272
Pool: 591978272/624951280
OS: 0/0
Game External: 0/0
OS External: 0/0

========= MISC INFO =========
SharedId: f825779f7e8d11ddb364becbd9ababd3
Game Environment: prod
Game Locale: US
Game SKU: ROW
TitleID: 7952987a
Conole Type: Anaconda
Sandbox: RETAIL
Version: 930.048.020-vb_sub_story
Camera Position: <1833.103394, 139.042648, 15.986642>
Camera Front: <-0.021826, -0.028305, 0.999361>
Game Time: (3:0)
System Language: English
GFX Queue: 65555136
Unsignaled CrossQueueBarrier: 10858212

========= MISSION =========
Current Mission Name: 0x98c85f2a [F:755]
Current Mission Stage: 0x98c85f2a [F:755]
Last Mission Name: 0x98c85f2a
Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:87816]
Current SRL State: Prestream [T:88325]

========= ANIMSCENE =========
Current AnimScene: 0xe9f5cf99 [T:94091]

========= SCRIPT =========
Current script program: 0x0 [T:145422]
Currently running script threads: 2
   - (2) 0x5b5eeffe [T:71589]
   - (28) 0xf024c932 [T:77737]

========= PLAYER =========
Position: <1832.492676, 143.453461, 2.731965> [T:145446]
Wanted Level: 0 [T:0]
Arrest State: None [T:0]
Player Health: 130.00/130.00 [T:71980]
Health State: Healthy [T:0]
Current Vehicle:  [T:145446]

========= POOLS =========
 - NOTHING: 0/0
 - BUILDING: 6871/22500
 - VEHICLE: 122/700
 - PED: 42/600
 - OBJECT: 5947/27500
 - PORTAL: 22/700
 - MLO: 6/120
 - NOTINPOOLS: 0/0
 - PARTICLESYSTEM: 48/512
 - LIGHT: 1032/8000
 - LIGHTEMITTER: 342/3000
 - COMPOSITE: 0/0
 - INSTANCE_LIST: 21235/45000
 - GRASS_INSTANCE_LIST: 2111/9000
 - VEHICLEGLASSCOMPONENT: 0/128

========= PEDS =========
Peds: 42/600 (real: 31, dummy: 11)
 - mission: 10
 - scenario: 2
 - wander: 21
 - perschar: 3
 - other: 0

========= VEHICLES =========
Cars: 122/700 (real: 5(1 traffic), dummy: 0, superdummy: 76) - clones: 0
 - ambient: 47
 - mission: 5
 - parked: 70
 - reusePool: 0
 - scriptExtensions: 0
 - scriptHandlers: 0

========= NETWORK =========
Telemetry PlSesId: 1795797613075

========= ANIMMISC =========
Misc Pool Usages:
 - CObjects: 5947
 - CMoveObjects: 28
 - CObjectAnimationComponents: 100
 - CWeapons: 22
 - CPedEquippedWeapons: 0

###### END OF DEBUG INFO ######
crash log 2 (frame 799)
###### DEBUG INFO ######

========= SYSTEM INFO =========
Game Running Time: 0h:2m:15s
Game Timestamp: [T:171233]
Game State: Game Running [T:34225]
Frame: 799
Paused: No
Streaming Requests: 249
TileHeap: used (3731Mb) - total (6236Mb)

========= MEMORYINFO =========
Game Virtual: 938328896/1228931056
Resource Virtual: 0/0
Game Physical: 2182695152/2305818624
Resource Physical: 0/0
Unused: 0/590348272
Pool: 591978256/624951280
OS: 0/0
Game External: 0/0
OS External: 0/0

========= MISC INFO =========
SharedId: a97cc8be7e8e11dd885e1aef29af709c
Game Environment: prod
Game Locale: US
Game SKU: ROW
TitleID: 7952987a
Conole Type: Anaconda
Sandbox: RETAIL
Version: 930.048.020-vb_sub_story
Camera Position: <1833.103394, 139.042648, 15.986642>
Camera Front: <-0.021826, -0.028305, 0.999361>
Game Time: (3:0)
System Language: English
GFX Queue: 65555136
Unsignaled CrossQueueBarrier: 10858212

========= MISSION =========
Current Mission Name: 0x98c85f2a [F:776]
Current Mission Stage: 0x98c85f2a [F:776]
Last Mission Name: 0x98c85f2a
Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:93300]
Current SRL State: Prestream [T:94069]

========= ANIMSCENE =========
Current AnimScene: 0xe9f5cf99 [T:100188]

========= SCRIPT =========
Current script program: 0x0 [T:139926]
Currently running script threads: 4
   - (2) 0x5b5eeffe [T:75771]
   - (28) 0x889f3695 [T:83101]
   - (26) 0xf024c932 [T:82293]
   - (27) 0xcbc14f15 [T:82915]

========= PLAYER =========
Position: <1832.522949, 143.464584, 2.718164> [T:139965]
Wanted Level: 0 [T:0]
Arrest State: None [T:0]
Player Health: 130.00/130.00 [T:76225]
Health State: Healthy [T:0]
Current Vehicle:  [T:139965]

========= POOLS =========
 - NOTHING: 0/0
 - BUILDING: 7392/22500
 - VEHICLE: 93/700
 - PED: 71/600
 - OBJECT: 6796/27500
 - PORTAL: 22/700
 - MLO: 7/120
 - NOTINPOOLS: 0/0
 - PARTICLESYSTEM: 57/512
 - LIGHT: 997/8000
 - LIGHTEMITTER: 292/3000
 - COMPOSITE: 0/0
 - INSTANCE_LIST: 22904/45000
 - GRASS_INSTANCE_LIST: 2555/9000
 - VEHICLEGLASSCOMPONENT: 0/128

========= PEDS =========
Peds: 71/600 (real: 51, dummy: 20)
 - mission: 8
 - scenario: 17
 - wander: 28
 - perschar: 4
 - other: 0

========= VEHICLES =========
Cars: 93/700 (real: 4(0 traffic), dummy: 0, superdummy: 44) - clones: 0
 - ambient: 48
 - mission: 5
 - parked: 40
 - reusePool: 0
 - scriptExtensions: 0
 - scriptHandlers: 0

========= NETWORK =========
Telemetry PlSesId: 1795797910548

========= ANIMMISC =========
Misc Pool Usages:
 - CObjects: 6796
 - CMoveObjects: 61
 - CObjectAnimationComponents: 149
 - CWeapons: 44
 - CPedEquippedWeapons: 21

###### END OF DEBUG INFO ######

Asked in #381 alongside this: what run setup and input sequence reaches the prologue world. Happy to test any recipe and report back.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6650988235 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-27T16:57:59Z. --- ## Environment M1 Max (64 GB), macOS 26 (Darwin 27.2), console=series-x, commit `5e986bb` (the #375 branch; `VICTORY_METALFX=1` was set, but **the FidelityFX interception never ran in these sessions - zero `ffx*` calls logged** - so this crash is independent of that experiment). ## Reproduction **Windowed interactive** runs, advancing past the menus with Enter. Two runs crash deterministically: frame **807** and **799** (~2m25s / ~2m15s in). By contrast, two **headless** runs with auto-Enter (240 s and 600 s, frames 6784 and 17792) never crash. ## Signature ``` WARN victory_loader::native::seh::dispatch: first-chance exception code=0xc0000005 at=0x1455e56f8 rax=0x0 info=[1, 0] <- write through a null pointer, title code INFO title: BacktraceBreakpad:...http_upload.cc:488 ... <- the title's own crash handler runs WARN victory_loader::native::seh::dispatch: first-chance exception code=0xc0000005 ... VIctory: unhandled exception 0xc0000005 -> exit 134 <- and faults again during upload ``` ~4 s before the first fault, one warning: `work held for a wait that does not hold: ["fence 0x6000021e1e00: ..."]`. ## Both crashes sit at the same script state | | crash 1 | crash 2 | |---|---|---| | Frame | 807 | 799 | | Running time | 2m25s | 2m15s | | Current SRL | `fbk_stry000_FBK_STRY000_INTRO` | same | | SRL State | **Prestream** | same | | Camera | `<1833.103394, 139.042648, 15.986642>` | same | | Unsignaled CrossQueueBarrier | 10858212 | 10858212 | The intro mission is pre-streaming its assets when the null write happens - same camera, same barrier count, ~10 frames apart in two independent sessions. <details><summary>crash log 1 (frame 807)</summary> ``` ###### DEBUG INFO ###### ========= SYSTEM INFO ========= Game Running Time: 0h:2m:25s Game Timestamp: [T:176361] Game State: Game Running [T:30867] Frame: 807 Paused: No Streaming Requests: 403 TileHeap: used (3461Mb) - total (6236Mb) ========= MEMORYINFO ========= Game Virtual: 936404432/1228931056 Resource Virtual: 0/0 Game Physical: 2182278848/2305818624 Resource Physical: 0/0 Unused: 0/590348272 Pool: 591978272/624951280 OS: 0/0 Game External: 0/0 OS External: 0/0 ========= MISC INFO ========= SharedId: f825779f7e8d11ddb364becbd9ababd3 Game Environment: prod Game Locale: US Game SKU: ROW TitleID: 7952987a Conole Type: Anaconda Sandbox: RETAIL Version: 930.048.020-vb_sub_story Camera Position: <1833.103394, 139.042648, 15.986642> Camera Front: <-0.021826, -0.028305, 0.999361> Game Time: (3:0) System Language: English GFX Queue: 65555136 Unsignaled CrossQueueBarrier: 10858212 ========= MISSION ========= Current Mission Name: 0x98c85f2a [F:755] Current Mission Stage: 0x98c85f2a [F:755] Last Mission Name: 0x98c85f2a Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:87816] Current SRL State: Prestream [T:88325] ========= ANIMSCENE ========= Current AnimScene: 0xe9f5cf99 [T:94091] ========= SCRIPT ========= Current script program: 0x0 [T:145422] Currently running script threads: 2 - (2) 0x5b5eeffe [T:71589] - (28) 0xf024c932 [T:77737] ========= PLAYER ========= Position: <1832.492676, 143.453461, 2.731965> [T:145446] Wanted Level: 0 [T:0] Arrest State: None [T:0] Player Health: 130.00/130.00 [T:71980] Health State: Healthy [T:0] Current Vehicle: [T:145446] ========= POOLS ========= - NOTHING: 0/0 - BUILDING: 6871/22500 - VEHICLE: 122/700 - PED: 42/600 - OBJECT: 5947/27500 - PORTAL: 22/700 - MLO: 6/120 - NOTINPOOLS: 0/0 - PARTICLESYSTEM: 48/512 - LIGHT: 1032/8000 - LIGHTEMITTER: 342/3000 - COMPOSITE: 0/0 - INSTANCE_LIST: 21235/45000 - GRASS_INSTANCE_LIST: 2111/9000 - VEHICLEGLASSCOMPONENT: 0/128 ========= PEDS ========= Peds: 42/600 (real: 31, dummy: 11) - mission: 10 - scenario: 2 - wander: 21 - perschar: 3 - other: 0 ========= VEHICLES ========= Cars: 122/700 (real: 5(1 traffic), dummy: 0, superdummy: 76) - clones: 0 - ambient: 47 - mission: 5 - parked: 70 - reusePool: 0 - scriptExtensions: 0 - scriptHandlers: 0 ========= NETWORK ========= Telemetry PlSesId: 1795797613075 ========= ANIMMISC ========= Misc Pool Usages: - CObjects: 5947 - CMoveObjects: 28 - CObjectAnimationComponents: 100 - CWeapons: 22 - CPedEquippedWeapons: 0 ###### END OF DEBUG INFO ###### ``` </details> <details><summary>crash log 2 (frame 799)</summary> ``` ###### DEBUG INFO ###### ========= SYSTEM INFO ========= Game Running Time: 0h:2m:15s Game Timestamp: [T:171233] Game State: Game Running [T:34225] Frame: 799 Paused: No Streaming Requests: 249 TileHeap: used (3731Mb) - total (6236Mb) ========= MEMORYINFO ========= Game Virtual: 938328896/1228931056 Resource Virtual: 0/0 Game Physical: 2182695152/2305818624 Resource Physical: 0/0 Unused: 0/590348272 Pool: 591978256/624951280 OS: 0/0 Game External: 0/0 OS External: 0/0 ========= MISC INFO ========= SharedId: a97cc8be7e8e11dd885e1aef29af709c Game Environment: prod Game Locale: US Game SKU: ROW TitleID: 7952987a Conole Type: Anaconda Sandbox: RETAIL Version: 930.048.020-vb_sub_story Camera Position: <1833.103394, 139.042648, 15.986642> Camera Front: <-0.021826, -0.028305, 0.999361> Game Time: (3:0) System Language: English GFX Queue: 65555136 Unsignaled CrossQueueBarrier: 10858212 ========= MISSION ========= Current Mission Name: 0x98c85f2a [F:776] Current Mission Stage: 0x98c85f2a [F:776] Last Mission Name: 0x98c85f2a Current SRL Name: fbk_stry000_FBK_STRY000_INTRO [T:93300] Current SRL State: Prestream [T:94069] ========= ANIMSCENE ========= Current AnimScene: 0xe9f5cf99 [T:100188] ========= SCRIPT ========= Current script program: 0x0 [T:139926] Currently running script threads: 4 - (2) 0x5b5eeffe [T:75771] - (28) 0x889f3695 [T:83101] - (26) 0xf024c932 [T:82293] - (27) 0xcbc14f15 [T:82915] ========= PLAYER ========= Position: <1832.522949, 143.464584, 2.718164> [T:139965] Wanted Level: 0 [T:0] Arrest State: None [T:0] Player Health: 130.00/130.00 [T:76225] Health State: Healthy [T:0] Current Vehicle: [T:139965] ========= POOLS ========= - NOTHING: 0/0 - BUILDING: 7392/22500 - VEHICLE: 93/700 - PED: 71/600 - OBJECT: 6796/27500 - PORTAL: 22/700 - MLO: 7/120 - NOTINPOOLS: 0/0 - PARTICLESYSTEM: 57/512 - LIGHT: 997/8000 - LIGHTEMITTER: 292/3000 - COMPOSITE: 0/0 - INSTANCE_LIST: 22904/45000 - GRASS_INSTANCE_LIST: 2555/9000 - VEHICLEGLASSCOMPONENT: 0/128 ========= PEDS ========= Peds: 71/600 (real: 51, dummy: 20) - mission: 8 - scenario: 17 - wander: 28 - perschar: 4 - other: 0 ========= VEHICLES ========= Cars: 93/700 (real: 4(0 traffic), dummy: 0, superdummy: 44) - clones: 0 - ambient: 48 - mission: 5 - parked: 40 - reusePool: 0 - scriptExtensions: 0 - scriptHandlers: 0 ========= NETWORK ========= Telemetry PlSesId: 1795797910548 ========= ANIMMISC ========= Misc Pool Usages: - CObjects: 6796 - CMoveObjects: 61 - CObjectAnimationComponents: 149 - CWeapons: 44 - CPedEquippedWeapons: 21 ###### END OF DEBUG INFO ###### ``` </details> Asked in #381 alongside this: what run setup and input sequence reaches the prologue world. Happy to test any recipe and report back.
alexballvideos-netizen commented 2026-11-27 20:21:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by alexballvideos-netizen on 2026-11-27T20:21:39Z.


image+0x55e56f8 looks like a side effect, not the cause. I've hit the same address 4 times on an M3 Max, 36 GB (Series X, 86786a72 and a3b26747), and in each log the order is the same:

  1. The GPU stops reporting: work held for a wait that does not hold (fences 4 to 5 signals behind the GPU), then metal: N command buffers were never reported on by the GPU ... (the first unreported for 22.1s). The warning repeats every 5 s, and audio peak drops to 0.0.
  2. About 25 to 30 s later, the first fault: first-chance exception code=0xc0000005 at=0x1423cf683 info=[1, 0] rax=0x0. At that address the title deliberately writes a constant to address 0, which is how it stops itself (a watchdog or fatal-error path), not a stray null pointer.
  3. The title's Breakpad handler runs (BacktraceBreakpad ... http_upload.cc:488 parameter lines).
  4. About 12 ms later, the second fault at 0x1455e56f8, inside the report path: a read through a null member of an object the reporter is writing into. That is the one VIctory prints as unhandled exception ... at image+0x55e56f8.

Our host logs GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump in the same runs, so the reporter may be running on a partly set-up path. That's a guess, not proven.

So all of these crashes probably come down to "the title's watchdog fired, then its crash reporter faulted". The thing to chase is step 1, the GPU stall or out-of-memory (#79 on my Mac, the OutOfMemory errors in #430), and maybe the unsignalled cross-queue barrier in this issue's crash logs. To the reporter: if your log still has the lines before the first 0x1455e56f8, could you grep for 0x1423cf683, does not hold and never reported on? That would show whether your frame-800 crash has the same first step.

For comparison, the latest main (b998bb65) ran 300 s headless to frame 2748 on the same Mac with no stall and no crash. Counts and addresses only.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7227426525 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7227426525). Originally posted by [alexballvideos-netizen](https://github.com/alexballvideos-netizen) on 2026-11-27T20:21:39Z. --- `image+0x55e56f8` looks like a side effect, not the cause. I've hit the same address 4 times on an M3 Max, 36 GB (Series X, 86786a72 and a3b26747), and in each log the order is the same: 1. The GPU stops reporting: `work held for a wait that does not hold` (fences 4 to 5 signals behind the GPU), then `metal: N command buffers were never reported on by the GPU ... (the first unreported for 22.1s)`. The warning repeats every 5 s, and audio peak drops to 0.0. 2. About 25 to 30 s later, the **first** fault: `first-chance exception code=0xc0000005 at=0x1423cf683 info=[1, 0] rax=0x0`. At that address the title deliberately writes a constant to address 0, which is how it stops itself (a watchdog or fatal-error path), not a stray null pointer. 3. The title's Breakpad handler runs (`BacktraceBreakpad ... http_upload.cc:488` parameter lines). 4. About 12 ms later, the **second** fault at `0x1455e56f8`, inside the report path: a read through a null member of an object the reporter is writing into. That is the one VIctory prints as `unhandled exception ... at image+0x55e56f8`. Our host logs `GetProcAddress: not implemented dll="dbghelp.dll" symbol=MiniDumpWriteDump` in the same runs, so the reporter may be running on a partly set-up path. That's a guess, not proven. So all of these crashes probably come down to "the title's watchdog fired, then its crash reporter faulted". The thing to chase is step 1, the GPU stall or out-of-memory (#79 on my Mac, the OutOfMemory errors in #430), and maybe the unsignalled cross-queue barrier in this issue's crash logs. To the reporter: if your log still has the lines before the first `0x1455e56f8`, could you grep for `0x1423cf683`, `does not hold` and `never reported on`? That would show whether your frame-800 crash has the same first step. For comparison, the latest main (b998bb65) ran 300 s headless to frame 2748 on the same Mac with no stall and no crash. Counts and addresses only.
maaalrey commented 2026-11-27 20:52:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by maaalrey on 2026-11-27T20:52:03Z.


To help separate the causes: the twelve freezes I reported in #456 (M4 Max, c1b9587 and 86786a7; six in a new game, six loading a save) have none of work held for a wait that does not hold, never reported on by the GPU or command buffer failed anywhere in their logs. The six new-game ones end with a fault at image+0x2215c35 and then image+0x55e56f8. In all of them the main thread waits for a job thread that spins in title code.

So image+0x55e56f8 has at least two ways in: the GPU going quiet, as in the logs above, and that one.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7227914968 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7227914968). Originally posted by [maaalrey](https://github.com/maaalrey) on 2026-11-27T20:52:03Z. --- To help separate the causes: the twelve freezes I reported in #456 (M4 Max, c1b9587 and 86786a7; six in a new game, six loading a save) have none of `work held for a wait that does not hold`, `never reported on by the GPU` or `command buffer failed` anywhere in their logs. The six new-game ones end with a fault at image+0x2215c35 and then image+0x55e56f8. In all of them the main thread waits for a job thread that spins in title code. So image+0x55e56f8 has at least two ways in: the GPU going quiet, as in the logs above, and that one.
alexballvideos-netizen commented 2026-11-27 21:08:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by alexballvideos-netizen on 2026-11-27T21:08:16Z.


Agreed, thanks. That matches a run I had an hour ago on the M3 Max (main b998bb65, Series X, VICTORY_DEPTH_TWINS=0): first fault at image+0x2215c35, then image+0x55e56f8, with no does not hold or never reported on line in the log. So that's your #456 path, not the GPU one. That makes at least two triggers for the same final address: the watchdog write at 0x23cf683 after a GPU stall, and the 0x2215c35 fault with a job thread spinning.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7228169145 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7228169145). Originally posted by [alexballvideos-netizen](https://github.com/alexballvideos-netizen) on 2026-11-27T21:08:16Z. --- Agreed, thanks. That matches a run I had an hour ago on the M3 Max (main b998bb65, Series X, `VICTORY_DEPTH_TWINS=0`): first fault at `image+0x2215c35`, then `image+0x55e56f8`, with no `does not hold` or `never reported on` line in the log. So that's your #456 path, not the GPU one. That makes at least two triggers for the same final address: the watchdog write at `0x23cf683` after a GPU stall, and the `0x2215c35` fault with a job thread spinning.
wz11wz commented 2026-11-27 23:06:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-27T23:06:13Z.


Confirming path (a) from an M1 Max 64 GB (macOS 26, console=series-x, commit 5e986bb via #381): two windowed interactive sessions died exactly your way. Both logs carry never reported on by the GPU (1x each) plus the repeating work held for a wait that does not hold fences (9x and 11x), then the 0x23cf683 write fault and the 0x55e56f8 landing, at frames 807 and 799. Both crash logs are attached in #404's description.

One extra data point worth knowing: both our stalls were windowed interactive runs, while our two headless runs (auto-Enter, 240 s and 600 s, frames 6784 / 17792) never stalled - so either headless suppresses the trigger or the stall needs more runtime than those windows. Logs live in runs/20261128-004010-Fk95ib/ and runs/20261128-004502-pstqdR/ if the command-buffer timeline is useful.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7229873295 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7229873295). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-27T23:06:13Z. --- Confirming path (a) from an M1 Max 64 GB (macOS 26, console=series-x, commit 5e986bb via #381): two windowed interactive sessions died exactly your way. Both logs carry `never reported on by the GPU` (1x each) plus the repeating `work held for a wait that does not hold` fences (9x and 11x), then the `0x23cf683` write fault and the `0x55e56f8` landing, at frames 807 and 799. Both crash logs are attached in #404's description. One extra data point worth knowing: both our stalls were **windowed interactive** runs, while our two headless runs (auto-Enter, 240 s and 600 s, frames 6784 / 17792) never stalled - so either headless suppresses the trigger or the stall needs more runtime than those windows. Logs live in `runs/20261128-004010-Fk95ib/` and `runs/20261128-004502-pstqdR/` if the command-buffer timeline is useful.
wz11wz commented 2026-11-27 23:18:47 +00:00 (Migrated from github.com)
Author
Contributor

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


Since path (a) reproduces for us deterministically (M1 Max 64 GB, windowed interactive, the transition into the intro mission, frame ~800 - two sessions, frames 799/807), here is how we plan to localize which submission the GPU never completes, with tooling that already exists in the tree. Corrections welcome before we start.

The gap. never reported on by the GPU says a committed command buffer never completed, but not which one: a world frame is thousands of submissions, and D3DMetal answers timestamp queries with zeros, so GPU-side timing probes are out.

What the tree already has. gpu_pass.rs (VICTORY_GPU_PASS_TIMING, VICTORY_GPU_PASS_CUTS) already re-submits a frame's host lists one by one and waits on each - exactly the shape needed for hang attribution, minus the timing:

  1. Per-list fence bisect (cheap, exact). Replay the frame as usual, but submit each host list separately and wait on its fence before the next; log every completed index. The first fence that never signals names the hanging list - its pipelines, draws and dispatches are already printed by the same machinery. No loads/stores re-payment problem here: we only need where it stops, not the time.
  2. If the hang is inside one list, cut that list at pipeline changes (bounded; the doc records that 3,124 cuts OOM'd) and repeat the fence bisect inside it - that lands on one pipeline state, and its translated MSL is then the suspect.
  3. Compare windowed vs headless on the same build: our two stalls were windowed interactive while headless auto-Enter runs (240 s / 600 s) never stalled, so the same replay on both paths may show the divergence point before the GPU goes quiet.

Two notes from the gpu_pass doc we will respect: each cut ends a Metal render pass, so loads/stores are re-paid (fine for localization, not for time); and the pass-timing path disables Wait-Before-Prep overlap, which is fine for the same reason.

If this lands on a pipeline, the follow-up questions (translated MSL loop? mesh pipeline on TBDR? submission dependency?) become ordinary bisection. We can send the per-list bisect as a small PR behind a diagnostics switch, or a tester-report follow-up with the bisected frame attached - say which you prefer.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7230043195 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7230043195). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-27T23:18:47Z. --- Since path (a) reproduces for us deterministically (M1 Max 64 GB, windowed interactive, the transition into the intro mission, frame ~800 - two sessions, frames 799/807), here is how we plan to localize **which submission the GPU never completes**, with tooling that already exists in the tree. Corrections welcome before we start. **The gap.** `never reported on by the GPU` says a committed command buffer never completed, but not which one: a world frame is thousands of submissions, and D3DMetal answers timestamp queries with zeros, so GPU-side timing probes are out. **What the tree already has.** `gpu_pass.rs` (VICTORY_GPU_PASS_TIMING, VICTORY_GPU_PASS_CUTS) already re-submits a frame's host lists one by one and waits on each - exactly the shape needed for hang attribution, minus the timing: 1. **Per-list fence bisect (cheap, exact).** Replay the frame as usual, but submit each host list separately and wait on its fence before the next; log every completed index. The first fence that never signals names the hanging list - its pipelines, draws and dispatches are already printed by the same machinery. No loads/stores re-payment problem here: we only need *where it stops*, not the time. 2. **If the hang is inside one list**, cut that list at pipeline changes (bounded; the doc records that 3,124 cuts OOM'd) and repeat the fence bisect inside it - that lands on one pipeline state, and its translated MSL is then the suspect. 3. **Compare windowed vs headless** on the same build: our two stalls were windowed interactive while headless auto-Enter runs (240 s / 600 s) never stalled, so the same replay on both paths may show the divergence point before the GPU goes quiet. Two notes from the gpu_pass doc we will respect: each cut ends a Metal render pass, so loads/stores are re-paid (fine for localization, not for time); and the pass-timing path disables Wait-Before-Prep overlap, which is fine for the same reason. If this lands on a pipeline, the follow-up questions (translated MSL loop? mesh pipeline on TBDR? submission dependency?) become ordinary bisection. We can send the per-list bisect as a small PR behind a diagnostics switch, or a tester-report follow-up with the bisected frame attached - say which you prefer.
wz11wz commented 2026-11-27 23:34:11 +00:00 (Migrated from github.com)
Author
Contributor

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


The per-submit attribution landed - VICTORY_TRACE_GPU_FAILS=1 already names the hung command buffers (labels + encoder trace, no code needed), and one boot-crash run caught the stall mid-flight. Findings from the 21 in-flight warnings (runs/20261128-072239-seoRGT/victory.log, M1 Max, 8 minutes into the run):

  • Every hung buffer has waits=0 (21/21), 11 of them signals=0: the GPU was handed work with no dependencies and never finished executing it.

  • The hung buffers are compute-heavy. The dispatches inside them, by frequency:

    36  compute 1e84848f38c78615 1x1x1
    30  compute 8f9ab72f8c418630 1x1x1
    30  compute 0c8e4446f3c150f1 1x1x1
    16  compute d19718795242d0fe 1x1x1
    16  compute d19718795242d0fe 16x16x1
     7  compute 9355b4a50f2628a4 5x5x33
    

    (1e84848f also dispatched at 8x8x1 / 4x4x1 / 2x2x1 - a mip/tile pyramid pattern.)

  • Timeline matches the 25-30 s pattern: first in-flight warnings at 23:29:54, crash at 23:30:33.

So the GPU-stall path starts with translated compute shaders hanging the GPU - dozens of tiny 1x1x1 dispatches look like per-item or spin-style kernels, and a translated MSL that polls memory nothing ever writes (or an MSL loop that never exits on Apple GPUs) would produce exactly this: buffers with no waits that never complete, fences falling behind, then the title's null write.

Anyone can check their own stall logs the same way: grep -E "command buffer in flight for" <log> then collect the compute <hash> <dims> lines. If the same hashes show up on other machines, that pins the four shaders above as the first suspects - and the shader cache can dump their translated MSL for a read-through. We can dig into the MSL of the top hashes next.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7230240848 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7230240848). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-27T23:34:11Z. --- The per-submit attribution landed - `VICTORY_TRACE_GPU_FAILS=1` already names the hung command buffers (labels + encoder trace, no code needed), and one boot-crash run caught the stall mid-flight. Findings from the 21 in-flight warnings (`runs/20261128-072239-seoRGT/victory.log`, M1 Max, 8 minutes into the run): - **Every hung buffer has waits=0** (21/21), 11 of them signals=0: the GPU was handed work with **no dependencies and never finished executing it**. - The hung buffers are **compute-heavy**. The dispatches inside them, by frequency: ``` 36 compute 1e84848f38c78615 1x1x1 30 compute 8f9ab72f8c418630 1x1x1 30 compute 0c8e4446f3c150f1 1x1x1 16 compute d19718795242d0fe 1x1x1 16 compute d19718795242d0fe 16x16x1 7 compute 9355b4a50f2628a4 5x5x33 ``` (`1e84848f` also dispatched at 8x8x1 / 4x4x1 / 2x2x1 - a mip/tile pyramid pattern.) - Timeline matches the 25-30 s pattern: first in-flight warnings at 23:29:54, crash at 23:30:33. So the GPU-stall path starts with **translated compute shaders hanging the GPU** - dozens of tiny 1x1x1 dispatches look like per-item or spin-style kernels, and a translated MSL that polls memory nothing ever writes (or an MSL loop that never exits on Apple GPUs) would produce exactly this: buffers with no waits that never complete, fences falling behind, then the title's null write. Anyone can check their own stall logs the same way: `grep -E "command buffer in flight for" <log>` then collect the `compute <hash> <dims>` lines. If the same hashes show up on other machines, that pins the four shaders above as the first suspects - and the shader cache can dump their translated MSL for a read-through. We can dig into the MSL of the top hashes next.
wz11wz commented 2026-11-28 02:31:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-28T02:31:37Z.


Root cause found and reproduced: a macOS GPU watchdog kill cascades into the waits=0 stalls, and the title crashes on the fence that never advances.

We ran the frame~800 repro headless for 240s with VICTORY_TRACE_GPU_FAILS=1 and can now name the whole chain with logs.

1. The stalled kernels are exonerated. The six compute containers the attribution blamed were dispatched on this stack alone (translated by MSC, game dims, fence timeout) plus two controls of our own — all finish, including 64 back-to-back lists. spincheck over their IR shows none of them contains a single loop, so a data-dependent spin inside a kernel is impossible. Test added as victory-gpu/src/native/suspect_tests.rs (containers under victory-metal/tests/suspects/).

2. The waits=0 signature is the residency-order cascade, not N separate deadlocks. With residency sets ordered on the queue (the default on ≥32 GB machines), every command buffer encodes a wait on the queue's order event — a wait the trace label does not count (waits is only the title's cross-queue waits). One command buffer that never reports holds every later one on that queue, all showing waits=0. Reproduced with a deliberately spinning kernel: root hangs, a trivial follower hangs too, order_state() == (0, 2). A spinning compute kernel is not killed by the macOS watchdog within 8s, so the cascade persists.

3. The root in the real run: kIOGPUCommandBufferCallbackErrorTimeout. At t=136.8 — the deterministic crash point — the watchdog killed the frame's command buffer:

metal: command buffer failed: [q... #12445 t=136.793 waits=0 signals=1 passes=0] now=141.800 (Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout))
metal: command buffer failed: [q... #12446 t=136.794 waits=0 signals=0 passes=10] now=141.800 (same)

Then the cascade: six followers in flight 6.5s all waits=0, four other queues held on one fence (0x18437ff38 cmp 7 ref 0x99a now Some(2457) — the value stalls exactly there), and two command buffers recovered by the host timer 10.9s later. ~25s later the title dies:

VIctory: unhandled exception 0xc0000005 at image+0x55e56f8

— the same landing address as the original report.

4. VICTORY_PASSES_PER_BUFFER=8 does not avoid it. The timeouts still fire at the same point (a 10-pass piece and a 0-pass, signal-only buffer were killed together — the kill seems to sweep the queue's in-flight work), the same cascade follows, and the crash reproduces at the same address.

So #404's two paths collapse into one: the GPU-timeout kill starves the fence chain, and the title walks into an unsignaled fence. The stall is not a Metal bug we can fix; it is this title's Prestream-zone submission exceeding the ~5s watchdog budget on Apple Silicon.

Fix directions, cheapest first:

  1. Keep every command buffer under the watchdog. Pieces help only if each piece is short enough; the killed 10-pass piece says single passes (or the whole queue's concurrent load) can still exceed the budget. Splitting must account for per-pass GPU time, and possibly for the other queues' work running concurrently (the watchdog seems to judge per-device time in flight, not per buffer).
  2. Make the kill survivable for the title. The Owed/host-timer recovery does pay the fence signals on the CPU, yet the title still crashed — worth checking when the payment lands relative to the title's wait (the recovery fired 10.9s after the kill; the title's cross-queue wait may have already given up). Paying at kill time from the completed handler, plus ordering the payment before waking waiters, may be enough to keep the title alive through a timeout.
  3. Diagnose faster: a queue whose order event lags its encode count is a wedged queue (Queue::order_state()); warning at the next submission on that queue (patched locally) names it immediately, since the label's waits never will.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7232421288 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7232421288). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-28T02:31:37Z. --- **Root cause found and reproduced: a macOS GPU watchdog kill cascades into the `waits=0` stalls, and the title crashes on the fence that never advances.** We ran the frame~800 repro headless for 240s with `VICTORY_TRACE_GPU_FAILS=1` and can now name the whole chain with logs. **1. The stalled kernels are exonerated.** The six compute containers the attribution blamed were dispatched on this stack alone (translated by MSC, game dims, fence timeout) plus two controls of our own — all finish, including 64 back-to-back lists. `spincheck` over their IR shows none of them contains a single loop, so a data-dependent spin inside a kernel is impossible. Test added as `victory-gpu/src/native/suspect_tests.rs` (containers under `victory-metal/tests/suspects/`). **2. The `waits=0` signature is the residency-order cascade, not N separate deadlocks.** With residency sets ordered on the queue (the default on ≥32 GB machines), every command buffer encodes a wait on the queue's order event — a wait the trace label does not count (`waits` is only the title's cross-queue waits). One command buffer that never reports holds every later one on that queue, all showing `waits=0`. Reproduced with a deliberately spinning kernel: root hangs, a trivial follower hangs too, `order_state() == (0, 2)`. A spinning compute kernel is *not* killed by the macOS watchdog within 8s, so the cascade persists. **3. The root in the real run: `kIOGPUCommandBufferCallbackErrorTimeout`.** At t=136.8 — the deterministic crash point — the watchdog killed the frame's command buffer: ``` metal: command buffer failed: [q... #12445 t=136.793 waits=0 signals=1 passes=0] now=141.800 (Caused GPU Timeout Error (00000002:kIOGPUCommandBufferCallbackErrorTimeout)) metal: command buffer failed: [q... #12446 t=136.794 waits=0 signals=0 passes=10] now=141.800 (same) ``` Then the cascade: six followers `in flight 6.5s` all `waits=0`, four other queues held on one fence (`0x18437ff38 cmp 7 ref 0x99a now Some(2457)` — the value stalls exactly there), and two command buffers recovered by the host timer 10.9s later. ~25s later the title dies: ``` VIctory: unhandled exception 0xc0000005 at image+0x55e56f8 ``` — the same landing address as the original report. **4. `VICTORY_PASSES_PER_BUFFER=8` does not avoid it.** The timeouts still fire at the same point (a 10-pass piece and a 0-pass, signal-only buffer were killed together — the kill seems to sweep the queue's in-flight work), the same cascade follows, and the crash reproduces at the same address. **So #404's two paths collapse into one: the GPU-timeout kill starves the fence chain, and the title walks into an unsignaled fence.** The stall is not a Metal bug we can fix; it is this title's Prestream-zone submission exceeding the ~5s watchdog budget on Apple Silicon. Fix directions, cheapest first: 1. **Keep every command buffer under the watchdog.** Pieces help only if each piece is short enough; the killed 10-pass piece says single passes (or the whole queue's concurrent load) can still exceed the budget. Splitting must account for per-pass GPU time, and possibly for the other queues' work running concurrently (the watchdog seems to judge per-device time in flight, not per buffer). 2. **Make the kill survivable for the title.** The Owed/host-timer recovery does pay the fence signals on the CPU, yet the title still crashed — worth checking *when* the payment lands relative to the title's wait (the recovery fired 10.9s after the kill; the title's cross-queue wait may have already given up). Paying at kill time from the completed handler, plus ordering the payment before waking waiters, may be enough to keep the title alive through a timeout. 3. **Diagnose faster**: a queue whose order event lags its encode count is a wedged queue (`Queue::order_state()`); warning at the next submission on that queue (patched locally) names it immediately, since the label's `waits` never will.
Sheffy007 commented 2026-11-28 02:47:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Sheffy007 on 2026-11-28T02:47:51Z.


/claim

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7232599536 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7232599536). Originally posted by [Sheffy007](https://github.com/Sheffy007) on 2026-11-28T02:47:51Z. --- /claim
github-actions[bot] commented 2026-11-28 02:48:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-28T02:48:01Z.


Claimed by @Sheffy007. Open a draft pull request with Refs #404 in its description within 24 hours, or the claim expires.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7232601368 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7232601368). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T02:48:01Z. --- Claimed by @Sheffy007. Open a draft pull request with `Refs #404` in its description within 24 hours, or the claim expires.
wz11wz commented 2026-11-28 04:28:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-28T04:28:07Z.


Follow-up: the stall lives in the residency-ordered submission path — VICTORY_METAL_RESIDENCY_SETS=0 avoids the crash (2/2 clean runs).

After the analysis above we bisected by residency mode. Same 240s headless runs, same build (plus an unrelated order-counter atomicity fix):

mode runs GPU Timeout kills crash at image+0x55e56f8
default (residency sets, ≥32 GB → ordered queue) 5 3–86 4 crashes (t=136.8/160.6/192.2), 1 wedged 30 min
VICTORY_METAL_RESIDENCY_SETS=0 (unordered) 2 0 0 — both ran to the 240 s stop (t=235.8/239.5)

This matches the status evidence: with ordering on, the stalled command buffers sit at MTLCommandBufferStatus Committed/Scheduled forever (never Scheduled/Started), i.e. the queue's order-event chain starves; with ordering off there is no order-event chain, and the same frames run clean.

Two additional fixes found on the way (in our tree, can be split into PRs):

  1. Queue's order counter was a Cell<u64> read-modify-write, and the tail re-read it for the signal and for Owed — under concurrent ExecuteCommandLists on one queue (legal in D3D12) two command buffers could share an order slot and the tail could signal a slot another submission was waiting on. Now an atomic fetch_add, with each submission signalling its own slot.
  2. victory-shader --example dump_dxil — dumps the DXIL translate_with produces per container, which is how we extracted and audited the freeze-window kernels (all bounded loops; no kernel spin).

What we cannot yet explain: why an ordered queue's command buffer never gets Scheduled. Candidates: the order wait interleaved with cross-queue fence waits forming a cycle, residency-set allocation ordering, or Metal scheduler behaviour with many queues waiting on shared events. With ordering off there is a real hazard-tracking regression (heap accesses are invisible to Metal), so this is a workaround for this title, not the final fix — but it unblocks reaching the world for M2-style work while the ordered path is investigated.

Immediate workaround for anyone hitting the deterministic frame~800 crash on ≥32 GB machines: VICTORY_METAL_RESIDENCY_SETS=0.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7234058310 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7234058310). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-28T04:28:07Z. --- **Follow-up: the stall lives in the residency-ordered submission path — `VICTORY_METAL_RESIDENCY_SETS=0` avoids the crash (2/2 clean runs).** After the analysis above we bisected by residency mode. Same 240s headless runs, same build (plus an unrelated order-counter atomicity fix): | mode | runs | GPU Timeout kills | crash at image+0x55e56f8 | |---|---|---|---| | default (residency sets, ≥32 GB → ordered queue) | 5 | 3–86 | 4 crashes (t=136.8/160.6/192.2), 1 wedged 30 min | | `VICTORY_METAL_RESIDENCY_SETS=0` (unordered) | 2 | 0 | 0 — both ran to the 240 s stop (t=235.8/239.5) | This matches the status evidence: with ordering on, the stalled command buffers sit at `MTLCommandBufferStatus` Committed/Scheduled forever (never Scheduled/Started), i.e. the queue's order-event chain starves; with ordering off there is no order-event chain, and the same frames run clean. Two additional fixes found on the way (in our tree, can be split into PRs): 1. `Queue`'s order counter was a `Cell<u64>` read-modify-write, and the tail re-read it for the signal and for `Owed` — under concurrent `ExecuteCommandLists` on one queue (legal in D3D12) two command buffers could share an order slot and the tail could signal a slot another submission was waiting on. Now an atomic `fetch_add`, with each submission signalling its own slot. 2. `victory-shader --example dump_dxil` — dumps the DXIL `translate_with` produces per container, which is how we extracted and audited the freeze-window kernels (all bounded loops; no kernel spin). What we cannot yet explain: *why* an ordered queue's command buffer never gets Scheduled. Candidates: the order wait interleaved with cross-queue fence waits forming a cycle, residency-set allocation ordering, or Metal scheduler behaviour with many queues waiting on shared events. With ordering off there is a real hazard-tracking regression (heap accesses are invisible to Metal), so this is a workaround for this title, not the final fix — but it unblocks reaching the world for M2-style work while the ordered path is investigated. Immediate workaround for anyone hitting the deterministic frame~800 crash on ≥32 GB machines: `VICTORY_METAL_RESIDENCY_SETS=0`.
wz11wz commented 2026-11-28 04:39:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by wz11wz on 2026-11-28T04:39:05Z.


Correction to the workaround above: VICTORY_METAL_RESIDENCY_SETS=0 is not reliable. A third run with it crashed the same way — unhandled exception 0xc0000005 at image+0x55e56f8 at t=168 — with zero GPU Timeout kills in the log. So the ordered-queue starvation (Committed/Scheduled stalls) is one stall shape, but the title crash also happens without any timeout sweep and without ordering; the two earlier clean runs were variance, not the fix. The status-probe and kernel-exoneration findings stand; the root cause is still open. Sorry for the premature workaround claim.

What the crash run added: the FidelityFX loader binds (amd_fidelityfx_loader_xbox.dll: 4 hle, 15 host, 3 title), and the freeze window is unchanged (t≈168). Also found while verifying the MetalFX serving seam (issue #375): fidelityfx::use_host_dir is currently only reached from a test — the app's startup never calls it on any platform, so the "host serves the title's upscaler" path (M1.6's flip) can never log or engage outside tests. Wiring it into startup looks like a missing piece of #375 independent of this crash.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7234173487 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/404#issuecomment-7234173487). Originally posted by [wz11wz](https://github.com/wz11wz) on 2026-11-28T04:39:05Z. --- **Correction to the workaround above: `VICTORY_METAL_RESIDENCY_SETS=0` is not reliable.** A third run with it crashed the same way — `unhandled exception 0xc0000005 at image+0x55e56f8` at t=168 — with **zero GPU Timeout kills** in the log. So the ordered-queue starvation (Committed/Scheduled stalls) is one stall shape, but the title crash also happens without any timeout sweep and without ordering; the two earlier clean runs were variance, not the fix. The status-probe and kernel-exoneration findings stand; the root cause is still open. Sorry for the premature workaround claim. What the crash run added: the FidelityFX loader binds (`amd_fidelityfx_loader_xbox.dll: 4 hle, 15 host, 3 title`), and the freeze window is unchanged (t≈168). Also found while verifying the MetalFX serving seam (issue #375): `fidelityfx::use_host_dir` is currently only reached from a test — the app's startup never calls it on any platform, so the "host serves the title's upscaler" path (M1.6's flip) can never log or engage outside tests. Wiring it into startup looks like a missing piece of #375 independent of this crash.
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#404
No description provided.