Skip to content

tests: kyty_shim_bda_load_forms and kyty_shim_wave_split_written_reads time out on Windows because agc_frame_replay can't find its prx DLLs #322

Done

Description

@Celegans12

On Windows with a real GPU, kyty_shim_bda_load_forms and kyty_shim_wave_split_written_reads hang until ctest kills them at the 120 s timeout. The GPU work isn't slow, though. The replay child never starts, because it can't find its prx DLLs.

Both tests run agc_frame_replay.exe through std::system. That exe imports libc.prx, libkernel.prx and libSceAgcDriver.prx. The other replay tests get PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceAgcDriver> on WIN32. kyty_shim_wave64_cross_lane and kyty_shim_depth_target_alias set it themselves, and the rest come from the set_property(TEST ... APPEND PROPERTY ENVIRONMENT_MODIFICATION ...) list after the cross-queue tests in core/libs/prx/libSceAgcDriver/KytyShim/tests/CMakeLists.txt. These two tests aren't in that list. ctest -N -V shows that they only get the MinGW bin dir on PATH.

On an interactive desktop, Windows then opens a modal "agc_frame_replay.exe - System Error" box ("The code execution cannot proceed because libc.prx was not found", and the same for libkernel.prx and libSceAgcDriver.prx; it shows up in the System log as "Application popup"). The child sits on that box with no CPU use, replay.log stays empty, and ctest reports ***Timeout 120.02 sec. The test's TIMEOUT property wins over --timeout 900, so a longer timeout doesn't help.

Putting the right directory on PATH fixes it. Those are the same runs, with core/libs/libs/unpatched (what $<TARGET_FILE_DIR:libSceAgcDriver> resolves to) prepended. Note that core/libs/libs itself doesn't work, because the patched prx there fails with "entry point GuestAllocationsAdd_nid_postfix not found".

as registered with core/libs/libs/unpatched on PATH
kyty_shim_bda_load_forms Timeout 120 s (every run) 3/3 direct runs ok, ctest Passed 0.46 s
kyty_shim_wave_split_written_reads Timeout 120 s (every run) 3/3 direct runs ok, ctest Passed 0.95 s

The replay log names NVIDIA GeForce RTX 3080 Laptop GPU as the device. Earlier today, the same timeouts showed up on two older bases (the heads of #220 and #289), with the validation layer on and off.

Windows CI doesn't catch this. The runner has no GPU and no interactive desktop, so the child fails right away and both tests skip (exit 77) in 0.03 s. Run 45798256681 shows them as ***Skipped next to kyty_shim_wave64_cross_lane. #203 hit the same missing-DLL problem on an RX 6800 XT, where the child failed with 0xC0000135 instead of hanging.

A likely fix is to add both tests to that WIN32 PATH list (or give them the same ENVIRONMENT_MODIFICATION). Neither of them is in tools/lavapipe_skip.txt for this reason (they are listed there for device features), so lavapipe runs on Windows probably hit it too.

Setup and commands
  • simnJS/AnyPS5 AnyKyty at 007a98c ("fix(kyty): refuse 3D image gathers"), plain Release build with -DBUILD_TESTING=ON, WinLibs GCC with LLVM 21.1.8 for Kyty, not the DLL build
  • Windows 11 Pro (10.0.26300), NVIDIA GeForce RTX 3080 Laptop GPU, driver 621.14. The loader was limited to NVIDIA because the laptop also has an Intel iGPU.
export ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DRIVERS_SELECT='*nv-vk64.json' ANYPS5_GPU=NVIDIA
# times out at 120 s, loader popup for libc.prx / libkernel.prx / libSceAgcDriver.prx:
ctest --test-dir build -R '^kyty_shim_(bda_load_forms|wave_split_written_reads)$' -V --no-tests=error
# passes:
PATH="$PWD/build/core/libs/libs/unpatched:$PATH" ctest --test-dir build -R '^kyty_shim_(bda_load_forms|wave_split_written_reads)$' -V --no-tests=error

AI-assisted: yes

Activity

  1. added
    area: windows
    area: tools-ci
    on Nov 26, 2026
  2. Celegans12 commented on Nov 26, 2026

    @Celegans12
    CollaboratorAuthor

    I'm taking this one: I'll add both tests to the WIN32 PATH list and open a PR shortly.

    AI-assisted: yes

  3. simnJS commented on Nov 26, 2026

    @simnJS
    Owner

    Fixed by #323, merged into AnyKyty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: tools-ciarea: windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions