AnyPS5 Guides

AnyPS5 troubleshooting and common errors

Troubleshoot AnyPS5 startup, missing libraries, input and graphics errors. Check Windows DLL codes, Linux symbols, Vulkan logs and the exact build before changing files.

Reviewed ·

Before the window opens

Confirm the input is clean ELF, the relinker targets the right operating system, and libs/ contains matching host-native libraries. Windows error 193 suggests a format mismatch; 126 can indicate a missing dependent DLL. On Linux, an undefined symbol points to a missing export or mismatched library. Rebuild the explicit libs target after changing source.

After the window opens

Check the selected Vulkan device in the log. An allocation error, unsupported shader operation, mixed DCC keys and a missing resource file are different failures. Keep the exact message, build hash, patches and scene. Read reports for your platform and GPU; do not apply a workaround from an unrelated game without understanding what it disables.

Make a reproducible report

Compare one change at a time. Separate a clean baseline from a patched run and keep logs for both. Include steps, expected behavior, actual stop, test duration and any screenshots or video. Remove personal paths and unrelated sensitive information before sharing. Submit game tests to the matching upstream discussion; email catalog corrections to [email protected].

A font failure can look like an allocation failure

The Playroom Linux report at maina373e85 traces Global Heap/nativeTex assertions to missing fonts and invalid text-layout dimensions; Noto substitutes pass six100–150s runs. Check the earliest font log and the documented font directory before treating this exact failure as RAM exhaustion. It does not establish the cause of similar errors in other titles.

Compare the same scene and counter window

Profile lines mix10s windows and cumulative totals. Use differences of cumulative values, disclose profiling overhead, cache state and streaming. ASTRO BOT/LEGO cache-budget observations apply to their measured hosts; larger budgets can exhaust VRAM. Fewer pipeline drains alone did not improve Sword of the Sea. Do not turn one host’s switch into a universal preset.

Later main: a missing converted module is an error, not a library substitute

A title can load a module after startup. Current main reports “[module] dlopen: … was not relinked” once per file, returns a load error and lets the title continue; a later null fault may follow. Add that module directory with --module-dir and keep the generated guest module in app0. Original PS5 PRX files do not belong in Windows libs/. This does not prove every missing-module crash has the same cause.

Later main: recovery is not unlimited memory

Image/buffer allocation retries can release unused pools and reclaimable textures, while preserving pending GPU storage results and recorded-work references. Read requested bytes, released bytes and retry count in bufferpool recovery lines. A failed allocation may remain unrecoverable. The 007 diagnostic cache floor and Astro label-store cost do not justify discarding live GPU results.

Later main: AMD dispatch markers for device-loss reports

APS5_GPU_CHECKPOINTS=1 remains off by default. Without NV diagnostic checkpoints, supported AMD devices can use VK_AMD_buffer_marker to record dispatch reached/finished markers, naming the last programs and up to eight between them. Unsupported devices ignore it. A last marker narrows a hang investigation, not proof that the named shader caused it; keep diagnostics separate from unprofiled speed.

Later main: map a module before starting it

Convert Unity’s extra directories with --module-dir Media/Modules --module-dir Media/Plugins, retaining originals and each printed Guest module output. Later Linux main maps needed modules at startup but starts extra-directory modules only on explicit load, with the title’s arguments. Windows/macOS initialization rules differ. Lost in Play and Coffee Talk provide bounded setup follow-ups, not a universal null-call fix; keep matching relinker/runtime builds.

Later main: distinguish build-tool failures

The python.org Windows installer may provide python/py but no python3: use py -3 instead of the Store alias; other distributions differ. CTest fixes relinker test temp files under build/core/relinker/test-temp, so changing the parent shell’s TEMP does not move them. For libusb version_describe.h, check Git Bash and any overriding PowerShell Group Policy; upstream documents a Git-Bash wrapper via LIBUSB_POWERSHELL_EXECUTABLE without changing policy.

Later main: explicit Windows red-zone conversion

