c0000409 crash on Windows 11 26H2 (build 26300) after 1-5 minutes, DWM also crashes (c00001ad) #1956

Closed
opened 2026-11-29 04:10:49 +00:00 by github-bot · 3 comments
Owner

@⁠Roeam91-54 on GitHub · 2026-11-29 04:06 UTC · original

What you would like

Bug: c0000409 crash on Windows 11 26H2 (build 26300) after 1-20 minutes

System

  • OS: Windows 11 Pro 26H2 (10.0.26300, build 26300)
  • CPU: AMD Ryzen 9 7940H
  • GPU: NVIDIA RTX 4060 Laptop (driver 621.1.0), MUX/dGPU-only mode
  • RAM: 16GB
  • victory: v2026.11.28.03 (latest release)
  • Game: GTA6 Xbox 1.0.2.1 (game_scarlett_master.exe, retail)

Symptom
Game runs fine for 1-20 minutes, then crashes silently:

  • victory.exe: c0000409 (STATUS_STACK_BUFFER_OVERRUN), offset 0x7dab51
  • dwm.exe: c00001ad (desktop compositor crashes too)
  • Occasionally: dstorage read errors 0x8007000E (ERROR_NO_SYSTEM_RESOURCES, os error 1450) and "memory allocation of N bytes failed"

Tried and still crashes

  • 1440p / 1080to1440 / --series-s
  • DLSS quality / off, frame generation off
  • BORDERED window mode
  • NVIDIA GPU preference set to high-performance
  • Windows 10 compatibility mode
  • Page file increased to 32GB
  • Background apps closed, 9GB+ free RAM

Note
DWM (dwmcore.dll) also crashes with c00001ad — suggests the DX12 present hook conflicts with the 26H2 compositor. Works longer (20 min) sometimes, but always crashes eventually.

Log attached: victory-crash-latest.log

victory-crash-latest.log

Are you working on a fix?

None

**@⁠Roeam91-54** on GitHub · 2026-11-29 04:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1956) ### What you would like ## Bug: c0000409 crash on Windows 11 26H2 (build 26300) after 1-20 minutes **System** - OS: Windows 11 Pro 26H2 (10.0.26300, build 26300) - CPU: AMD Ryzen 9 7940H - GPU: NVIDIA RTX 4060 Laptop (driver 621.1.0), MUX/dGPU-only mode - RAM: 16GB - victory: v2026.11.28.03 (latest release) - Game: GTA6 Xbox 1.0.2.1 (game_scarlett_master.exe, retail) **Symptom** Game runs fine for 1-20 minutes, then crashes silently: - victory.exe: c0000409 (STATUS_STACK_BUFFER_OVERRUN), offset 0x7dab51 - dwm.exe: c00001ad (desktop compositor crashes too) - Occasionally: dstorage read errors 0x8007000E (ERROR_NO_SYSTEM_RESOURCES, os error 1450) and "memory allocation of N bytes failed" **Tried and still crashes** - 1440p / 1080to1440 / --series-s - DLSS quality / off, frame generation off - BORDERED window mode - NVIDIA GPU preference set to high-performance - Windows 10 compatibility mode - Page file increased to 32GB - Background apps closed, 9GB+ free RAM **Note** DWM (dwmcore.dll) also crashes with c00001ad — suggests the DX12 present hook conflicts with the 26H2 compositor. Works longer (20 min) sometimes, but always crashes eventually. Log attached: victory-crash-latest.log [victory-crash-latest.log](https://github.com/user-attachments/files/35563144/victory-crash-latest.log) ### Are you working on a fix? None
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 04:10:49 +00:00
Author
Owner

@⁠kalberts0089-hash on GitHub · 2026-11-29 08:00 UTC · original · edited 2026-11-29 08:18 UTC

I can't run the game here, so I can't reproduce this. I went through the attached log and the v2026.11.28.03 binary instead. Short version: the c0000409 is Rust's out-of-memory abort, not the present hook, and the log shows the PC was short of commit from the first frame.

