0xc0000005 at leonida-image+0x50ebb82, same store every run: wild index into [r8+rsi*4], not a short buffer #3170

Open
leonida/mandy
opened 2026-12-02 16:10:09 +00:00 by VN-sam · 2 comments
VN-sam commented 2026-12-02 16:10:09 +00:00

What happens

Every session dies with "Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebb82 (write 0x2bb3ee04: nothing mapped there)" after 3 to 19 minutes, always on the same store, mov dword ptr [r8+rsi4], edx, and the logged write address is always exactly r8 + rsi4, so the index is wild rather than the buffer being too small.

Commit

acc350745

System

Windows 11 (build 26200), Ryzen 9 9955HX, RTX 5070 Ti Laptop 12 GB, NVIDIA 621.12. Build succeeded, so no LLVM/Vulkan SDK fallback was involved.

Where

Running gta6rt

Command and steps

Started with d3d12/scripts/play-nvidia.ps1: 2560x1440 output, LEONIDA_RENDER_SCALE=0.75, DLSS preset M, LEONIDA_MEMORY_MAP=0, LEONIDA_CARD_BUFFERS_MB=1536, LEONIDA_SUBMIT_DEPTH=64, LEONIDA_CARD_STEPS=1, LEONIDA_RELAY=2. Two of the three crashing runs also had LEONIDA_FRAME_GEN=3 and no LEONIDA_HW_RT; the third had LEONIDA_HW_RT=1 and no frame generation. Happens every time: 3 of 3 sessions longer than 3 minutes, at 13:17, 19:25 and 3:20.

Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebb82 (write 0x2bb3ee04: nothing mapped there)
Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed)

Output

2026-12-02T14:54:51.817657Z  INFO leonida_gpu::host: title buffer copies recorded per frame: 7, of them 0 continue the one before (LEONIDA_JOIN_COPIES=1 makes those one)
Leonida: first-chance exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed)
  rax 0x0 rbx 0x2 rcx 0x54340a5d8 rdx 0xffff0000 rsi 0xbeb18207 rdi 0x0 rsp 0x136f5ff970 rbp 0x0
  r8 0x3361fb80 r9 0x543418280 r10 0x1 r11 0x0 r12 0x0 r13 0x3660e900 r14 0x0 r15 0x3660e93c
  #0  leonida-image-b99f876b74d4a77f.dll+0x50ebc64
  #1  leonida-image-b99f876b74d4a77f.dll+0x50eb906
  #2  leonida-image-b99f876b74d4a77f.dll+0x31962
  #3  leonida-image-b99f876b74d4a77f.dll+0x317fd
  #4  leonida-image-b99f876b74d4a77f.dll+0x25d801b
  #5  leonida-image-b99f876b74d4a77f.dll+0x221c29c
  #6  leonida-image-b99f876b74d4a77f.dll+0x2215eca
  #7  KERNEL32.DLL+0x2e8d7
  #8  ntdll.dll+0x8d9c
Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed)
  rax 0x0 rbx 0x2 rcx 0x54340a5d8 rdx 0xffff0000 rsi 0xbeb18207 rdi 0x0 rsp 0x136f5ff970 rbp 0x0
  r8 0x3361fb80 r9 0x543418280 r10 0x1 r11 0x0 r12 0x0 r13 0x3660e900 r14 0x0 r15 0x3660e93c
  #0  leonida-image-b99f876b74d4a77f.dll+0x50ebc64
  #1  leonida-image-b99f876b74d4a77f.dll+0x50eb906
  #2  leonida-image-b99f876b74d4a77f.dll+0x31962
  #3  leonida-image-b99f876b74d4a77f.dll+0x317fd
  #4  leonida-image-b99f876b74d4a77f.dll+0x25d801b
  #5  leonida-image-b99f876b74d4a77f.dll+0x221c29c
  #6  leonida-image-b99f876b74d4a77f.dll+0x2215eca
  #7  KERNEL32.DLL+0x2e8d7
  #8  ntdll.dll+0x8d9c
