0xc0000005 at leonida-image+0x50ebb82, same store every run: wild index into [r8+rsi*4], not a short buffer #3170
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida#3170
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@VN-sam on GitHub · 2026-12-02 16:10 UTC · original
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
acc350745System
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
@VN-sam on GitHub · 2026-12-03 15:14 UTC · original
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 on GitHub · 2026-12-03 16:25 UTC · original
The report now contains four crashes across commits, with the same store site and stack; the latest note records an index value of
-1.0fand 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.