Lies of P (PPSA10261) on Windows: freezes on the in-game loading screen (no exception; render thread polling) #5983
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 boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-14T18:21:30Z.
Lies of P (PPSA10261, Unreal Engine 4) on Windows 11, RTX 5070, MinGW GCC 15, Release,
maina453108cf, relinked with--windows(title modules fromsce_module), driven with Enter presses (Cross).What happens:
Account1), and reaches the in-game loading screen ("Now Lying ...", with a tip card).FATALornot implementedline, and the process keeps running.Thread state at about 420 s:
RenderThread 2alternates betweenTimedWait::Condition::waitSignal(libkernel) and title code (rip0x1430889ad,0x1445302e1), so it's polling rather than blocked.TimedWait; the AGC queue workers and the presenter are idle.This looks like the title waiting for a GPU-side completion (a label, fence or flip) that never arrives, rather than a library stop. I haven't identified which wait it is.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T18:33:57Z.
This report is pinned to
maina453108cf, so the first useful check is whether the same loading-screen freeze still reproduces on currentmain. If it does, could you capture a run withAPS5_PROFILE_GPU=1through the stall and attach the final[gputime]lines, along with a freshRenderThread 2stack showing the guest caller around the polling loop? The profile includes GPU batch span and per-program time; paired with the caller stack, that should distinguish unfinished GPU work from the title polling after the queue goes idle. The current report does not identify a wait primitive or command, so a generic code change would be guesswork.Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-14T18:44:27Z.
Follow-up, ruling out one lead:
WAIT_REG_MEMtimeouts on queue0x20during start-up:APS5_GPU_WAIT_TIMEOUT_MS=60000those waits are satisfied (no timeout lines at all), so the label does arrive, just later than 1 s.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-14T20:11:06Z.
A second title with the same symptom: Onimusha: Way of the Sword (PPSA27836, RE Engine). Same setup: Windows 11 Pro 26200, RTX 5070, driver 617.42, WinLibs GCC 15.2.0, Release. It also happens on
a453108cf. I have a good base and a bad base, which may help narrow it down.Good: a local branch on
main0b97f8b9fplus the title's PRs (#5769). It shows the health warning and the language menu at about 13 FPS. NoWAIT_REG_MEMtimeout over 15 minutes.Bad:
a453108cf,e34c47921anded835aa76, each with the same PRs, rebased. After about 40 s, the screen stays black at 0.3 to 1 FPS, andWAIT_REG_MEMtimes out on queues0x20and0x28. No exception:The same address pattern repeats on queue
0x28with value0x2.Performance trace on
a453108cf+ PRs, warm caches (APS5_TRACE_SUMMARY_EVERY=20, windowAPS5_TRACE_SECONDS=100:20):Driver.Packet.memory_waitis 1195 ms per frame. Waits run up to 3.1 s on queue worker0x28and 1.7 s on0x0.0x38sits inDriver.WorkerWait.dequeue_order: 744 ms per frame, single waits of 1 to 3 s.Ruled out on the bad base: #5851, #5484, #5631, a revert of #5592 (videoout buffer labels), and #757/#758 (the stop is already on
a453108cf). The queue ordering code (waitFree/orderReleased) didn't change between the two bases, so a change in what the titles submit is more likely, for example a new flip or label path. I haven't bisected the 0b97f8b9f..a453108cf range yet (roughly 120 merges).Trace and summary lines available on request.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T20:13:58Z.
One narrow candidate for the reported good/bad comparison:
17984f8c53695578b1f437598ff6f4d5b4fed659(perf(agc): start no collect epoch at a wait its own queue's stored label satisfies) is inside0b97f8b9f..a453108cfand changes two returns inDriver::waitMemory: whenstoredSincefinds a write from the waiting queue, it now leaves the collection epoch unbumped. That may be unrelated, and it is not a queue-ordering change; I mention it because the new trace showsWAIT_REG_MEM_64timeouts. If you can cheaply do one controlled comparison on the bad base with only this commit reverted, the timeout/present metrics would tell us whether this wait-path optimization belongs in the bisect range. It would not establish a fix by itself.Imported from boykopovar/AnyPS5. Originally posted by p3n1cillin on 2026-10-14T20:24:42Z.
@MarcZX100 thanks. Results on current
main4c1de0c0c, same setup:APS5_PROFILE_GPU=1stops it much earlier, before any window exists. The log ends 150 lines in, right after the shader registry's start-up messages, and no swapchain is created in 460 s. The same build without the variable starts normally. So I couldn't get the[gputime]lines through the stall; that looks like a separate start-up interaction with the GPU profiler.RenderThread 2during the freeze. Six samples a second apart: one in title code at0x14048fb7d(test %r14d,%r14d), the other five inZwWaitForMultipleObjectsunder libkernel'sTimedWait::Condition::waitSignal. gdb can't unwind pastwaitSignalinto the title. I scanned the stack for return addresses in the title's image, but the candidates don't follow call instructions, so I'm not reporting them as callers.If there's another profiler variable that doesn't affect start-up, I'll run it through the stall.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-15T10:05:56Z.
Update for Onimusha: Way of the Sword (PPSA27836): the black screen is gone on
main0afa6a607. Same machine as before: Windows 11, RTX 5070, NVIDIA 617.42.With the same PRs on top, the title shows its start-up screens and the main menu, and reaches the New Game scene load. A few runs still log 1 to 4
WAIT_REG_MEMtimeouts of 1000 ms during start-up, but presentation continues.So something between
a453108cfand0afa6a607fixed it for this title. It may be worth retrying Lies of P on0afa6a607or later.