Deterministic 0x80000003 at +0x29defb1 on RTX 5060 Ti (Blackwell), 16 GB RAM — every launch, right after "render phases are built" #587

Open
opened 2026-12-06 03:23:58 +00:00 by github-bot · 0 comments
Owner

@⁠ll000l on GitHub · 2026-12-06 03:22 UTC · original

Summary: On an RTX 5060 Ti 16 GB (Blackwell) with 16 GB RAM, larp v1.1.1 through v1.1.6 all end in exit -2147483645 (0x80000003) at larp-image-b99f876b74d4a77f.dll+0x29defb1, deterministically, on every launch — 28 recorded crashes, byte-identical registers each time. It happens the instant the frame loop is released after the pipeline hold (render phases are built ... queued_at_its_start=0 ms=0), and the D3D12 debug layer reports zero messages before it. The offset is not in docs/troubleshooting-and-crashes.md: +0x1ce6e13/+0x29defb1 is documented as truncated or zero-filled .rpf files, but that was tested and ruled out (see below).

Environment

  • GPU: RTX 5060 Ti 16 GB (Blackwell), driver 621.47 (32.0.16.2147)
  • CPU: Ryzen 5 5600 (6C/12T)
  • RAM: 16 GB
  • OS: Windows 11 Pro 25H2, build 26200
  • Launch: series-s.cmd (also tried series-x, same offset)
  • Game: game_scarlett_master.exe 1.0.2.1, TitleID 7952987A, 930.048.020-vb_sub_story
  • Versions tried: v4-era build, v1.1.1 (dacbbc5f…), and v1.1.6 (ac64bea2…) — all three crash at the same address with the same registers
  • NVIDIA shader heap: set to 2048 MiB via nv-profile --mb 2048 (the advisor warning is gone)

The crash

larp: unhandled exception 0x80000003 at larp-image-b99f876b74d4a77f.dll+0x29defb1
  rax 0xffc00000 rbx 0xa4 rcx 0x5b5eeffe rdx 0x76 rsi 0x20 rdi 0x852efff248
  r8  0xffffffff r9  0x8  r10 0x7ffbc7e40001 r11 0x7ffbc7e52801 r12 0x20
  r13 0x4788      r14 0x107132d60  r15 0xa4
  #0 +0x29defb1   #1 +0x2225c03   #2 +0x21b7851   #3 +0x2afe5c3
  #4 +0x54267e5   #5 +0x21b6cd5   #6 +0x81269b
  #7  larp.exe+0x974d9      #8  +0x53ec040   #9  +0x53ebf3a
  #10 +0x661f0    #11 +0x1d109c9  #12 +0x5a91c0d  #13 +0x56a1e5a
  #14 larp.exe+0x65bf1b    #15 larp.exe+0x65d39f   #16 larp.exe+0x981827
  the title's thread-local block at 0x2711c612b00, +0x180 to +0x1c8:
    0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0

Disassembly at +0x29defb1

8b 07                  mov  eax, [rdi]
f7 d0                  not  eax
a9 ff ff 3f 00         test eax, 0x3FFFFF
75 01                  jne  +1
cc                     int3                  ; <-- here
48 8b 05 37 ff 1d 08   mov  rax, [rip+0x081dff37]
41 b8 fb 97 ef 6b      mov  r8d, 0x6BEF97FB       ; assert id

The assert fires when (~x & 0x3FFFFF) == 0. At the int3, rax = 0xFFC00000 is the not eax result, so x == 0x003FFFFF — the "not found" sentinel.

Where that value came from (+0x29de7a0, called just above)

mov  eax, 0x3FFFFF          ; the sentinel
mov  r8d, [r8+rdx*4]        ; hash bucket
cmp  r8d, -1
je   keep_sentinel          ; empty bucket -> 0x3FFFFF
mov  ecx, [r8+4]            ; the record's index
cmp  ecx, -1
je   keep_sentinel
and  ecx, 0x3FFFFF
and  eax, 0x3F
shl  eax, 22
or   eax, ecx               ; handle = (generation & 0x3F) << 22 | (index & 0x3FFFFF)

