Crash 0xc0000005 at image+0x54b9238: three title threads fault on the same never-committed page at once (SOFT_VIEWS=copies), Series S, RTX 4060 Laptop #4867

Open
opened 2026-12-01 12:04:26 +00:00 by github-bot · 3 comments
Owner

@⁠korbannour578-alt on GitHub · 2026-12-01 12:04 UTC · original

What happened

The game closed after 35 minutes of free roam, on foot, no mission or cutscene loading (Current SRL Name empty).
Camera at <-2500.93, -4049.85, 6.77>. First crash of this kind on this PC across many hours of play.

What the log shows

Three title threads take a first-chance access violation at the same instruction and same address within
the same moment. The first and third see the page as reserved, never committed, the second already sees it
as read-write, yet all three end as unhandled:

VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: reserved, never committed)
  rax 0x0 rbx 0x2e0004 rcx 0x0 rdx 0x2e0000 rsi 0x998787b00 rdi 0x0 rsp 0x1df89feff0 rbp 0x2a
  r8 0x2e0001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df89ff020 r15 0x1df89ff030
VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: read-write)
  rax 0x0 rbx 0x3a0004 rcx 0x0 rdx 0x3a0000 rsi 0x99878c200 rdi 0x0 rsp 0x1df8aff160 rbp 0x2a
  r8 0x3a0001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df8aff190 r15 0x1df8aff1a0
VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: reserved, never committed)
  rax 0x0 rbx 0x200004 rcx 0x0 rdx 0x200000 rsi 0x998791000 rdi 0x0 rsp 0x1df8dff2a0 rbp 0x2a
  r8 0x200001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df8dff2d0 r15 0x1df8dff2e0
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: read-write)   (x3)

Same stack on all three threads:

#0  +0x54b9238   #1  +0x2f16cc   #2  +0x51b9daa  #3  +0x2f0de6   #4  +0x2f0b6a
#5  +0x50b2006   #6  +0x44c177   #7  +0x52820a5  #8  +0x44bd91   #9  +0x5281e4a
#10 +0x25707d4   #11 +0x257065b  #12 +0x25705f0  #13 +0x221c29c  #14 +0x2215eca
#15 KERNEL32.DLL+0x2dda7         #16 ntdll.dll+0xc9c5c

My guess (not verified): the page sits in a view kept in the books alone (VICTORY_SOFT_VIEWS=copies, the
victory.exe default; the log was noting ~10,500 such views per 10 s, all by page-mapping copies). When several
threads touch it at once, only the first fault seems to get the page made; the others are not retried even
though the page is read-write by the time their fault is looked at.

Memory was not short on the host side: committed 23.6 GB, card 6.3 of 7.0 GB, no memguard warnings before the crash.
Title crash context: TileHeap 2227/3977 MB, Game Physical 1228823504/1339031552, Pool 267235760/270532592.

Related, different address: #4345 (write to a never-committed title page).

Setup

  • Build: 5fabb46e built from source (target-cpu=native, fat LTO), with local changes: the warpGTAIV/VIctory-8GB
    small-card policy (draw/pipeline/pool/resource/shadow.rs), parts 1+3 of PR #3500, a texture size cap and
    keyboard/mouse input changes. None of these touch xmem / the soft-view path, but I'm mentioning them.
  • Series S profile, DLSS Performance + DLSS FG 3x, 30 fps cap
  • MSI Katana 15: i7-13620H, RTX 4060 Laptop 8 GB, 32 GB RAM, NVIDIA driver 610.78, Windows 11 26200

The full log is ~47 MB; I can attach the part around the crash if useful.

