exit -2147483645 (0x80000003) at +0x4dcbc9d, Frame 82 on world entry - same on v1.1.0 / v1.1.1 / enhanced-v5, Series S and Series X #201

Closed
opened 2026-12-05 21:28:25 +00:00 by github-bot · 2 comments
Owner

@⁠wisp29 on GitHub · 2026-12-05 21:22 UTC · original

Summary

Every launch ends with exit -2147483645 (0x80000003, engine breakpoint) at the same title address larp-image-b99f876b74d4a77f.dll+0x4dcbc9d, 17 s after start, Frame: 82 - exactly when the boot sequence hands over to the world. The offset is not in docs/troubleshooting-and-crashes.md (neither the exit-code table nor Section 3), so this is the unknown-offset case from Section 5.

Environment / launch

  • GPU RTX 3070 8 GB, driver 32.0.16.1714; CPU Ryzen 7 5700X; 16 GB RAM; Windows 11 build 22631
  • Game: game_scarlett_master.exe (120,181,760 B), TitleID 7952987A, version 930.048.020-vb_sub_story, platform scarlett, complete unpacked folder (~180 GB)
  • larp v1.1.1 [Windows NVIDIA / Stable], main cf5e530, bin\larp.exe SHA-256 DACBBC5F09300ACC5DEDFD30EABE4E97D50347304E75E52B41B937BDDBF47E51
  • larp.exe nv-profile --mb 1024 applied (8 GB card) -> profile "Larp (shader heap)", shader heap 1024 MiB
  • options.ini: frame_rate = 60, stream_budget = 2500
larp.exe run "...\game_scarlett_master.exe" --execute --console series-s --stream-budget 2500 -- -skipToIIS

Reproduced on every build/config (always +0x4dcbc9d, Frame: 82)