--frame-red-zone is Windows-only and opt-in. It gives supported leaf functions stack frames so host-delivered exceptions do not overwrite live System-V red-zone values. Bounds require .eh_frame; absent metadata fails, unsupported leaves are reported, and patches overlapping framed sites are refused. It is not a general crash fix, Linux flag or proof that an older patched GTA run now works unchanged.

Later main: confirm the allocator actually loaded

With APS5_MIMALLOC set, Windows loads mimalloc.dll and mimalloc-redirect.dll from matching libs/. If either is absent it silently keeps the C runtime heap; a variable alone does not prove which allocator ran. Preserve compiler/runtime pairing and measure a specific scene rather than assuming a universal FPS gain.

Later main: a counted implementation can still fail the import audit

For an import naming a library, import_audit now requires the literal export name. A hash-only match may still count as implemented/stub, but records symbol_mismatch and exits1; a strong mismatch is a current stop. Imports without a library retain name-to-NID fallback. Review weak bindings and exact module registries, not just the implemented count.

Follow the generated module layout

Current main prints app0/<module folder>/<name>.guest.prx. Its dynamic loader explicitly chooses the converted sibling; GAME_TESTING now says keep the original beside it. Silt’s earlier2dc8e456 report removed originals to avoid its older resolver: preserve that recipe with its version. New module-parent scanning suggests --module-dir for matching unconverted modules but cannot report unreadable files. A clean scan is not proof every runtime load exists.

Keep a bounded import-call snapshot

With --trace-imports and APS5_TRACE_CALLS , set APS5_TRACE_CALLS_FILE to a local path for per-import call counts rewritten every10s, most called first. A killed run retains only the latest rewrite; absence there does not prove never called. trace_digest skips window-capture lines and reports identity changes. Cold/warm caches, scene and all switches must match before comparing timings.

A memory limit is not a compatibility fix

Current main documents APS5_RESULT_MEMO_MB with a 256 MiB limit across shader-source result memos and LRU eviction. Zero retains results until their set evicts them; it is not a zero-byte budget. APS5_NO_PERF_DOMINATOR_TREE selects a diagnostic fallback, not a promised speed gain. MoltenVK deferred-destruction and macOS priority controls are experimental platform details. Record the actual build and every override before comparing runs; none of these options establishes a game fix or release support.

Compare one exact build and scene at a time

Main’s APS5_AB uses seconds:switch[+switch...] and toggles runtime switches at flip packets; settle defaults to2 seconds and start can be a flip count or seconds. A private fork’s comma syntax is not this interface. ANYPS5_LANGUAGE accepts0–30; invalid overlay/language values can fail rather than silently default. APS5_EXACT_DRAW_WRITES is now on when unset, with0 selecting approximation. APS5_TIME_SCALE accepts positive fractions, changes guest clocks and is not an FPS multiplier. STRICT_DESCRIPTOR_WEBS selects throwing diagnosis instead of default fault selection, not a compatibility cure. Record every override, cache and trace-event loss before comparing. PREBUILD_THREADS, worker affinity and profiling change the workload, so do not combine gains from different runs.

Keep runtime metadata and diagnose explicit input-file errors

Keep the title’s original app0/sce_sys/param.json, including titleId and localizedParameters/titleName. Main falls back to param.sfo only when JSON is absent; absent or malformed metadata can stop title/window setup. Startup creates data/, and download0/ for nonzero downloadDataSize, only from valid metadata. A named ANYPS5_INPUT_CONFIG file that is missing or unreadable is an error; invalid mapping lines name the file and line. Built-in bindings apply when neither a default input file nor an explicit setting exists. These behaviors are pinned to current main, not retroactively assigned to older reports. For launcher tests, distinguish its front end, account flow, downloaded client and actual game scene.

Bound trace memory and separate inspection from benchmarks

