1. Identify the failing stage

First determine whether the Relinker failed to produce an executable or whether the converted title failed to start. A Relinker exit code of 1 indicates invalid arguments; 2 indicates conversion failure with details on standard error. Exit code 0 means conversion succeeded, not that gameplay was tested. With --autorun, the launched application's exit status can be returned instead. Official exit codes ↗

2. Relinker errors before launch

Input modules not found or conflicting

Place the clean ELF beside one of sce_module/ or sce_modules/; prx/ is also accepted and may coexist with either. Both sce_module/ and sce_modules/ at once cause an error, as does having none of the accepted module directories.

Game module found in the wrong directory on main (26 October)

After merged PR #10494, the runtime chooses a relinked module by exact filename in its own directory, then a case-insensitive match in that directory. If neither matches, it searches prx/, sce_module/ and sce_modules/ without case sensitivity, then falls back to the module stem. When duplicate filenames exist in multiple folders, the module beside its caller takes priority. This lookup behavior was checked with Linux and Windows loader unit tests on main after the merge.

PRX scan fails on unsupported 0F 78 opcode

The The Rogue Prince of Persia (PPSA28155) report reproduces Unsupported 0F 78 opcode without SSE4A prefix in ubiservices.prx on Windows main 9caecfd2d. Relinker exits with code 2 before game launch. The upstream investigation has not yet established whether this is an instruction decoder limitation, an instruction-boundary problem or a scan of non-code data. Record the module, offset and build commit rather than changing Vulkan settings for a conversion-stage failure.

Wrong output format

On Windows, specify --windows when converting the executable. Simply naming the output app.exe still produces Linux ELF by default. --to-intel converts supported AMD-only instructions, but unsupported instructions may still fail.

For the exact input rules and supported flags, use Relinker command reference or read upstream USAGE.md ↗.

3. Windows startup: error 193, error 126 and memory

Error 193 — not a valid Win32 application

Check whether an original PS5 .prx module was placed in libs/. That directory must contain Windows-hosted AnyPS5 system libraries, not guest modules. Relinker-generated bundled game modules go in app0/.

Error 126 — specified module could not be found

For self-built Windows system libraries, missing libgcc_s_seh-1.dll, libstdc++-6.dll or libwinpthread-1.dll can cause this error even when the .prx exists. Use the DLLs from the matching mingw64/bin beside the required libraries; the official release archives already include these DLLs. The upstream loader does not search PATH for them.

create direct memory backing ...

Windows commits allocated direct memory immediately. Check Task Manager's Committed value and the system commit limit (RAM plus page file). Reduce other committed memory or increase the page file if the limit is too low.

See official runtime troubleshooting details ↗. The Windows installation guide remains the step-by-step setup reference.

A Windows crash after gameplay: trace the exact main revision

A crash after entering a game scene is not equivalent to the Relinker failing. The 21 October GTA V investigation provides a useful differential diagnosis. On an RTX 4090, a Los Santos open-world Story save crashed in seven of seven runs of main f6ce8e34a, reporting FATAL: unhandled exception 0xc0000005 on its [RAGE] HDD Streamer thread. Another main commit from 17 October ran for 240 seconds without a matching crash. The test author instrumented resumed Windows write-watch faults and traced corruption of the x86-64 stack red zone used by the game's zlib inflate routine, rather than assuming a graphics-driver or missing-library defect.

