mirror of
https://github.com/gamingwithhomie/larp.git
synced 2026-12-06 07:38:36 +00:00
17 KiB
17 KiB
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:
(Use
& "C:\path\to\Larp\bin\larp.exe" nv-profile --mb 2048--mb 1024on 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.
- Fix: Open PowerShell as Administrator and run one command:
- 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 the0x887A0005after it. To find which part of the layer goes with the removal, run one change at a time from acmdwindow in theLarpfolder, each until it crashes or clearly outlasts the usual time:set LARP_D3D12_DRED=1— no change in behaviour; the log then names the command and faulting address. Attach thatplay.logto 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.set LARP_BYTE_VIEWS=0— buffer views by element instead of the 1.620 byte-offset views.set LARP_SHADER_REPLACE=0— no replacement shaders (first start rebuilds the affected pipelines). Thenseries-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.cmdfirst (Series X mode allocates significantly larger heaps and ray-tracing pools). - Delete
Larp\cacheafter updating drivers orlarp.exe. - In
options.ini, setstream_budget = 2500(for 8–12 GB cards) to prevent VRAM eviction hangs during world entry.
- Launch with
- Which D3D12 runtime runs: larp.exe asks Windows for the Agility SDK runtime in
bin\D3D12\(1.620). If thatD3D12Core.dllis 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=0runs 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.dllshader compiler had two null-pointer crashes on RDNA 3/4 drivers:- When a buffer's
getDimensionssize query shared a uniform heap handle with the buffer's loads. - When compiling pixel shader
cad3ecfdcdcf2a7d(breakable-glass alpha prepass).
- When a buffer's
- Fix:
- Download the latest
larp.exefromv2026.12.05-enhanced-v2(or newer) and place it inLarp\bin\larp.exe. - Delete the entire
Larp\cachefolder (mandatory — otherwise previously cached DXIL before the translator fix will still be fed toamdxc64.dll!). - Launch
series-s.cmd. - 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>'.
- Download the latest
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, runSystemPropertiesPerformance.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:
larpcould not allocate the host D3D12 texture/readback copy forWaterTargetat startup. - Fix 1 (90% of cases — Laptops & Desktop CPUs with iGPUs like Ryzen 7000/9000 or Intel non-F):
- Windows routed
larp.exeto 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.
- Windows routed
- Fix 2 (Tight VRAM on 6–8 GB GPUs):
- Use
series-s.cmd(notseries-x.cmd). - Edit
Larp\options.iniand setstream_budget = 2000(or2500). - Close VRAM-heavy background apps (web browsers, Wallpaper Engine, hardware-accelerated overlays).
- Use
D. Error: no replacement shaders: none of these folders exists
- Cause: You ran
larp.exeoutside the Larp runtime folder (or compiled from source and rantarget\release\larp.exedirectly withoutLARP_SHADER_REPLACE). - Fix: Copy
larp.exeinto your full Larp package'sLarp\bin\folder (right besideshader-replace\,dlss\, andfsr\), and start the game viaseries-s.cmdorseries-x.cmd.
E. Command Prompt Opens and Closes Immediately
- Cause: Either
configure.cmdwas never run (no game-dir.txt),game-dir.txtpoints to the wrong folder (nogame_scarlett_master.exe),options.inihas an invalid value (frame_rateonly accepts30,40, or60), or you double-clickedlarp.exedirectly. - Fix: Run
configure.cmdfirst, checkLarp\options.ini, and runseries-s.cmdfrom 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:
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 size34,411,776bytes). Incomplete game dumps sometimes only havettdb_peds.ttpf,ttdb_props.ttpf, andtextures_loose.ttpfinsidedata\ttdb\with nographics\subfolder. When the game looks up a graphics texture database key while entering the world, it hits this exact breakpoint. - Fix: Check
<game_dir>\data\ttdb\graphics\ttdb_graphics.ttpf. Restore/recheck that file from a complete game package, and verifyLarp\game-dir.txtpoints to the complete game directory.
+0x247af2d — Crashes Immediately at Startup (System Init, Frame 0) After Changing Resolution
- Exact Cause: Changing
resolutioninLarp\data\7952987A\settings.inior theF10menu away from the console preset's native output size (3840x2160onseries-x.cmd,1920x1080onseries-s.cmd) — such as forcing2560x1440or1920x1080on Series X, or forcing an ultrawide size — causes the engine's UI render-target pool check to assert at+0x247af2d. - Fix:
- Open
Larp\data\7952987A\settings.iniand delete theresolution = ...line so the game boots cleanly again. - Keep Output Resolution at default (
3840x2160on Series X,1920x1080on Series S) and useUpscaler Scalein theF10menu (DLSS Quality/Balanced/Performance) to adjust internal rendering resolution! - For 21:9 / 32:9 Ultrawide, install the VI-Ultrawide mod rather than editing
settings.inialone.
- Open
+0x2219650 — Crashes During Boot Screens on Series S
- Registers:
rdx = rdi = 0x882000,r8 = rsi = 0x10000 - Exact Cause: Series S mode does not support native
1920x1080DLAA (upscaler_scale = 1.0). - Fix: Open
Larp\data\7952987A\settings.iniand changeupscaler_scaletoquality(0.67) orperformance(0.5), or useseries-x.cmd.
+0x2237178 or +0x2237320 — Crashes Within 1 Second (System Init, Frame 0)
- Exact Cause: Package mount failure —
appdata0.rpfis missing, corrupted, renamed (e.g.appdata0 (1).rpf), orgame_scarlett_master.exeis in a parent folder above the.rpffiles. - Fix: Keep
game_scarlett_master.exein the exact same directory asappdata0.rpfand the other.rpfarchives, and re-runconfigure.cmd.
+0x1ce6e13 or +0x29defb1 — Crashes During Boot or 1–4 Minutes Into Loading Screen
- Exact Cause: Truncated or zero-filled
.rpffiles (oftenpack\story000_restofworld\story000_restofworld.rpforlevels.rpffrom an interrupted copy/extraction that still shows the expected file size). - Fix: Re-verify file integrity and re-copy any corrupted
.rpffiles 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=1prints every thread's stack at the kill. To ride out a stall:set LARP_TITLE_WATCHDOG=0tells the watchdog to quit (a real hang then no longer ends by itself). - Fix: Simply relaunch — already-compiled pipeline blobs in
Larp\cacheare 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+Enteronseries-x.cmd:- Known quirk when stretching a
3840x2160Series X swapchain viaAlt+Enteron certain2560x1440displays (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.
- Known quirk when stretching a
- Missing Voices / Audio During Phone Calls:
- Fixed in
v2026.12.05-enhanced-v5+ — ported fullDECODE_CONVERT_OPUSandCONVERT_PCMsample-rate conversion (xapu.dll) along with XMA2 overlap-buffer carry/resume (acphal.dll/larp-formats). ReplaceLarp\bin\larp.exewith 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.)
- Fixed in
- Windows Defender Flagging
larp.exe/larp.zip:- False positive:
larp.exeis 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 runcargo build --release -p larpyourself.
- False positive:
- 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 (seeREADME-LINUX.txtin the zip) — do not useconfigure.cmd/series-x.cmdon Linux (Windows PowerShell wrappers). Scripts are LF; if an old zip givesenv: 'bash\r', re-download the current zip. - Black world/models but UI fine on Linux = Wine's stub
d3dcompiler_47.dll: runlinux/setup.sh(installs Microsoft's real one) orwinetricks -q d3dcompiler_47.
- Use the Linux/Proton release zip and the
controls.iniSeems Ignored / Wrong Keys:- The log (
logs\play.log) now tells you exactly: searchcontrols.ini— eitherloaded custom controls.ini path=... entries=Norno controls.ini found (default keybinds in use)listing every path searched. Putcontrols.ininext tooptions.ini(theLarp\folder root), or setLARP_CONTROLS_INIto its full path. In-game, F10 → Controls (v1.1.3+) edits and saves it live.
- The log (
- 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 theLarp\folder, so don't alternate between two extracts; (2) something deletescache\(antivirus cleanup, extracting updates over the folder with "delete extra files"); (3) you updated across a FULL-cache release. Copycache\+data\+game-dir.txtwhen moving folders.
- 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 —
- 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 = offindata\7952987A\settings.ini(F10 → Picture → First-person view also shows its state). An accidental F7 press is the usual cause.
- It's a saved setting, not your save file: press F7 to toggle it back, or set
- 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? Attachzip-logs— we need the firstrefused/droppedlines.
- Try in order: in-game RT Local Shadows on Low,
- 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.
- Launch with
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!):
- Open PowerShell or Command Prompt and run:
& "C:\path\to\Larp\bin\larp.exe" zip-logs - Find the generated
larp-logs-<timestamp>.zipinsideLarp\logs\. - Open a new issue at github.com/gamingwithhomie/larp/issues and attach:
- The
larp-logs-*.zipfile - Your GPU model + VRAM, driver version, CPU, and RAM
- Whether you launched
series-s.cmdorseries-x.cmd
- The