**@⁠korbannour578-alt** on GitHub · 2026-12-01 12:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4866) ### What happened The game closed after 35 minutes of free roam, on foot, no mission or cutscene loading (`Current SRL Name` empty). Camera at `<-2500.93, -4049.85, 6.77>`. First crash of this kind on this PC across many hours of play. ### What the log shows Three title threads take a first-chance access violation at the **same instruction and same address** within the same moment. The first and third see the page as `reserved, never committed`, the second already sees it as `read-write`, yet all three end as unhandled: ``` VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: reserved, never committed) rax 0x0 rbx 0x2e0004 rcx 0x0 rdx 0x2e0000 rsi 0x998787b00 rdi 0x0 rsp 0x1df89feff0 rbp 0x2a r8 0x2e0001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df89ff020 r15 0x1df89ff030 VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: read-write) rax 0x0 rbx 0x3a0004 rcx 0x0 rdx 0x3a0000 rsi 0x99878c200 rdi 0x0 rsp 0x1df8aff160 rbp 0x2a r8 0x3a0001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df8aff190 r15 0x1df8aff1a0 VIctory: first-chance exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: reserved, never committed) rax 0x0 rbx 0x200004 rcx 0x0 rdx 0x200000 rsi 0x998791000 rdi 0x0 rsp 0x1df8dff2a0 rbp 0x2a r8 0x200001 r9 0x0 r10 0x5c r11 0x0 r12 0x9c0880000 r13 0x9aa70e750 r14 0x1df8dff2d0 r15 0x1df8dff2e0 VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x54b9238 (read 0x9c0882b58: read-write) (x3) ``` Same stack on all three threads: ``` #0 +0x54b9238 #1 +0x2f16cc #2 +0x51b9daa #3 +0x2f0de6 #4 +0x2f0b6a #5 +0x50b2006 #6 +0x44c177 #7 +0x52820a5 #8 +0x44bd91 #9 +0x5281e4a #10 +0x25707d4 #11 +0x257065b #12 +0x25705f0 #13 +0x221c29c #14 +0x2215eca #15 KERNEL32.DLL+0x2dda7 #16 ntdll.dll+0xc9c5c ``` My guess (not verified): the page sits in a view kept in the books alone (`VICTORY_SOFT_VIEWS=copies`, the victory.exe default; the log was noting ~10,500 such views per 10 s, all by page-mapping copies). When several threads touch it at once, only the first fault seems to get the page made; the others are not retried even though the page is `read-write` by the time their fault is looked at. Memory was not short on the host side: committed 23.6 GB, card 6.3 of 7.0 GB, no memguard warnings before the crash. Title crash context: `TileHeap 2227/3977 MB`, `Game Physical 1228823504/1339031552`, `Pool 267235760/270532592`. Related, different address: #4345 (write to a never-committed title page). ### Setup - Build: `5fabb46e` built from source (target-cpu=native, fat LTO), **with local changes**: the warpGTAIV/VIctory-8GB small-card policy (draw/pipeline/pool/resource/shadow.rs), parts 1+3 of PR #3500, a texture size cap and keyboard/mouse input changes. None of these touch xmem / the soft-view path, but I'm mentioning them. - Series S profile, DLSS Performance + DLSS FG 3x, 30 fps cap - MSI Katana 15: i7-13620H, RTX 4060 Laptop 8 GB, 32 GB RAM, NVIDIA driver 610.78, Windows 11 26200 The full log is ~47 MB; I can attach the part around the crash if useful.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:04:26 +00:00
Author
Owner

@⁠korbannour578-alt on GitHub · 2026-12-01 12:08 UTC · original