2026-12-02T14:54:53.307078Z  INFO title: BacktraceBreakpad:http_upload.cc:291:URL: https://submit.backtrace.io/...
2026-12-02T14:54:53.307903Z  INFO title: BacktraceBreakpad:http_upload.cc:292:Payload size: 42125847
2026-12-02T14:54:53.309577Z  INFO leonida_hle::modules::net: HTTP connection blocked destination=submit.backtrace.io:443
### What happens Every session dies with "Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebb82 (write 0x2bb3ee04: nothing mapped there)" after 3 to 19 minutes, always on the same store, mov dword ptr [r8+rsi*4], edx, and the logged write address is always exactly r8 + rsi*4, so the index is wild rather than the buffer being too small. ### Commit acc350745 ### System Windows 11 (build 26200), Ryzen 9 9955HX, RTX 5070 Ti Laptop 12 GB, NVIDIA 621.12. Build succeeded, so no LLVM/Vulkan SDK fallback was involved. ### Where Running gta6rt ### Command and steps Started with d3d12/scripts/play-nvidia.ps1: 2560x1440 output, LEONIDA_RENDER_SCALE=0.75, DLSS preset M, LEONIDA_MEMORY_MAP=0, LEONIDA_CARD_BUFFERS_MB=1536, LEONIDA_SUBMIT_DEPTH=64, LEONIDA_CARD_STEPS=1, LEONIDA_RELAY=2. Two of the three crashing runs also had LEONIDA_FRAME_GEN=3 and no LEONIDA_HW_RT; the third had LEONIDA_HW_RT=1 and no frame generation. Happens every time: 3 of 3 sessions longer than 3 minutes, at 13:17, 19:25 and 3:20. Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebb82 (write 0x2bb3ee04: nothing mapped there) Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed) ### Output ```text 2026-12-02T14:54:51.817657Z INFO leonida_gpu::host: title buffer copies recorded per frame: 7, of them 0 continue the one before (LEONIDA_JOIN_COPIES=1 makes those one) Leonida: first-chance exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed) rax 0x0 rbx 0x2 rcx 0x54340a5d8 rdx 0xffff0000 rsi 0xbeb18207 rdi 0x0 rsp 0x136f5ff970 rbp 0x0 r8 0x3361fb80 r9 0x543418280 r10 0x1 r11 0x0 r12 0x0 r13 0x3660e900 r14 0x0 r15 0x3660e93c #0 leonida-image-b99f876b74d4a77f.dll+0x50ebc64 #1 leonida-image-b99f876b74d4a77f.dll+0x50eb906 #2 leonida-image-b99f876b74d4a77f.dll+0x31962 #3 leonida-image-b99f876b74d4a77f.dll+0x317fd #4 leonida-image-b99f876b74d4a77f.dll+0x25d801b #5 leonida-image-b99f876b74d4a77f.dll+0x221c29c #6 leonida-image-b99f876b74d4a77f.dll+0x2215eca #7 KERNEL32.DLL+0x2e8d7 #8 ntdll.dll+0x8d9c Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x32e28039c: reserved, never committed) rax 0x0 rbx 0x2 rcx 0x54340a5d8 rdx 0xffff0000 rsi 0xbeb18207 rdi 0x0 rsp 0x136f5ff970 rbp 0x0 r8 0x3361fb80 r9 0x543418280 r10 0x1 r11 0x0 r12 0x0 r13 0x3660e900 r14 0x0 r15 0x3660e93c #0 leonida-image-b99f876b74d4a77f.dll+0x50ebc64 #1 leonida-image-b99f876b74d4a77f.dll+0x50eb906 #2 leonida-image-b99f876b74d4a77f.dll+0x31962 #3 leonida-image-b99f876b74d4a77f.dll+0x317fd #4 leonida-image-b99f876b74d4a77f.dll+0x25d801b #5 leonida-image-b99f876b74d4a77f.dll+0x221c29c #6 leonida-image-b99f876b74d4a77f.dll+0x2215eca #7 KERNEL32.DLL+0x2e8d7 #8 ntdll.dll+0x8d9c 2026-12-02T14:54:53.307078Z INFO title: BacktraceBreakpad:http_upload.cc:291:URL: https://submit.backtrace.io/... 2026-12-02T14:54:53.307903Z INFO title: BacktraceBreakpad:http_upload.cc:292:Payload size: 42125847 2026-12-02T14:54:53.309577Z INFO leonida_hle::modules::net: HTTP connection blocked destination=submit.backtrace.io:443 ```
VN-sam commented 2026-12-03 15:14:24 +00:00

