Exit -2147483645 after compilation #8

Open
opened 2026-12-05 17:21:39 +00:00 by github-bot · 7 comments
Owner

@⁠nightstalker67 on GitHub · 2026-12-05 12:55 UTC · original

Got this code after shader compilation on RX 9070/Ryzen 7500F/16GB DDR5. After that ran LARP_D3D12_DEBUG="1" on Powershell and got the same code. Both logs attached.

play debug log.log
play first log.log

**@⁠nightstalker67** on GitHub · 2026-12-05 12:55 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8) Got this code after shader compilation on RX 9070/Ryzen 7500F/16GB DDR5. After that ran LARP_D3D12_DEBUG="1" on Powershell and got the same code. Both logs attached. [play debug log.log](https://github.com/user-attachments/files/35909945/play.debug.log.log) [play first log.log](https://github.com/user-attachments/files/35909944/play.first.log.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:21:39 +00:00
Author
Owner

@⁠tanasepro on GitHub · 2026-12-05 13:02 UTC · original

Its when you try to use 1440p resolution, there is a bug around resolution altogether

**@⁠tanasepro** on GitHub · 2026-12-05 13:02 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7438417952) Its when you try to use 1440p resolution, there is a bug around resolution altogether
Author
Owner

@⁠nightstalker67 on GitHub · 2026-12-05 13:37 UTC · original · edited 2026-12-05 13:39 UTC

play.log

I deleted the pipeline and shaders in cache and retried it. It worked game boots but I get black visuals.

image
**@⁠nightstalker67** on GitHub · 2026-12-05 13:37 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7438886575) · edited 2026-12-05 13:39 UTC [play.log](https://github.com/user-attachments/files/35910709/play.log) I deleted the pipeline and shaders in cache and retried it. It worked game boots but I get black visuals. <img width="2560" height="1440" alt="image" src="https://github.com/user-attachments/assets/3b8a21a7-9e2e-4b46-9aff-1eba059007ff" />
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 14:57 UTC · original · edited 2026-12-05 15:03 UTC

Great to see the amdxc64 crash is fixed and the game boots at ~36 FPS on your RX 9070! Looking closely at your play.log, there are zero WARN/ERROR lines, larp_gpu::fsr is running 4.1.2, and dropped per frame: 14 without a host pipeline. Could you test switching Upscaler in the F10 menu from FSR to Title's own (off) to see if FSR 4.1.2 is causing the black world output?

**@⁠gamingwithhomie** on GitHub · 2026-12-05 14:57 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7439999915) · edited 2026-12-05 15:03 UTC Great to see the `amdxc64` crash is fixed and the game boots at ~36 FPS on your RX 9070! Looking closely at your `play.log`, there are zero `WARN`/`ERROR` lines, `larp_gpu::fsr` is running `4.1.2`, and `dropped per frame: 14 without a host pipeline`. Could you test switching **Upscaler** in the **F10** menu from `FSR` to `Title's own (off)` to see if FSR 4.1.2 is causing the black world output?
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 15:41 UTC · original

We published a dedicated [AMD Test] pre-release (v1.0.7-amd-test.1) specifically targeting the AMD RDNA 4 black-textures / blue-fog RTGI issue:
https://github.com/gamingwithhomie/larp/releases/tag/v1.0.7-amd-test.1

It includes 3 AMD-focused changes:

  1. AMD BVH Builder Atomic UAV Fences (auto-enabled on AMD VendorId == 0x1002) — fixes stale/zeroed BVH nodes causing pitch-black RTGI lighting indoors & black silhouettes outdoors.
  2. LARP_FSR_VERSION=3 — forces FSR 3.1.6 instead of auto-selected FSR 4.1.2 without deleting DLLs.
  3. LARP_HOST_WAVE=32 — lets you test the Wave32 shader translation path.

Quick Test Order

  1. Replace Larp\bin\larp.exe with the one from v1.0.7-amd-test.1 and launch normally first (BVH fences are auto-enabled on AMD and the shader cache auto-invalidates).
  2. If textures are still black, test with FSR 3.1.6:
    $env:LARP_FSR_VERSION = "3"
    .\series-x.cmd
    
  3. If still black, test with Wave32 + FSR 3.1.6:
    $env:LARP_HOST_WAVE = "32"
    $env:LARP_FSR_VERSION = "3"
    .\series-x.cmd
    

Please let us know which step fixes it (or attach larp.exe zip-logs if it's still black) so we can promote the working fix into the next stable release!

**@⁠gamingwithhomie** on GitHub · 2026-12-05 15:41 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7440658772) We published a dedicated **[AMD Test] pre-release (`v1.0.7-amd-test.1`)** specifically targeting the AMD RDNA 4 black-textures / blue-fog RTGI issue: https://github.com/gamingwithhomie/larp/releases/tag/v1.0.7-amd-test.1 It includes 3 AMD-focused changes: 1. **AMD BVH Builder Atomic UAV Fences** (auto-enabled on AMD `VendorId == 0x1002`) — fixes stale/zeroed BVH nodes causing pitch-black RTGI lighting indoors & black silhouettes outdoors. 2. **`LARP_FSR_VERSION=3`** — forces **FSR 3.1.6** instead of auto-selected **FSR 4.1.2** without deleting DLLs. 3. **`LARP_HOST_WAVE=32`** — lets you test the Wave32 shader translation path. ### Quick Test Order 1. Replace `Larp\bin\larp.exe` with the one from **`v1.0.7-amd-test.1`** and launch normally first (BVH fences are auto-enabled on AMD and the shader cache auto-invalidates). 2. If textures are still black, test with FSR 3.1.6: ```powershell $env:LARP_FSR_VERSION = "3" .\series-x.cmd ``` 3. If still black, test with Wave32 + FSR 3.1.6: ```powershell $env:LARP_HOST_WAVE = "32" $env:LARP_FSR_VERSION = "3" .\series-x.cmd ``` Please let us know which step fixes it (or attach `larp.exe zip-logs` if it's still black) so we can promote the working fix into the next stable release!
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 16:23 UTC · original