Logs for this crash (Windows user name, the title's SharedId and session id replaced): https://gist.github.com/cc156cbb22c256f7a4aa368eea8e41ae

  • play-log-start-and-last-40s-before-crash.log: the first 400 lines (switches, setup) and the last 2,500 lines (about 40 s up to the crash) of the play log victory-nvidia-20261201-132121.log; the 135,442-line middle is left out. Happy to send any other part.
  • title-crash-context.crash.log: the title's crash context (victory-20261201-135715-27276.crash.log)
  • crashes.log: all crashes on this PC (only this one)

GPU: RTX 4060 Laptop 8 GB, Windows 11 (build 26200).

**@⁠korbannour578-alt** on GitHub · 2026-12-01 12:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4866#issuecomment-7310718103) Logs for this crash (Windows user name, the title's SharedId and session id replaced): https://gist.github.com/cc156cbb22c256f7a4aa368eea8e41ae - `play-log-start-and-last-40s-before-crash.log`: the first 400 lines (switches, setup) and the last 2,500 lines (about 40 s up to the crash) of the play log `victory-nvidia-20261201-132121.log`; the 135,442-line middle is left out. Happy to send any other part. - `title-crash-context.crash.log`: the title's crash context (`victory-20261201-135715-27276.crash.log`) - `crashes.log`: all crashes on this PC (only this one) GPU: RTX 4060 Laptop 8 GB, Windows 11 (build 26200).
Author
Owner

@⁠cloph-dsp on GitHub · 2026-12-01 13:15 UTC · original

Read the report and traced the handler; posting what I found rather than a change, because the part I can settle from the log argues against the guess in the report.

The soft arm looks like it cannot return SEARCH. In watch.rs, install's on_write starts with:

if r.ExceptionCode == EXCEPTION_ACCESS_VIOLATION as NTSTATUS
    && r.NumberParameters >= 2
    && match soft() {
        Some(soft) => (soft.fault)(r.ExceptionInformation[1], r.ExceptionAddress as usize),
        None => materialize(r.ExceptionInformation[1], 1),
    }
{
    return EXCEPTION_CONTINUE_EXECUTION;
}

That arm has no WRITE test, so it is taken for reads too, and with VICTORY_SOFT_VIEWS=copies (the default, play.rs:82) it goes through (soft.fault)(address, rip) rather than materialize. So a soft arm that answered "not mine" would have to make the hook itself return false for a title read at a page the books hold — and the log shows the opposite: the same address, 0x9c0882b58, first-chance three times, which is what a CONTINUE_EXECUTION retry looks like, not what a SEARCH looks like.

The one detail the report has that the guess does not explain: the second record reads read-write. Records 1 and 3 say reserved, never committed at 0x9c0882b58; record 2 says read-write at the same address. In this handler a read of committed read-write memory is not a violation at all — so record 2 is not a retry of a still-unmade page. Either the page was made and then unmade again between records (the view the books held was replaced, and the placeholder went back to PAGE_NOACCESS), or that thread's ExceptionInformation[1] is not the page it faulted on. Both readings point at the view's identity, not at whether a retry happens.

What that would mean for a fix, if it holds: the retry path is already in the handler (came_back(at, false) for reads, plus the three-pass PROTECTED.any/writable loop for writes). The gap worth testing is a read of a page that the books have but whose view has been replaced — readable_view requires State == MEM_COMMIT && Type == MEM_MAPPED, and a replacement placeholder under MEM_REPLACE_PLACEHOLDER is not that until it is committed. A synthetic test in watch.rs's test_books harness (a second title_memory_remapped at the same range between two guard calls) would show whether the second read is left to SEARCH.

I have not written that test or claimed anything: the log gives one crash on one tree, and which of the two readings is right changes the fix. What would settle it: whether crashes.log or the diagnostic log around that boot carries a title memory not written or a SOFT VIEWS view-count line at the moment of the fault, and whether soft.fault counted a hit for 0x9c0882b58 (a faultbook Site/Fault note at that address).

AI-assisted: Hy4 flash. No game data, assets, extracted shaders or DRM used.

**@⁠cloph-dsp** on GitHub · 2026-12-01 13:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4866#issuecomment-7312339251) Read the report and traced the handler; posting what I found rather than a change, because the part I can settle from the log argues against the guess in the report. **The `soft` arm looks like it cannot return `SEARCH`.** In `watch.rs`, `install`'s `on_write` starts with: ```rust if r.ExceptionCode == EXCEPTION_ACCESS_VIOLATION as NTSTATUS && r.NumberParameters >= 2 && match soft() { Some(soft) => (soft.fault)(r.ExceptionInformation[1], r.ExceptionAddress as usize), None => materialize(r.ExceptionInformation[1], 1), } { return EXCEPTION_CONTINUE_EXECUTION; } ``` That arm has no `WRITE` test, so it is taken for reads too, and with `VICTORY_SOFT_VIEWS=copies` (the default, `play.rs:82`) it goes through `(soft.fault)(address, rip)` rather than `materialize`. So a `soft` arm that answered "not mine" would have to make the hook itself return `false` for a *title* read at a page the books hold — and the log shows the opposite: the same address, `0x9c0882b58`, first-chance three times, which is what a `CONTINUE_EXECUTION` retry looks like, not what a `SEARCH` looks like. **The one detail the report has that the guess does not explain: the second record reads `read-write`.** Records 1 and 3 say `reserved, never committed` at `0x9c0882b58`; record 2 says `read-write` at the same address. In this handler a read of committed read-write memory is not a violation at all — so record 2 is not a retry of a still-unmade page. Either the page was made and then unmade again between records (the view the books held was replaced, and the placeholder went back to `PAGE_NOACCESS`), or that thread's `ExceptionInformation[1]` is not the page it faulted on. Both readings point at the view's *identity*, not at whether a retry happens. **What that would mean for a fix, if it holds:** the retry path is already in the handler (`came_back(at, false)` for reads, plus the three-pass `PROTECTED.any`/`writable` loop for writes). The gap worth testing is a read of a page that the books have but whose view has been replaced — `readable_view` requires `State == MEM_COMMIT && Type == MEM_MAPPED`, and a replacement placeholder under `MEM_REPLACE_PLACEHOLDER` is not that until it is committed. A synthetic test in `watch.rs`'s `test_books` harness (a second `title_memory_remapped` at the same range between two `guard` calls) would show whether the second read is left to `SEARCH`. I have not written that test or claimed anything: the log gives one crash on one tree, and which of the two readings is right changes the fix. What would settle it: whether `crashes.log` or the diagnostic log around that boot carries a `title memory not written` or a `SOFT VIEWS` view-count line at the moment of the fault, and whether `soft.fault` counted a hit for `0x9c0882b58` (a `faultbook` `Site`/`Fault` note at that address). AI-assisted: Hy4 flash. No game data, assets, extracted shaders or DRM used.
Author
Owner

@⁠korbannour578-alt on GitHub · 2026-12-01 16:15 UTC · original

Thanks for tracing it. I searched the full play log (135,442 lines, not only the excerpt) for what you asked:

  • title memory not written: not in the log at all.
  • A faultbook Site / Fault note at 0x9c0882b58: none. The address appears only in the three first-chance records and the unhandled ones.
  • What the region is: the title reserved it once, 33 minutes before the crash, and nothing in the log frees or remaps it afterwards:
11:21:44.337953Z INFO victory_hle::modules::xmem: XMemVirtualAlloc without write watching (the title's own address, or a placeholder) at=0x9c0880000 size=1966080 kind=0x42000 flags=0x21 asked_at=0x0

kind=0x42000 reads as MEM_RESERVE | MEM_RESERVE_PLACEHOLDER, and r12 = 0x9c0880000 (the region's base) in all three records.

  • SOFT VIEWS counters, the last line before the fault (11:57:13.389; the crash came ~0.5 s later, before the next line):
title views kept in the books alone (VICTORY_SOFT_VIEWS), last 10 s: 10536 noted with no view of the host's (0 by the title's mapping calls, 10536 by page-mapping copies), 14036 let go untouched (no map, no unmap); 0 made views of the host's: 0 by a fault of the title's code, 0 by a fault of other code (the last at 0x55d810000, code 0x7ffc2ba5dafb), 0 asked for by the GPU side, 0 by a call of the title's; 258113 reads of the GPU side served from the pages (10407 MB); guarded in the books: 5696 blocks, 0 more as other views of guarded pages; 24966 such views now

The three lines before it (11:56:43, :53, :03) also show 0 by a fault of the title's code, with 10-16k views noted and 5-16k let go untouched every 10 s. So the soft path had not made a view on a title fault in the last 40 s; this would have been the first.

So the page sits in a placeholder whose views come and go through page-mapping copies (~25k such views live, thousands let go per 10 s). That seems consistent with your first reading: a view replaced/let go between the records, so record 2 saw it read-write and records 1 and 3 saw the bare placeholder.

I can't run a debug build on this laptop easily, but I can send any other part of the log, or run with an extra log switch if you name one.

**@⁠korbannour578-alt** on GitHub · 2026-12-01 16:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4866#issuecomment-7317295976) Thanks for tracing it. I searched the full play log (135,442 lines, not only the excerpt) for what you asked: - **`title memory not written`**: not in the log at all. - **A faultbook `Site` / `Fault` note at `0x9c0882b58`**: none. The address appears only in the three first-chance records and the unhandled ones. - **What the region is**: the title reserved it once, 33 minutes before the crash, and nothing in the log frees or remaps it afterwards: ``` 11:21:44.337953Z INFO victory_hle::modules::xmem: XMemVirtualAlloc without write watching (the title's own address, or a placeholder) at=0x9c0880000 size=1966080 kind=0x42000 flags=0x21 asked_at=0x0 ``` `kind=0x42000` reads as `MEM_RESERVE | MEM_RESERVE_PLACEHOLDER`, and `r12 = 0x9c0880000` (the region's base) in all three records. - **SOFT VIEWS counters, the last line before the fault** (11:57:13.389; the crash came ~0.5 s later, before the next line): ``` title views kept in the books alone (VICTORY_SOFT_VIEWS), last 10 s: 10536 noted with no view of the host's (0 by the title's mapping calls, 10536 by page-mapping copies), 14036 let go untouched (no map, no unmap); 0 made views of the host's: 0 by a fault of the title's code, 0 by a fault of other code (the last at 0x55d810000, code 0x7ffc2ba5dafb), 0 asked for by the GPU side, 0 by a call of the title's; 258113 reads of the GPU side served from the pages (10407 MB); guarded in the books: 5696 blocks, 0 more as other views of guarded pages; 24966 such views now ``` The three lines before it (11:56:43, :53, :03) also show `0 by a fault of the title's code`, with 10-16k views noted and 5-16k let go untouched every 10 s. So the soft path had not made a view on a title fault in the last 40 s; this would have been the first. So the page sits in a placeholder whose views come and go through page-mapping copies (~25k such views live, thousands let go per 10 s). That seems consistent with your first reading: a view replaced/let go between the records, so record 2 saw it `read-write` and records 1 and 3 saw the bare placeholder. I can't run a debug build on this laptop easily, but I can send any other part of the log, or run with an extra log switch if you name one.
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#4867
No description provided.