Skip to content

Launch unhandled excaeption #2606

Backlog
Backlog

Description

@SirMatrix

What happens

Game gets to loading screen then fails

Commit

main 11-29-2026

System

Windows 11, Ryzen 7 9700x, Radeon 7800xt (26.11.2) , Python 3.13.14, LLVM Build from scripts folder, Vulkan 1.4.363.1

Where

A tool run by hand (tools/, scripts/)

Command and steps

I started the Launch.bat file, set my directories in the settings. After completion of the shaders being baked. The intro screen loads into the loading screen. Loading screen freezes after a few seconds and crashes

Output

�[2m2026-11-29T05:58:24.677188Z�[0m �[33m WARN�[0m �[2mleonida_hle::modules::dstorage�[0m�[2m:�[0m dstorage: request failed: zlib �[3moptions�[0m�[2m=�[0m0x1 �[3moffset�[0m�[2m=�[0m25170841616 �[3msource_size�[0m�[2m=�[0m1550 �[3mdestination_size�[0m�[2m=�[0m4704 �[3mintermediate_size�[0m�[2m=�[0m0 �[3mtag�[0m�[2m=�[0m0 �[3mname�[0m�[2m=�[0m"" �[3mhr�[0m�[2m=�[0m0x8007000d
Leonida: first-chance exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x4f28e0f (read 0x18: nothing mapped there)
  rax 0x6f8a3c000 rbx 0x6f8a3c000 rcx 0x7ffacb7fe7d0 rdx 0xff rsi 0xe1496b640 rdi 0x6f8a3c000 rsp 0x7c406fb2d0 rbp 0xd0197ac00
  r8 0xdf8005398 r9 0x3 r10 0x0 r11 0xd2901fae0 r12 0xcffff6 r13 0x1338a5 r14 0x0 r15 0x0
  #0  leonida-image-b99f876b74d4a77f.dll+0x4f28e0f
  #1  leonida-image-b99f876b74d4a77f.dll+0x5230f8
  #2  leonida-image-b99f876b74d4a77f.dll+0x2593e91
  #3  leonida-image-b99f876b74d4a77f.dll+0x2592d69
  #4  leonida-image-b99f876b74d4a77f.dll+0x2215eca
  #5  KERNEL32.DLL+0x2dda7
  #6  ntdll.dll+0xc9c5c
Leonida: unhandled exception 0xc0000005 at leonida-image-b99f876b74d4a77f.dll+0x4f28e0f (read 0x18: nothing mapped there)
  rax 0x6f8a3c000 rbx 0x6f8a3c000 rcx 0x7ffacb7fe7d0 rdx 0xff rsi 0xe1496b640 rdi 0x6f8a3c000 rsp 0x7c406fb2d0 rbp 0xd0197ac00
  r8 0xdf8005398 r9 0x3 r10 0x0 r11 0xd2901fae0 r12 0xcffff6 r13 0x1338a5 r14 0x0 r15 0x0
  #0  leonida-image-b99f876b74d4a77f.dll+0x4f28e0f
  #1  leonida-image-b99f876b74d4a77f.dll+0x5230f8
  #2  leonida-image-b99f876b74d4a77f.dll+0x2593e91
  #3  leonida-image-b99f876b74d4a77f.dll+0x2592d69
  #4  leonida-image-b99f876b74d4a77f.dll+0x2215eca
  #5  KERNEL32.DLL+0x2dda7
  #6  ntdll.dll+0xc9c5c

Activity

  1. added
    bug
    on Nov 29, 2026
  2. fiestorra commented on Nov 29, 2026

    @fiestorra
    Contributor

    "Reaches the loading screen and then fails" is the shape three of my own runs took today, and on this machine it turned out to be two different failures that look the same from the outside. Worth telling them apart before anyone guesses at the cause, because the fix is different in each case.

    1. Was there a GPU engine timeout? The kernel records one per hang, with a file per event:

    dir C:\Windows\LiveKernelReports\WATCHDOG\WATCHDOG-*.dmp
    

    Any file whose timestamp matches your run means the display engine stopped responding (VIDEO_ENGINE_TIMEOUT_DETECTED,
    bugcheck 141, image nvlddmkm.sys on NVIDIA). The runtime's own log is not a reliable signal here: in half of my hangs
    it never printed device was lost, because the process died first.

    2. Did the game crash on purpose? Look at the Application event log for the run's window:

    Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Application Error'; StartTime=(Get-Date).AddHours(-1)} |
      Select-Object TimeCreated, Message
    

    On my machine every run ends with Exception code: 0xc0000005, Fault offset: 0x00000001423cf683, module "unknown". That
    offset is inside the title's own image (game_scarlett_master.exe is mapped at 0x140000000), and the instruction at it
    is a store to address 0 - the compiler's encoding of a deliberate trap, not a corrupted pointer. So that crash is the
    title deciding to die, usually after something it treats as fatal, and it can also happen without any GPU hang.

    3. What is the last thing the log says before it stops? The last [rt] submit phases line gives you the frame rate
    at the end; a collapse to single digits before the stop is the signature I saw, and a clean stop at 60+ fps points
    somewhere else entirely.

    On a Radeon 7800 XT the second check matters more than the first, since I have only ever reproduced the NVIDIA-side
    timeout. If you paste the Fault offset from the event and whether a watchdog file exists, that alone says which of the
    two you are hitting - and they are being worked as separate items here.

    What I have not done: reproduced any of this on RDNA3 or on your driver, so treat the above as how to classify the
    failure, not as a diagnosis of yours.

    Written with an AI assistant.

  3. fiestorra commented on Nov 30, 2026

    @fiestorra
    Contributor

    Triage, from the log you already pasted - nothing to install, and it may save you a round of guessing:

    This is the Rust runtime (d3d12/), not the C++ one. The crash is inside

    leonida-image-b99f876b74d4a77f.dll+0x4f28e0f
    

    and the log line above it is leonida_hle::modules::dstorage - a Rust module path (crate leonida-hle), and leonida-image is a Rust crate of the d3d12/ workspace. The C++ runtime (runtime/, gta6rt.exe) produces [rt] … lines and has no leonida_hle:: namespace, so a report about this DLL is about the Rust side of the tree.

    Why that matters for the fix: d3d12/ has no CI that builds or tests it today, so a change there reaches main without its tests having run. #2648 adds exactly that workflow (windows-latest, cargo test --workspace --exclude xtask) and is open. Until it lands, whoever fixes this cannot point at a CI run either.

    What would make this report actionable to that person, in rough order of usefulness:

    1. the command you ran (Launch.bat and what it invoked - the C++ gta6rt.exe or d3d12/'s leonida.exe), because the two take different settings;
    2. whether --release or debug symbols were on, so +0x4f28e0f can be resolved to a function;
    3. cargo --version and whether the build was the one from d3d12/rust-toolchain.toml, since leonida-image is built by that workspace;
    4. the few lines before the dstorage warning - the first-chance exception says a pointer 0x18 bytes in was read from unmapped memory, and what it was doing just before is usually the whole answer.

    I am not the person who can fix it: this machine has no cargo, so d3d12/ does not build here and I cannot reproduce a leonida-image crash at all. I can verify the C++ runtime side (and did: main is 538/539 on its suite), but this is not that side.

    Written with an AI assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions