Star Wars Jedi: Survivor (PPSA07783): table-call linking bakes callee addresses into compute shaders, so every boot rebuilds 1.2-2.6 M-word pipelines cold and Unreal's 120 s render-thread watchdog ends the title #24525

Open
opened 2026-11-20 18:50:06 +00:00 by Dark3581 · 0 comments
Dark3581 commented 2026-11-20 18:50:06 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dark3581 on 2026-11-20T18:50:06Z.


Update (summary): the stop comes from cold NVIDIA builds of 1.2-2.6 M-word compute pipelines on the queue-0 worker (106-1,633 s each), which hold queue 0 and the render thread past the watchdog. They repeat on every boot because AnyPS5's table-call linking (LinkCalls) writes the callee addresses into the linked code, and the callees move between boots, so the module and the driver cache key change each time. The 14-17 MB shader further down is not the cause. Measurements are in https://github.com/boykopovar/AnyPS5/issues/24525#issuecomment-7053001434. The root cause and a fix direction are in https://github.com/boykopovar/AnyPS5/issues/24525#issuecomment-7059925123. #21708 and #24815 skip dispatches while a pipeline builds, but they do not make the module the same across boots. This issue is open for anyone to pick up.

What happens

Between 5 and 10 minutes after boot, after the first level's HUD is shown over a black scene, the title stops with LowLevelFatalError [File:Unknown] [Line: 1378] GameThread timed out waiting for RenderThread after 120.00 secs.

Title, test or build step

PPSA07783 01.000.013

AnyPS5 commit

main c8eb2aac70, no pull requests on top.

System

Windows 10 19045, i5-11600K, RTX 3070 Ti (NVIDIA 621.14), MinGW GCC 15.2.0 (winlibs), Release.

Host report

AnyPS5 host report (format 1)
commit: c8eb2aac700a
[system]
os: Windows 10.0.19045
cpu: 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
cpu_threads: 12
memory_mib: 32604
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce RTX 3070 Ti
type: discrete
vendor_id: 0x10de
device_id: 0x2482
vulkan_api: 1.4.357
driver: NVIDIA
driver_info: 621.14
driver_version: 621.14.0.0
driver_version_raw: 0x9b438000
subgroup_size: 32
device_local_mib: 8017
candidates: NVIDIA GeForce RTX 3070 Ti
present_modes: unknown
present_mode_requested: default
[vulkan]
VK_KHR_8bit_storage: extension required present
VK_KHR_buffer_device_address: extension required present
VK_KHR_shader_float_controls: extension required present
bufferDeviceAddress: feature required present
fragmentStoresAndAtomics: feature required present
samplerAnisotropy: feature required present
shaderInt64: feature required present
shaderSignedZeroInfNanPreserveFloat32: feature required present
storageBuffer8BitAccess: feature required present
textureCompressionBC: feature required present
vertexPipelineStoresAndAtomics: feature required present
VK_EXT_external_memory_host: extension optional present
VK_EXT_fragment_shader_interlock: extension optional present
VK_EXT_hdr_metadata: extension optional present
VK_EXT_memory_budget: extension optional present
VK_EXT_mesh_shader: extension optional present
VK_EXT_present_mode_fifo_latest_ready: extension optional present
VK_EXT_provoking_vertex: extension optional present
VK_EXT_sample_locations: extension optional present
VK_EXT_sampler_filter_minmax: extension optional present
VK_EXT_shader_demote_to_helper_invocation: extension optional present
VK_EXT_shader_image_atomic_int64: extension optional present
VK_KHR_draw_indirect_count: extension optional present
VK_KHR_driver_properties: extension optional present
VK_KHR_fragment_shader_barycentric: extension optional present
VK_KHR_maintenance5: extension optional present
VK_KHR_present_mode_fifo_latest_ready: extension optional present
VK_KHR_shader_atomic_int64: extension optional present
VK_KHR_shader_clock: extension optional present
VK_KHR_shader_terminate_invocation: extension optional present
VK_KHR_spirv_1_4: extension optional present
[shader_cache]
state: present
size_mib: 6056
[environment]
ANYPS5_HOST_REPORT: 1
APS5_NO_WGI: 1
VK_SDK_PATH: <path>

Steps to reproduce

