dstorage: one status entry never completes at the story000_restofworld load, and presents stop for minutes #654

Open
opened 2026-11-29 13:53:44 +00:00 by AnastasisKon · 1 comment
AnastasisKon commented 2026-11-29 13:53:44 +00:00 (Migrated from github.com)
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-29T13:53:44Z.


The picture is fine; the game stops presenting when the first world pack is read, and the window is left frozen on the last frame — which reads as "bad graphics, not playable".

Measured

VICTORY_FRAME_DUMP (added by the branch behind this report) writes the presented drawable as BMP, and VICTORY_FRAME_GRID logs it as a grid. On the current main with VICTORY_PAIRED_WAVES=1, a 290 s run:

  • frames 256 to 2560 are correct: the intro's artwork and its loading text, at 1920x1080 with the cinematic's letterbox, clean colours and no missing geometry (VICTORY_PAIRED_WAVES=1 takes shader refusals from 283 to 0 in this run, and dropped draws from 18% to 0);
  • the last present is at 13:43:54, and the process keeps running and logging until 13:47:11 — three and a half minutes with no present at all, the window showing the last frame;
  • immediately before it stops, the pack is opened (G:\pack\story000_restofworld\story000_resto...) and the log fills with:
dstorage: a status entry is still pending array=0x7fab88530680 index=0 polls=6440000
  staged=1048575 state=["lane 2: unsubmitted 0 held 0 reads 170 statuses 1 running 4 failures 0 capacity 4159",
                         "lane 4: unsubmitted 0 held 0 reads 27 statuses 1 running 6 failures 0 ...", ...]

So one status entry never completes while every lane is idle: unsubmitted 0, held 0, ~1 MiB staged, no failures, and the title polls it six million times. That is the block the world load is waiting on — the render thread stops with it.

What would answer it

The staged byte count (staged=1048575, one byte short of a full MiB) suggests a chunk whose completion is owed but never counted down: either the staged copy finished without decrementing, or the lane's read loop left its last chunk in staged when the read returned EOF-sized. unsubmitted 0 rules out "a command nobody submitted", which is what the lane state used to be for.

A run with VICTORY_TRACE_DSTORAGE_FILES=1 beside the status warning names the file and offsets involved; the reads/statuses counters per lane show which lane owes the count.

Not a Metal, MetalFX or translator issue: the same freeze happens with VICTORY_METALFX off and with the title's own upscaler, and the frames before it are correct.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6679542821 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/654). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-29T13:53:44Z. --- The picture is fine; the game **stops presenting** when the first world pack is read, and the window is left frozen on the last frame — which reads as "bad graphics, not playable". ## Measured `VICTORY_FRAME_DUMP` (added by the branch behind this report) writes the presented drawable as BMP, and `VICTORY_FRAME_GRID` logs it as a grid. On the current main with `VICTORY_PAIRED_WAVES=1`, a 290 s run: * frames 256 to 2560 are **correct**: the intro's artwork and its loading text, at 1920x1080 with the cinematic's letterbox, clean colours and no missing geometry (`VICTORY_PAIRED_WAVES=1` takes shader refusals from 283 to 0 in this run, and dropped draws from 18% to 0); * the last present is at **13:43:54**, and the process keeps running and logging until 13:47:11 — **three and a half minutes with no present at all**, the window showing the last frame; * immediately before it stops, the pack is opened (`G:\pack\story000_restofworld\story000_resto...`) and the log fills with: ``` dstorage: a status entry is still pending array=0x7fab88530680 index=0 polls=6440000 staged=1048575 state=["lane 2: unsubmitted 0 held 0 reads 170 statuses 1 running 4 failures 0 capacity 4159", "lane 4: unsubmitted 0 held 0 reads 27 statuses 1 running 6 failures 0 ...", ...] ``` So one status entry never completes while every lane is idle: `unsubmitted 0`, `held 0`, ~1 MiB `staged`, no failures, and the title polls it six million times. That is the block the world load is waiting on — the render thread stops with it. ## What would answer it The staged byte count (`staged=1048575`, one byte short of a full MiB) suggests a chunk whose completion is owed but never counted down: either the staged copy finished without decrementing, or the lane's read loop left its last chunk in `staged` when the read returned EOF-sized. `unsubmitted 0` rules out "a command nobody submitted", which is what the lane state used to be for. A run with `VICTORY_TRACE_DSTORAGE_FILES=1` beside the status warning names the file and offsets involved; the `reads`/`statuses` counters per lane show which lane owes the count. Not a Metal, MetalFX or translator issue: the same freeze happens with `VICTORY_METALFX` off and with the title's own upscaler, and the frames before it are correct.
daidalos4 commented 2026-11-29 15:40:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by daidalos4 on 2026-11-29T15:40:08Z.


A data point from an M1 with 16 GB (Series S profile), in case it helps separate two causes.

Same stall at the same load here, with the same "status entry still pending" warnings. But on this Mac it was GPU memory, not a lost read:

  • The POLLS counter in is_complete is global, so a large count is spread over every entry, not one.
  • staged matched the source sizes of the reads still running, and reads kept finishing (about 1600 requests in 44 s). The pending warnings had nearly stopped before presents stopped.
  • With VICTORY_METAL_TEXTURE_BUDGET_MB=4348 (the suggested figure: 12124 working set minus 7776 title memory), Metal reached about 12.2 GB and 197 command buffers failed with kIOGPUCommandBufferCallbackErrorOutOfMemory. After that, work stayed held behind fences that never signalled, and the frame count crawled.
  • With 2800 MiB: 1 such failure, and the intro played after the load.

So the suggested budget leaves no room for the host's other GPU allocations. The fix on our side keeps an eighth of the working set out of it. If your logs show no OOM failures, it is probably a different cause.

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7258271447 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/654#issuecomment-7258271447). Originally posted by [daidalos4](https://github.com/daidalos4) on 2026-11-29T15:40:08Z. --- A data point from an M1 with 16 GB (Series S profile), in case it helps separate two causes. Same stall at the same load here, with the same "status entry still pending" warnings. But on this Mac it was GPU memory, not a lost read: - The `POLLS` counter in `is_complete` is global, so a large count is spread over every entry, not one. - `staged` matched the source sizes of the reads still running, and reads kept finishing (about 1600 requests in 44 s). The pending warnings had nearly stopped before presents stopped. - With `VICTORY_METAL_TEXTURE_BUDGET_MB=4348` (the suggested figure: 12124 working set minus 7776 title memory), Metal reached about 12.2 GB and 197 command buffers failed with `kIOGPUCommandBufferCallbackErrorOutOfMemory`. After that, work stayed held behind fences that never signalled, and the frame count crawled. - With 2800 MiB: 1 such failure, and the intro played after the load. So the suggested budget leaves no room for the host's other GPU allocations. The fix on our side keeps an eighth of the working set out of it. If your logs show no OOM failures, it is probably a different cause.
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#654
No description provided.