Palworld (PPSA23126): abort at compute shader 0x15c1486e00, "storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented" #7017

Closed
opened 2026-10-17 05:45:24 +00:00 by MadanRaj04 · 6 comments
MadanRaj04 commented 2026-10-17 05:45:24 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MadanRaj04 on 2026-10-17T05:45:24Z.


Palworld (PPSA23126, content version <check param.json>), in game after character creation, about 800 s into the run. The title aborts with an uncaught std::runtime_error thrown from Require(!unsavedOutsideWatch, ...) in libSceAgcDriver/Graphics/src/Texture.cpp (lines 4685 and 4862 on current main). It also runs at 0.3–0.6 FPS for most of the session.

Log

[gpu] driver failure: compute shader 0x15c1486e00: AGC graphics: storing storage image
results pending over memory outside the write watch without the guest bytes saved
before them is not implemented
[videoout] presentation failed: compute shader 0x15c1486e00: AGC graphics: storing storage
image results pending over memory outside the write watch without the guest bytes saved
before them is not implemented
terminate called after throwing an instance of 'std::runtime_error'
FATAL: abort() (SIGABRT) on thread <id>

The exception goes out of the presentation path and nothing catches it, so the whole process aborts. The last imports before it were:

[gpu] host import of 0x301dfe0000+0x2000000 ok (13057 live, 5230.9 MiB live, 6697.1 MiB ever), joined at bind
[gpu] host import of 0x31e76b0000+0x100000 ok (13056 live, 5230.9 MiB live, 6698.1 MiB ever), joined at bind

What I see in the code. In the write-back path, a layer that is pending but not in the write watch sets unsavedOutsideWatch, because tracked is false and compared[layer] is false. The Require then throws. As far as I can tell, the emulator has no saved copy of the old guest bytes there to diff against. I haven't tried to change it.

Performance before the crash (APS5_PROFILE_DRAW=1, 54 ten-second windows)

  • Presents per 10 s: about 30–40 in the menu, then 3–6 for most of the run after window 12. The best later windows were 10–16.
  • Dispatch cache at the end: 80,300 dispatches, 5,026 cache hits, 67,033 evictions, 75,274 recompile cache hits.
  • Cumulative phase totals at the end: guest memory upload about 92 s, images about 73 s, stage B about 163 s. The [dispatch] summary also shows "hook waits" at 70 s.
  • CPU-copied bytes outside imports totalled about 11 GB over the whole run. That is far below the 15–56 GB per 10 s in #4260, so I don't think #4260 explains this one.
  • APS5_STALL_WATCHDOG_SECS=30 fired three times: queue 0x20 order behind queue 0 for event 0x3107b / 0x4888b / 0x508b7 has not progressed for 30 s.

Setup

  • Windows <version>, AMD Ryzen 7 5800H, NVIDIA GeForce RTX 3070 Laptop GPU (8 GB, Vulkan device reported subgroup 32), driver <version>
  • AnyPS5 built from <commit hash or release version>
  • Run as .\eboot.exe 2>&1 | Tee-Object run2.log with APS5_PROFILE_DRAW=1, APS5_TRACE_HOST_IMPORT=1, APS5_STALL_WATCHDOG_SECS=30
  • Dump from my own copy of the game. No game files are shared, only log lines. I can attach the full log if useful.

Related

  • #2648 (Palworld bring-up, closed), #4260 (CPU copies at character creation)
  • Earlier run, same build: the game's watchdog killed it with GameThread timed out waiting for RenderThread after 120.00 secs. The slowness may be the same one that causes that.

AI-assisted: yes (log analysis).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5895381001 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017). Originally posted by [MadanRaj04](https://github.com/MadanRaj04) on 2026-10-17T05:45:24Z. --- **Palworld (PPSA23126, content version `<check param.json>`), in game after character creation, about 800 s into the run.** The title aborts with an uncaught `std::runtime_error` thrown from `Require(!unsavedOutsideWatch, ...)` in `libSceAgcDriver/Graphics/src/Texture.cpp` (lines 4685 and 4862 on current main). It also runs at 0.3–0.6 FPS for most of the session. **Log** ``` [gpu] driver failure: compute shader 0x15c1486e00: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented [videoout] presentation failed: compute shader 0x15c1486e00: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented terminate called after throwing an instance of 'std::runtime_error' FATAL: abort() (SIGABRT) on thread <id> ``` The exception goes out of the presentation path and nothing catches it, so the whole process aborts. The last imports before it were: ``` [gpu] host import of 0x301dfe0000+0x2000000 ok (13057 live, 5230.9 MiB live, 6697.1 MiB ever), joined at bind [gpu] host import of 0x31e76b0000+0x100000 ok (13056 live, 5230.9 MiB live, 6698.1 MiB ever), joined at bind ``` **What I see in the code.** In the write-back path, a layer that is pending but not in the write watch sets `unsavedOutsideWatch`, because `tracked` is false and `compared[layer]` is false. The `Require` then throws. As far as I can tell, the emulator has no saved copy of the old guest bytes there to diff against. I haven't tried to change it. **Performance before the crash** (`APS5_PROFILE_DRAW=1`, 54 ten-second windows) - Presents per 10 s: about 30–40 in the menu, then 3–6 for most of the run after window 12. The best later windows were 10–16. - Dispatch cache at the end: 80,300 dispatches, 5,026 cache hits, 67,033 evictions, 75,274 recompile cache hits. - Cumulative phase totals at the end: guest memory upload about 92 s, images about 73 s, stage B about 163 s. The `[dispatch]` summary also shows "hook waits" at 70 s. - CPU-copied bytes outside imports totalled about 11 GB over the whole run. That is far below the 15–56 GB per 10 s in #4260, so I don't think #4260 explains this one. - `APS5_STALL_WATCHDOG_SECS=30` fired three times: `queue 0x20 order behind queue 0 for event 0x3107b / 0x4888b / 0x508b7 has not progressed for 30 s`. **Setup** - Windows `<version>`, AMD Ryzen 7 5800H, NVIDIA GeForce RTX 3070 Laptop GPU (8 GB, Vulkan device reported subgroup 32), driver `<version>` - AnyPS5 built from `<commit hash or release version>` - Run as `.\eboot.exe 2>&1 | Tee-Object run2.log` with `APS5_PROFILE_DRAW=1`, `APS5_TRACE_HOST_IMPORT=1`, `APS5_STALL_WATCHDOG_SECS=30` - Dump from my own copy of the game. No game files are shared, only log lines. I can attach the full log if useful. **Related** - #2648 (Palworld bring-up, closed), #4260 (CPU copies at character creation) - Earlier run, same build: the game's watchdog killed it with `GameThread timed out waiting for RenderThread after 120.00 secs`. The slowness may be the same one that causes that. AI-assisted: yes (log analysis).
LeandroLP23 commented 2026-10-17 07:32:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-17T07:32:54Z.


This is the abort #6308 addresses, and it would be useful to know whether it holds on Palworld. In the case it fixes, a pending storage image loses the write watch when an overlapping import is unwatched without the unwatch hook running, so its guest bytes are never saved and the write-back later hits this Require. I can't tell from the log whether Palworld takes that path. On Minecraft Dungeons II, parl0v ran 151 world loads with #6308 on Windows (RTX 4060) and none stopped on this message (comment); ProsperoPuzzles (#6301) stops on it on main too.

If you can, a run of the same save on your build with #6308 merged in would show whether it is the same path. #7048 covers another exit to the same refusal (a unit that becomes pending again after its surface left the watch while it was idle), so a run with both #6308 and #7048 would cover both; they merge together cleanly (check). #6455 touches the same write-back, for stores into partly watched memory.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6231251233 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6231251233). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-17T07:32:54Z. --- This is the abort #6308 addresses, and it would be useful to know whether it holds on Palworld. In the case it fixes, a pending storage image loses the write watch when an overlapping import is unwatched without the unwatch hook running, so its guest bytes are never saved and the write-back later hits this `Require`. I can't tell from the log whether Palworld takes that path. On Minecraft Dungeons II, parl0v ran 151 world loads with #6308 on Windows (RTX 4060) and none stopped on this message ([comment](https://github.com/boykopovar/AnyPS5/pull/6308#issuecomment-6219054690)); ProsperoPuzzles (#6301) stops on it on `main` too. If you can, a run of the same save on your build with #6308 merged in would show whether it is the same path. #7048 covers another exit to the same refusal (a unit that becomes pending again after its surface left the watch while it was idle), so a run with both #6308 and #7048 would cover both; they merge together cleanly ([check](https://github.com/boykopovar/AnyPS5/pull/7048#issuecomment-6231900526)). #6455 touches the same write-back, for stores into partly watched memory. AI-assisted: yes (Claude Code).
plokmklo commented 2026-10-18 05:45:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by plokmklo on 2026-10-18T05:45:53Z.


The comment is right that this refusal is what open PR #6308 addresses, but reviewing the write-back paths found a second way to reach it, fixed on https://github.com/plokmklo/AnyPS5/tree/contrib/7017-palworld (commit db911fb52 + debt note 83fedb709): MarkWritten over a span whose fresh write-watch collect fails (for example a no-access page inside its 64 KiB block span) removed the span from the watch without running the unwatch hook, so results pending over it kept no saved guest bytes and their store hit this Require and killed the process from the present path. That exit now runs the hook over the block span before the blocks leave the watch, with the tracker lock released for it as the import fallback does, plus a Windows-only check in the write-tracking test that fails a collect over a no-access page and requires the hook to have covered the block.

Separately, open PR #7048 implements the write-back side this issue names: results that become pending over a surface no longer fully watched, whose units have a generation but no saved bytes, capture a trusted baseline instead of refusing. Palworld's log doesn't say which path it takes, so a build with #6308, #7048 and the MarkWritten fix together is the right thing to test; if it still aborts, the remaining cases are listed in docs/dev/debt/libSceAgcDriver.md. The new test needs Windows CI to run (the collect failure it forces comes from the WindowsMappings protection path), and none of this has been validated against the title itself yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246230769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6246230769). Originally posted by [plokmklo](https://github.com/plokmklo) on 2026-10-18T05:45:53Z. --- The comment is right that this refusal is what open PR #6308 addresses, but reviewing the write-back paths found a second way to reach it, fixed on `https://github.com/plokmklo/AnyPS5/tree/contrib/7017-palworld` (commit `db911fb52` + debt note `83fedb709`): `MarkWritten` over a span whose fresh write-watch collect fails (for example a no-access page inside its 64 KiB block span) removed the span from the watch **without running the unwatch hook**, so results pending over it kept no saved guest bytes and their store hit this `Require` and killed the process from the present path. That exit now runs the hook over the block span before the blocks leave the watch, with the tracker lock released for it as the import fallback does, plus a Windows-only check in the write-tracking test that fails a collect over a no-access page and requires the hook to have covered the block. Separately, open PR #7048 implements the write-back side this issue names: results that become pending over a surface no longer fully watched, whose units have a generation but no saved bytes, capture a trusted baseline instead of refusing. Palworld's log doesn't say which path it takes, so a build with #6308, #7048 and the `MarkWritten` fix together is the right thing to test; if it still aborts, the remaining cases are listed in `docs/dev/debt/libSceAgcDriver.md`. The new test needs Windows CI to run (the collect failure it forces comes from the WindowsMappings protection path), and none of this has been validated against the title itself yet.
MadanRaj04 commented 2026-10-18 07:39:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MadanRaj04 on 2026-10-18T07:39:43Z.


Thanks @LeandroLP23 and @plokmklo. I tested the combination you suggested on Palworld.

Build: main 1b0c7cfa0 with #6308, #7048 and #7432 merged locally one after another (all three merged cleanly, no conflicts). I did not test plokmklo's branch directly. I used the #7432 head (d51681789). I built it but did not run the repo's tests.

Result for the abort: it did not recur in two runs on that build.

  • Run 1: about 5 min (cold caches), in game.
  • Run 2: about 3.5 min (warm caches), in game, and the log ends with normal shutdown messages.
  • For comparison, the same machine aborted at about 2.3 min on a build without these PRs (compute shader 0x14813ec900). The original report aborted at about 13 min (0x15c1486e00).

That is a short exposure, so I can't say which of the three PRs matters, or whether any of them does, since the original abort took minutes to reproduce. I'll keep running it and report back if it comes back.

Correction to my first post: the 120 s GameThread timed out waiting for RenderThread watchdog kill happened on a cold shader cache (a new build starts with an empty cache: 0 hits, 940 misses, 0 pipelines in the journal). With warm caches, the same route ran without the watchdog.

Performance (separate from the abort). With warm caches (shader cache 870 hits / 120 misses, journal replayed 463 pipelines in 426 ms), the world still runs at 0.4–0.7 fps. RAM is not the limit (about 5 GB free at 0.45 fps). A typical 10 s window with APS5_PROFILE_DRAW=1:

  • 6 presents, 11,785 draws, 18,850 commits at 317.6 us each on the committer. That is about 1 s per frame of recording alone.
  • 4,192 of the 11,785 draws took the "build" path at about 1.33 ms each (template hits: 7,431 at 50 us). In [draws], resources=4649.8 ms of which upload=3557.4 ms, with only about 119 MiB staged.
  • 14,191 packet drains (2,645.7 ms), of which 12,614 were opcode 0x46. In keepsDrawPipeline, EVENT_WRITE event 0x39 (sample dump) returns false, so it looks like every occlusion-counter dump (about one per draw) drains the draw pipeline. "Enqueued behind" averaged 0.98 at depth 8.
  • GPU busy about 975 ms and idle gaps about 984 ms per frame.

Setup: Windows 11, Ryzen 7 5800H, RTX 3070 Laptop 8 GB, 16 GB RAM. Palworld content version 01.102.999. Dump from my own copy of the game.

AI-assisted: yes (log analysis).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6247231949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6247231949). Originally posted by [MadanRaj04](https://github.com/MadanRaj04) on 2026-10-18T07:39:43Z. --- Thanks @LeandroLP23 and @plokmklo. I tested the combination you suggested on Palworld. **Build:** main `1b0c7cfa0` with #6308, #7048 and #7432 merged locally one after another (all three merged cleanly, no conflicts). I did not test plokmklo's branch directly. I used the #7432 head (`d51681789`). I built it but did not run the repo's tests. **Result for the abort:** it did not recur in two runs on that build. - Run 1: about 5 min (cold caches), in game. - Run 2: about 3.5 min (warm caches), in game, and the log ends with normal shutdown messages. - For comparison, the same machine aborted at about 2.3 min on a build without these PRs (compute shader `0x14813ec900`). The original report aborted at about 13 min (`0x15c1486e00`). That is a short exposure, so I can't say which of the three PRs matters, or whether any of them does, since the original abort took minutes to reproduce. I'll keep running it and report back if it comes back. **Correction to my first post:** the 120 s `GameThread timed out waiting for RenderThread` watchdog kill happened on a cold shader cache (a new build starts with an empty cache: 0 hits, 940 misses, 0 pipelines in the journal). With warm caches, the same route ran without the watchdog. **Performance (separate from the abort).** With warm caches (shader cache 870 hits / 120 misses, journal replayed 463 pipelines in 426 ms), the world still runs at 0.4–0.7 fps. RAM is not the limit (about 5 GB free at 0.45 fps). A typical 10 s window with `APS5_PROFILE_DRAW=1`: - 6 presents, 11,785 draws, 18,850 commits at 317.6 us each on the committer. That is about 1 s per frame of recording alone. - 4,192 of the 11,785 draws took the "build" path at about 1.33 ms each (template hits: 7,431 at 50 us). In `[draws]`, resources=4649.8 ms of which upload=3557.4 ms, with only about 119 MiB staged. - 14,191 packet drains (2,645.7 ms), of which 12,614 were opcode 0x46. In `keepsDrawPipeline`, `EVENT_WRITE` event 0x39 (sample dump) returns false, so it looks like every occlusion-counter dump (about one per draw) drains the draw pipeline. "Enqueued behind" averaged 0.98 at depth 8. - GPU busy about 975 ms and idle gaps about 984 ms per frame. Setup: Windows 11, Ryzen 7 5800H, RTX 3070 Laptop 8 GB, 16 GB RAM. Palworld content version 01.102.999. Dump from my own copy of the game. AI-assisted: yes (log analysis).
oneandonlydean commented 2026-10-20 06:52:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T06:52:28Z.


#7432 (a01b3287c) fixes the failed-collect path behind this abort: pending storage-image bytes are now saved before the range becomes inaccessible to the write tracker. Could you retry it on current main? If it still stops at that compute shader with the same message, please attach the log; otherwise we'll close this. #8052 reports the same message on a different title, so that one may need its own look.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285200401 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6285200401). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T06:52:28Z. --- #7432 (a01b3287c) fixes the failed-collect path behind this abort: pending storage-image bytes are now saved before the range becomes inaccessible to the write tracker. Could you retry it on current main? If it still stops at that compute shader with the same message, please attach the log; otherwise we'll close this. #8052 reports the same message on a different title, so that one may need its own look.
LeandroLP23 commented 2026-10-20 07:18:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-20T07:18:39Z.


A homebrew data point for the same message, since I can't run Palworld here. On current main (e9cc4a8ef, which includes #7432), ProsperoPuzzles (PPSA99006) still stops with this exact refusal: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented. It stops about 4 s in, in 2 of 2 runs.

Tree Runs alive at 60 s
main e9cc4a8ef 0 of 2 (abort at 4 s)
main + #7048 (2dd51172f, one trivial conflict in StorageTexture::writeBack resolved by keeping both sides) 0 of 3 (abort at 3 s)
main + #6308 (48a1d3453, clean merge) 3 of 3

In ProsperoPuzzles the bytes go unsaved through ImportWatched with staysWatched. When the range was only partly watched, that path still unwatches it, but it skipped the unwatch hook (#6301). #7432 covers the failed-collect path, which is a different one. So the message alone doesn't tell which path Palworld takes. If it still aborts on current main, #6308 is worth a try on top.

Windows 11 Home 26300, AMD Radeon 860M (driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release, relinker --windows, new run folder each time, 60 s, no input.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6285586325 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6285586325). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-20T07:18:39Z. --- A homebrew data point for the same message, since I can't run Palworld here. On current `main` (e9cc4a8ef, which includes #7432), ProsperoPuzzles (PPSA99006) still stops with this exact refusal: `storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented`. It stops about 4 s in, in 2 of 2 runs. | Tree | Runs alive at 60 s | |---|---| | `main` e9cc4a8ef | 0 of 2 (abort at 4 s) | | `main` + #7048 (2dd51172f, one trivial conflict in `StorageTexture::writeBack` resolved by keeping both sides) | 0 of 3 (abort at 3 s) | | `main` + #6308 (48a1d3453, clean merge) | 3 of 3 | In ProsperoPuzzles the bytes go unsaved through `ImportWatched` with `staysWatched`. When the range was only partly watched, that path still unwatches it, but it skipped the unwatch hook (#6301). #7432 covers the failed-collect path, which is a different one. So the message alone doesn't tell which path Palworld takes. If it still aborts on current `main`, #6308 is worth a try on top. Windows 11 Home 26300, AMD Radeon 860M (driver 32.0.13058.8001), WinLibs GCC 15.2.0, Release, `relinker --windows`, new run folder each time, 60 s, no input.
LeandroLP23 commented 2026-10-20 11:53:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-20T11:53:02Z.


Update to my comment above: #8172, merged today, fixes the same refusal in ProsperoPuzzles (0 of 2 runs alive at 60 s on its parent e9cc4a8ef; 3 of 3 on current main d50ec76da). So a retry on current main is the useful one now. #6308 is closed as superseded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6290229632 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7017#issuecomment-6290229632). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-20T11:53:02Z. --- Update to my comment above: #8172, merged today, fixes the same refusal in ProsperoPuzzles (0 of 2 runs alive at 60 s on its parent e9cc4a8ef; 3 of 3 on current `main` d50ec76da). So a retry on current `main` is the useful one now. #6308 is closed as superseded.
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
boykopovar/AnyPS5#7017
No description provided.