Xid 13 freezes under Proton are GPU reads of freed memory (VK_KHR_device_fault: "currently unmapped", use-after-free) #4231

Open
opened 2026-11-30 18:09:08 +00:00 by github-bot · 2 comments
Owner

@⁠ColorMeBoom on GitHub · 2026-11-30 17:37 UTC · original

What happened

The game freezes at random times: the picture stops, audio and the game log go on, and the kernel logs NVRM: Xid 13 ... Graphics SM Warp Exception ... MMU Fault. It happens about once every 40–60 minutes of play, in the opening scenes (3 and 3.5 minutes into the world) as well as during the first mission (19–29 minutes in). It doesn't follow a scene, a newly bound pipeline, or the video memory budget (it happened at both 7500 and 9000 MB).

I turned on vkd3d-proton's device-fault report (VKD3D_CONFIG=no_descriptor_heap,fault, which uses VK_KHR_device_fault) and caught two of these freezes. Both are a shader reading card memory that had already been freed. vkd3d's address-binding tracker says, both times:

vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free.
Fault Address read Last object at that address Freed before the fault
1 0x50ae1c000 (ReadInvalid) a 6 MB (0x600000) buffer allocation (VkBuffer [global-buffer], memoryTypeIndex 0). That range was made and freed again every 10–35 s about 80 s
2 0x57a21e000 (ReadInvalid) a VkImage 1920×1088, 1 level, format 43 about 5 min

So it doesn't look like a broken shader. Something keeps using a GPU address (a descriptor, root argument, indirect record, or an address stored in a buffer) after its resource is gone. Windows D3D12 would also fault on this, so it may be behind some of the DEVICE_REMOVED reports there as well.

What I checked:

  • The ESR value matches #3044. Every Xid 13 here has ESR 0x...728=0xf812b60, the same value #3044 reports, but #3044 didn't fix it (see below). That value may be common to all of these faults rather than pointing to one instruction.
  • Memory type 0 is system RAM the CPU can't map. On this card that means a DEFAULT-heap allocation that spilled out of the card's memory, which was near full (about 11.85 of 12.3 GB).
  • A lead on the 6 MB buffer. With a local log of every named buffer of 1 MiB or more and its GPU address (a few lines in host::name), most 6 MB buffers are title memory <addr>+0x600000 window copies (shadow.rs). let_go_idle frees those after 10 s idle when less than 12 GB of RAM is free, which matches the 10–35 s cycle at that address. This is a lead, not proof: I couldn't match fault 1's address to a name, because that run didn't have the log yet, and fault 2 was an image.

GPU and driver

RTX 4070 SUPER 12 GB, NVIDIA 620.73.04 (VK_KHR_device_fault supported, maxDeviceFaultCount = 1).

CPU, RAM and Windows version

Intel i7-14700K, 32 GB RAM (zram swap). Linux (CachyOS, kernel 7.3.5), GE-Proton11-14, vkd3d-proton master 71cae091b (release build beside victory.exe), gamescope.

VIctory release or commit

v2026.11.29.05 (41adb551), plus these open PRs applied locally: #2853, #3695, #3717, #3044, and the #2750 fix for the ambient pass under Proton's DXC. The freezes happened both with and without #3695, #3717 and #3044:

Build 45-minute runs Froze
v05 + #2853 + ambient fix 6 4
+ #3695 + #3717 1 0
+ #3695 + #3717 + #3044 5 4 (at 3, 19, 23 and 38 min)

Settings

Series X, --res 1080to1440, DLSS Quality, DLSS frame generation 2x, --fps 20, ray tracing off, VICTORY_VRAM_BUDGET_MB=9000, VICTORY_PATCH_SSE4A=0, VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3, VKD3D_CONFIG=no_descriptor_heap, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VK_EXT_device_generated_commands,VK_NV_device_generated_commands,VK_NV_device_generated_commands_compute.

Logs