So this is a handle-table lookup that missed, and the title asserted on the sentinel.

The loop in frame #1 (+0x2225c03)

48 6b c9 38        imul rcx, rcx, 0x38       ; 56-byte stride
44 85 64 08 1c     test [rax+rcx+0x1c], r12d  ; per-element flag
75 10              jne  +0x10                ; skip
48 01 c8           add  rax, rcx
ff 10              call qword ptr [rax]      ; virtual call (the crashing path)
48 ff c6           inc  rsi
49 39 f7           cmp  r15, rsi
75 ca              jne  loop

With r15 = 0xA4 = 164 as the bound and rsi = 0x20 = 32 at the crash, the title is initialising 164 render objects and fails on the 32nd. r13 = 0x4788 = 18312 = 327 × 56 — a second array of the same stride.

Timing

The crash is always the first frame after the hold is released, and the title waits zero time for it:

01:54:19  8 draws/frame
01:54:24  2 draws/frame
01:54:29  9 draws/frame
01:54:33  pipelines: the title's render phases are built ... queued_at_its_start=0 ms=0
01:54:33  larp: first-chance exception 0x80000003 at +0x29defb1

Across 29 runs that reached render phases are built, all 29 crashed (29/29). Runs that never got there stayed at 8-10 draws with phases: 0 and produced no crash — because the frame loop was never entered, not because the fault is input-dependent. Any run that does enter the frame loop reaches the same offset: sparse input, rapid input, or a different button all end identically.

What has been ruled out

Each item below was tested with the switch confirmed active in the log:

