Repository navigation
Open
Labels
area: shadersShader recompiler, SPIR-V, pipeline creation and compile stallsarea: windowsWindows build and runtimebugSomething isn't workinggame testA title tested on AnyKytymediumA few days of work; needs some knowledge of the codeneeds: AMDNeeds an AMD GPU (RADV or AMD's Windows driver)needs: WindowsNeeds a Windows machine
Description
Title ID and version
Lies of P PPSA10621 (01.012.000)
Engine
Unreal Engine 4
AnyKyty commit
7de61e3451 (AnyKyty head, no pull request on top)
Host report
AnyPS5 host report (format 1)
commit: 7de61e3451c5
[system]
os: Windows 10.0.26300
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
cpu_threads: 16
memory_mib: 32705
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: AMD Radeon RX 6800
type: discrete
vendor_id: 0x1002
device_id: 0x73bf
vulkan_api: 1.4.315
driver: AMD proprietary driver
driver_info: 26.10.1 (AMD proprietary shader compiler)
driver_version: 2.0.353
driver_version_raw: 0x00800161
subgroup_size: 64
device_local_mib: 16368
candidates: none
present_modes: unknown
present_mode_requested: default
[vulkan]
[shader_cache]
state: present
size_mib: 0
[environment]
ANYPS5_HOST_REPORT: 1
VK_SDK_PATH: <path>
How far it gets
Stops or crashes before the first image
Frame rate
Does not reach menu or gameplay. Presents 2 frames during start-up before crashing:
- Default settings:
FPS: 0.88–0.89across 5 cold boots,FPS: 0.88–0.90across 5 warm boots KYTY_PIPELINE_LIBRARIES=0:FPS: 0.90–0.91across 5 cold boots,FPS: 0.89–0.90across 5 warm boots
Start-up time
Crashes during start-up before reaching the menu or first in-game image:
- Default settings, 5 cold boots (
_PipelineCachedeleted before each run): window at 27.9 s, first present at 27.9–28.4 s (2 frames), crash at 36.4–37.4 s - Default settings, 5 warm boots (
53–55 programs, 64–68 modules, 43 pipelinesloaded in 10–11 ms): window at 27.9 s, first present at 27.9 s (2 frames), crash at 36.4–36.9 s KYTY_PIPELINE_LIBRARIES=0, 5 cold boots: window at 27.4–27.9 s, first present at 27.9 s (2 frames), crash at 36.4–37.4 sKYTY_PIPELINE_LIBRARIES=0, 5 warm boots (53–55 programs, 64–68 modules, 43 pipelinesloaded in 13–15 ms): window at 27.4–27.9 s, first present at 27.4–27.9 s (2 frames), crash at 36.4–36.9 s
Problems seen
Converted with relinker --windows --frame-red-zone --to-intel (7/7 guest modules framed; executable framed with 4 ranges listed in .rzgap).
- Default settings (
ANYPS5_HOST_REPORT=1only): 5/5 cold boots and 5/5 warm boots crashed identically after presenting 2 frames, loggingPipeline stall: the game has waited ~6–7 s for the pipelines the driver compiles (1 left)and terminating with0xc0000005(read of 0x0000000000000004) atamdvlk64.dll+0x21f30d1on threadkytyPipelineLib. - Extra diagnostic check (
KYTY_PIPELINE_LIBRARIES=0+ANYPS5_HOST_REPORT=1): 5/5 cold boots and 5/5 warm boots crashed with the exact same0xc0000005(read of 0x0000000000000004) atamdvlk64.dll+0x21f30d1, moving to threadkytyGpuExecute. This shows the crash is in AMD's proprietary Vulkan shader/pipeline compiler (amdvlk64.dll26.10.1 / 2.0.353) rather than specific toVK_EXT_graphics_pipeline_library. - No
anyps5-report.jsonwas written because every run ended in an unhandled0xc0000005crash.
Kyty summary lines
[kyty-gpl] graphics pipeline libraries on: 4 library threads, 2 background threads for the whole pipelines (KYTY_PIPELINE_LIBRARIES=0 to turn off)
[kyty-gpl] pipeline chains on: 4 threads
[kyty-videoout] the pipeline precompile notice is not drawn by the Kyty GPU driver: the game waits for its pipelines without it
[kyty-gpl] stalls 16 total 0.173 s max 0.058 s >=0.1s 0 >=0.5s 0; driver pipelines 47
[kyty-async] mode 1: draws skipped kyty 0 occlusion 0 small-target 0 small-program 0 layer 0; first draws waited 0 times for 0.000 s, 0 ready in time; probes 0 for 0.000 s, 0 created at once; flips 2
[kyty-gpl] libraries built vi 2 fo 3 pr 11 (13.3 ms avg) fs 13 (31.7 ms avg); linked 3 (1.056 ms avg); waited 0.029 s; ahead requested 20 used 4; claimed 2; failed 0; whole in background 3 (25.3 ms avg); built ahead 12
[kyty-gpl] chains queued 10 dropped 0 prepared 10 failed 0 modules compiled 5 (32.1 ms avg)
Crash or hang
--- Default settings (5/5 cold + 5/5 warm; cold boot shown) ---
FATAL: unhandled exception 0xc0000005 on thread 20008 'kytyPipelineLib'
rip 0x00007ffa7e1230d1 amdvlk64.dll+0x21f30d1
read of 0x0000000000000004
rax 0000000000000001 rbx 000000fce6794790 rcx 0000000000000041 rdx 0000000000000041
rsi 0000000000000096 rdi 0000000000000001 rbp 000000fca76488e0 rsp 000000fca7648710
r8 000000fcb3fd6068 r9 0000000000000000 r10 00000000ffffffff r11 000000fce6794790
r12 0000000000000009 r13 000000fca764a5b0 r14 00000000ffffffff r15 0000000000000000
frame pointer chain:
stack return address candidates:
[rsp+0x98] 0x00007ffa7e0f0f73 amdvlk64.dll+0x21c0f73
[rsp+0xc8] 0x00007ffa7e124eaf amdvlk64.dll+0x21f4eaf
[rsp+0x3a0] 0x0000000004121009 app.exe+0x3d31009
[rsp+0x8b8] 0x00007ffa7c1f6a9b amdvlk64.dll+0x2c6a9b
[rsp+0xdc8] 0x00007ffa7c189ec0 amdvlk64.dll+0x259ec0
Pipeline notice: shown, state waiting (2 driver creations for 0.5 s, 0 pipelines pending, 1 game threads waiting)
[kyty-videoout] the pipeline precompile notice is not drawn by the Kyty GPU driver: the game waits for its pipelines without it
...
Pipeline stall: the game has waited 6.9 s for the pipelines the driver compiles (1 left)
Pipeline manifest: wrote _PipelineCache\PPSA10621_01.012.000.kpm (60 modules, 3 pipelines, 8.0 KB; 60 modules and 3 pipelines new in this session)
--- With KYTY_PIPELINE_LIBRARIES=0 (5/5 cold + 5/5 warm; gpl01 shown) ---
FATAL: unhandled exception 0xc0000005 on thread 30668 'kytyGpuExecute'
rip 0x00007ffa7e1230d1 amdvlk64.dll+0x21f30d1
read of 0x0000000000000004
rax 0000000000000001 rbx 000000fcda502770 rcx 0000000000000041 rdx 0000000000000041
rsi 0000000000000096 rdi 0000000000000001 rbp 000000fca5e65090 rsp 000000fca5e64ec0
r8 000000fc5cfaf868 r9 0000000000000000 r10 0000000000000006 r11 000000fcda502770
r12 0000000000000009 r13 000000fca5e66d60 r14 0000000000000006 r15 0000000000000000
frame pointer chain:
stack return address candidates:
[rsp+0x98] 0x00007ffa7e0f0f73 amdvlk64.dll+0x21c0f73
[rsp+0xc8] 0x00007ffa7e124eaf amdvlk64.dll+0x21f4eaf
[rsp+0x3a0] 0x0000000004121009 app.exe+0x3d31009
[rsp+0x8b8] 0x00007ffa7c1f6a9b amdvlk64.dll+0x2c6a9b
Pipeline notice: shown, state waiting (2 driver creations for 0.5 s, 0 pipelines pending, 1 game threads waiting)
[kyty-videoout] the pipeline precompile notice is not drawn by the Kyty GPU driver: the game waits for its pipelines without it
Pipeline stall: the game has waited 6.5 s for the pipelines the driver compiles (1 left)
Checks
- Default settings (no
KYTY_*orAPS5_*override), or the overrides are listed above -
anyps5-report.json(written next to the game when it exits) is attached (not written due to0xc0000005crash) - No game files, save data or memory dumps are attached
Metadata
Metadata
Assignees
Labels
area: shadersShader recompiler, SPIR-V, pipeline creation and compile stallsarea: windowsWindows build and runtimebugSomething isn't workinggame testA title tested on AnyKytymediumA few days of work; needs some knowledge of the codeneeds: AMDNeeds an AMD GPU (RADV or AMD's Windows driver)needs: WindowsNeeds a Windows machine
Activity
simnJS commentedon Nov 26, 2026
Thanks @birdmarty, five cold and five warm boots per setting is a solid report.
The crash is inside AMD's Windows driver (
amdvlk64.dll+0x21f30d1, a read of address 4), on whichever thread builds the pipeline, with or without pipeline libraries. So the library path is not the cause: one pipeline makes this driver fail. To find which one:KYTY_SHADER_VARIANT_LOG=1andKYTY_PIPELINE_STALL_LOG_MS=0: please post the last 30 lines before theFATAL. They name the shader hashes and the stage being built, no shader code.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandVK_LOADER_DEBUG=layer: anyVUID-line before the crash. If we hand the driver an invalid create call, that is ours to fix.@relativespace2K sees other AMD-Windows-only problems with the same driver (26.10.1) on an RX 6800 XT (#270, #186), so one boot with a newer AMD driver, if there is one, is worth trying too.
birdmarty commentedon Nov 26, 2026
Ran the requested diagnostics on both 7de61e3 and current
AnyKytyea03d75 (Windows 11 Pro 26300, i9-9900K, RX 6800, AMD proprietary driver 26.10.1 / 2.0.353, Vulkan 1.4.315, Vulkan SDK 1.4.363.0), isolated the exact cause, and opened a fix in #328.1.
KYTY_SHADER_VARIANT_LOG=1+KYTY_PIPELINE_STALL_LOG_MS=0(cold cache)Both 7de61e3 and ea03d75 crash at the exact same address (
0xc0000005,read of 0x4,amdvlk64.dll+0x21f30d1) onkytyPipelineLibright afterstage=MS shader=d95bc66607ad635f module=365a0dc3c22a0636(spirv_words=9615) is emitted. WithKYTY_PIPELINE_LIBRARIES=0, the same crash happens synchronously onkytyGpuExecuteatamdvlk64.dll+0x21f30d1.Last 30 lines before
FATALon ea03d75 (cold cache, default GPL):2.
VK_LAYER_KHRONOS_validation+VK_LOADER_DEBUG=layerTested with both
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validationandKYTY_VULKAN_VALIDATION=1(withVK_LOADER_DEBUG=layerconfirmingVK_LAYER_KHRONOS_validationfrom Vulkan SDK 1.4.363.0 was inserted at both instance and device) on 7de61e3 and ea03d75:VUID-lines before the crash in every run.spirv-val --target-env vulkan1.3 --uniform-buffer-standard-layout --scalar-block-layoutwith 0 errors.3. Root cause & fix (#328)
Bisecting the emitted
MeshEXTSPIR-V down to a 20-line syntheticMeshEXTshader (no game code) isolates the crash cleanly:core/kyty/graphics/shader/recompiler/backend/spirv/spirvEmitterMesh.cppemitsBuiltIn Layer+PerPrimitiveEXT(andBuiltIn CullPrimitiveEXT+PerPrimitiveEXT) as standaloneOpVariable Outputarrays.amdvlk64.dll26.10.1 (2.0.353), anyMeshEXTshader with a standalonePerPrimitiveEXTBuiltIn Layeroutput array crashes insidevkCreateGraphicsPipelinesatamdvlk64.dll+0x21f30d1(read of 0x4) in both GPL pre-rasterization libraries and whole graphics pipelines.CullPrimitiveEXTand (when exported)Layerinside aBlock-decoratedOpTypeStructarray (gl_MeshPerPrimitiveEXT/gl_MeshPrimitivesEXT) withOpMemberDecorateBuiltIn+PerPrimitiveEXT(matchingGL_EXT_mesh_shader/glslang) fixes the crash, passesspirv-valandVK_LAYER_KHRONOS_validationwith 0 errors, and draws the expected culled/layered primitives on GPU.With #328 applied on Lies of P (
PPSA10621 01.012.000):stage=MS shader=d95bc66607ad635f, switches to3200x1800, and sustains ~60 FPS (flips 1007) with no crash.64 programs, 81 modules, 60 pipelines in 12 msand sustains ~60 FPS (flips 423).KYTY_VULKAN_VALIDATION=1+VK_LOADER_DEBUG=layer(60 s): 0VUID-lines, sustains ~60 FPS (flips 1018).KYTY_PIPELINE_LIBRARIES=0, theamdvlk64.dll+0x21f30d1crash is also gone (gets pastd95bc66607ad635fand3200x1800), though a separateVK_ERROR_DEVICE_LOSToccurs later in that non-default mode at tick 9–11.4. Linux / driver notes
AI-assisted: yes (Antigravity).