# Troubleshooting, Exit Codes & Crash Address Self-Diagnosis Use this guide to diagnose any startup error, exit code, or mid-game crash in seconds using `Larp\logs\play.log` and `Larp\data\7952987A\crashes.log`. --- ## 1. Quick Exit Code Lookup Table | Exit Code (Decimal) | Hex Code | Meaning | Primary Fix | |---|---|---|---| | **`-2005270523`** | `0x887A0005` | `DXGI_ERROR_DEVICE_REMOVED` (GPU hung / driver reset) | **NVIDIA:** Run `larp.exe nv-profile --mb 2048` (or `1024`) as Admin.
**AMD / Low VRAM:** Use `series-s.cmd`, lower `stream_budget`, delete `Larp\cache`. | | **`-1073741819`** | `0xC0000005` | Access Violation (most common during shader compile on **AMD RX 9060 XT / 9070 / 9070 XT**) | Update to **Enhanced v2+** (`SHA-256: 19FC9199...`), **delete `Larp\cache`**, and relaunch. | | **`-1073740791`** | `0xC0000409` | Intentional abort (`WaterTarget: no host copy of the texture; stopping`) | **Laptops/Dual-GPU:** Force `Larp\bin\larp.exe` to **High Performance GPU** in Windows Graphics Settings.
**8 GB GPUs:** Use `series-s.cmd` and set `stream_budget = 2500` in `options.ini`. | | **`-2147483645`** | `0x80000003` | Engine breakpoint / assertion (`int3`) | Check the `+0x...` offset in `Larp\data\7952987A\crashes.log` against **Section 3** below! (Usually missing `ttdb_graphics.ttpf` or custom `resolution` in `settings.ini`). | --- ## 2. Detailed Fixes for Common Errors ### A. `exit -2005270523` (`0x887A0005` / `0x887A0006` Device Removed) - **On NVIDIA GPUs:** Almost always caused by NVIDIA's default **512 MiB shader heap** filling up once ~2,200+ ray-tracing/compute pipelines are loaded right after the loading screen. - **Fix:** Open **PowerShell as Administrator** and run one command: ```powershell & "C:\path\to\Larp\bin\larp.exe" nv-profile --mb 2048 ``` *(Use `--mb 1024` on 8 GB cards.)* Verify it applied by running `& "C:\path\to\Larp\bin\larp.exe" nv-profile`. - Make sure **Resizable BAR** is enabled in BIOS and Windows **Hardware-Accelerated GPU Scheduling (HAGS)** is on. - **NVIDIA, removal minutes into play with the shader heap already set:** the log line `no breadcrumbs (... 0x887A0004)` in older builds is *not* the reason (it only means device-removed data was off); the reason is the `0x887A0005` after it. To find which part of the layer goes with the removal, run one change at a time from a `cmd` window in the `Larp` folder, each until it crashes or clearly outlasts the usual time: 1. `set LARP_D3D12_DRED=1` — no change in behaviour; the log then names the command and faulting address. Attach that `play.log` to the issue. If it says no list was in flight and no page fault, the device was removed outside larp's command lists: check the shader heap above first. 2. `set LARP_BYTE_VIEWS=0` — buffer views by element instead of the 1.620 byte-offset views. 3. `set LARP_SHADER_REPLACE=0` — no replacement shaders (first start rebuilds the affected pipelines). Then `series-s.cmd`. The first switch that makes the removal go away names the suspect. The log also names Windows' TDR settings (`TdrLevel`, `TdrDelay`, `TdrDdiDelay`), and warns when a GPU hang would freeze the PC or blue-screen it instead of ending the run with a device removal. - **On AMD GPUs (e.g., RX 6700 XT / 6900 XT / 7000 / 9000):** - Launch with **`series-s.cmd`** first (Series X mode allocates significantly larger heaps and ray-tracing pools). - Delete `Larp\cache` after updating drivers or `larp.exe`. - In `options.ini`, set `stream_budget = 2500` (for 8–12 GB cards) to prevent VRAM eviction hangs during world entry. - **Which D3D12 runtime runs:** larp.exe asks Windows for the Agility SDK runtime in `bin\D3D12\` (1.620). If that `D3D12Core.dll` is missing, or is another version, larp uses Windows' own runtime or the file's version, and says so in the log (`D3D12 runtime: asking Windows for SDK version ...`). To bisect a device removal, `set LARP_AGILITY=0` runs on Windows' own D3D12 runtime instead (it also turns byte-offset buffer views off). ### B. `exit -1073741819` (`0xC0000005`) on AMD RX 9060 XT / RX 9070 / RX 9070 XT - **Cause:** AMD's `amdxc64.dll` shader compiler had two null-pointer crashes on RDNA 3/4 drivers: 1. When a buffer's `getDimensions` size query shared a uniform heap handle with the buffer's loads. 2. When compiling pixel shader `cad3ecfdcdcf2a7d` (breakable-glass alpha prepass). - **Fix:** 1. Download the latest **`larp.exe`** from [`v2026.12.05-enhanced-v2`](https://github.com/gamingwithhomie/larp/releases/tag/v2026.12.05-enhanced-v2) (or newer) and place it in `Larp\bin\larp.exe`. 2. **Delete the entire `Larp\cache` folder** (mandatory — otherwise previously cached DXIL before the translator fix will still be fed to `amdxc64.dll`!). 3. Launch `series-s.cmd`. 4. If a specific new shader hash still faults on an experimental AMD driver, you can skip it via `$env:LARP_LEAVE_OUT = '<16-char-hex-hash>'`. ### C. `exit -1073740791` (`WaterTarget: no host copy of the texture; stopping`) - Also check your Windows **commit limit**: this title allocates far beyond physical RAM. Press `Win+R`, run `SystemPropertiesPerformance.exe` → Advanced → Virtual memory: use **System managed size**, or a custom pagefile of at least **2× your physical RAM**, on an SSD with free space. A small/disabled pagefile on 16–32 GB machines is a known cause of this exit (and of multi-second freezes while Windows expands commit). - **Cause:** `larp` could not allocate the host D3D12 texture/readback copy for `WaterTarget` at startup. - **Fix 1 (90% of cases — Laptops & Desktop CPUs with iGPUs like Ryzen 7000/9000 or Intel non-F):** - Windows routed `larp.exe` to your integrated Radeon/Intel graphics instead of your dedicated GPU! - Go to **Windows Settings > System > Display > Graphics**, click **Add desktop app**, browse to `Larp\bin\larp.exe`, and set it to **High Performance**. - **Fix 2 (Tight VRAM on 6–8 GB GPUs):** - Use **`series-s.cmd`** (not `series-x.cmd`). - Edit `Larp\options.ini` and set `stream_budget = 2000` (or `2500`). - Close VRAM-heavy background apps (web browsers, Wallpaper Engine, hardware-accelerated overlays). ### D. `Error: no replacement shaders: none of these folders exists` - **Cause:** You ran `larp.exe` outside the Larp runtime folder (or compiled from source and ran `target\release\larp.exe` directly without `LARP_SHADER_REPLACE`). - **Fix:** Copy `larp.exe` into your full Larp package's **`Larp\bin\`** folder (right beside `shader-replace\`, `dlss\`, and `fsr\`), and start the game via `series-s.cmd` or `series-x.cmd`. ### E. Command Prompt Opens and Closes Immediately - **Cause:** Either `configure.cmd` was never run (`no game-dir.txt`), `game-dir.txt` points to the wrong folder (no `game_scarlett_master.exe`), `options.ini` has an invalid value (`frame_rate` only accepts `30`, `40`, or `60`), or you double-clicked `larp.exe` directly. - **Fix:** Run `configure.cmd` first, check `Larp\options.ini`, and run `series-s.cmd` from an open Command Prompt window to read any error message printed. --- ## 3. Diagnosing `exit -2147483645` (`0x80000003`) by Exact Crash Offset Whenever the game exits with **`-2147483645`**, open **`Larp\data\7952987A\crashes.log`** in Notepad and look at `#0` at the end of the file: ```text larp: unhandled exception 0x80000003 at larp-image-b99f876b74d4a77f.dll+0x3e42541 ``` Match the **`+0x...`** offset after `dll` to the table below: ### `+0x3e42541` — Crashes a Few Seconds After the Title Screen - **Registers:** `rcx = 0x1f31873945e`, `rsi = 0xf98c39ca2f0cd62a`, `rdi = 0x29db39a8e9fc1f17` - **Exact Cause:** Your game folder is missing **`data\ttdb\graphics\ttdb_graphics.ttpf`** (exact size **`34,411,776` bytes**). Incomplete game dumps sometimes only have `ttdb_peds.ttpf`, `ttdb_props.ttpf`, and `textures_loose.ttpf` inside `data\ttdb\` with no `graphics\` subfolder. When the game looks up a graphics texture database key while entering the world, it hits this exact breakpoint. - **Fix:** Check `\data\ttdb\graphics\ttdb_graphics.ttpf`. Restore/recheck that file from a complete game package, and verify `Larp\game-dir.txt` points to the complete game directory. ### `+0x247af2d` — Crashes Immediately at Startup (`System Init, Frame 0`) After Changing Resolution - **Exact Cause:** Changing `resolution` in `Larp\data\7952987A\settings.ini` or the `F10` menu away from the console preset's native output size (`3840x2160` on `series-x.cmd`, `1920x1080` on `series-s.cmd`) — such as forcing `2560x1440` or `1920x1080` on Series X, or forcing an ultrawide size — causes the engine's UI render-target pool check to assert at `+0x247af2d`. - **Fix:** 1. Open `Larp\data\7952987A\settings.ini` and **delete the `resolution = ...` line** so the game boots cleanly again. 2. Keep Output Resolution at default (`3840x2160` on Series X, `1920x1080` on Series S) and use **`Upscaler Scale`** in the `F10` menu (`DLSS Quality` / `Balanced` / `Performance`) to adjust internal rendering resolution! 3. For **21:9 / 32:9 Ultrawide**, install the [VI-Ultrawide](https://github.com/outcome/VI-Ultrawide) mod rather than editing `settings.ini` alone. ### `+0x2219650` — Crashes During Boot Screens on Series S - **Registers:** `rdx = rdi = 0x882000`, `r8 = rsi = 0x10000` - **Exact Cause:** Series S mode does not support native `1920x1080` DLAA (`upscaler_scale = 1.0`). - **Fix:** Open `Larp\data\7952987A\settings.ini` and change `upscaler_scale` to `quality` (`0.67`) or `performance` (`0.5`), or use `series-x.cmd`. ### `+0x2237178` or `+0x2237320` — Crashes Within 1 Second (`System Init, Frame 0`) - **Exact Cause:** Package mount failure — `appdata0.rpf` is missing, corrupted, renamed (e.g. `appdata0 (1).rpf`), or `game_scarlett_master.exe` is in a parent folder above the `.rpf` files. - **Fix:** Keep `game_scarlett_master.exe` in the exact same directory as `appdata0.rpf` and the other `.rpf` archives, and re-run `configure.cmd`. ### `+0x1ce6e13` or `+0x29defb1` — Crashes During Boot or 1–4 Minutes Into Loading Screen - **Exact Cause:** Truncated or zero-filled `.rpf` files (often `pack\story000_restofworld\story000_restofworld.rpf` or `levels.rpf` from an interrupted copy/extraction that still shows the expected file size). - **Fix:** Re-verify file integrity and re-copy any corrupted `.rpf` files from your original backup. ### `+0x4dcbc9d` — Crashes About 15 Seconds After Launch (`Frame: 82`) - **Registers:** `rax = 0x17fb0`, `rbx = 0x50`, `rsi = r8 = 0x6c0` - **Exact Cause:** The game could not set up your default playback device (it uses Windows spatial audio, `ISpatialAudioClient`, on it) and went on without an audio output. In that mode its audio mix takes the audio stream lock and returns without giving it back (a bug in the game that a console never reaches). The audio thread then waits on that lock forever, nothing empties the effect command buffers the game fills every tick, and the game breaks when one is full. - **Fix:** Fixed in larp: the game's early return now goes through its own unlocking exit, so the game keeps running. It has no sound while it has no output, and the log says so (`audio: the title found no audio output it could use`); it may stay silent until the playback device changes or you restart the game. What may help: on the one PC where this was seen, the default playback device had never had its spatial sound set, and setting it once (**Settings → System → Sound → your device → Spatial sound → Windows Sonic for Headphones**, then back to **Off** if you like) made the game's setup succeed from then on. Which step of the setup failed there is not known. ### `+0x2215c35` or `+0x23cf683` — Freeze for 30 Seconds Followed by Crash - **Exact Cause:** The title's 30-second hang watchdog fired because the main loop stalled (usually heavy first-time shader compilation or disk I/O stall). - **To see what stalled:** `set LARP_STACKS_AT_KILL=1` prints every thread's stack at the kill. **To ride out a stall:** `set LARP_TITLE_WATCHDOG=0` tells the watchdog to quit (a real hang then no longer ends by itself). - **Fix:** Simply relaunch — already-compiled pipeline blobs in `Larp\cache` are kept, so the next start picks up right where it left off. --- ## 4. Visual, Audio & Input Quirks - **Controller / Keyboard / Mouse Doesn't Respond at Title Screen:** - Wait for the pipeline compilation counter at the top of the screen to finish! Input is intentionally held until all queued pipelines finish compiling. - If a controller still doesn't respond afterward, close **Steam** (Steam Input hijacks controllers) and **DS4Windows** (not needed — DualSense & DS4 work natively in Enhanced `larp.exe`). - **1440p Monitor Shows a White Picture When Pressing `Alt+Enter` on `series-x.cmd`:** - Known quirk when stretching a `3840x2160` Series X swapchain via `Alt+Enter` on certain `2560x1440` displays (opening the pause menu temporarily restores it). - **Workaround:** Play in the normal window (Windows DWM scales it cleanly without white-out), use a third-party borderless window utility (e.g. Borderless Gaming), or run `series-s.cmd`. - **Missing Voices / Audio During Phone Calls:** - **Fixed in [`v2026.12.05-enhanced-v5`](https://github.com/gamingwithhomie/larp/releases/latest)+** — ported full `DECODE_CONVERT_OPUS` and `CONVERT_PCM` sample-rate conversion (`xapu.dll`) along with XMA2 overlap-buffer carry/resume (`acphal.dll` / `larp-formats`). Replace `Larp\bin\larp.exe` with the latest release. - *(Note: if the caller icon or subtitles shimmer/flicker while FSR Frame Generation is enabled, try toggling **Frame Generation: Off** in `F10`.)* - **Windows Defender Flagging `larp.exe` / `larp.zip`:** - False positive: `larp.exe` is an unsigned Rust compatibility layer that maps and patches an Xbox PE executable in memory, which triggers generic heuristic detections. Full GPL-3.0 source is in this repository if you prefer to audit and run `cargo build --release -p larp` yourself. - **GTX 10-Series (Pascal, e.g., GTX 1080 Ti) / Older GPUs Without DXR or Mesh Shaders:** - The game heavily uses DirectX 12 Ultimate features (Shader Model 6.6, hardware ray tracing / DXR, tiled resources). Cards without DXR / SM 6.6 (GTX 10-series, GTX 16-series) are not supported by Larp's GPU layer. - **Linux / Proton (`vkd3d-proton`):** - Use the **Linux/Proton release zip** and the `linux/` scripts inside it (see `README-LINUX.txt` in the zip) — do not use `configure.cmd`/`series-x.cmd` on Linux (Windows PowerShell wrappers). Scripts are LF; if an old zip gives `env: 'bash\r'`, re-download the current zip. - Black world/models but UI fine on Linux = Wine's stub `d3dcompiler_47.dll`: run `linux/setup.sh` (installs Microsoft's real one) or `winetricks -q d3dcompiler_47`. - **`controls.ini` Seems Ignored / Wrong Keys:** - The log (`logs\play.log`) now tells you exactly: search `controls.ini` — either `loaded custom controls.ini path=... entries=N` or `no controls.ini found (default keybinds in use)` listing every path searched. Put `controls.ini` next to `options.ini` (the `Larp\` folder root), or set `LARP_CONTROLS_INI` to its full path. In-game, **F10 → Controls** (v1.1.3+) edits and saves it live. - **Pipelines Compile Again on Every Launch (Same Version):** - Check the release's **Shader/pipeline cache** label first (NONE updates never recompile). If it still recompiles: (1) you are launching from a different folder than last time — `cache\` lives in the `Larp\` folder, so don't alternate between two extracts; (2) something deletes `cache\` (antivirus cleanup, extracting updates over the folder with "delete extra files"); (3) you updated across a FULL-cache release. Copy `cache\` + `data\` + `game-dir.txt` when moving folders. - **Stuck in First-Person View After an Update:** - It's a saved setting, not your save file: press **F7** to toggle it back, or set `first_person = off` in `data\7952987A\settings.ini` (F10 → Picture → *First-person view* also shows its state). An accidental F7 press is the usual cause. - **Pixelated / Blocky Shadows (Worse Above 1080p):** - Try in order: in-game RT Local Shadows on **Low**, `series-s.cmd` (its shadow setup differs), and F10 *Texture detail* at full. If the blocks appear only while pipelines are still compiling at launch and clear after a minute, that's pipeline warm-up, not settings. Still blocky afterwards? Attach `zip-logs` — we need the first `refused`/`dropped` lines. - **Stutter Every Few Seconds (Good Average FPS):** - Launch with `LARP_PIPELINE_WAIT_MS=8` (new shaders stop hitching the frame), keep the Windows pagefile on an SSD with room, and try Frame Generation **Off** to compare (FG adds latency; if it feels worse with FG on, say so in the report — pacing data is in the F9 panel). v1.1.3 also reduces CPU overhead (#185) — check you're current. --- ## 5. How to Report a Bug Properly (`larp zip-logs`) If your issue isn't solved above, bundle your logs safely in one click (this **automatically strips your Windows username** from all paths!): 1. Open **PowerShell** or **Command Prompt** and run: ```powershell & "C:\path\to\Larp\bin\larp.exe" zip-logs ``` 2. Find the generated `larp-logs-.zip` inside **`Larp\logs\`**. 3. Open a new issue at **[github.com/gamingwithhomie/larp/issues](https://github.com/gamingwithhomie/larp/issues)** and attach: - The `larp-logs-*.zip` file - Your **GPU model + VRAM**, **driver version**, **CPU**, and **RAM** - Whether you launched **`series-s.cmd`** or **`series-x.cmd`**