Linux + RTX 5090: three tested findings: title watchdog (fix), argument clamp vs Wine's compiler (fix), Xid 109 GPU hang at the prologue (victory-4090 doesn't have it) #1428
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 transbinaryunicorn-sys on 2026-11-28T19:44:59Z.
This is Linux maybe it helps Windows too i dont know. i just got Rid of Microslop :-)
Im testing around with different Forks and Claude. on Nobara Linux
I think we found something to help, im no coder and understand just a bit of all this
we found some problems every other fork has like this. there is only one guy working
solo an his own fork who fixed the shaders he makes it diffrent than any other fork Claude says
https://github.com/gabeparra/victory-4090
Claude tricked me hard, or better said i have too many Forks. Game still hangs just gabes works floawless
here is what Claude wants to tell you
TL;DR: tested on Linux (Wine/vkd3d-proton) with an RTX 5090.
+0x23cf683= the title's own 30 s watchdog: one-byte workaroundVICTORY_POKE=71b6340:1.d3dcompiler_47→ all indirect executions dropped, world renders black → StructuredBuffer rewrite + root-signature fallback fixes it.gabeparra/victory-4090passes the same spot on the same machine with the same driver, Wine and vkd3d-proton, so the difference is in the code.Setup: Nobara Linux, RTX 5090, NVIDIA 615.78.08, GE-Proton11-7 (wine run directly), vkd3d-proton master
71cae09(also tried Proton Experimental11.0-20261123b's vkd3d-proton30b0eb9), DXVK dxgi, Wine's builtind3dcompiler_47. VIctory-NVIDIA9300875, diagnostics build,victory.exe play <exe> --dlss off.1. Title watchdog: runs end ~30 s after any stall
Problem. Every run ended here, ~26 s after the Xid 109 from point 3:
Evidence. It is a deliberate crash by a watchdog thread in the title. If the heartbeat at
0x1471b6338doesn't change for 30 one-second ticks, it executesmovl $0x4d8bd421, 0x0. The byte at0x1471b6340is the watchdog's quit flag. When it is set, the thread exits cleanly.Fix.
VICTORY_POKE=71b6340:1(diagnostics build).+0x23cf683after 67 s.It hides a stall rather than fixing it, but it separates "slow" from "broken".
Details: how the watchdog works / finding it in other versions
+0x2215a60, thread start around+0x2215ea0.Sleep(1000)), compares the heartbeat timestamp at0x1471b6338(written by0x1422159f0), counts down from 30 (mov $0x1e, %ebp), then calls a crash hook and writes0x4D8BD421to address 0.0x1471b6340(bit 0) is checked at+0x2215ab8,+0x2215c44and+0x2215dba.0x1471b6334only enables a separate per-subsystem check over 64 entries and does not stop the countdown.b99f876b74d4a77f, title930.048.020-vb_sub_story.Other title versions: search the converted image for
C7 04 25 00 00 00 00 21 D4 8B 4D(movl $0x4d8bd421, 0x0). Its caller is the watchdog loop, and themovb <flag>(%rip), %al; testb $1, %al; jne <exit>at the top of it reads the quit flag (RVA = address −0x140000000).A proper switch, or logging "title watchdog fired (0x4D8BD421)" instead of a plain access violation, would save everyone a lot of time.
2. Argument clamp vs Wine's
d3dcompiler_47: black worldProblem. Under Wine, the clamp in
crates/victory-gpu/src/indirect.rs/indirect/batch.rsfails to compile:All indirect executions are then dropped. Menus render, the world is black. (Measured on victory-4090, which has the same clamp. VIctory-NVIDIA's clamp also uses
ByteAddressBuffer, 15 + 7 occurrences.)Fix (tested on VIctory-NVIDIA, upstream and victory-4090).
(RW)ByteAddressBuffer→(RW)StructuredBuffer<uint>;b.Load3(a)→uint3(b[a/4], b[a/4+1], b[a/4+2])(same for Load/Load2/Load4);b.Store*(a, v)→ indexed stores;b.InterlockedOp(a, …)→InterlockedOp(b[a/4], …); remove[allow_uav_condition].[RootSignature]attribute out of the blob, soCreateRootSignature(0, bytes)fails. Fallback inmake_from(): serialize the same signature (6 root constants b0, SRV t0, SRV t1, UAV u0, UAV u1).Result on VIctory-NVIDIA: no
E5005. Onlyno batched argument clamp: records are clamped one at a time (0x80070057)remains, and the one-at-a-time clamp works.Root signature fallback (make_from)
I did the HLSL part with a small script and can post it or open a PR if you want.
3. Xid 109 GPU hang at the prologue (victory-4090 doesn't have it)
Problem. When the prologue loads, the GPU stops responding: the desktop freezes for 3–4 s, then
NVRM: Xid 109, CTX SWITCH TIMEOUTon the graphics channel. The game hangs (with the watchdog off) or is ended by the watchdog ~26 s later.Evidence: same machine, same driver (615.78.08), same Wine, same vkd3d-proton (
71cae09):9300875ed99b5602384a60fda6f2d0731a39171b568298Ruled out on VIctory-NVIDIA (each still Xid 109 at the same spot):
playvs.run --executewith onlyVICTORY_LEAVE_OUT+VICTORY_POKEVICTORY_WAVE_WIDE=0+VICTORY_INDIRECT_REST=011.0-20261123b's vkd3d-proton (30b0eb9, the version fromdocs/linux-proton.md)Where I'd look. victory-4090 translates
02384a60/731a3917(wave64-only compute) in a way that runs on NVIDIA's 32-lane waves without hanging. Itsdocs/bug-journal.md(2026-11-27, 21:30–22:28, RTX 5090) describes the relevant fixes:crates/victory-shader/src/resource.rs(Tracer::descriptor()/live()dropped per-instruction lane guards when pruning dead join edges;2da4beb386509b77was dropped under wave32 because of it)VICTORY_WAVE_WIDEkept off "due to known loop-widening TDR risk"Detached::release_tables())Comparing the DXIL both trees emit for
02384a60fda6f2d0(dxc -dumpbin) should show the difference. Note that yourdocs/linux-proton.mdand victory-4090 were both on driver 620.73.04, but victory-4090 also runs on 615 here, so the driver alone doesn't explain it.Happy to test patches on Linux + RTX 5090.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-28T19:55:43Z.
Follow-up: here is the exact launch script I use for the victory-4090 comparison run from point 3 (same machine, no Xid at the prologue). It is gabeparra's
scripts/linux/play.shsettings (victory-4090ed99b56), adapted to calling Wine directly (GE-Proton11-7, noproton runinprefix, no native d3dcompiler/dxil), plus the two fixes from above: the argument clamp rewrite (local commit) andVICTORY_POKEfor the watchdog. Shared in case it helps other Linux/NVIDIA users or helps with comparing trees. Numbers follow.victory-4090 launch script (Wine direct, RTX 5090)
Results with the script above (victory-4090
ed99b56+ clamp fix, first run with a cold cache, RTX 5090, driver 615.78.08):play.shsettingsResults with the script above (victory-4090
ed99b56+ clamp fix, RTX 5090, driver 615.78.08, second run with warm cache):play.shsettingsOutdoors the picture is now properly lit (only some blocky texture patches on skin remain). Indoors it stays dark, as expected with ray tracing off.
VICTORY_BVH_BUILDER=1made the title hang (no Xid) the one time I tried it. About 80% of the frame time is CPU-side copying between title memory and the GPU. gabeparra's ntdll patches target exactly that, but I haven't tried them yet.The picture went from very dark and broken to the later part of the prologue being properly lit, with only a few artifacts left (
VICTORY_ACTIVATE_RAYS=1and theVICTORY_AMBIENT_*values are the likely reason). The frame time is almost entirely CPU-side copying (GPU→title memory and back), which is what gabeparra's ntdll patches target. I haven't tried those yet.Notes: build with
cargo xwin build --locked --profile diag -p victory --features diagnostics --target x86_64-pc-windows-msvc(diagnostics is needed forVICTORY_POKE). Without natived3dcompiler_47.dll, the argument clamp rewrite from point 2 is required, or the world renders black.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-29T00:17:32Z.
i am sry i worked in the wrong fork and thought i got this one running. but here is how you can get this running with gabes shader translation, like i said he makes something different
Found where the Xid 109 hang comes from: the shader translator. With victory-4090's
crates/victory-shader(ed99b56) plus three small glue changes, VIctory-NVIDIA runs through the prologue on Linux + RTX 5090 with no Xid (same driver 615.78.08, same Wine, same vkd3d-proton71cae09; ~7 fps, up to 5,223 draws/frame). Without it, it hangs at the same spot every time.Branch to build and test: https://github.com/transbinaryunicorn-sys/VIctory-NVIDIA/tree/linux-rtx5090
crates/victory-shadertaken from gabeparra/victory-4090ed99b56(GPL-3.0), plusemit::host::hardware_adapter()copied back from VIctory-NVIDIA (victory-4090 doesn't have it;host.rsandstreamline.rscall it)HostShader's two new fields set inshader_cache.rs:half_views: Vec::new(),table_reads: None(VIctory-NVIDIA's GPU side doesn't use them;None= all descriptors may be read)Narrowing it down (each combination still hung):
resource.rs(the journal's lane-guard fix)emit/ir.rs,native.rs,resource.rs, …) withoutstructure.rsemit/+structure.rsir.rs+structure.rs+emit/+ rest)So it isn't one isolated fix. It's spread over
ir.rs,structure.rsandemit/(lower.rsalone differs by ~3,100 lines; victory-4090 also has newemit/halves.rsandemit/loose_lds.rs).One thing I checked: VIctory-NVIDIA's
emit_program()runs a second form withstructure::structure_wide_host()("loop branches taken by each host wave together") thatVICTORY_WAVE_WIDE=0does not turn off. victory-4090 has nohost_wideat all. A local switch that skips just that form made the hang come earlier, though, so it isn't the whole story either.Caveats: not a merge proposal as is. Replacing the translator drops VIctory-NVIDIA's own translator work (the loop-widening form,
host_wide, whatever else differs),half_viewsisn't wired up on the GPU side, and I've only tested the prologue on Linux. But it gives a working reference to diff against. The DXIL of02384a60fda6f2d0from both translators would be a good starting point (victory-4090 builds and runs it on NVIDIA; VIctory-NVIDIA's version hangs the GPU ~6 s after it's built).Happy to test anything on Linux + RTX 5090.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BitWuehler on 2026-11-29T02:07:47Z.
Two Blackwell / Linux-Proton specifics worth checking here since neither is listed in the launch env/build notes above:
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains— on Linux/Proton with NVIDIA620.xdrivers +vkd3d-proton,VK_NV_raw_access_chainshas been a frequent cause of GPU hangs / Xid 109 (verified on RTX 5080620.73.04and also reported on RTX 4090 in #1199).fxceless/victory-fork#1006/Marvisak/VIctory#2143—s_getpc_b64code-table lowering causing ~16–18 KB local-memory spills on Blackwell GPUs): without this, Blackwell cards can hit Xid 109 / GPU hangs early in the opening sequence.With both in place on CachyOS (RTX 5080, driver
620.73.04,GE-Proton11-14+ RB-treewineserver,vkd3d-proton master 71cae091b), a13m 44srun through the opening sequence completed with0Xids and0GPU hangs (made=2416,17,564DLSS Quality frames).(AI-assisted testing, log analysis, and summary.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-29T14:24:39Z.
A Massage from Claude :-)
Retest on current main (
829188e, v2026.11.29.01 era), Linux + RTX 5090Thanks for picking up the watchdog: on current
mainthe loader sets the quit flag by itself (the title's 30 s watchdog is told to quit ...), soVICTORY_POKEand the diagnostics build are no longer needed for it. 👍Result: Xid 109 at the prologue is still there with the reworked translator on
829188e(stock, no local patches): same spot ("whoosh" when the prologue loads), same channel0x0000000c,CTX SWITCH TIMEOUT, 3 of 3 runs, with and without a picture. Same machine/driver/Wine/vkd3d-proton as above.Three small things found on the way, for Linux/Wine users:
--set. Wine's d3dcompiler_47 refusescompose(no[RootSignature]in the blob) and the clamp/card compare (E5005 Load4 on RWByteAddressBuffer), so without DXC there is no picture at all (sound only).export VICTORY_DXC=...in the shell does not reach the title;play ... --set 'VICTORY_DXC=Z:\path\to\folder'does (Wine log then showsLoaded L"Z:\...\dxcompiler.dll" ... native). Might be worth a line indocs/linux-proton.md.dxil.dllnext todxcompiler.dllis not found.dxcompiler.dllloadsdxil.dllby bare name andLoadLibraryExW(..., LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | ...)on dxcompiler doesn't extend to its own imports/loads, so Wine logsFailed to load module L"dxil.dll"; status=c0000135. vkd3d-proton accepts unsigned DXIL so it still renders, but on Windows this would matter. Loadingdxil.dllexplicitly from the same folder first would fix it.829188e(merge leftovers, 9 errors):mb()missing incrates/victory-gpu/src/copystat.rs:1349-1352, and incrates/victory-gpu/src/host.rs~9127/9169/9180 a locallet mut timing = ... Option<SubmissionTiming>(line 8673) shadowsfn timing(), plus the follow-upstrsize errors at 9172. The normal build is fine.Next I'll put victory-4090's latest translator (
16617ea) onto currentmainagain, as on mylinux-rtx5090branch, to check whether that still avoids the hang there.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-29T14:49:10Z.
Solved on current main: prologue runs on Linux + RTX 5090 with the stock translator
@BitWuehler thank you, that was it. On
829188e, no local patches, stock translator, the prologue now runs with no Xid: ~24 fps, ~5,000 draws/frame, properly lit (it was very dark before).Needed on this machine (RTX 5090 / Xeon w7-3465X 28C/56T, driver 615.78.08, GE-Proton11-7, vkd3d-proton master
71cae09):play --dlss off
--set VICTORY_CODE_TABLE_AFTER=1
--set VICTORY_PATCH_SSE4A=0
--set 'VICTORY_DXC=Z:\path\to\folder\with\dxcompiler.dll'
1.
VICTORY_CODE_TABLE_AFTER=1fixes the Xid 109 at the prologue on Blackwell. Without it: Xid 109 (CTX SWITCH TIMEOUT, channel0x0000000c) at the "whoosh" in 3 of 3 runs. With it: 0 Xids in 3 of 3 runs.VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsalone did not help here (verified the env reaches vkd3d:VKD3D_CONFIGshows in its log). Sincece27154anames the RTX 5090 itself, maybe it could default to on for Blackwell?2. New crash once past the hang: the SSE4a patcher on an Intel CPU. With only fix 1, the run crashed right when the prologue started:
unhandled exception 0xc000001d at victory-image-...-p2f9ea84c.dll+0x27c8f2 (code e9 69 3a a0 ff 90 90 c4 e2 79 ...)
#0 +0x27c8f2 #1 0x8ba82ba (a stub) ...
A second run: same at
+0x5084782(e9 b9 ba bf fa 90 ...). The faulting bytes are ajmp rel32+ nop padding, i.e. a sitepatch_sse4ahas already rewritten. Ajmpcan't raise #UD, so the handler must have looked at the bytes after another thread rewrote them (or the thread ran over them mid-write), found no console-only instruction and gave up. WithVICTORY_PATCH_SSE4A=0the crash is gone. This CPU has no SSE4a and 56 threads, so many threads hit the sameinsertqat once when the prologue loads. Suggested fix: in the handler, if the bytes atripare now one of our patches (e9to a stub), just returnCONTINUE_EXECUTIONwithout steppingrip, and/or write the patch atomically.3. DXC under Wine (from my previous comment):
VICTORY_DXCmust go via--set, a shellexportdoesn't reach the title; without DXC there's no picture at all.Thanks again, and thanks @trustno1-coder for building the watchdog fix into the loader.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-29T15:13:48Z.
Claude is a lil bit too optimistic on the frrames, there are hugh drops to 4 fps but it runs very well i would say in this earlys stage of project
Solved on current main: prologue runs on Linux + RTX 5090 with the stock translator
@BitWuehler thank you, that was it. On
829188e(no local patches, stock translator), the prologue now runs with no Xid: 22–24 fps, ~5,000 draws/frame, properly lit (it was very dark before). A 20-minute run through the prologue afterwards: no crash, no Xid, steady 22–23 fps.My
linux-rtx5090branch (victory-4090's translator transplanted) is no longer needed for this; current main with the switches below is the better base.Setup: RTX 5090, Xeon w7-3465X (28C/56T, no SSE4a), Nobara, driver 615.78.08, GE-Proton11-7 (wine run directly), vkd3d-proton master
71cae09, DXVK dxgi, Wine's builtin d3dcompiler_47 + DXC (dxcompiler.dll/dxil.dllfrom a game's folder). Built withcargo xwin build --locked --profile diag -p victory --target x86_64-pc-windows-msvc(nodiagnosticsfeature needed anymore).1.
VICTORY_CODE_TABLE_AFTER=1fixes the Xid 109 at the prologue on BlackwellCTX SWITCH TIMEOUT, channel0x0000000c) at the "whoosh" when the prologue loads, 3 of 3 runsVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsalone did not help here (the env does reach vkd3d:VKD3D_CONFIG='breadcrumbs'shows in its log)Since
ce27154anames the RTX 5090 itself (Xid 13), maybe it could default to on for Blackwell? The first run after flipping it stalls ~20 s at the whoosh while the shaders are translated again (it's in the cache key).2. New crash once past the hang: the SSE4a patcher on an Intel CPU
With only fix 1, the run crashed exactly when the prologue started:
A second run: same at
+0x5084782(e9 b9 ba bf fa 90 c4 e2 79 21 c0 ...).The faulting bytes are a
jmp rel32+ nop padding, i.e. a site thatpatch_sse4ahas already rewritten (frame #1 is in the stub region). Ajmpcan't raise #UD, so most likely the handler of a second thread read the bytes after another thread had rewritten them (or a thread ran over them mid-write), found no console-only instruction and gave up. WithVICTORY_PATCH_SSE4A=0the crash is gone (0 of 2 runs). A CPU without SSE4a plus 56 threads means many threads hit the sameinsertqat once when the prologue loads.Cost of the workaround:
console CPU instructions emulated so far ... emulated=1048576after ~13 minutes, so the patcher is worth fixing rather than turning off. Suggested fix: in the handler, if the bytes atripare now one of our patches (e9to a stub), returnCONTINUE_EXECUTIONwithout steppingrip; and/or write the patch so no thread can see it half-written.3. DXC under Wine
VICTORY_DXCmust go via--set; a shellexportdoesn't reach the title. Without DXC there is no picture at all (sound only), since Wine's compiler refusescompose(no[RootSignature]in the blob).Performance
CPU-bound: ~44 ms/frame, of which ~32 ms preparing (copies ~16 ms / ~57 MB per frame), GPU only 0.5–1.4 ms.
Launch script (Wine direct)
Thanks again, and thanks @trustno1-coder for building the watchdog fix into the loader. Happy to test a patcher fix on this CPU.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by brunofgmag on 2026-11-29T16:41:17Z.
Some data from the same Xid 109 on another Linux machine, in case it helps: RTX 4080, driver 620.73.04, Proton Experimental with vkd3d-proton master 71cae091,
VKD3D_CONFIG=no_descriptor_heap,pipeline_library_app_cache,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains. It hit about one run in three on builds based on568c5e5d.We caught one hang with vkd3d-proton breadcrumbs. The command that started and never finished was the indirect compute dispatch of
meshlet_culling:CS_BatchCullPreSkinnedMeshlets_Prev(container hash0452fc2d2e2fc4c3), right after the layer's batched argument clamp. The program does not go through the wave64 fold, and it translates the same withVICTORY_WAVE_FOLDED=0.What did not explain it here:
ExecuteIndirect, in later runs, were sane (at most 3,082 groups) and matched what the CPU asked for.VICTORY_SHADER_LOOP_LIMIT=64applied still hung. Note that release builds ignore that switch.To get breadcrumbs we built vkd3d-proton with
-Denable_trace=true, setVKD3D_CONFIG=breadcrumbs, and changed vkd3d so the fence timeout prints the report; the title's watchdog kills the process long before a device lost shows up. The game loadsd3d12core.dllfrom the prefix'ssystem32, so the new DLL has to go there.Two side notes from the same runs.
no_descriptor_heapremoved an Xid 31 we had before. On568c5e5d,VICTORY_ALIAS_TARGETS(on by default) draws green and red blocks over cutscenes here, and=0removes them (#1976).We also reported the hang to vkd3d-proton: https://github.com/HansKristian-Work/vkd3d-proton/issues/3541
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:43:29Z.
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:
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\.%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\if there is one from that run.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-11-30T17:22:21Z.
Fix for the SSE4a crash (point 2 above): #4195. With it,
VICTORY_PATCH_SSE4A=0is no longer needed; verified at the prologue, where the log now shows the race being caught at the same site that crashed before.https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4195