Linux/Proton, RTX 5070 Laptop (8 GB): GPU hang (Xid 109 CTX SWITCH TIMEOUT) 4–10 min into the world, every run; raise helper fails with current DXC #2769
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tadzi00 on 2026-11-29T17:06:42Z.
Possibly related: #2472 (Linux/Proton, RTX 3080, same release and Proton, device lost after 6–14 minutes; Xid 31 there, with Xid 109 a few minutes before it in two runs). Here it is Xid 109 every time, once Xid 13, and no Xid 31.
bug-report-logs.zip
System
victory.exeSHA-2560d3dae51…ed67dffd, matches the release)proton runinprefix, no Steam client, inside a bubblewrap sandbox without networkEnvironment, following docs/linux-proton.md:
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VKD3D_CONFIG=no_descriptor_heap,PROTON_ENABLE_NVAPI=1, NVIDIA and vkd3d shader disk caches set,WINEDLLOVERRIDESfor DXVK/vkd3d/NVAPI set by hand (runinprefixdoes not set them),--set VICTORY_WARMUP_RESTART=0 --set VICTORY_FULLSCREEN=1, DXCdxcompiler.dllgiven withVICTORY_DXC.Because of the 16:10 screen, every run uses the
+0x247af2dworkaround from #2055 (--set VICTORY_NATIVE_SIZE=...); without it the title stops at System Init as described there.What happens
The title boots, passes the account picker, loads the world and plays (with sound) for 4–10 minutes, then the picture stops. A few seconds after the last frame the kernel logs a GPU hang. The title does not exit (its watchdog is told to quit), so the window stays frozen until it is closed. It happens in different places each time.
No
crashes.logentry is written for these runs (the only entries there are the earlier+0x247af2dstops from before the workaround).Runs (times UTC)
--preload, DLSS off--fps 60,VICTORY_VRAM_BUDGET_MB=5500--dlss quality+ vkd3d-proton master71cae091bbeside victory.exe--dlss quality, Proton's vkd3d, output 1920x1080raisecompiles, see below)Run F's kernel lines:
So the hang comes with and without DLSS, with Proton's vkd3d-proton and with master, at 2560x1440 and 1920x1080 output, and both above and below the card-memory budget (runs D and E stayed under it).
VK_NV_raw_access_chainswas off in every run.Second finding: the
raisehelper does not compile with current DXCWine's
d3dcompiler_47refusesraise(E5005: Function "isnan" is not defined), and the DXC fallback refuses it too with DXC v1.9.2609 (2026-09), which defaults to HLSL 2021:Using
or(isnan(x), isinf(x))(or compiling with-HV 2018) should fix it. With DXC v1.7.2207 (HLSL 2018 default) it compiles, but in that run (F) glass got new artifacts and the card faulted (Xid 13) after about 2 minutes instead of the usual Xid 109, so the stand-in may have its own problem here.Other things in the logs
VICTORY_GPU_DETILE: the detile shader could not be made; textures are detiled on the PChost view heap capped at 1000000 (737855 title + 262144 dynamic slots); views past 737855 read a null slot count=1245184the texture queue's room: … no room, new textures waitbefore the hangs in runs A and B.Logs
Attached: the play logs of runs A–F (
%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261129-*.log, from the Wine prefix).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by brunofgmag on 2026-11-29T17:34:03Z.
I get the same hang on a desktop RTX 4080 with the same driver and kernel (620.73.04, CachyOS 7.3.6-3), Proton Experimental with vkd3d-proton master
71cae091b,VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cacheandVK_NV_raw_access_chainsoff. My builds are based on568c5e5d, where it hit about one run in three of the same scripted scene.One hang was caught with vkd3d-proton breadcrumbs. This is the region that started and never finished:
The shader is
meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev(container hash0452fc2d2e2fc4c3). Earlier in the same list a compute pass writes the argument buffer, and a firstExecuteIndirectreads it at offset 0 and completes. The second one, at offset 32, is the one that hangs. This is a single capture, so I would not assume every 109 is this dispatch.To get it you need vkd3d-proton built with
-Denable_trace=trueandVKD3D_CONFIG=breadcrumbs. I also had to change vkd3d to print the report when the fence wait times out, because the process is gone before any device lost reaches it. The newd3d12core.dllhas to go in the prefix'ssystem32.What did not stop the hang here:
VKD3D_CONFIG=single_queue: one 109 and one Xid 13 in four runs.VK_EXT_device_generated_commandsfrom vkd3d: one 109 in 12 runs. That is a lower rate than usual, but too few runs to say it helps.The group counts read back right before that
ExecuteIndirect, in other runs, matched what the CPU asked for and were at most 3,082.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Aiken-Project-A on 2026-11-29T19:54:30Z.
Data from a Turing card, for the three leads in this thread. The same Xid 109 here: RTX 2060 6 GB laptop, NVIDIA 615.78.08, Linux 7.2, wine-proton 11 (
7b3ceaf8), vkd3d-proton71cae091, main829188e9plus a few local fixes,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VKD3D_CONFIG=no_upload_hvv,force_host_cached,no_descriptor_heap. Ours is alwaysCTX SWITCH TIMEOUT, channel 0x00000022, Info 0x4c01f, mostly in the first minutes at the cell window after the intro, once during loading, in roughly a quarter to a half of the runs.1. Hiding device generated commands does not remove it here. With
VK_EXT_device_generated_commands,VK_NV_device_generated_commandsandVK_NV_device_generated_commands_computeadded toVKD3D_DISABLE_EXTENSIONS(vkd3d-proton logs them as disabled): 4 runs, 1 Xid 109, at the window, same signature as always. Frame time unchanged (window 86–88 ms, intro 87–100 ms).2. The indirect arguments are fenced correctly. The clamp pass (
indirect.rs) moves the scratch bufferUNORDERED_ACCESS → INDIRECT_ARGUMENTafter its dispatch, and vkd3d-proton turnsINDIRECT_ARGUMENTintoDRAW_INDIRECT | COMPUTE_SHADERstages withINDIRECT_COMMAND_READ | SHADER_READaccess (command.c, the resource-state mapping). A single-record dispatch without a count buffer then reads the clamped record straight from that buffer (vkCmdDispatchIndirect, no copy). So a stale-argument race between the clamp and the execution looks unlikely, which fits the group counts read back here (at most 3,082).3.
meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev(#0452fc2d2e2fc4c3) cannot hang on a barrier by itself, as far as I can tell. Native: 128 threads, 856 instructions. Translated (saved withVICTORY_SHADER_SAVE, read with dxil-spirv--glsl): 13 group barriers and no loops. I checked how uniform the branch conditions around each barrier are:subgroupBroadcastFirst, i.e. each 32-lane half picks its own first lane where the console had one 64-lane wave). Subgroups that skip them go straight to the end and exit.So no subgroup reaches a barrier only partly, and exited threads do not hold a PTX barrier. With no loops and sane group counts, I found no way for this dispatch to run forever on its own; the hang in the capture above may involve something around it rather than the shader itself.
A scan of all translated compute and mesh shaders of one run (1,381; the same text analysis, conservative, so false positives are possible): 207 have group barriers, 4,652 in total. 12 have at least one barrier under a condition that can differ between invocations of one subgroup, which would be undefined on NVIDIA (
barrier.sync.aligned):5dc3b25986622949(20 such barriers),6f225b641c5b0708(20),3d65925d7cd4a39a(6),7de0f9db96ddd295(6),8bb272e763f76148(4),e3730d3d043e0d90(4),0a5ecfee6b79e13b(2), and one each in0aa7934094794dbf,982f3cccd5c04294,9662515112a3f961,d9978c76c746d809,e4a7e088c7780ce8. I have not checked them by hand; several have 2D groups (local_size_x4 or 8), where a condition on the x index can split a subgroup. The script and the GLSL are available if useful.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ColorMeBoom on 2026-11-30T01:05:19Z.
A possible workaround, from the shader in brunofgmag's breadcrumbs: leaving out
meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev(0452fc2d2e2fc4c3, the hash Aiken-Project-A gives) stopped the Xid 109 here in 3 of 3 runs, with no loss of speed. That's a small sample, so please treat it as a lead.The first two hashes are the launcher's own defaults; setting the switch replaces them, so they need to stay in the list.
Setup
f889bb07), release, cross-compiled;victory.exe play71cae091, built locally; DXVKdxgi.dllfrom GE-Proton11-14VKD3D_CONFIG=no_descriptor_heap, DLSS off,--set VICTORY_PATCH_SSE4A=0(#2393)Each run is scripted: boot, Enter at the start screen, stand at the cell window, then turn and walk out of the cell. The hang signature was the same each time:
Xid 109 … CTX SWITCH TIMEOUT, Info 0x2c014, channel0x00000010, at the cell window. The title doesn't exit; the picture stays frozen.Runs
"DGC" means
VK_EXT_device_generated_commands,VK_NV_device_generated_commandsandVK_NV_device_generated_commands_compute, hidden throughVKD3D_DISABLE_EXTENSIONS.VK_NV_raw_access_chains0452fc2d2e2fc4c3--res 1080to1440)Hiding DGC helped on its own but didn't stop the hang: 4 of 5 runs got past the window, and the fifth hung, as in brunofgmag's 1 in 12. With DGC on, both runs without the leave-out hung, and both with it passed.
What it costs
Limits
AI-assisted (Claude Code, Claude Opus 5.5 ran the builds and game runs and wrote this comment).
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by colonelpanic8 on 2026-11-30T06:07:19Z.
Another data point for the same hang, on Linux with plain Wine (not Proton) and an Ampere card. Leaving out
0452fc2d2e2fc4c3held up here as well: no hangs in 6 runs, against about 1 in 4 without it.Setup
dxgi.dlltaken from GE-Proton11-14VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, Series S profile, DLSS and frame generation off, ray tracing off (noVICTORY_BVH_BUILDER)Each run is unattended: boot into the world, then measure for 6 minutes (36 frame-time samples). The hang has the same signature every time:
Xid 109 … CTX SWITCH TIMEOUT, channel 0x00000044, 3–5 minutes in.Runs per build
mainat)923e38cd148613829188e9716a0c99(29.02/29.03 hotfixes)716a0c9941adb551VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298,0452fc2d2e2fc4c3All builds also carry the opt-in title watchdog hook from #1428.
Without the leave-out, that's 3 hangs in 12 runs on the builds after
923e38c, leaving out829188e9. Six clean runs at a 1-in-4 rate would happen by chance about 18% of the time. With ColorMeBoom's 3 of 3 it's 9 clean runs (about 7.5%), so still a lead rather than proof.Speed: no cost. The three leave-out runs on a quiet machine had medians of 36.0, 36.0 and 36.9 ms, against 36–37 ms without it. The other three ran while the machine was busy with other work and aren't comparable. I haven't checked visually whether anything stops being drawn without it.
Other notes
829188e9hung every run. The716a0c99hotfixes brought it back to the baseline rate. Switching their old defaults back on one at a time on716a0c99did not bring the every-run hang back, though that's one run each and two of them were on a loaded machine:VICTORY_WAVE_FOLDED=1,VICTORY_ALIAS_TARGETS=1withVICTORY_LAZY_TWINS=1, andVICTORY_SLOTS_BITMAP=1.829188e9withVKD3D_CONFIG=no_descriptor_heapstill hung.VKD3D_CONFIG=breadcrumbsnever wrote a dump on this card, even with 90 s of grace after the Xid. The driver never reports the device as lost; vkd3d-proton only logsFailed to wait for Vulkan timeline semaphore, vr 2. So brunofgmag's dump is the only shader name I have.insertqat+0x5084782) also hit here under Wine, in 3 of 9 runs on716a0c99. There were none in 10 runs with a late-fault fix: #2585 in the leave-out runs above, and an equivalent local patch in 4 more.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tijmenvn on 2026-11-30T21:20:31Z.
Same Xid 109 here on a desktop RTX 4090, with both vkd3d-proton workarounds and a VRAM budget active. Possibly related: #1428, but see below: skipping its wave64 compute does not help here.
Setup: CachyOS, kernel 7.3.6, Hyprland; RTX 4090, NVIDIA 620.73.04 (open kernel modules); build
e1251c31(release, cargo-xwin) started withvictory.exe play, Series X, DLSS DLAA; GE-Proton 11-15 via umu-launcher, nested gamescope (2560x1440,-S fit, WSI layer); vkd3d-proton master71cae091bbeside victory.exe;d3dcompiler_47.dll10.0.17134 beside victory.exe.Active:
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsandVKD3D_CONFIG=no_descriptor_heap(both confirmed in the running process's environment),VICTORY_VRAM_BUDGET_MB=19000, NVIDIA shader disk cache,vm.unprivileged_userfaultfd=1.What happens: play is normal (22–30 fps), then at a heavy moment the picture freezes; about 5 s later vkd3d-proton reports
VK_ERROR_DEVICE_LOSTand the kernel logs Xid 109. Moments: a scene switch, starting and in the middle of NPC conversations, resuming from the pause menu.Earlier, before
no_descriptor_heap, there were also Xid 31 MMU faults atGPCCLIENT_GCC; those stopped with it, as in docs/linux-proton.md. Xid 109 did not stop withVK_NV_raw_access_chainsdisabled.Ruled out so far:
02384a60and731a3917skipped (22:17).VKD3D_CONFIG=breadcrumbs: no breadcrumb output on this driver.At the 21:23 hang, the last pipeline finished before the GPU stopped was
mesh 674e860f9713b8ce, pixel fb93cb23cbe58dc0-mask(30,076-byte pixel shader, about 9 s to build, first used at that moment). But theInfovalues differ between hangs, so probably not one fixed shader. Logs available on request.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-12-01T08:46:14Z.
Two verified fixes from testing on Linux (CachyOS) / GE-Proton 11-14 (
vkd3d-proton master) / RTX 5080 16 GB (driver 620.73.04) (and cross-checked on RTX 5090 Linux in #1428):For the recurring
Xid 109 CTX SWITCH TIMEOUThang in the world:Set
VICTORY_CODE_TABLE_AFTER=1(together withVICTORY_WAVE_FOLDED=0). On Blackwell + NVIDIA Linux Vulkan (620.73.04), placing the dispatch code table before the body triggers 16–18 KB local-memory spills per lane and reliably tripsXid 109after a few minutes in the world. WithVICTORY_CODE_TABLE_AFTER=1, both our 22-minute continuous world runs on RTX 5080 and 4/4 runs on RTX 5090 (#1428) completed with 0 Xids.For the
ambient.rsraisehelper failing under DXC (0x80004005):ambient.rscompiles theRAISEpass with-D RAISE(empty macro value) while naming the entry pointvoid raise(...). Unlike FXC (D3DCompile), DXC's HLSL 2021 preprocessor/parser rejects that combination (macro collision/ HLSL 2021 strictness). Passing-HV 2018inhlsl.rsand renaming the macro guard toPASS_RAISE(or-D RAISE=1with a distinct macro name) lets all 5ambient.rspasses compile cleanly through DXC under Proton.(Summary compiled with AI assistance.)