A fourth crash, on a newer commit: 128579e9e (Merge pull request #3333). Same instruction, same stack, new index value.
Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x31aeef900: reserved, never committed)
rax 0x0 rbx 0x3 rcx 0x543f13698 rdx 0xffff0000 rsi 0xbf800000 rdi 0x0 rbp 0x0
r8 0x1ceef900 r9 0x543f6ff80 r10 0x1 r11 0x0 r12 0x0 r13 0x1fecf700 r14 0x0 r15 0x1fecf750
#0 leonida-image-b99f876b74d4a77f.dll+0x50ebc64
#1 leonida-image-b99f876b74d4a77f.dll+0x50eb906
#2 leonida-image-b99f876b74d4a77f.dll+0x31962
#3 leonida-image-b99f876b74d4a77f.dll+0x317fd
#4 leonida-image-b99f876b74d4a77f.dll+0x25d801b
#5 leonida-image-b99f876b74d4a77f.dll+0x221c29c
#6 leonida-image-b99f876b74d4a77f.dll+0x2215eca
0x1ceef900 + 0xbf800000*4 = 0x31aeef900, exactly the logged address: 12.0 GiB past the base. The store's value is 0xffff0000 again, the same as the second crash.
The new part is the index: rsi = 0xbf800000 is the IEEE-754 bit pattern of -1.0f. Of the four crashes this is the first one that decodes to a meaningful constant rather than a random-looking heap offset (0x3000001 is 0x03000000 | 1, the root-signature descriptor flag recorded in docs/d3d12_vulkan.md; 0xbeb18207 has no reading). So here the table is indexed by a float that was read where an integer was expected — -1.0 being the usual "no index", uninitialised matrix element, or w of a homogeneous coordinate. That is a much smaller class of bug than "something trampled the index".
This run also rules out two things the earlier ones could not:

Frame generation worked right up to the crash: presented=3 throughout, no "frame generation: no state", no eWarnOutOfVRAM.
VRAM was 10691 of a 10859 MB budget, i.e. under it, not over.

Session ran 17 min 59 s. Settings otherwise as in the first report, with LEONIDA_WINDOWS_BAR_MB=3072 and frame generation on.
One diagnostic that should now be cheap: log the slot's previous value before the store from the first-chance handler. With a clean -1.0f it would say whether that float came from a float buffer, or was written by the title itself as a sentinel it then failed to check.

A fourth crash, on a newer commit: 128579e9e (Merge pull request #3333). Same instruction, same stack, new index value. Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x50ebc64 (write 0x31aeef900: reserved, never committed) rax 0x0 rbx 0x3 rcx 0x543f13698 rdx 0xffff0000 rsi 0xbf800000 rdi 0x0 rbp 0x0 r8 0x1ceef900 r9 0x543f6ff80 r10 0x1 r11 0x0 r12 0x0 r13 0x1fecf700 r14 0x0 r15 0x1fecf750 #0 leonida-image-b99f876b74d4a77f.dll+0x50ebc64 #1 leonida-image-b99f876b74d4a77f.dll+0x50eb906 #2 leonida-image-b99f876b74d4a77f.dll+0x31962 #3 leonida-image-b99f876b74d4a77f.dll+0x317fd #4 leonida-image-b99f876b74d4a77f.dll+0x25d801b #5 leonida-image-b99f876b74d4a77f.dll+0x221c29c #6 leonida-image-b99f876b74d4a77f.dll+0x2215eca 0x1ceef900 + 0xbf800000*4 = 0x31aeef900, exactly the logged address: 12.0 GiB past the base. The store's value is 0xffff0000 again, the same as the second crash. The new part is the index: rsi = 0xbf800000 is the IEEE-754 bit pattern of -1.0f. Of the four crashes this is the first one that decodes to a meaningful constant rather than a random-looking heap offset (0x3000001 is 0x03000000 | 1, the root-signature descriptor flag recorded in docs/d3d12_vulkan.md; 0xbeb18207 has no reading). So here the table is indexed by a float that was read where an integer was expected — -1.0 being the usual "no index", uninitialised matrix element, or w of a homogeneous coordinate. That is a much smaller class of bug than "something trampled the index". This run also rules out two things the earlier ones could not: Frame generation worked right up to the crash: presented=3 throughout, no "frame generation: no state", no eWarnOutOfVRAM. VRAM was 10691 of a 10859 MB budget, i.e. under it, not over. Session ran 17 min 59 s. Settings otherwise as in the first report, with LEONIDA_WINDOWS_BAR_MB=3072 and frame generation on. One diagnostic that should now be cheap: log the slot's previous value before the store from the first-chance handler. With a clean -1.0f it would say whether that float came from a float buffer, or was written by the title itself as a sentinel it then failed to check.
MoonEyes commented 2026-12-03 16:25:11 +00:00

This was generated by AI during triage.

The report now contains four crashes across commits, with the same store site and stack; the latest note records an index value of -1.0f and confirms frame generation was active before the crash. This is a strong, repeatable failure signature, but the cause is still an inference from the register values rather than a confirmed code path. Maintainers should evaluate the latest report and choose a clean-room-compatible next diagnostic before assigning implementation work.

> *This was generated by AI during triage.* The report now contains four crashes across commits, with the same store site and stack; the latest note records an index value of `-1.0f` and confirms frame generation was active before the crash. This is a strong, repeatable failure signature, but the cause is still an inference from the register values rather than a confirmed code path. Maintainers should evaluate the latest report and choose a clean-room-compatible next diagnostic before assigning implementation work.
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
leonida/mandy#3170
No description provided.