Proton sets VKD3D_DEBUG=none by default, so this needs VKD3D_DEBUG=err and VKD3D_LOG_FILE=... next to VKD3D_CONFIG=...,fault. It costs no measurable fps here (median 17.6 against 17.5 rendered). Fault 1:

err:d3d12_device_poll_device_faults: Address [0]: [000000df4f10d9c0, 000000df4f10d9cf], type FaultPC
err:d3d12_device_poll_device_faults: Instruction [0]: [000000df4f10d9c0, 000000df4f10d9c0], type FaultPC
err:d3d12_device_poll_device_faults: Flag [1] contains DEVICE_LOST.
err:d3d12_device_poll_device_faults: Address [1]: [000000050ae1c000, 000000050ae1cfff], type ReadInvalid
err:vkd3d_address_binding_tracker_check_va: Received fault in address 50ae1c000 @ 44611.181915 s. Scanning through address log ...
  (last entries)
  VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] BIND   T: 44517.071362 s VkDeviceMemory [memoryTypeIndex = 0]
  VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] BIND   T: 44517.071471 s VkBuffer [global-buffer]
  VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] UNBIND T: 44528.744189 s VkBuffer
  VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] UNBIND T: 44528.744304 s VkDeviceMemory
err:vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free.

Fault 2:

err:d3d12_device_poll_device_faults: Address [1]: [000000057a21e000, 000000057a21efff], type ReadInvalid
  (last entries)
  VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] BIND   T: 46940.475497 s Cookie: 457693. VkImage [1920 x 1088 x 1] [levels = 1] [layers = 1] [fmt = 43]
  VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] UNBIND T: 46972.008517 s VkImage
  VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] UNBIND T: 46972.008678 s VkDeviceMemory
err:vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free.

I can attach the two whole vkd3d logs and the matching game logs.

Are you working on a fix?

No. I can run builds with extra logging, or test a fix, on this setup: most 45-minute unattended runs catch a fault.


Claude Code (Claude Opus 5.5) ran the tests, read the reports and wrote this issue.

