Demon's Souls (PPSA01342) — RenderJob deadlock after entering main loop on Windows #4731

Closed
opened 2026-10-12 19:58:33 +00:00 by erturking · 2 comments
erturking commented 2026-10-12 19:58:33 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by erturking on 2026-10-12T19:58:33Z.


Host: Windows 11, RTX 3060 Ti (driver current), GCC 15.2.0 (winlibs), Ninja, current main.
Build: Standard CMake + Ninja, -DANYPS5_ENABLE_SPIRV_TOOLS=ON, glslang from MSYS2 UCRT64.
Game: Demon's Souls, PPSA01342, content version 01.004.000 (patch v1.004).

Progress
The game completes full initialization:

Vulkan instance, surface, and swapchain created (1484x835, 2 images, usage 0x9f)

DualSense controller detected via libScePad

907 shaders loaded from disk cache (~1 GiB) with 0 failures

ResourcePool::GatherResourceFileInfo() completes in 8.79 s

Main script ($/_cmn/cp11main.cgpr) loaded

ResourcePool::RecordResourceDependencies() completes

All levels loaded

Starting main loop: 00:03:45.19 is printed
Failure
Immediately after the main loop starts, the job system deadlocks:

[00:03:03.25 ERROR-JobSystem] DeadLock Detection: Job RenderJob [21569] waiting on counter [0x0000000200553EE0] = 0 to be Equal 1. Time since commit 59.8270s
[00:03:03.25 ERROR-JobSystem] DeadLock Detection: Thread 10 has not aquired a new job in a long time. Currently running the Job: NCATaskQueue::ProcessJob 00:02:36.80
[00:03:03.25 ERROR-JobSystem] DeadLock Detection: Job NCATaskQueue::ProcessJobArray [5070] waiting on counter [0x0000000268A04C30] = 1 to be Equal 0. Time since commit 00:02:36.88
The game remains alive indefinitely — black screen, no crash, no frame presented. The deadlock messages repeat continuously in the console output.

Confirmed Non-Issues
The File::GatherFileInfo failed to resolve messages that appear throughout the log are not the cause. All referenced files exist on disk under app0/levels/:

app0/levels/m08_tutorial/_cmn/tutorial.cgpr — exists

app0/levels/m06_stonefang_tunnel/_cmn/stonefang_og_collision.cgpr — exists

The GatherResourceFileInfo() step completes successfully after 8.79 seconds, confirming the engine's fallback path handles those warnings correctly.

Likely Cause
Counter [0x0200553EE0] is expected to be signaled by a frame submission path — either libSceVideoOut swapchain present or libSceAgcDriver queue submit. It appears a shim function returns without incrementing the counter, so RenderJob blocks forever. NCATaskQueue::ProcessJobArray is stuck behind it.

Full Log