1. Offset 0x7dab51 is the int 29h in std::alloc::rust_oom. In the release victory.exe (v2026.11.28.03, sha256 1039c044...8d8f, same as the release asset digest), RVA 0x7dab51 is the int 29h (__fastfail) near the end of a 53-byte function. I built f4608f0 locally with the pinned 1.98.1 toolchain. The same instruction sequence is at the same RVA, and only the RIP-relative displacement to HOOK differs. With that build's PDB (excerpt, symbols demangled):

std::alloc::rust_oom::closure$0:
  1407DAB2A: mov    rax,qword ptr [std::alloc::HOOK]
  1407DAB34: lea    r8,[std::alloc::default_alloc_error_hook]
  1407DAB3B: cmovne r8,rax
  1407DAB49: call   r8
  1407DAB4C: mov    ecx,7          ; FAST_FAIL_FATAL_APP_EXIT
  1407DAB51: int    29h            ; <- the c0000409

So a Rust allocation in victory got null back. default_alloc_error_hook prints memory allocation of N bytes failed to stderr (the line you sometimes saw), and then the process fast-fails. A fast fail doesn't run the vectored handler or the unhandled-exception filter that crates/victory-loader/src/crash.rs:122-123 installs. So a crash like this leaves nothing in crashes.log, and the play log just stops: here the last line is 17:23:00.000679, frame 122948, and there are no ERROR lines in the whole log.

2. Commit was already short at frame 1. Line 158:

WARN victory_gpu::residency: host memory pressure: ... frame=1 physical_free_mib=7619 available_commit_mib=2613

next_pressure (crates/victory-gpu/src/residency.rs:98-104, same in f4608f0) enters pressure at physical free <= 3 GiB or available commit <= 4 GiB. With 7.4 GiB physical free, commit is what tripped it. Pressure only clears, with the INFO line host memory pressure cleared (residency.rs:128), once physical free is >= 5 GiB and commit is >= 6 GiB. The log is at INFO level and that line never appears. So at every once-a-second sample, commit stayed under 6 GiB (or physical free under 5 GiB) for the whole run.

On 16 GB RAM with a 32 GB page file, the commit limit should be about 48 GB, so 2.6 GiB free at frame 1 would mean about 45 GB was already committed. Either the page-file change hadn't taken effect (it needs a reboot, and a system-managed page file may not have grown yet), or something (victory included) had committed most of it before frame 1. The log can't tell these apart. The CSV below would.

3. DWM's c00001ad points the same way. 0xC00001AD is STATUS_FATAL_MEMORY_EXHAUSTION ("could not allocate additional memory"). DWM going down with that status at the same time is what you'd expect when the system is out of commit, without any hook conflict (hypothesis). Separately, the texture budget was also exhausted at the end: the last texture queue's room line (17:22:55) is 6482 MB against a 6469 MB line, "no room, new textures wait".

Could you check these?

  1. With the game closed, after a reboot:
    Get-CimInstance Win32_PageFileUsage | Select-Object Name,AllocatedBaseSize,CurrentUsage,PeakUsage
    Get-CimInstance Win32_OperatingSystem | Select-Object @{n='CommitLimitGB';e={[math]::Round($_.TotalVirtualMemorySize/1MB,1)}},@{n='CommitFreeGB';e={[math]::Round($_.FreeVirtualMemory/1MB,1)}}
    
  2. In a second PowerShell window, start this before the game and stop it (Ctrl+C) after the crash, then attach the CSV. It records system commit and the private bytes of victory.exe and dwm.exe every 5 seconds:
    $out = "$env:USERPROFILE\Desktop\commit-log.csv"
    'time,commit_used_gb,commit_limit_gb,victory_private_gb,dwm_private_gb' | Set-Content $out
    while ($true) {
      $os = Get-CimInstance Win32_OperatingSystem
      $v = (Get-Process victory -ErrorAction SilentlyContinue | Measure-Object PagedMemorySize64 -Sum).Sum
      $d = (Get-Process dwm -ErrorAction SilentlyContinue | Measure-Object PagedMemorySize64 -Sum).Sum
      [string]::Format([cultureinfo]::InvariantCulture, '{0:HH:mm:ss},{1:F2},{2:F2},{3:F2},{4:F2}', (Get-Date), (($os.TotalVirtualMemorySize-$os.FreeVirtualMemory)/1MB), ($os.TotalVirtualMemorySize/1MB), ($v/1GB), ($d/1GB)) | Add-Content $out
      Start-Sleep 5
    }
    
  3. After a crash, any Resource-Exhaustion-Detector events (ID 2004) in the System log. They name the processes that held the most commit:
    Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Resource-Exhaustion-Detector'; Id=2004} -MaxEvents 5 | Format-List TimeCreated,Message
    