Item Result
--console series-s / series-x both crash, same offset
LARP_UPSCALER=off / dlss both crash
LARP_TEXTURE_DETAIL=2, global_illumination_quality=low crash
LARP_ALIAS_SHARE=0 crash
LARP_MESH_EDGE_FLAGS=1 crash (full recompile)
LARP_SUBRENDER_WORKERS=5 crash (recording threads line disappears, so it took effect)
LARP_BYTE_VIEWS=0 crash
LARP_SHADER_REPLACE=0 crash
LARP_D3D12_DRED=1 crash, and GetDeviceRemovedReason is not set — no device removal
LARP_D3D12_DEBUG=1 crash; zero debug-layer messages before it
--unimplemented zero crash
resolution = default, fresh saves\, both -skipToIIS on and off crash
Game file integrity all 130 GB of .rpf read end-to-end with no read error; levels.rpf (76.16 GB) and story000_restofworld.rpf block-scanned for zero-fill — max 15.19% zeros, no ≥1 MB run of zeros; data\ttdb\graphics\ttdb_graphics.ttpf present at exactly 34,411,776 bytes (the size docs/troubleshooting-and-crashes.md names for +0x3e42541); all 12 .rpf headers parse (magic 9FPR, sane entry/name tables, non-zero trailing hash)
Shader translation LARP_SHADER_SAVE exported all 19,049 shaders the title actually uses — every one translated; the 204 that fail (195 GS_VoxelizeGeneric) are never requested
View heap truncation the log's title slots past 606782 read a null slot count=1245184 is not it: this cap is NVIDIA's PORTABLE_VIEWS limit, and per the upstream tst fix in issue #8 the same truncation is present on cards that run fine; the emitted shaders clamp to the null slot
VRAM / RAM TileHeap peaked at 448 MB of a 6236 MB budget; free RAM was 10 GB during one run; lowering resolution changed nothing
Audio device path (#211) not it — the log shows audio decoder: first packet decoded, and there is no audio: the title found no audio output it could use
Low-address reserve (#511 / PR #790) not it — VirtualQueryEx shows 4.0 GB free below 4 GiB in this process, so the title's 185 MB request has room
ASLR / exploit protection BottomUp and HighEntropy are NOTSET (system default); the Exploit Protection\SystemSettings key does not exist
Adapter selection the device is on the RTX 5060 Ti (VRAM rises 2517 → 3611 MiB during the run); two virtual display adapters (ROOT\DISPLAY\) exist on the system but are not chosen
Driver / hardware health no TDR, WHEA or bugcheck events; GPU at 44 °C, nvidia-smi reports no fault

Other reports with the same shape

The same "crashes at the same point in the prologue, every attempt" is reported for hardware that is not Blackwell — RTX 4060 Ti (#328, at Lucia's second gate), RTX 4060 (#397, at the counsellor conversation), RTX 3060 12 GB (#231, at Lucia being handcuffed), RX 6750 XT (#431, at the first cutscene) — and none of them has a resolution yet. This report differs from those in that the offset and the full register set are pinned down, so it can be matched against the title's own code.

larp-logs-submit.zip

What I am asking for

  1. Any hint about which resource the handle table at +0x29de7a0 indexes — a texture, a buffer, a pipeline, or one of our virtual handles — so the 32nd object's request can be traced.
  2. Whether +0x29defb1 is a known site upstream. It is not named anywhere in docs/troubleshooting-and-crashes.md, and searching this repository, zortos293/XSEmu and the Darner mirror turns up nothing for this offset.
  3. Whether the always-zero thread-local block is expected here. The crash handler prints +0x180 to +0x1C8 of the thread's TLS block and it is 0x0 × 10 on every one of the 28 crashes; crash.rs says those words are meant to say how wide a write that spoiled a pointer was.
  4. A LARP_STACKS_AT_KILL-style dump for this offset, or a PDB for v1.1.6 (c048b3a) — with symbols the frames #7 and #14–#16, which are where the title re-enters larp, would be named directly. (PR #77 is not merged into v1.1.6, so that switch is not available in a release build.)

Logs are available via larp.exe zip-logs and I will attach the archive; the settings are left exactly as they are in it.

**@⁠ll000l** on GitHub · 2026-12-06 03:22 UTC · [original](https://github.com/gamingwithhomie/larp/issues/587) **Summary:** On an RTX 5060 Ti 16 GB (Blackwell) with 16 GB RAM, larp v1.1.1 through v1.1.6 all end in `exit -2147483645` (`0x80000003`) at **`larp-image-b99f876b74d4a77f.dll+0x29defb1`**, deterministically, on **every** launch — 28 recorded crashes, byte-identical registers each time. It happens the instant the frame loop is released after the pipeline hold (`render phases are built ... queued_at_its_start=0 ms=0`), and the D3D12 debug layer reports **zero** messages before it. The offset is not in `docs/troubleshooting-and-crashes.md`: `+0x1ce6e13`/`+0x29defb1` is documented as truncated or zero-filled `.rpf` files, but that was tested and ruled out (see below). ## Environment - GPU: **RTX 5060 Ti 16 GB** (Blackwell), driver **621.47** (`32.0.16.2147`) - CPU: Ryzen 5 5600 (6C/12T) - RAM: **16 GB** - OS: Windows 11 Pro 25H2, build 26200 - Launch: **`series-s.cmd`** (also tried `series-x`, same offset) - Game: `game_scarlett_master.exe` `1.0.2.1`, TitleID `7952987A`, `930.048.020-vb_sub_story` - Versions tried: v4-era build, v1.1.1 (`dacbbc5f…`), and **v1.1.6** (`ac64bea2…`) — all three crash at the same address with the same registers - NVIDIA shader heap: set to **2048 MiB** via `nv-profile --mb 2048` (the advisor warning is gone) ## The crash ``` larp: unhandled exception 0x80000003 at larp-image-b99f876b74d4a77f.dll+0x29defb1 rax 0xffc00000 rbx 0xa4 rcx 0x5b5eeffe rdx 0x76 rsi 0x20 rdi 0x852efff248 r8 0xffffffff r9 0x8 r10 0x7ffbc7e40001 r11 0x7ffbc7e52801 r12 0x20 r13 0x4788 r14 0x107132d60 r15 0xa4 #0 +0x29defb1 #1 +0x2225c03 #2 +0x21b7851 #3 +0x2afe5c3 #4 +0x54267e5 #5 +0x21b6cd5 #6 +0x81269b #7 larp.exe+0x974d9 #8 +0x53ec040 #9 +0x53ebf3a #10 +0x661f0 #11 +0x1d109c9 #12 +0x5a91c0d #13 +0x56a1e5a #14 larp.exe+0x65bf1b #15 larp.exe+0x65d39f #16 larp.exe+0x981827 the title's thread-local block at 0x2711c612b00, +0x180 to +0x1c8: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 ``` ### Disassembly at `+0x29defb1` ```asm 8b 07 mov eax, [rdi] f7 d0 not eax a9 ff ff 3f 00 test eax, 0x3FFFFF 75 01 jne +1 cc int3 ; <-- here 48 8b 05 37 ff 1d 08 mov rax, [rip+0x081dff37] 41 b8 fb 97 ef 6b mov r8d, 0x6BEF97FB ; assert id ``` The assert fires when `(~x & 0x3FFFFF) == 0`. At the `int3`, `rax = 0xFFC00000` is the `not eax` result, so `x == 0x003FFFFF` — the "not found" sentinel. ### Where that value came from (`+0x29de7a0`, called just above) ```asm mov eax, 0x3FFFFF ; the sentinel mov r8d, [r8+rdx*4] ; hash bucket cmp r8d, -1 je keep_sentinel ; empty bucket -> 0x3FFFFF mov ecx, [r8+4] ; the record's index cmp ecx, -1 je keep_sentinel and ecx, 0x3FFFFF and eax, 0x3F shl eax, 22 or eax, ecx ; handle = (generation & 0x3F) << 22 | (index & 0x3FFFFF) ``` So this is a **handle-table lookup that missed**, and the title asserted on the sentinel. ### The loop in frame #1 (`+0x2225c03`) ```asm 48 6b c9 38 imul rcx, rcx, 0x38 ; 56-byte stride 44 85 64 08 1c test [rax+rcx+0x1c], r12d ; per-element flag 75 10 jne +0x10 ; skip 48 01 c8 add rax, rcx ff 10 call qword ptr [rax] ; virtual call (the crashing path) 48 ff c6 inc rsi 49 39 f7 cmp r15, rsi 75 ca jne loop ``` With `r15 = 0xA4 = 164` as the bound and `rsi = 0x20 = 32` at the crash, the title is **initialising 164 render objects and fails on the 32nd**. `r13 = 0x4788 = 18312 = 327 × 56` — a second array of the same stride. ## Timing The crash is always the **first frame after the hold is released**, and the title waits zero time for it: ``` 01:54:19 8 draws/frame 01:54:24 2 draws/frame 01:54:29 9 draws/frame 01:54:33 pipelines: the title's render phases are built ... queued_at_its_start=0 ms=0 01:54:33 larp: first-chance exception 0x80000003 at +0x29defb1 ``` Across **29 runs that reached `render phases are built`, all 29 crashed (29/29)**. Runs that never got there stayed at 8-10 draws with `phases: 0` and produced no crash — because the frame loop was never entered, not because the fault is input-dependent. Any run that does enter the frame loop reaches the same offset: sparse input, rapid input, or a different button all end identically. ## What has been ruled out Each item below was tested with the switch confirmed active in the log: | Item | Result | |---|---| | `--console series-s` / `series-x` | both crash, same offset | | `LARP_UPSCALER=off` / `dlss` | both crash | | `LARP_TEXTURE_DETAIL=2`, `global_illumination_quality=low` | crash | | `LARP_ALIAS_SHARE=0` | crash | | `LARP_MESH_EDGE_FLAGS=1` | crash (full recompile) | | `LARP_SUBRENDER_WORKERS=5` | crash (`recording threads` line disappears, so it took effect) | | `LARP_BYTE_VIEWS=0` | crash | | `LARP_SHADER_REPLACE=0` | crash | | `LARP_D3D12_DRED=1` | crash, and `GetDeviceRemovedReason` is **not** set — no device removal | | `LARP_D3D12_DEBUG=1` | crash; **zero** debug-layer messages before it | | `--unimplemented zero` | crash | | `resolution = default`, fresh `saves\`, both `-skipToIIS` on and off | crash | | **Game file integrity** | all **130 GB** of `.rpf` read end-to-end with no read error; `levels.rpf` (76.16 GB) and `story000_restofworld.rpf` block-scanned for zero-fill — max 15.19% zeros, **no ≥1 MB run of zeros**; `data\ttdb\graphics\ttdb_graphics.ttpf` present at exactly **34,411,776 bytes** (the size `docs/troubleshooting-and-crashes.md` names for `+0x3e42541`); all 12 `.rpf` headers parse (magic `9FPR`, sane entry/name tables, non-zero trailing hash) | | **Shader translation** | `LARP_SHADER_SAVE` exported all **19,049** shaders the title actually uses — **every one translated**; the 204 that fail (195 `GS_VoxelizeGeneric`) are never requested | | **View heap truncation** | the log's `title slots past 606782 read a null slot count=1245184` is not it: this cap is NVIDIA's `PORTABLE_VIEWS` limit, and per the upstream `tst` fix in issue #8 the same truncation is present on cards that run fine; the emitted shaders clamp to the null slot | | **VRAM / RAM** | TileHeap peaked at **448 MB of a 6236 MB budget**; free RAM was 10 GB during one run; lowering resolution changed nothing | | **Audio device path (#211)** | not it — the log shows `audio decoder: first packet decoded`, and there is no `audio: the title found no audio output it could use` | | **Low-address reserve (#511 / PR #790)** | not it — `VirtualQueryEx` shows **4.0 GB free below 4 GiB** in this process, so the title's 185 MB request has room | | **ASLR / exploit protection** | `BottomUp` and `HighEntropy` are `NOTSET` (system default); the `Exploit Protection\SystemSettings` key does not exist | | **Adapter selection** | the device is on the RTX 5060 Ti (VRAM rises 2517 → 3611 MiB during the run); two virtual display adapters (`ROOT\DISPLAY\`) exist on the system but are not chosen | | **Driver / hardware health** | no TDR, WHEA or bugcheck events; GPU at 44 °C, `nvidia-smi` reports no fault | ## Other reports with the same shape The same "crashes at the same point in the prologue, every attempt" is reported for hardware that is not Blackwell — RTX 4060 Ti (#328, at Lucia's second gate), RTX 4060 (#397, at the counsellor conversation), RTX 3060 12 GB (#231, at Lucia being handcuffed), RX 6750 XT (#431, at the first cutscene) — and none of them has a resolution yet. This report differs from those in that the offset and the full register set are pinned down, so it can be matched against the title's own code. [larp-logs-submit.zip](https://github.com/user-attachments/files/35928234/larp-logs-submit.zip) ## What I am asking for 1. **Any hint about which resource the handle table at `+0x29de7a0` indexes** — a texture, a buffer, a pipeline, or one of our virtual handles — so the 32nd object's request can be traced. 2. **Whether `+0x29defb1` is a known site upstream.** It is not named anywhere in `docs/troubleshooting-and-crashes.md`, and searching this repository, `zortos293/XSEmu` and the Darner mirror turns up nothing for this offset. 3. **Whether the always-zero thread-local block is expected here.** The crash handler prints `+0x180 to +0x1C8` of the thread's TLS block and it is `0x0` × 10 on every one of the 28 crashes; `crash.rs` says those words are meant to say how wide a write that spoiled a pointer was. 4. **A `LARP_STACKS_AT_KILL`-style dump for this offset**, or a PDB for `v1.1.6` (`c048b3a`) — with symbols the frames `#7` and `#14`–`#16`, which are where the title re-enters larp, would be named directly. (PR #77 is not merged into v1.1.6, so that switch is not available in a release build.) Logs are available via `larp.exe zip-logs` and I will attach the archive; the settings are left exactly as they are in it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 03:23:59 +00:00
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#587
No description provided.