demonssoul_ps5_2026-10-12-20-52-26_0.log

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5819655586 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4731). Originally posted by [erturking](https://github.com/erturking) on 2026-10-12T19:58:33Z. --- Host: Windows 11, RTX 3060 Ti (driver current), GCC 15.2.0 (winlibs), Ninja, current main. Build: Standard CMake + Ninja, -DANYPS5_ENABLE_SPIRV_TOOLS=ON, glslang from MSYS2 UCRT64. Game: Demon's Souls, PPSA01342, content version 01.004.000 (patch v1.004). Progress The game completes full initialization: Vulkan instance, surface, and swapchain created (1484x835, 2 images, usage 0x9f) DualSense controller detected via libScePad 907 shaders loaded from disk cache (~1 GiB) with 0 failures ResourcePool::GatherResourceFileInfo() completes in 8.79 s Main script ($/_cmn/cp11main.cgpr) loaded ResourcePool::RecordResourceDependencies() completes All levels loaded Starting main loop: 00:03:45.19 is printed Failure Immediately after the main loop starts, the job system deadlocks: [00:03:03.25 ERROR-JobSystem] DeadLock Detection: Job RenderJob [21569] waiting on counter [0x0000000200553EE0] = 0 to be Equal 1. Time since commit 59.8270s [00:03:03.25 ERROR-JobSystem] DeadLock Detection: Thread 10 has not aquired a new job in a long time. Currently running the Job: NCATaskQueue::ProcessJob 00:02:36.80 [00:03:03.25 ERROR-JobSystem] DeadLock Detection: Job NCATaskQueue::ProcessJobArray [5070] waiting on counter [0x0000000268A04C30] = 1 to be Equal 0. Time since commit 00:02:36.88 The game remains alive indefinitely — black screen, no crash, no frame presented. The deadlock messages repeat continuously in the console output. Confirmed Non-Issues The File::GatherFileInfo failed to resolve messages that appear throughout the log are not the cause. All referenced files exist on disk under app0/levels/: app0/levels/m08_tutorial/_cmn/tutorial.cgpr — exists app0/levels/m06_stonefang_tunnel/_cmn/stonefang_og_collision.cgpr — exists The GatherResourceFileInfo() step completes successfully after 8.79 seconds, confirming the engine's fallback path handles those warnings correctly. Likely Cause Counter [0x0200553EE0] is expected to be signaled by a frame submission path — either libSceVideoOut swapchain present or libSceAgcDriver queue submit. It appears a shim function returns without incrementing the counter, so RenderJob blocks forever. NCATaskQueue::ProcessJobArray is stuck behind it. Full Log [demonssoul_ps5_2026-10-12-20-52-26_0.log](https://github.com/user-attachments/files/33353550/demonssoul_ps5_2026-10-12-20-52-26_0.log)
MarcZX10 commented 2026-10-12 19:59:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T19:59:08Z.


I downloaded the attached log. It ends at Starting main loop (00:03:45.19) and contains no DeadLock Detection or RenderJob lines; its command line also shows js_EnableDeadLockDetection=false, unlike the quoted detector output in the issue. Could you attach the console capture that contains the reported counter waits (ideally the first occurrence plus the preceding few minutes), and note the exact AnyPS5 commit/build and whether that is the same run? That will let us trace the counter producer instead of guessing between VideoOut and AGC.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131631119 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4731#issuecomment-6131631119). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T19:59:08Z. --- I downloaded the attached log. It ends at `Starting main loop` (`00:03:45.19`) and contains no `DeadLock Detection` or `RenderJob` lines; its command line also shows `js_EnableDeadLockDetection=false`, unlike the quoted detector output in the issue. Could you attach the console capture that contains the reported counter waits (ideally the first occurrence plus the preceding few minutes), and note the exact AnyPS5 commit/build and whether that is the same run? That will let us trace the counter producer instead of guessing between VideoOut and AGC.
erturking commented 2026-10-12 20:47:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by erturking on 2026-10-12T20:47:04Z.


Apologies — I could not reliably reproduce the original deadlock on demand. The game alternates between two failure modes depending on timing:

Deadlock after Starting main loop (originally reported) — counters [0x0200553EE0] and [0x0268A04C30] — happened once and I did not save the console output at the time.

Crash at app.exe+0x1f91a90 (read of 0x02fc410000) on BPE JobWorkerThread CPU5, before reaching the main loop — this is what I captured on retry.

The file I attached earlier shows failure mode 2, not the deadlock. Since these are different failures, I'll leave this issue open with the original deadlock report (which is what I observed the first time) unless you'd prefer I close it and file the crash separately.

Happy to keep re-running with output capture if you want more data on either failure mode.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6132333484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4731#issuecomment-6132333484). Originally posted by [erturking](https://github.com/erturking) on 2026-10-12T20:47:04Z. --- Apologies — I could not reliably reproduce the original deadlock on demand. The game alternates between two failure modes depending on timing: Deadlock after Starting main loop (originally reported) — counters [0x0200553EE0] and [0x0268A04C30] — happened once and I did not save the console output at the time. Crash at app.exe+0x1f91a90 (read of 0x02fc410000) on BPE JobWorkerThread CPU5, before reaching the main loop — this is what I captured on retry. The file I attached earlier shows failure mode 2, not the deadlock. Since these are different failures, I'll leave this issue open with the original deadlock report (which is what I observed the first time) unless you'd prefer I close it and file the crash separately. Happy to keep re-running with output capture if you want more data on either failure mode.
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#4731
No description provided.