relinker --windows on the dump (via tools/audit_dump.py), then APS5_NO_WGI=1 APS5_LOG_TIMESTAMPS=1 APS5_PAD_INPUT_FILE=<file> jedi.exe, with a Cross press, a forward stick push or a screenshot every 15 s after the first minute. The title shows the intro movies and the loading screen and reaches the first level's HUD.

Of 10 runs that were not stopped early, 8 end with the error above, with the title's last log line between +183 s and +477 s. Two runs reached their time limit (620 s and 700 s) without it, still on a black screen.

Log

[shader-disk-cache] (10 s): 0 hits, 1 misses, 1 writes (14.2 MiB), 0 load failures, 0 write failures; resource plans: 0 hits, 0 misses, 1 writes, 0 load failures; ...
WARNING! NEEDED EXTRA STREAMING BUDGET desired: 742.555 actual: 0.034 duration: 10.313
LowLevelFatalError [File:Unknown] [Line: 1378]
GameThread timed out waiting for RenderThread after 120.00 secs
FATAL: unhandled exception 0xc0000005 on thread 58068 'UE4 Main Thread'
  guest abort() (int 0x45)

What was checked

  • A large shader is recompiled in every run that stops. In 7 of the 8 runs that stop, the shader disk cache logs a write of 14.2 MiB (6 runs) or 17.0 MiB (1 run) shortly before the title's last log line. The eighth run logs no such write, but its cache folder gained a 16,960,612-byte entry, the size of the 17.0 MiB one, about a minute after it stopped. Of the two runs that did not stop, one wrote a different entry of 13.5 MiB and the other wrote no entry over 10 MiB. This is a correlation from the logs. I did not time that shader's recompile or pipeline build. APS5_PROFILE_DRAW=1 was set only in a run that did not build it, and its [dispatch] created a pipeline lines (up to 1,241,715 words) took 3-23 ms each.
  • Its cache key changes every boot. The cache folder holds seven entries of 14,162,341 to 14,162,357 bytes, one per run. The five I opened each have a 113,605-byte key. Comparing four of those keys: apart from the code hash at the start, they differ only in 60 dwords of the shader code. Each is the literal of an s_cmp_lg_u32 s14, <literal> (bf07ff0e <literal>), in a long series of compares whose literals step by 0x10000 (0x8f590000, 0x8fc60000, 0x8fc70000, ...). Between runs, the whole series is shifted by a constant (0x8fc60000, 0x78360000, 0x767c0000, 0x7fc60000). So the title seems to write guest addresses into this program's code at run time. Each boot then gets a different key and recompiles it, and a warm cache never helps, unlike The Exit 9 in #12089.
  • Where the render thread waits. With gdb attached during the 120 s window, RenderThread 1 is in a guest polling loop at 0x26b0f80. That loop is called by the occlusion-query result function at 0x26b1170 (reached from vtable slot 0x370, with bWait = 1 and GPUIndex = 0xffffffff). The loop spins until bit 0x4000000 is set in the word at offset 0x10 of the object at query + 0x38. That object is reference-counted at offset 0x50 and returned to a pool by 0x272e230, which looks like an Unreal task-graph event. Only then does 0x26b11d4 sum the 16 slots of 16 bytes at query + 0x28 (end counts minus begin counts).
  • Many threads wait on the same event. In the 700 s run, probed with gdb every 20 s, at about +520 s RenderThread 1 and all 11 TaskGraphThreadHP workers were in this loop. They waited on 12 different queries that all pointed to one event, 0x13e17a08d0. Its word at offset 0x10 was 0, and none of the 12 queries' result slots held a count with bit 63 set. About two minutes later, the 12 waits were on another event, 0x13e0e3f0d0, so the first one did complete.
  • The queue keeps flipping. In the 620 s run, queue 0 had 300 submissions per 10 s with one DRAW_INDEX_OFFSET_2 and one flip each. Its NOPs took 8,881 ms of each 10 s.
  • Not #6558. The first run logs one queue 0x28 WAIT_REG_MEM ... timed out after 1000ms before the stall. With APS5_DRAIN_ALL=1 (two runs), there is no timeout and the title still stops. APS5_STALL_WATCHDOG_SECS=5 APS5_PM4_RING=256 (three runs) prints no stall report.
  • Not verified.
    • Whether the large recompile and pipeline build is what holds the render thread past 120 s.
    • Which guest code completes the task-graph event.
    • Whether the NEEDED EXTRA STREAMING BUDGET warning, printed before most stops, is related.
    • Why the scene is black.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6517675822 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/24525). Originally posted by [Dark3581](https://github.com/Dark3581) on 2026-11-20T18:50:06Z. --- **Update (summary):** the stop comes from cold NVIDIA builds of 1.2-2.6 M-word compute pipelines on the queue-0 worker (106-1,633 s each), which hold queue 0 and the render thread past the watchdog. They repeat on every boot because AnyPS5's table-call linking (`LinkCalls`) writes the callee addresses into the linked code, and the callees move between boots, so the module and the driver cache key change each time. The 14-17 MB shader further down is not the cause. Measurements are in https://github.com/boykopovar/AnyPS5/issues/24525#issuecomment-7053001434. The root cause and a fix direction are in https://github.com/boykopovar/AnyPS5/issues/24525#issuecomment-7059925123. #21708 and #24815 skip dispatches while a pipeline builds, but they do not make the module the same across boots. This issue is open for anyone to pick up. ### What happens Between 5 and 10 minutes after boot, after the first level's HUD is shown over a black scene, the title stops with `LowLevelFatalError [File:Unknown] [Line: 1378] GameThread timed out waiting for RenderThread after 120.00 secs`. ### Title, test or build step PPSA07783 01.000.013 ### AnyPS5 commit `main` c8eb2aac70, no pull requests on top. ### System Windows 10 19045, i5-11600K, RTX 3070 Ti (NVIDIA 621.14), MinGW GCC 15.2.0 (winlibs), Release. ### Host report ```text AnyPS5 host report (format 1) commit: c8eb2aac700a [system] os: Windows 10.0.19045 cpu: 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz cpu_threads: 12 memory_mib: 32604 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce RTX 3070 Ti type: discrete vendor_id: 0x10de device_id: 0x2482 vulkan_api: 1.4.357 driver: NVIDIA driver_info: 621.14 driver_version: 621.14.0.0 driver_version_raw: 0x9b438000 subgroup_size: 32 device_local_mib: 8017 candidates: NVIDIA GeForce RTX 3070 Ti present_modes: unknown present_mode_requested: default [vulkan] VK_KHR_8bit_storage: extension required present VK_KHR_buffer_device_address: extension required present VK_KHR_shader_float_controls: extension required present bufferDeviceAddress: feature required present fragmentStoresAndAtomics: feature required present samplerAnisotropy: feature required present shaderInt64: feature required present shaderSignedZeroInfNanPreserveFloat32: feature required present storageBuffer8BitAccess: feature required present textureCompressionBC: feature required present vertexPipelineStoresAndAtomics: feature required present VK_EXT_external_memory_host: extension optional present VK_EXT_fragment_shader_interlock: extension optional present VK_EXT_hdr_metadata: extension optional present VK_EXT_memory_budget: extension optional present VK_EXT_mesh_shader: extension optional present VK_EXT_present_mode_fifo_latest_ready: extension optional present VK_EXT_provoking_vertex: extension optional present VK_EXT_sample_locations: extension optional present VK_EXT_sampler_filter_minmax: extension optional present VK_EXT_shader_demote_to_helper_invocation: extension optional present VK_EXT_shader_image_atomic_int64: extension optional present VK_KHR_draw_indirect_count: extension optional present VK_KHR_driver_properties: extension optional present VK_KHR_fragment_shader_barycentric: extension optional present VK_KHR_maintenance5: extension optional present VK_KHR_present_mode_fifo_latest_ready: extension optional present VK_KHR_shader_atomic_int64: extension optional present VK_KHR_shader_clock: extension optional present VK_KHR_shader_terminate_invocation: extension optional present VK_KHR_spirv_1_4: extension optional present [shader_cache] state: present size_mib: 6056 [environment] ANYPS5_HOST_REPORT: 1 APS5_NO_WGI: 1 VK_SDK_PATH: <path> ``` ### Steps to reproduce `relinker --windows` on the dump (via `tools/audit_dump.py`), then `APS5_NO_WGI=1 APS5_LOG_TIMESTAMPS=1 APS5_PAD_INPUT_FILE=<file> jedi.exe`, with a Cross press, a forward stick push or a screenshot every 15 s after the first minute. The title shows the intro movies and the loading screen and reaches the first level's HUD. Of 10 runs that were not stopped early, 8 end with the error above, with the title's last log line between +183 s and +477 s. Two runs reached their time limit (620 s and 700 s) without it, still on a black screen. ### Log ```text [shader-disk-cache] (10 s): 0 hits, 1 misses, 1 writes (14.2 MiB), 0 load failures, 0 write failures; resource plans: 0 hits, 0 misses, 1 writes, 0 load failures; ... WARNING! NEEDED EXTRA STREAMING BUDGET desired: 742.555 actual: 0.034 duration: 10.313 LowLevelFatalError [File:Unknown] [Line: 1378] GameThread timed out waiting for RenderThread after 120.00 secs FATAL: unhandled exception 0xc0000005 on thread 58068 'UE4 Main Thread' guest abort() (int 0x45) ``` ### What was checked - **A large shader is recompiled in every run that stops.** In 7 of the 8 runs that stop, the shader disk cache logs a write of 14.2 MiB (6 runs) or 17.0 MiB (1 run) shortly before the title's last log line. The eighth run logs no such write, but its cache folder gained a 16,960,612-byte entry, the size of the 17.0 MiB one, about a minute after it stopped. Of the two runs that did not stop, one wrote a different entry of 13.5 MiB and the other wrote no entry over 10 MiB. This is a correlation from the logs. I did not time that shader's recompile or pipeline build. `APS5_PROFILE_DRAW=1` was set only in a run that did not build it, and its `[dispatch] created a pipeline` lines (up to 1,241,715 words) took 3-23 ms each. - **Its cache key changes every boot.** The cache folder holds seven entries of 14,162,341 to 14,162,357 bytes, one per run. The five I opened each have a 113,605-byte key. Comparing four of those keys: apart from the code hash at the start, they differ only in 60 dwords of the shader code. Each is the literal of an `s_cmp_lg_u32 s14, <literal>` (`bf07ff0e <literal>`), in a long series of compares whose literals step by `0x10000` (`0x8f590000`, `0x8fc60000`, `0x8fc70000`, ...). Between runs, the whole series is shifted by a constant (`0x8fc60000`, `0x78360000`, `0x767c0000`, `0x7fc60000`). So the title seems to write guest addresses into this program's code at run time. Each boot then gets a different key and recompiles it, and a warm cache never helps, unlike The Exit 9 in #12089. - **Where the render thread waits.** With gdb attached during the 120 s window, `RenderThread 1` is in a guest polling loop at `0x26b0f80`. That loop is called by the occlusion-query result function at `0x26b1170` (reached from vtable slot `0x370`, with `bWait = 1` and `GPUIndex = 0xffffffff`). The loop spins until bit `0x4000000` is set in the word at offset `0x10` of the object at `query + 0x38`. That object is reference-counted at offset `0x50` and returned to a pool by `0x272e230`, which looks like an Unreal task-graph event. Only then does `0x26b11d4` sum the 16 slots of 16 bytes at `query + 0x28` (end counts minus begin counts). - **Many threads wait on the same event.** In the 700 s run, probed with gdb every 20 s, at about +520 s `RenderThread 1` and all 11 `TaskGraphThreadHP` workers were in this loop. They waited on 12 different queries that all pointed to one event, `0x13e17a08d0`. Its word at offset `0x10` was 0, and none of the 12 queries' result slots held a count with bit 63 set. About two minutes later, the 12 waits were on another event, `0x13e0e3f0d0`, so the first one did complete. - **The queue keeps flipping.** In the 620 s run, queue 0 had 300 submissions per 10 s with one `DRAW_INDEX_OFFSET_2` and one flip each. Its NOPs took 8,881 ms of each 10 s. - **Not #6558.** The first run logs one `queue 0x28 WAIT_REG_MEM ... timed out after 1000ms` before the stall. With `APS5_DRAIN_ALL=1` (two runs), there is no timeout and the title still stops. `APS5_STALL_WATCHDOG_SECS=5 APS5_PM4_RING=256` (three runs) prints no stall report. - **Not verified.** - Whether the large recompile and pipeline build is what holds the render thread past 120 s. - Which guest code completes the task-graph event. - Whether the `NEEDED EXTRA STREAMING BUDGET` warning, printed before most stops, is related. - Why the scene is black. AI-assisted: yes
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#24525
No description provided.