**@⁠ColorMeBoom** on GitHub · 2026-11-30 17:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4230) ### What happened The game freezes at random times: the picture stops, audio and the game log go on, and the kernel logs `NVRM: Xid 13 ... Graphics SM Warp Exception ... MMU Fault`. It happens about once every 40–60 minutes of play, in the opening scenes (3 and 3.5 minutes into the world) as well as during the first mission (19–29 minutes in). It doesn't follow a scene, a newly bound pipeline, or the video memory budget (it happened at both 7500 and 9000 MB). I turned on vkd3d-proton's device-fault report (`VKD3D_CONFIG=no_descriptor_heap,fault`, which uses `VK_KHR_device_fault`) and caught two of these freezes. **Both are a shader reading card memory that had already been freed.** vkd3d's address-binding tracker says, both times: ``` vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free. ``` | Fault | Address read | Last object at that address | Freed before the fault | |---|---|---|---| | 1 | `0x50ae1c000` (`ReadInvalid`) | a 6 MB (`0x600000`) buffer allocation (`VkBuffer [global-buffer]`, memoryTypeIndex 0). That range was made and freed again every 10–35 s | about 80 s | | 2 | `0x57a21e000` (`ReadInvalid`) | a `VkImage` 1920×1088, 1 level, format 43 | about 5 min | So it doesn't look like a broken shader. Something keeps using a GPU address (a descriptor, root argument, indirect record, or an address stored in a buffer) after its resource is gone. Windows D3D12 would also fault on this, so it may be behind some of the `DEVICE_REMOVED` reports there as well. What I checked: - **The ESR value matches #3044.** Every Xid 13 here has ESR `0x...728=0xf812b60`, the same value #3044 reports, but #3044 didn't fix it (see below). That value may be common to all of these faults rather than pointing to one instruction. - **Memory type 0 is system RAM the CPU can't map.** On this card that means a DEFAULT-heap allocation that spilled out of the card's memory, which was near full (about 11.85 of 12.3 GB). - **A lead on the 6 MB buffer.** With a local log of every named buffer of 1 MiB or more and its GPU address (a few lines in `host::name`), most 6 MB buffers are `title memory <addr>+0x600000` window copies (`shadow.rs`). `let_go_idle` frees those after 10 s idle when less than 12 GB of RAM is free, which matches the 10–35 s cycle at that address. This is a lead, not proof: I couldn't match fault 1's address to a name, because that run didn't have the log yet, and fault 2 was an image. ### GPU and driver RTX 4070 SUPER 12 GB, NVIDIA 620.73.04 (`VK_KHR_device_fault` supported, `maxDeviceFaultCount = 1`). ### CPU, RAM and Windows version Intel i7-14700K, 32 GB RAM (zram swap). Linux (CachyOS, kernel 7.3.5), GE-Proton11-14, vkd3d-proton master `71cae091b` (release build beside `victory.exe`), gamescope. ### VIctory release or commit v2026.11.29.05 (`41adb551`), plus these open PRs applied locally: #2853, #3695, #3717, #3044, and the #2750 fix for the ambient pass under Proton's DXC. The freezes happened both with and without #3695, #3717 and #3044: | Build | 45-minute runs | Froze | |---|---|---| | v05 + #2853 + ambient fix | 6 | 4 | | + #3695 + #3717 | 1 | 0 | | + #3695 + #3717 + #3044 | 5 | 4 (at 3, 19, 23 and 38 min) | ### Settings Series X, `--res 1080to1440`, DLSS Quality, DLSS frame generation 2x, `--fps 20`, ray tracing off, `VICTORY_VRAM_BUDGET_MB=9000`, `VICTORY_PATCH_SSE4A=0`, `VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3`, `VKD3D_CONFIG=no_descriptor_heap`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VK_EXT_device_generated_commands,VK_NV_device_generated_commands,VK_NV_device_generated_commands_compute`. ### Logs Proton sets `VKD3D_DEBUG=none` by default, so this needs `VKD3D_DEBUG=err` and `VKD3D_LOG_FILE=...` next to `VKD3D_CONFIG=...,fault`. It costs no measurable fps here (median 17.6 against 17.5 rendered). Fault 1: ``` err:d3d12_device_poll_device_faults: Address [0]: [000000df4f10d9c0, 000000df4f10d9cf], type FaultPC err:d3d12_device_poll_device_faults: Instruction [0]: [000000df4f10d9c0, 000000df4f10d9c0], type FaultPC err:d3d12_device_poll_device_faults: Flag [1] contains DEVICE_LOST. err:d3d12_device_poll_device_faults: Address [1]: [000000050ae1c000, 000000050ae1cfff], type ReadInvalid err:vkd3d_address_binding_tracker_check_va: Received fault in address 50ae1c000 @ 44611.181915 s. Scanning through address log ... (last entries) VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] BIND T: 44517.071362 s VkDeviceMemory [memoryTypeIndex = 0] VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] BIND T: 44517.071471 s VkBuffer [global-buffer] VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] UNBIND T: 44528.744189 s VkBuffer VA range [000000050ae00000, 000000050b400000) [size = 6291456 (0x600000)] UNBIND T: 44528.744304 s VkDeviceMemory err:vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free. ``` Fault 2: ``` err:d3d12_device_poll_device_faults: Address [1]: [000000057a21e000, 000000057a21efff], type ReadInvalid (last entries) VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] BIND T: 46940.475497 s Cookie: 457693. VkImage [1920 x 1088 x 1] [levels = 1] [layers = 1] [fmt = 43] VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] UNBIND T: 46972.008517 s VkImage VA range [0000000579a00000, 000000057a270000) [size = 8847360 (0x870000)] UNBIND T: 46972.008678 s VkDeviceMemory err:vkd3d_address_binding_tracker_check_va: Fault address is currently unmapped. This is very likely use-after-free. ``` I can attach the two whole vkd3d logs and the matching game logs. ### Are you working on a fix? No. I can run builds with extra logging, or test a fix, on this setup: most 45-minute unattended runs catch a fault. --- Claude Code (Claude Opus 5.5) ran the tests, read the reports and wrote this issue.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 18:09:08 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 17:37 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 17:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4230#issuecomment-7286594557) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠ColorMeBoom on GitHub · 2026-11-30 21:59 UTC · original