Build / change Result
v1.1.0 (package as shipped) exit -2147483645, +0x4dcbc9d
v1.1.1 cf5e530 (SHA-256 above) same
v2026.12.05-enhanced-v5 (drop-in exe) same
series-x (Anaconda) instead of series-s same
-Intro instead of -skipToIIS same
LARP_FRAME_RATE=30 (the title's own cap) same
LARP_RESOLUTION=1920x1080 same
LARP_SHADER_REPLACE=0 same

Larp\cache was cleared between binary changes.

Crash record

unix time 1796505311, process 5380
larp: unhandled exception 0x80000003 at larp-image-b99f876b74d4a77f.dll+0x4dcbc9d
  rax 0x17fb0 rbx 0x50 rcx 0x107315ac8 rdx 0x74a0df7450 rsi 0x6c0 rdi 0x107315ac8 rsp 0x74a0df7370 rbp 0x74a0dff490
  r8 0x6c0 r9 0x20 r10 0x7fffca9b0000 r11 0x7fffca9c232f r12 0x8 r13 0x0 r14 0x7fff35eec000 r15 0x1d2dcab1bb0
  #0  larp-image-b99f876b74d4a77f.dll+0x4dcbc9d
  #1  larp-image-b99f876b74d4a77f.dll+0x4e52a83
  #2  larp-image-b99f876b74d4a77f.dll+0x4e529c4
  #3  larp-image-b99f876b74d4a77f.dll+0x5ab13ed
  #4  larp-image-b99f876b74d4a77f.dll+0x21b70b1
  #5  larp-image-b99f876b74d4a77f.dll+0x1d83996
  #6  larp-image-b99f876b74d4a77f.dll+0x81afb9
  #7  larp-image-b99f876b74d4a77f.dll+0x53ec079
  #8  larp-image-b99f876b74d4a77f.dll+0x53ebf66
  #9  larp-image-b99f876b74d4a77f.dll+0x661f0
  #10 larp-image-b99f876b74d4a77f.dll+0x1d109c9
  #11 larp-image-b99f876b74d4a77f.dll+0x5a91c0d
  #12 larp-image-b99f876b74d4a77f.dll+0x56a1e5a
  #13 larp.exe+0x60005b
  #14 larp.exe+0x6014df
  #15 larp.exe+0x91f467
  #16 KERNEL32.DLL+0x1257d
  #17 ntdll.dll+0x5aa58

Every run since the first has the same #0-#12 title frames; only the register values and heap addresses differ.

Title's own crash context (data\7952987A\temp\game_scarlett_master-*.crash.log)

Game Running Time: 0h:0m:17s
Game State: Game Running
Frame: 82
Streaming Requests: 0
TileHeap: used (273Mb) - total (2500Mb)
Camera Position: <262144.000000, 262144.000000, 21600.000000>
Camera Front: <0.000000, 1.000000, 0.000000>
Conole Type: Lockhart        (identical on Anaconda)
Version: 930.048.020-vb_sub_story
Game Time: (12:0)

No peds, no vehicles, camera at the null position, nothing streaming yet - it dies right at world entry, on a brand-new profile.

Already ruled out

  • data\ttdb\graphics\ttdb_graphics.ttpf is present and exactly 34,411,776 bytes (the +0x3e42541 cause from Section 3) - not it.
  • data\ttdb is complete: 46 files / 56.8 GB.
  • Every .rpf starts with the RPF9 magic, and sampled 4 KiB blocks contain no fully-zero block -> not a truncated/paused download.
  • resolution = default in settings.ini (the +0x247af2d cause) - not it.
  • saves\ and storage\ are empty -> fresh profile, not a save-migration problem.
  • The three host pipeline: refused 0x80070057 compute pipelines from #142 are present on v1.1.0 and gone on v1.1.1, but the assert is unchanged; none of those shader hashes appears in the stack.
  • The title's own Breakpad handler uploaded its minidump during the run (URL is in play.log).

I can attach the full larp zip-logs bundle (play.log, crashes.log, settings.ini, options.ini) on request - the essential parts are above, and a 32 MB minidump from the first crash is also available.

Question

Is +0x4dcbc9d a known title-side assertion? Is there an environment switch (HLE shim, streaming/profile option) that avoids it, or is this game build/repack unsupported? Any pointer would help - thanks!

**@⁠wisp29** on GitHub · 2026-12-05 21:22 UTC · [original](https://github.com/gamingwithhomie/larp/issues/201) ### Summary Every launch ends with `exit -2147483645` (`0x80000003`, engine breakpoint) at the same title address `larp-image-b99f876b74d4a77f.dll+0x4dcbc9d`, **17 s after start, `Frame: 82`** - exactly when the boot sequence hands over to the world. The offset is not in `docs/troubleshooting-and-crashes.md` (neither the exit-code table nor Section 3), so this is the unknown-offset case from Section 5. ### Environment / launch - GPU **RTX 3070 8 GB**, driver `32.0.16.1714`; CPU **Ryzen 7 5700X**; **16 GB RAM**; Windows 11 build 22631 - Game: `game_scarlett_master.exe` (120,181,760 B), TitleID `7952987A`, version `930.048.020-vb_sub_story`, `platform scarlett`, complete unpacked folder (~180 GB) - larp **v1.1.1** [Windows NVIDIA / Stable], main `cf5e530`, `bin\larp.exe` SHA-256 `DACBBC5F09300ACC5DEDFD30EABE4E97D50347304E75E52B41B937BDDBF47E51` - `larp.exe nv-profile --mb 1024` applied (8 GB card) -> `profile "Larp (shader heap)", shader heap 1024 MiB` - `options.ini`: `frame_rate = 60`, `stream_budget = 2500` ``` larp.exe run "...\game_scarlett_master.exe" --execute --console series-s --stream-budget 2500 -- -skipToIIS ``` ### Reproduced on every build/config (always `+0x4dcbc9d`, `Frame: 82`) | Build / change | Result | |---|---| | v1.1.0 (package as shipped) | `exit -2147483645`, `+0x4dcbc9d` | | v1.1.1 `cf5e530` (SHA-256 above) | same | | `v2026.12.05-enhanced-v5` (drop-in exe) | same | | `series-x` (Anaconda) instead of `series-s` | same | | `-Intro` instead of `-skipToIIS` | same | | `LARP_FRAME_RATE=30` (the title's own cap) | same | | `LARP_RESOLUTION=1920x1080` | same | | `LARP_SHADER_REPLACE=0` | same | `Larp\cache` was cleared between binary changes. ### Crash record ``` unix time 1796505311, process 5380 larp: unhandled exception 0x80000003 at larp-image-b99f876b74d4a77f.dll+0x4dcbc9d rax 0x17fb0 rbx 0x50 rcx 0x107315ac8 rdx 0x74a0df7450 rsi 0x6c0 rdi 0x107315ac8 rsp 0x74a0df7370 rbp 0x74a0dff490 r8 0x6c0 r9 0x20 r10 0x7fffca9b0000 r11 0x7fffca9c232f r12 0x8 r13 0x0 r14 0x7fff35eec000 r15 0x1d2dcab1bb0 #0 larp-image-b99f876b74d4a77f.dll+0x4dcbc9d #1 larp-image-b99f876b74d4a77f.dll+0x4e52a83 #2 larp-image-b99f876b74d4a77f.dll+0x4e529c4 #3 larp-image-b99f876b74d4a77f.dll+0x5ab13ed #4 larp-image-b99f876b74d4a77f.dll+0x21b70b1 #5 larp-image-b99f876b74d4a77f.dll+0x1d83996 #6 larp-image-b99f876b74d4a77f.dll+0x81afb9 #7 larp-image-b99f876b74d4a77f.dll+0x53ec079 #8 larp-image-b99f876b74d4a77f.dll+0x53ebf66 #9 larp-image-b99f876b74d4a77f.dll+0x661f0 #10 larp-image-b99f876b74d4a77f.dll+0x1d109c9 #11 larp-image-b99f876b74d4a77f.dll+0x5a91c0d #12 larp-image-b99f876b74d4a77f.dll+0x56a1e5a #13 larp.exe+0x60005b #14 larp.exe+0x6014df #15 larp.exe+0x91f467 #16 KERNEL32.DLL+0x1257d #17 ntdll.dll+0x5aa58 ``` Every run since the first has the same `#0`-`#12` title frames; only the register values and heap addresses differ. ### Title's own crash context (`data\7952987A\temp\game_scarlett_master-*.crash.log`) ``` Game Running Time: 0h:0m:17s Game State: Game Running Frame: 82 Streaming Requests: 0 TileHeap: used (273Mb) - total (2500Mb) Camera Position: <262144.000000, 262144.000000, 21600.000000> Camera Front: <0.000000, 1.000000, 0.000000> Conole Type: Lockhart (identical on Anaconda) Version: 930.048.020-vb_sub_story Game Time: (12:0) ``` No peds, no vehicles, camera at the null position, nothing streaming yet - it dies right at world entry, on a brand-new profile. ### Already ruled out - `data\ttdb\graphics\ttdb_graphics.ttpf` is present and exactly `34,411,776` bytes (the `+0x3e42541` cause from Section 3) - not it. - `data\ttdb` is complete: 46 files / 56.8 GB. - Every `.rpf` starts with the `RPF9` magic, and sampled 4 KiB blocks contain no fully-zero block -> not a truncated/paused download. - `resolution = default` in `settings.ini` (the `+0x247af2d` cause) - not it. - `saves\` and `storage\` are empty -> fresh profile, not a save-migration problem. - The three `host pipeline: refused 0x80070057` compute pipelines from #142 are present on v1.1.0 and gone on v1.1.1, but the assert is unchanged; none of those shader hashes appears in the stack. - The title's own Breakpad handler uploaded its minidump during the run (URL is in `play.log`). I can attach the full `larp zip-logs` bundle (`play.log`, `crashes.log`, `settings.ini`, `options.ini`) on request - the essential parts are above, and a 32 MB minidump from the first crash is also available. ### Question Is `+0x4dcbc9d` a known title-side assertion? Is there an environment switch (HLE shim, streaming/profile option) that avoids it, or is this game build/repack unsupported? Any pointer would help - thanks!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 21:28:25 +00:00
Author
Owner

@⁠wisp29 on GitHub · 2026-12-05 21:43 UTC · original · edited 2026-12-05 21:47 UTC

Found the exact cause and a working in-process workaround.

Where it dies

+0x4dcbc9d is not a generic assert - it is a small "append into a fixed-capacity buffer" helper:

4dcbc4a  mov ebx,[rcx+0x10]     ; capacity
4dcbc50  sub ebx,eax            ; minus [rcx+0x18] (used)
4dcbc52  cmp ebx,r8d            ; free vs requested length
4dcbc55  jb  4dcbc9d            ; not enough room -> break
...
4dcbc9d  CC                     ; int3   (register dump at crash: ebx=0x50, r8d=0x6c0)
4dcbc9e  EB EA                  ; jmp to the epilogue (returns a bool)

At the crash the buffer has ~96 KiB capacity (0x18000), 80 bytes free (0x50), and the title tries to append 1728 bytes (0x6c0) - so a dev-build "log/append or break" stub fires. It always happens at the same point (world entry, Frame: 82, ~17 s) because the buffer fills deterministically. Dropping that one append is harmless - it is a text/log entry, not engine data.

Workarounds that do not work

  • Patching the byte in game_scarlett_master.exe (CC -> 90): larp hashes the image, the build becomes unknown, and it refuses to start (Error: no table of the pieces' functions for this build (pieces): streamed buffers cannot be bound).
  • External debugger (a small DEBUG_PROCESS harness that swallows EXCEPTION_BREAKPOINT at that address): no exception ever reaches the debugger - the threads are hidden from it (ThreadHideFromDebugger), while larp still logs first-chance exception 0x80000003.

Workaround that works: a VEH mod in mods\

A 2 KiB DLL dropped into Larp\mods\ registers an early vectored exception handler that swallows exactly this int3 and resumes at the EB EA:

#include <windows.h>

static LONG CALLBACK skip_assert(EXCEPTION_POINTERS *info)
{
    if (info->ExceptionRecord->ExceptionCode == 0x80000003u) {
        unsigned char *p = (unsigned char *)info->ExceptionRecord->ExceptionAddress;
        if (p[0] == 0xCC && p[1] == 0xEB && p[2] == 0xEA)   /* int3 + jmp epilogue */
            return EXCEPTION_CONTINUE_EXECUTION;           /* RIP is already at EB */
    }
    return EXCEPTION_CONTINUE_SEARCH;
}

typedef LONG (WINAPI *PFN_AVEH)(ULONG, PVECTORED_EXCEPTION_HANDLER);

BOOL WINAPI DllMain(HINSTANCE i, DWORD r, LPVOID v)
{
    if (r == DLL_PROCESS_ATTACH) {
        HMODULE k = GetModuleHandleA("kernel32.dll");
        PFN_AVEH f = (PFN_AVEH)GetProcAddress(k, "AddVectoredExceptionHandler");
        if (f) f(1, skip_assert);
    }
    return TRUE;
}

Result: the game starts, passes Frame: 82, and runs normally, no new crashes.log entries.

Suggestion for larp

Could larp hook this append stub for 930.048.020-vb_sub_story (the same way it already hooks xmem_alloc_wc_256_or_break) and turn the "out of room" break into a plain failure/return? Or drain the buffer it guards, if that is the debug log. That would be a proper fix instead of a VEH patch.

**@⁠wisp29** on GitHub · 2026-12-05 21:43 UTC · [original](https://github.com/gamingwithhomie/larp/issues/201#issuecomment-7445943172) · edited 2026-12-05 21:47 UTC **Found the exact cause and a working in-process workaround.** ### Where it dies `+0x4dcbc9d` is not a generic assert - it is a small "append into a fixed-capacity buffer" helper: ```asm 4dcbc4a mov ebx,[rcx+0x10] ; capacity 4dcbc50 sub ebx,eax ; minus [rcx+0x18] (used) 4dcbc52 cmp ebx,r8d ; free vs requested length 4dcbc55 jb 4dcbc9d ; not enough room -> break ... 4dcbc9d CC ; int3 (register dump at crash: ebx=0x50, r8d=0x6c0) 4dcbc9e EB EA ; jmp to the epilogue (returns a bool) ``` At the crash the buffer has ~96 KiB capacity (`0x18000`), 80 bytes free (`0x50`), and the title tries to append **1728 bytes** (`0x6c0`) - so a dev-build "log/append or break" stub fires. It always happens at the same point (world entry, `Frame: 82`, ~17 s) because the buffer fills deterministically. Dropping that one append is harmless - it is a text/log entry, not engine data. ### Workarounds that do not work - **Patching the byte in `game_scarlett_master.exe`** (`CC` -> `90`): larp hashes the image, the build becomes `unknown`, and it refuses to start (`Error: no table of the pieces' functions for this build (pieces): streamed buffers cannot be bound`). - **External debugger** (a small `DEBUG_PROCESS` harness that swallows `EXCEPTION_BREAKPOINT` at that address): no exception ever reaches the debugger - the threads are hidden from it (`ThreadHideFromDebugger`), while larp still logs `first-chance exception 0x80000003`. ### Workaround that works: a VEH mod in `mods\` A 2 KiB DLL dropped into `Larp\mods\` registers an early vectored exception handler that swallows exactly this `int3` and resumes at the `EB EA`: ```c #include <windows.h> static LONG CALLBACK skip_assert(EXCEPTION_POINTERS *info) { if (info->ExceptionRecord->ExceptionCode == 0x80000003u) { unsigned char *p = (unsigned char *)info->ExceptionRecord->ExceptionAddress; if (p[0] == 0xCC && p[1] == 0xEB && p[2] == 0xEA) /* int3 + jmp epilogue */ return EXCEPTION_CONTINUE_EXECUTION; /* RIP is already at EB */ } return EXCEPTION_CONTINUE_SEARCH; } typedef LONG (WINAPI *PFN_AVEH)(ULONG, PVECTORED_EXCEPTION_HANDLER); BOOL WINAPI DllMain(HINSTANCE i, DWORD r, LPVOID v) { if (r == DLL_PROCESS_ATTACH) { HMODULE k = GetModuleHandleA("kernel32.dll"); PFN_AVEH f = (PFN_AVEH)GetProcAddress(k, "AddVectoredExceptionHandler"); if (f) f(1, skip_assert); } return TRUE; } ``` Result: the game starts, passes `Frame: 82`, and runs normally, no new `crashes.log` entries. ### Suggestion for larp Could larp hook this append stub for `930.048.020-vb_sub_story` (the same way it already hooks `xmem_alloc_wc_256_or_break`) and turn the "out of room" break into a plain failure/return? Or drain the buffer it guards, if that is the debug log. That would be a proper fix instead of a VEH patch.
Author
Owner

@⁠gamingwithhomie on GitHub · 2026-12-05 22:48 UTC · original

Fixed in v1.1.3 (all channels) by PR #211. Root cause, found from your Frame 82 registers: if the title cant set up your default playback device (spatial audio / ISpatialAudioClient), it runs without an output, and in that mode its audio mix takes the stream lock and returns without unlocking - the game thread then breaks at +0x4dcbc9d when the effect buffer fills (~15 s in, every build you tried, because its your audio device setup, not the build). v1.1.3 points that early return at the titles own unlocking exit. You may still have NO SOUND until the device works - check the log for audio: the title found no audio output it could use, and try setting your default devices Spatial sound once (Windows Sonic, then back to Off) so its setup succeeds. Reopen if Frame 82 still breaks on v1.1.3.

**@⁠gamingwithhomie** on GitHub · 2026-12-05 22:48 UTC · [original](https://github.com/gamingwithhomie/larp/issues/201#issuecomment-7447074169) Fixed in **v1.1.3** (all channels) by PR #211. Root cause, found from your Frame 82 registers: if the title cant set up your default playback device (spatial audio / ISpatialAudioClient), it runs without an output, and in that mode its audio mix takes the stream lock and returns without unlocking - the game thread then breaks at +0x4dcbc9d when the effect buffer fills (~15 s in, every build you tried, because its your audio device setup, not the build). v1.1.3 points that early return at the titles own unlocking exit. You may still have NO SOUND until the device works - check the log for `audio: the title found no audio output it could use`, and try setting your default devices Spatial sound once (Windows Sonic, then back to Off) so its setup succeeds. Reopen if Frame 82 still breaks on v1.1.3.
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#201
No description provided.