Main accepts APS5_TRACE_EVENTS from1 to4194304, default262144. A current event is40 bytes: 10 MiB per default thread buffer or160 MiB at maximum, allocated before the window opens, plus formatting memory. More capacity can still overflow; dropped events remain a qualification limit. Compute-pipeline --inspect needs VK_KHR_pipeline_executable_properties, reports driver counters and null milliseconds, and cannot be treated as a compile benchmark. Runtime capture stops optionally at128 records or256 MiB while the title continues; captured shaders are not reference game pixels. Windows’ usage prose now agrees on the lowest ELF page’s default0x400000, resolving the earlier documentation discrepancy; fixed-base placement is not a general FPS or isolation setting.

Capture the host before changing runtime policy

v0.1.4 documents ANYPS5_LOG_FILE=<path>: it duplicates executable stdout/stderr to an append-only file, without filename expansion. It does not collect relinker output or separate trace files. Opening failure stops startup with status 1; there is no size limit. Reviewed main adds ANYPS5_HOST_REPORT=1 after GPU selection, including a report before a missing-feature failure. Review paths and title output before sharing logs; redaction is not a guarantee. A missing-feature list diagnoses that device/build, not whole-game compatibility.

Other reviewed-main policies remain opt-in: ANYPS5_FREE_SPACE=host checks the save volume when creating a new save; fixed is the default and console behavior is unmeasured. A default-sized 16384-block save needs 1 GiB. APS5_GAME_MODE=on/auto requests host performance mode, off by default; a request is not a measured speed gain. ANYPS5_PSN_DIALOGS=show adds a host notice while retaining the same cancellation result, not PSN access. Record each policy and keep real save/load tests separate.

Local run reports and missing milestones

v0.1.5 writes anyps5-report.json locally at supported exits. A kill, crash or abort can leave no file. Windows requires guest exit or _exit in this release, and Windows/Linux omit the loaded and started milestones. Review the file before sharing it. A submitted frame can still be black, and the report does not detect mixed library builds.

Check the game’s resource layout before renderer diagnosis

A converted executable does not guarantee a complete game layout. Astro Bot’s latest report restores missing args.txt and app0/data mapping without changing code; Sea of Stars and Smurfs reports restore files hidden in a repack. Compare with your own original title layout and preserve originals. Do not copy another title’s command line or treat promotional images, present counts or resource-audit success as gameplay validation. Version/environment details still belong to each report.

Optional Linux dependency omission has narrow conditions

Main’s --omit-unavailable-dependencies omits only an unavailable bundled dependency with no imports, no converted provider and no copy in any --rpath directory. All those directories must exist during conversion. Without the flag the dependency remains and is noted. Use it only with all system libraries already in rpath: an omitted library found later through LD_LIBRARY_PATH will not load. This is not permission to discard real imports or a universal startup fix.

List only add-ons included in your copy

Later main reads anyps5-entitlements.ini beside the executable, or the ANYPS5_ENTITLEMENTS path: one included add-on label per line, up to 16 characters; # and ; begin comments. Unlisted labels are reported not installed. Some titles wait rather than proceed without an expected add-on. A loading spinner alone does not identify missing data, and declaring a label neither supplies content nor proves a DLC test. Keep this source behavior separate from v0.1.4.

Confirm host browser requests

v0.1.5 leaves guest browser requests blocked by default. If a trusted workflow needs them, ANYPS5_OPEN_URLS=ask shows the full address and defaults to Cancel. The game chooses the destination. This option handles HTTP(S) links and does not implement a console web browser or sign-in.

Separate shader, pipeline and driver caches

v0.1.5 uses the ordinary Vulkan driver cache and pipeline journal. The separate compute binary store from #15169 was reverted before this tag by #17982. #18082 proposes a reintroduction with an NVIDIA proprietary-driver exclusion. A warm run can still compile new pipelines; compare logs from the same GPU, driver and build.

Understand FSR window scaling

In v0.1.5, ANYPS5_UPSCALE=fsr selects FSR 1 for frames enlarged to fit the window. At equal or smaller display sizes the default path still presents the frame. FSR adds image passes and memory use. Record the game’s output size and the window size separately when comparing runs.

Original sources

Related guides