If victory_private_gb climbs steadily until commit_used_gb meets commit_limit_gb, it's unbounded growth in victory. If the limit itself is small, or commit is already near it before the game starts, it's the page file or another process.

Main has 91cd117 ("GPU: reclaim unmapped host textures under host memory pressure"), which isn't in v2026.11.28.03. I haven't tested whether it helps here.

Suggestion for the project: today victory can't log the size that failed, because the message only goes to stderr. crates/victory-gpu/src/copystat.rs:467 has a #[global_allocator] (Counting), but it's only compiled with the diagnostics feature (crates/victory-gpu/src/lib.rs:28-29), and the release exe doesn't contain it. A thin wrapper around System in release builds could write the layout size and GlobalMemoryStatusEx (available commit, physical free) to crashes.log when an allocation returns null, through a handle opened at start, without allocating, before passing the null back. Each of these reports would then read "N bytes failed with X MB of commit left".

**@⁠kalberts0089-hash** on GitHub · 2026-11-29 08:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1956#issuecomment-7252826164) · edited 2026-11-29 08:18 UTC I can't run the game here, so I can't reproduce this. I went through the attached log and the v2026.11.28.03 binary instead. Short version: the c0000409 is Rust's out-of-memory abort, not the present hook, and the log shows the PC was short of commit from the first frame. **1. Offset 0x7dab51 is the `int 29h` in `std::alloc::rust_oom`.** In the release `victory.exe` (v2026.11.28.03, sha256 `1039c044...8d8f`, same as the release asset digest), RVA `0x7dab51` is the `int 29h` (`__fastfail`) near the end of a 53-byte function. I built f4608f0 locally with the pinned 1.98.1 toolchain. The same instruction sequence is at the same RVA, and only the RIP-relative displacement to `HOOK` differs. With that build's PDB (excerpt, symbols demangled): ``` std::alloc::rust_oom::closure$0: 1407DAB2A: mov rax,qword ptr [std::alloc::HOOK] 1407DAB34: lea r8,[std::alloc::default_alloc_error_hook] 1407DAB3B: cmovne r8,rax 1407DAB49: call r8 1407DAB4C: mov ecx,7 ; FAST_FAIL_FATAL_APP_EXIT 1407DAB51: int 29h ; <- the c0000409 ``` So a Rust allocation in victory got null back. `default_alloc_error_hook` prints `memory allocation of N bytes failed` to stderr (the line you sometimes saw), and then the process fast-fails. A fast fail doesn't run the vectored handler or the unhandled-exception filter that `crates/victory-loader/src/crash.rs:122-123` installs. So a crash like this leaves nothing in `crashes.log`, and the play log just stops: here the last line is 17:23:00.000679, frame 122948, and there are no ERROR lines in the whole log. **2. Commit was already short at frame 1.** Line 158: ``` WARN victory_gpu::residency: host memory pressure: ... frame=1 physical_free_mib=7619 available_commit_mib=2613 ``` `next_pressure` (`crates/victory-gpu/src/residency.rs:98-104`, same in f4608f0) enters pressure at physical free <= 3 GiB or available commit <= 4 GiB. With 7.4 GiB physical free, commit is what tripped it. Pressure only clears, with the INFO line `host memory pressure cleared` (residency.rs:128), once physical free is >= 5 GiB and commit is >= 6 GiB. The log is at INFO level and that line never appears. So at every once-a-second sample, commit stayed under 6 GiB (or physical free under 5 GiB) for the whole run. On 16 GB RAM with a 32 GB page file, the commit limit should be about 48 GB, so 2.6 GiB free at frame 1 would mean about 45 GB was already committed. Either the page-file change hadn't taken effect (it needs a reboot, and a system-managed page file may not have grown yet), or something (victory included) had committed most of it before frame 1. The log can't tell these apart. The CSV below would. **3. DWM's c00001ad points the same way.** 0xC00001AD is `STATUS_FATAL_MEMORY_EXHAUSTION` ("could not allocate additional memory"). DWM going down with that status at the same time is what you'd expect when the system is out of commit, without any hook conflict (hypothesis). Separately, the texture budget was also exhausted at the end: the last `texture queue's room` line (17:22:55) is 6482 MB against a 6469 MB line, "no room, new textures wait". **Could you check these?** 1. With the game closed, after a reboot: ```powershell Get-CimInstance Win32_PageFileUsage | Select-Object Name,AllocatedBaseSize,CurrentUsage,PeakUsage Get-CimInstance Win32_OperatingSystem | Select-Object @{n='CommitLimitGB';e={[math]::Round($_.TotalVirtualMemorySize/1MB,1)}},@{n='CommitFreeGB';e={[math]::Round($_.FreeVirtualMemory/1MB,1)}} ``` 2. In a second PowerShell window, start this before the game and stop it (Ctrl+C) after the crash, then attach the CSV. It records system commit and the private bytes of `victory.exe` and `dwm.exe` every 5 seconds: ```powershell $out = "$env:USERPROFILE\Desktop\commit-log.csv" 'time,commit_used_gb,commit_limit_gb,victory_private_gb,dwm_private_gb' | Set-Content $out while ($true) { $os = Get-CimInstance Win32_OperatingSystem $v = (Get-Process victory -ErrorAction SilentlyContinue | Measure-Object PagedMemorySize64 -Sum).Sum $d = (Get-Process dwm -ErrorAction SilentlyContinue | Measure-Object PagedMemorySize64 -Sum).Sum [string]::Format([cultureinfo]::InvariantCulture, '{0:HH:mm:ss},{1:F2},{2:F2},{3:F2},{4:F2}', (Get-Date), (($os.TotalVirtualMemorySize-$os.FreeVirtualMemory)/1MB), ($os.TotalVirtualMemorySize/1MB), ($v/1GB), ($d/1GB)) | Add-Content $out Start-Sleep 5 } ``` 3. After a crash, any `Resource-Exhaustion-Detector` events (ID 2004) in the System log. They name the processes that held the most commit: ```powershell Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-Resource-Exhaustion-Detector'; Id=2004} -MaxEvents 5 | Format-List TimeCreated,Message ``` If `victory_private_gb` climbs steadily until `commit_used_gb` meets `commit_limit_gb`, it's unbounded growth in victory. If the limit itself is small, or commit is already near it before the game starts, it's the page file or another process. Main has 91cd117 ("GPU: reclaim unmapped host textures under host memory pressure"), which isn't in v2026.11.28.03. I haven't tested whether it helps here. **Suggestion for the project:** today victory can't log the size that failed, because the message only goes to stderr. `crates/victory-gpu/src/copystat.rs:467` has a `#[global_allocator]` (`Counting`), but it's only compiled with the `diagnostics` feature (`crates/victory-gpu/src/lib.rs:28-29`), and the release exe doesn't contain it. A thin wrapper around `System` in release builds could write the layout size and `GlobalMemoryStatusEx` (available commit, physical free) to `crashes.log` when an allocation returns null, through a handle opened at start, without allocating, before passing the null back. Each of these reports would then read "N bytes failed with X MB of commit left".
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 08:00 UTC · original

@⁠kalberts0089-hash we can't help with where to get the game, a dump or any of its files, and it can't be discussed here at all: if this repository is used for that, GitHub can take it down for everyone. Please don't ask for or post links, torrents or sources here.

**@⁠github-actions[bot]** on GitHub · 2026-11-29 08:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1956#issuecomment-7252827525) @⁠kalberts0089-hash we can't help with where to get the game, a dump or any of its files, and it can't be discussed here at all: if this repository is used for that, GitHub can take it down for everyone. Please don't ask for or post links, torrents or sources here.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:38 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1956#issuecomment-7283334973) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
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/trustno1-coder--VIctory-NVIDIA#1956
No description provided.