Update: gone on v2026.11.30.02 and .03 here.

Same PC and settings, with the same local changes on top (#3044, #3695, the #2750 ambient compile fix), moved from v2026.11.29.05 to v2026.11.30.02 and then .03:

Build Unattended runs Xid 13
v2026.11.29.05 + #2853 + ambient fix 6 × 45 min 4
+ #3695 + #3717 + #3044 5 × up to 45 min 4
v2026.11.30.02 (+ #3044, #3695, ambient fix) 45 + 60 + 60 min 0
v2026.11.30.03 (same) 20 min 0

At v05's rate, about one fault every 30 minutes, 3 h 05 min without one is very unlikely by chance. I haven't bisected it. Since one of the two caught faults was a freed 1920×1088 image, #3750 (slot-eviction races: a texture whose slot is busy is kept) looks like the likely fix.

All the .02/.03 runs had VKD3D_CONFIG=no_descriptor_heap,fault on. That changes how vkd3d waits on a hung fence (5 s timeout), but not how resources are freed. The fps was the same as without it.

On the bot's request for logs: this is Linux/Proton, so crashes.log doesn't apply. The full vkd3d fault logs (24 KB and 17 KB) and game-log excerpts around both faults are available if anyone wants them. The lines that matter are quoted in the issue.

For anyone else hunting GPU faults under Proton: Proton sets VKD3D_DEBUG=none, so vkd3d's fault report only shows up with all three of these:

VKD3D_CONFIG=no_descriptor_heap,fault VKD3D_DEBUG=err VKD3D_LOG_FILE='Z:\path\to\vkd3d.log'

It costs nothing measurable here, and it names the faulting address and what was last bound there (vkd3d_address_binding_tracker). That's how this issue's two reports were caught.

Unless it comes back, this can be closed.

**@⁠ColorMeBoom** on GitHub · 2026-11-30 21:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4230#issuecomment-7293179539) **Update: gone on v2026.11.30.02 and .03 here.** Same PC and settings, with the same local changes on top (#3044, #3695, the #2750 ambient compile fix), moved from v2026.11.29.05 to v2026.11.30.02 and then .03: | Build | Unattended runs | Xid 13 | |---|---|---| | v2026.11.29.05 + #2853 + ambient fix | 6 × 45 min | 4 | | + #3695 + #3717 + #3044 | 5 × up to 45 min | 4 | | **v2026.11.30.02** (+ #3044, #3695, ambient fix) | 45 + 60 + 60 min | **0** | | **v2026.11.30.03** (same) | 20 min | **0** | At v05's rate, about one fault every 30 minutes, 3 h 05 min without one is very unlikely by chance. I haven't bisected it. Since one of the two caught faults was a freed 1920×1088 image, #3750 (slot-eviction races: a texture whose slot is busy is kept) looks like the likely fix. All the .02/.03 runs had `VKD3D_CONFIG=no_descriptor_heap,fault` on. That changes how vkd3d waits on a hung fence (5 s timeout), but not how resources are freed. The fps was the same as without it. On the bot's request for logs: this is Linux/Proton, so `crashes.log` doesn't apply. The full vkd3d fault logs (24 KB and 17 KB) and game-log excerpts around both faults are available if anyone wants them. The lines that matter are quoted in the issue. For anyone else hunting GPU faults under Proton: Proton sets `VKD3D_DEBUG=none`, so vkd3d's fault report only shows up with all three of these: ```sh VKD3D_CONFIG=no_descriptor_heap,fault VKD3D_DEBUG=err VKD3D_LOG_FILE='Z:\path\to\vkd3d.log' ``` It costs nothing measurable here, and it names the faulting address and what was last bound there (`vkd3d_address_binding_tracker`). That's how this issue's two reports were caught. Unless it comes back, this can be closed.
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#4231
No description provided.