The upstream comparison connects new memory re-watch behavior (#6678) and later clean-resident write watching (#7473) to faults observed on that machine. An experimental APS5_NO_DEFERRED_SETTLES=1 A/B run suppressed certain zlib faults and avoided the crash for 150 seconds, but other faults remained. It is therefore a diagnostic result rather than a validated fix. If a title regresses after updating AnyPS5, log the title ID, content version, exact source commit, Windows build, driver, crash thread and exception address. Compare to the source-linked baseline before changing unrelated GPU settings or declaring all gameplay unsupported.

24 October follow-up: opt-in Windows Relinker protection, not a default game fix

Merged main PR #5640 introduced the Windows-only --frame-red-zone Relinker option. In the new GTA V PPSA04264 retest, upstream main c8d34aa8f converted using --windows --to-intel --frame-red-zone completed three 420-second Los Santos open-world runs without the prior HDD Streamer crash, although each run still logged 1,030–1,186 resumed write faults. For a self-built current main, compare the Relinker output's framed-leaf count and test the same save before/after conversion; the flag is off by default and is absent from earlier v0.1.5 binaries. It protects eligible leaf functions from this Windows exception mechanism, not every crash, and its documented skip reasons still matter. See the upstream option reference.

The GTA V evidence page keeps its experimental fork performance measurements separate from this main-branch regression. A dated issue can justify a troubleshooting note without claiming that a correction has been merged or shipped in v0.1.5.

4. Linux: /dev/udmabuf permission denied

On Linux drivers that import shared direct memory through /dev/udmabuf, lack of read/write access may print [gpu] open /dev/udmabuf: Permission denied. Those memory ranges are then copied instead of imported; some GPU writes can fail with BDA access failed. Check the device's owner/group and permissions. On distributions that grant access to the kvm group, adding the user to that group and signing in again is the upstream documented approach. This path is driver-dependent and does not describe the proprietary NVIDIA path. Linux memory-import notes ↗

5. GPU selection and missing text

AnyPS5 chooses a Vulkan 1.1-capable device with graphics, compute and presentation, preferring discrete GPUs. Inspect startup Physical device candidate lines and use ANYPS5_GPU with part of the intended device name to select another. If no device matches, startup prints available device names.

If a title uses the console's system font sets, missing fonts may leave its text blank. AnyPS5 reads an anyps5-fonts/ folder beside the generated executable, or a directory named by ANYPS5_SYSTEM_FONTS; the official font section lists supported substitute Noto font filenames.

Memory or texture assertion caused by missing fonts

If logs show sceFontOpenFontSet with file=(none), check substitute-font setup. In an Astro's Playroom Linux test, missing system fonts caused Out of Global Heap Memory or nativeTex.IsValid() errors. Loading Noto substitutes using anyps5-fonts/ or ANYPS5_SYSTEM_FONTS removed the crashes in the reported runs and enabled gameplay at 6–20 FPS. This is a title-specific diagnosis, not a general Vulkan OOM fix.

Rendered game world has T-pose or stale CPU-written pixels

In Ghost of Yōtei issue #8152, a contributor-fork build produces a T-pose under the map with moving camera; two controlled runs using APS5_NO_RESIDENT_LINEAR=1 spawn normally. A separate renderer test on upstream main 0393728fd3 confirms that delayed resident linear-target store-back can overwrite CPU-written pixels outside the draw scissor. The author has not proven that the two failures have the same cause. Treat the switch as a diagnostic A/B comparison for that test stack, not a game-wide fix.

22 October: distinguish Linux loader, voice-port and shader blockers

Loader rejects a game PRX: Minecraft #9622 shows three successive errors for the same libcohtml.Prospero.prx dependency: a missing shared object, then invalid ELF header when the original guest module was copied, then invalid ELF OS ABI on an unwrapped copy. The lesson is to verify the converted guest-module output and original directory mapping, not to search for a random unofficial library. An invalid OS ABI occurs before reaching the Vulkan renderer. See Linux setup and file categories.

Voice attribute stops launch: Call of Duty: Black Ops II #9601 stops on Linux main d9c99c9ba4 about ten seconds after launch while querying sceVoiceGetPortAttr input-port activity attribute 1001. It is a system-library backend behavior, not a missing controller input or a graphics shader compile. The earlier branch had returned a dummy zero and reached a menu, but the later main deliberately treats unsupported voice-activity state as an error. Do not instruct users to grant microphone access as a supposed fix: no host capture backend or working patch was demonstrated in that issue.

One shader fixed, another blocker remains: Guardians of the Galaxy PR #8991 corrects a split 8-dword image-table lookup. An equal-base test then renders the title screen and menu and starts loading New Game before a distinct AGC color-target CB metadata failure. That is a meaningful forward milestone but remains an Issues classification. Cold shader cache compilation can take minutes in that particular source test and should not be confused with normal measured gameplay performance.

24 October: tell GPU-bound frames from recorder waits and memory growth

If a game renders frames but feels extremely slow, identify what actually consumes the elapsed frame time before reducing graphics settings or assuming a weak GPU. The Guardians of the Galaxy Linux performance capture is a concrete counterexample to using only GPU utilization: 40 menu presents measured a median of 586.7 ms per frame but only 133.7 ms of GPU busy time per present. The CPU-side graphics worker was busy recording for roughly 481.8 ms per frame, while compute queue 0x23 spent 92% of the time waiting for a label. These are not the same clock and can overlap: do not add them as though they were independent sequential delays. An awaited label's producer was not identified, so replacing a driver or disabling an arbitrary queue feature is not a demonstrated repair.

For an advanced test on a source-built branch that supports the current diagnostics, record a known stable scene, warm caches, exact title/content ID, commit and patches, and one trace window. The upstream example used APS5_TRACE_FRAMES=1150:40 to capture 40 menu presents. Report frame p50/p90, GPU busy per present, each queue's wait versus busy intervals and whether trace_dropped is set. Its final 0.1 seconds lost 1,659 graphics-thread events; do not attribute precise sub-frame time to absent trace records. Separately enabling APS5_PROFILE_DRAW=1 incurs overhead and must be labelled as another run, not grafted into the clean 40-frame measurement.

# Example for the specific Linux source-build trace capability:
APS5_TRACE_FRAMES=1150:40 ./app.elf
# Use the same save, scene, build and configuration for a second trace.
# Do not use capture flags in the baseline frame-rate result unless noted.

A memory-allocation problem is different: Resident Evil 2 PR #7705 measured the AGC depth-plane-copy allocation class at 1,228 MiB before and 164–188 MiB after applying an eviction budget on Windows with an AMD RX 9070 XT. It preserves images currently in use and evicts least-recently-used cached copies. These figures do not measure total VRAM use or frames per second. For that specific cache, APS5_DEPTH_PLANE_COPY_MIB=0 is an explicit no-eviction control in a developer A/B test, not a general-purpose speed tweak: it may grow device-memory consumption instead. Keep allocation-class, scene, GPU and branch fixed when assessing the change.

The Guardians report contains the exact test-environment and earlier-versus-later branch distinction. When a title blocks before the first frame instead, return to loader errors and missing module imports; a frame trace cannot solve those start-up failures.

Identify expensive draw calls on current main (27 October)

Merged PR #11365 extends the existing GPU profiler to label individual recorded draws by fragment-program variant ID. On Linux, run your already-converted executable with the two opt-in environment variables set:

APS5_PROFILE_GPU=1 APS5_PROFILE_GPU_DRAWS=1 ./app.elf

Read the output in two steps: [gputime] lists an expensive draw 0x<variant>; match that ID to [drawvariant] to get its fragment-program code address. When a specific shader needs inspection, set APS5_DUMP_DRAW_SHADERS to that hexadecimal program address and reproduce the same frame. Each timed range consumes part of the batch's GPU timestamp-query budget, so compare the same scene and capture window with the original broad profile before attributing a slowdown to one shader. Draws using a recipe are outside this per-draw grouping.

These diagnostic switches are disabled by default and were merged after v0.1.5. The upstream PR records unit tests and separate Linux/Windows community smoke runs, not a measured frame-rate improvement. Upstream variable reference.

6. Diagnose missing system function imports

For advanced debugging, the upstream tools/import_audit.py reads Relinker --registry outputs against built .prx libraries and identifies imports as implemented, stub, absent or game module. A static import audit checks loading dependencies; it does not check graphics or gameplay. Review the command-reference example and upstream import audit documentation ↗.

Scope: current upstream main documentation. Some diagnostics or behavior may differ in tagged release v0.1.5. Additional technical limitations ↗