Xid 13 freezes under Proton are GPU reads of freed memory (VK_KHR_device_fault: "currently unmapped", use-after-free) #4231
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#4231
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?
@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 usesVK_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:0x50ae1c000(ReadInvalid)0x600000) buffer allocation (VkBuffer [global-buffer], memoryTypeIndex 0). That range was made and freed again every 10–35 s0x57a21e000(ReadInvalid)VkImage1920×1088, 1 level, format 43So 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_REMOVEDreports there as well.What I checked:
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.host::name), most 6 MB buffers aretitle memory <addr>+0x600000window copies (shadow.rs).let_go_idlefrees 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_faultsupported,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 besidevictory.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: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=noneby default, so this needsVKD3D_DEBUG=errandVKD3D_LOG_FILE=...next toVKD3D_CONFIG=...,fault. It costs no measurable fps here (median 17.6 against 17.5 rendered). Fault 1:Fault 2:
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-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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
github-bot referenced this issue2026-11-30 21:10:39 +00:00
@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:
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,faulton. 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.logdoesn'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: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.