Fixed in v1.0.11-amd [AMD] (larp-windows-amd.exe, commit 88f6950)!

Big thanks to @Troplo for pointing to iceboerg00/larp-amd (45cc4f60): the root cause of the pitch-black indoor textures / blue-fog outdoor silhouettes on AMD was probe_view_limit() allocating UNCAPPED_VIEWS (2,097,152) on AMD instead of PORTABLE_VIEWS (1,000,000), which shifted the hardcoded descriptor slot indices inside shader-replace so lighting and RT shadows read garbage.

How to install & test

  1. Download larp-windows-amd.exe from v1.0.11-amd, place it in Larp\bin\, and rename it to larp.exe.
  2. Launch normally via series-x.cmd or series-s.cmd (shader cache auto-rebuilds).
  3. Please let us know if lighting and textures render properly now!
**@⁠gamingwithhomie** on GitHub · 2026-12-05 16:23 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7441262656) **Fixed in [`v1.0.11-amd [AMD]`](https://github.com/gamingwithhomie/larp/releases/tag/v1.0.11-amd)** (`larp-windows-amd.exe`, commit `88f6950`)! Big thanks to `@Troplo` for pointing to `iceboerg00/larp-amd` (`45cc4f60`): the root cause of the pitch-black indoor textures / blue-fog outdoor silhouettes on AMD was `probe_view_limit()` allocating `UNCAPPED_VIEWS` (`2,097,152`) on AMD instead of `PORTABLE_VIEWS` (`1,000,000`), which shifted the hardcoded descriptor slot indices inside `shader-replace` so lighting and RT shadows read garbage. ### How to install & test 1. Download **`larp-windows-amd.exe`** from **[v1.0.11-amd](https://github.com/gamingwithhomie/larp/releases/tag/v1.0.11-amd)**, place it in `Larp\bin\`, and **rename it to `larp.exe`**. 2. Launch normally via `series-x.cmd` or `series-s.cmd` (shader cache auto-rebuilds). 3. Please let us know if lighting and textures render properly now!
Author
Owner

@⁠nightstalker67 on GitHub · 2026-12-05 17:28 UTC · original · edited 2026-12-05 18:36 UTC

hey so replying late because i tried the things in order:

  1. disabling fsr didnt work (checked settings.file too to be sure)
  2. then v4 dropped, tried that no help
  3. tried v1.0.7-amd-test.1, first step no help
  4. saw the latest v1.0.11-amd [AM] and it works on series S!
    i get max 30 fps in prison, the police chase was 10 fps while driving, 20 fps while walking. max cpu usage was 65% and gpu usage 40%. after that it crashed with the code exit -2005270523. amd gave driver time out. will try stream budget 2500 now.
    log after crash:
    play.log

update: stream budget 2500 works but visuals suffered, the quality is lower
update 2: switched back to default, applied upscaling and framegen, settings mainly medium, game is playable at 30 fps native. Some mouth animations dont work. I guess the exit code appears random? but the main issue is solved! very impressive, looking forward.

**@⁠nightstalker67** on GitHub · 2026-12-05 17:28 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7442186008) · edited 2026-12-05 18:36 UTC hey so replying late because i tried the things in order: 1. disabling fsr didnt work (checked settings.file too to be sure) 2. then v4 dropped, tried that no help 3. tried v1.0.7-amd-test.1, first step no help 4. saw the latest v1.0.11-amd [AM] and it works on series S! i get max 30 fps in prison, the police chase was 10 fps while driving, 20 fps while walking. max cpu usage was 65% and gpu usage 40%. after that it crashed with the code exit -2005270523. amd gave driver time out. will try stream budget 2500 now. log after crash: [play.log](https://github.com/user-attachments/files/35917559/play.log) update: stream budget 2500 works but visuals suffered, the quality is lower update 2: switched back to default, applied upscaling and framegen, settings mainly medium, game is playable at 30 fps native. Some mouth animations dont work. I guess the exit code appears random? but the main issue is solved! very impressive, looking forward.
Author
Owner

@⁠ChuckZins on GitHub · 2026-12-05 17:35 UTC · original · edited 2026-12-05 17:36 UTC

i got the same error, but on a RTX 3050 8 GB, Ryzen 3600x, 16 GB Ram, compile the shaders, press X on PS5 controller, it goes to config menu and crashes, rockstar logo flashers really fast

\Downloads\larp\logs\play.log
exit -2147483645

play.log

crashes.log

game_scarlett_master-20261205-143152-17072.crash.log

**@⁠ChuckZins** on GitHub · 2026-12-05 17:35 UTC · [original](https://github.com/gamingwithhomie/larp/issues/8#issuecomment-7442306558) · edited 2026-12-05 17:36 UTC i got the same error, but on a RTX 3050 8 GB, Ryzen 3600x, 16 GB Ram, compile the shaders, press X on PS5 controller, it goes to config menu and crashes, rockstar logo flashers really fast \Downloads\larp\logs\play.log exit -2147483645 [play.log](https://github.com/user-attachments/files/35917704/play.log) [crashes.log](https://github.com/user-attachments/files/35917712/crashes.log) [game_scarlett_master-20261205-143152-17072.crash.log](https://github.com/user-attachments/files/35917723/game_scarlett_master-20261205-143152-17072.crash.log) <!-- Failed to upload "00000000-0000-0000-0000-000000000000.dmp" -->
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/gamingwithhomie--larp#8
No description provided.