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

Closed
opened 2026-11-28 19:49:20 +00:00 by github-bot · 8 comments
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-28 19:44 UTC · original

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.

  1. "Crash" at +0x23cf683 = the title's own 30 s watchdog: one-byte workaround VICTORY_POKE=71b6340:1.
  2. Argument clamp doesn't compile under Wine's d3dcompiler_47 → all indirect executions dropped, world renders black → StructuredBuffer rewrite + root-signature fallback fixes it.
  3. GPU hang (NVIDIA Xid 109) at the prologue in this fork. gabeparra/victory-4090 passes 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 Experimental 11.0-20261123b's vkd3d-proton 30b0eb9), DXVK dxgi, Wine's builtin d3dcompiler_47. VIctory-NVIDIA 9300875, 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:

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  #0 +0x23cf683   #1 +0x2215c35   #2 +0x2215eca   #3 kernel32 (thread start)

Evidence. It is a deliberate crash by a watchdog thread in the title. If the heartbeat at 0x1471b6338 doesn't change for 30 one-second ticks, it executes movl $0x4d8bd421, 0x0. The byte at 0x1471b6340 is the watchdog's quit flag. When it is set, the thread exits cleanly.

Fix. VICTORY_POKE=71b6340:1 (diagnostics build).

  • Without it: crash at +0x23cf683 after 67 s.
  • With it: no crash, the run goes into the prologue (1,579 draws/frame) and only stops at the GPU hang.

It hides a stall rather than fixing it, but it separates "slow" from "broken".

Details: how the watchdog works / finding it in other versions
  • Function at image +0x2215a60, thread start around +0x2215ea0.
  • Wakes up every second (Sleep(1000)), compares the heartbeat timestamp at 0x1471b6338 (written by 0x1422159f0), counts down from 30 (mov $0x1e, %ebp), then calls a crash hook and writes 0x4D8BD421 to address 0.
  • The quit flag at 0x1471b6340 (bit 0) is checked at +0x2215ab8, +0x2215c44 and +0x2215dba.
  • The dword at 0x1471b6334 only enables a separate per-subsystem check over 64 entries and does not stop the countdown.
  • Offsets are for image b99f876b74d4a77f, title 930.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 the movb <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 world

Problem. Under Wine, the clamp in crates/victory-gpu/src/indirect.rs / indirect/batch.rs fails to compile:

argument clamp: clamp:106:10: E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'.
no argument clamp: indirect execution dropped
... dropped 490 without a host pipeline (0 being made) and 1334 indirect

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).

  1. HLSL: (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].
  2. vkd3d-shader leaves the [RootSignature] attribute out of the blob, so CreateRootSignature(0, bytes) fails. Fallback in make_from(): serialize the same signature (6 root constants b0, SRV t0, SRV t1, UAV u0, UAV u1).

Result on VIctory-NVIDIA: no E5005. Only no 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)
// Wine: vkd3d's HLSL compiler leaves the [RootSignature] attribute out of the blob;
// then the same signature is serialized from its description.
let root: ID3D12RootSignature = match device.CreateRootSignature(0, bytes) {
    Ok(r) => r,
    Err(_) => {
        let params = [
            D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS, Anonymous: D3D12_ROOT_PARAMETER_0 { Constants: D3D12_ROOT_CONSTANTS { ShaderRegister: 0, RegisterSpace: 0, Num32BitValues: 6 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL },
            D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_SRV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL },
            D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_SRV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 1, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL },
            D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL },
            D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 1, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL },
        ];
        let desc = D3D12_ROOT_SIGNATURE_DESC { NumParameters: params.len() as u32, pParameters: params.as_ptr(), ..Default::default() };
        let mut blob: Option<ID3DBlob> = None;
        D3D12SerializeRootSignature(&desc, D3D_ROOT_SIGNATURE_VERSION_1, &mut blob, None)?;
        let blob = blob.ok_or_else(windows::core::Error::empty)?;
        let rs = std::slice::from_raw_parts(blob.GetBufferPointer().cast::<u8>(), blob.GetBufferSize());
        device.CreateRootSignature(0, rs)?
    }
};

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 TIMEOUT on 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):

VIctory-NVIDIA 9300875 victory-4090 ed99b56
Prologue Xid 109, every run no Xid, 1,300–3,900 draws/frame, ~8 fps
02384a60fda6f2d0 left out by default; if allowed: built, Xid 109 six seconds later (earlier than usual) built and runs
731a39171b568298 left out by default built and runs

Ruled out on VIctory-NVIDIA (each still Xid 109 at the same spot):

  • launcher settings: play vs. run --execute with only VICTORY_LEAVE_OUT + VICTORY_POKE
  • VICTORY_WAVE_WIDE=0 + VICTORY_INDIRECT_REST=0
  • leaving out the pipelines built in the 10 s before the Xid. It is a different set each run: 20+ mesh pipelines appear within 0.5 s when the world loads, so there is no single culprit.
  • Proton Experimental 11.0-20261123b's vkd3d-proton (30b0eb9, the version from docs/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. Its docs/bug-journal.md (2026-11-27, 21:30–22:28, RTX 5090) describes the relevant fixes:

  • a fix in crates/victory-shader/src/resource.rs (Tracer::descriptor() / live() dropped per-instruction lane guards when pruning dead join edges; 2da4beb386509b77 was dropped under wave32 because of it)
  • VICTORY_WAVE_WIDE kept off "due to known loop-widening TDR risk"
  • dynamic descriptor slots released on GPU completion (Detached::release_tables())

Comparing the DXIL both trees emit for 02384a60fda6f2d0 (dxc -dumpbin) should show the difference. Note that your docs/linux-proton.md and 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.

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-28 19:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428) 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. 1. **"Crash" at `+0x23cf683` = the title's own 30 s watchdog**: one-byte workaround `VICTORY_POKE=71b6340:1`. 2. **Argument clamp doesn't compile under Wine's `d3dcompiler_47`** → all indirect executions dropped, world renders black → StructuredBuffer rewrite + root-signature fallback fixes it. 3. **GPU hang (NVIDIA Xid 109) at the prologue** in this fork. `gabeparra/victory-4090` passes 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 Experimental `11.0-20261123b`'s vkd3d-proton `30b0eb9`), DXVK dxgi, Wine's builtin `d3dcompiler_47`. VIctory-NVIDIA `9300875`, 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: ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) #0 +0x23cf683 #1 +0x2215c35 #2 +0x2215eca #3 kernel32 (thread start) ``` **Evidence.** It is a deliberate crash by a watchdog thread in the title. If the heartbeat at `0x1471b6338` doesn't change for 30 one-second ticks, it executes `movl $0x4d8bd421, 0x0`. The byte at `0x1471b6340` is the watchdog's quit flag. When it is set, the thread exits cleanly. **Fix.** `VICTORY_POKE=71b6340:1` (diagnostics build). - Without it: crash at `+0x23cf683` after 67 s. - With it: no crash, the run goes into the prologue (1,579 draws/frame) and only stops at the GPU hang. It hides a stall rather than fixing it, but it separates "slow" from "broken". <details><summary>Details: how the watchdog works / finding it in other versions</summary> - Function at image `+0x2215a60`, thread start around `+0x2215ea0`. - Wakes up every second (`Sleep(1000)`), compares the heartbeat timestamp at `0x1471b6338` (written by `0x1422159f0`), counts down from 30 (`mov $0x1e, %ebp`), then calls a crash hook and writes `0x4D8BD421` to address 0. - The quit flag at `0x1471b6340` (bit 0) is checked at `+0x2215ab8`, `+0x2215c44` and `+0x2215dba`. - The dword at `0x1471b6334` only enables a separate per-subsystem check over 64 entries and does **not** stop the countdown. - Offsets are for image `b99f876b74d4a77f`, title `930.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 the `movb <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. </details> --- ### 2. Argument clamp vs Wine's `d3dcompiler_47`: black world **Problem.** Under Wine, the clamp in `crates/victory-gpu/src/indirect.rs` / `indirect/batch.rs` fails to compile: ``` argument clamp: clamp:106:10: E5005: Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'. no argument clamp: indirect execution dropped ... dropped 490 without a host pipeline (0 being made) and 1334 indirect ``` 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).** 1. HLSL: `(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]`. 2. vkd3d-shader leaves the `[RootSignature]` attribute out of the blob, so `CreateRootSignature(0, bytes)` fails. Fallback in `make_from()`: serialize the same signature (6 root constants b0, SRV t0, SRV t1, UAV u0, UAV u1). Result on VIctory-NVIDIA: no `E5005`. Only `no batched argument clamp: records are clamped one at a time (0x80070057)` remains, and the one-at-a-time clamp works. <details><summary>Root signature fallback (make_from)</summary> ```rust // Wine: vkd3d's HLSL compiler leaves the [RootSignature] attribute out of the blob; // then the same signature is serialized from its description. let root: ID3D12RootSignature = match device.CreateRootSignature(0, bytes) { Ok(r) => r, Err(_) => { let params = [ D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS, Anonymous: D3D12_ROOT_PARAMETER_0 { Constants: D3D12_ROOT_CONSTANTS { ShaderRegister: 0, RegisterSpace: 0, Num32BitValues: 6 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }, D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_SRV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }, D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_SRV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 1, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }, D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 0, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }, D3D12_ROOT_PARAMETER { ParameterType: D3D12_ROOT_PARAMETER_TYPE_UAV, Anonymous: D3D12_ROOT_PARAMETER_0 { Descriptor: D3D12_ROOT_DESCRIPTOR { ShaderRegister: 1, RegisterSpace: 0 } }, ShaderVisibility: D3D12_SHADER_VISIBILITY_ALL }, ]; let desc = D3D12_ROOT_SIGNATURE_DESC { NumParameters: params.len() as u32, pParameters: params.as_ptr(), ..Default::default() }; let mut blob: Option<ID3DBlob> = None; D3D12SerializeRootSignature(&desc, D3D_ROOT_SIGNATURE_VERSION_1, &mut blob, None)?; let blob = blob.ok_or_else(windows::core::Error::empty)?; let rs = std::slice::from_raw_parts(blob.GetBufferPointer().cast::<u8>(), blob.GetBufferSize()); device.CreateRootSignature(0, rs)? } }; ``` I did the HLSL part with a small script and can post it or open a PR if you want. </details> --- ### 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 TIMEOUT` on 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`):** | | VIctory-NVIDIA `9300875` | victory-4090 `ed99b56` | |---|---|---| | Prologue | **Xid 109**, every run | **no Xid**, 1,300–3,900 draws/frame, ~8 fps | | `02384a60fda6f2d0` | left out by default; if allowed: built, **Xid 109 six seconds later** (earlier than usual) | **built and runs** | | `731a39171b568298` | left out by default | **built and runs** | **Ruled out on VIctory-NVIDIA** (each still Xid 109 at the same spot): - launcher settings: `play` vs. `run --execute` with only `VICTORY_LEAVE_OUT` + `VICTORY_POKE` - `VICTORY_WAVE_WIDE=0` + `VICTORY_INDIRECT_REST=0` - leaving out the pipelines built in the 10 s before the Xid. It is a different set each run: 20+ mesh pipelines appear within 0.5 s when the world loads, so there is no single culprit. - Proton Experimental `11.0-20261123b`'s vkd3d-proton (`30b0eb9`, the version from `docs/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. Its `docs/bug-journal.md` (2026-11-27, 21:30–22:28, RTX 5090) describes the relevant fixes: - a fix in `crates/victory-shader/src/resource.rs` (`Tracer::descriptor()` / `live()` dropped per-instruction lane guards when pruning dead join edges; `2da4beb386509b77` was dropped under wave32 because of it) - `VICTORY_WAVE_WIDE` kept off "due to known loop-widening TDR risk" - dynamic descriptor slots released on GPU completion (`Detached::release_tables()`) Comparing the DXIL both trees emit for `02384a60fda6f2d0` (`dxc -dumpbin`) should show the difference. Note that your `docs/linux-proton.md` and 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 19:49:20 +00:00
Author
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-28 19:55 UTC · original · edited 2026-11-28 20:21 UTC

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.sh settings (victory-4090 ed99b56), adapted to calling Wine directly (GE-Proton11-7, no proton runinprefix, no native d3dcompiler/dxil), plus the two fixes from above: the argument clamp rewrite (local commit) and VICTORY_POKE for 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)
#!/bin/bash
# victory-4090 with the settings of its scripts/linux/play.sh (ed99b56), Wine called directly.
# Adjust these:
GAME_EXE='Z:\path\to\your\dump\game_scarlett_master.exe'
WINE="$HOME/.local/share/Steam/compatibilitytools.d/GE-Proton11-7/files/bin/wine"
REPO="$HOME/Games/victory-4090"
DATA="$HOME/victory-data"            # outside the repo
GPU="RTX 5090"                       # name of the card to use
WIN_DATA="Z:${DATA//\//\\}"

mkdir -p "$DATA/nvidia-glcache" && touch "$DATA/write_sites.txt"
cd "$REPO" || exit 1
export WINEPREFIX="$DATA/prefix/pfx"            # vkd3d-proton d3d12.dll/d3d12core.dll in system32
export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"
export WINEDEBUG=err+all,fixme-all
export VICTORY_CONFIG="$WIN_DATA\\victory.toml"   # game_dir, cache_dir, data_dir
export VICTORY_D3D12_ADAPTER="$GPU" VKD3D_FILTER_DEVICE_NAME="$GPU" DXVK_FILTER_DEVICE_NAME="$GPU"
export VKD3D_SHADER_CACHE_PATH="$WIN_DATA\\vkd3d-cache"
export VKD3D_CONFIG=descriptor_heap
export __GL_SHADER_DISK_CACHE_PATH="$DATA/nvidia-glcache"
export __GL_SHADER_DISK_CACHE_SIZE=107374182400 __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
export PULSE_LATENCY_MSEC=60 NO_COLOR=1 RUST_BACKTRACE=1 VICTORY_LOG=info
export VICTORY_POKE=71b6340:1          # title watchdog off (diagnostics build; image b99f876b74d4a77f)
export VICTORY_FRAME_INTERVAL_MS=0     # no frame cap
# --- from victory-4090 scripts/linux/play.sh ---
export VICTORY_PORT_CBV=1 VICTORY_MESH_LAUNCH=1 VICTORY_BVH_MISS=1
export WINE_VIEW_UNLOCKED=1            # only with gabeparra's ntdll patches; stock Wine ignores it
export VICTORY_TEXTURE_NO_WAIT=1 VICTORY_RELAY=2 VICTORY_WIDE_BACK=1 VICTORY_CARD_REHASH_RUNS=1
export VICTORY_JOIN_COPIES=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_RELAY_COPY=1 VICTORY_CARD_STEPS=2
export VICTORY_INDIRECT_BATCH=2 VICTORY_TITLE_PRIORITIES=0 VICTORY_SHOW_AFTER=1
export VICTORY_ACTIVATE_RAYS=1
export VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_SHADE=1,0.6 VICTORY_AMBIENT_FLOOR=0 VICTORY_AMBIENT_SPECULAR=1
export VICTORY_AMBIENT_SPECULAR_ALPHA=1 VICTORY_AMBIENT_AIR=1.5 VICTORY_AMBIENT_MOST=2
export VICTORY_BAKE_TEXTURES_MS=10000 VICTORY_PIPELINE_BOOK=0 VICTORY_PIPELINE_WORKERS=16
export VICTORY_PIPELINE_SLOW=0 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_D3D12_DRED=light
export VICTORY_SKIP_PIPELINES=none
export VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=1.0
export VICTORY_CARD_AWAKE=0 VICTORY_THIN_THREADS=8 VICTORY_UNDER_THREADS=6 VICTORY_LAND_THREADS=8
export VICTORY_WIDE_SPIN=50 VICTORY_VIEW_THREADS=8 VICTORY_MAP_THREADS=4 VICTORY_ASK_GAP_MB=16
export VICTORY_TEXTURE_ROOM_PERCENT=75 VICTORY_WAIT_RESIDENT=0 VICTORY_PLACED_ORDER=1
export VICTORY_PORT_CONSTANTS=1 VICTORY_PORT_CONSTANTS_ORDER=0 VICTORY_PORT_GUARD=1 VICTORY_GUARD_HOT=500
export VICTORY_ASK_SPREAD=1 VICTORY_COPY_BESIDE=1 VICTORY_STORE_BESIDE=1 VICTORY_SEND_CHANGED=1
export VICTORY_WRITE_SITES="$WIN_DATA\\write_sites.txt"
export VICTORY_PORT_JOURNAL=1 VICTORY_PORT_BUFFERS=1 VICTORY_WC_NO_BACK=1 VICTORY_WC_NO_BACK_MIN_KB=64
export VICTORY_MAP_LOCK_FINE=1 VICTORY_HEAP_WORKER=1 VICTORY_SETTLE_ROOM=1 VICTORY_DISPATCH_SPREAD=0
export VICTORY_SPREAD_LEAN=1 VICTORY_CAST_E5=1 VICTORY_TEXBACK_ASYNC=1 VICTORY_TABLE_STAGES=1
export VICTORY_TABLE_NAMED_ONLY=1 VICTORY_REAPER=1
export VICTORY_THIN=1 VICTORY_JOIN_PARTS=16 VICTORY_UPLOAD_AHEAD=1 VICTORY_LAND_ECHO=1
exec "$WINE" "$REPO/target/x86_64-pc-windows-msvc/diag/victory.exe" \
  run "$GAME_EXE" --console series-x --execute "$@" > "$DATA/run.txt" 2>&1

Results with the script above (victory-4090 ed99b56 + clamp fix, first run with a cold cache, RTX 5090, driver 615.78.08):

minimal settings gabeparra's play.sh settings
Xid at the prologue none none
fps 7.6–8.5 7.3–7.7
draws/frame 1,263–1,625 2,839–4,186
dropped/frame 141–154 117–142
GPU time/frame ~1 ms 0–3 ms
"copying back" / "copies" ~55 / ~40 ms ~70 / ~50 ms

Results with the script above (victory-4090 ed99b56 + clamp fix, RTX 5090, driver 615.78.08, second run with warm cache):

minimal settings gabeparra's play.sh settings
Xid at the prologue none none
fps 7.6–8.5 6.3–7.5
draws/frame 1,263–1,625 767–5,644 (bigger scenes drawn)
GPU time/frame ~1 ms ~0 ms
"copies" / "copying back" ~40 / ~55 ms 47–83 / 38–64 ms

Outdoors 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=1 made 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=1 and the VICTORY_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 for VICTORY_POKE). Without native d3dcompiler_47.dll, the argument clamp rewrite from point 2 is required, or the world renders black.

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-28 19:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7244907455) · edited 2026-11-28 20:21 UTC 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.sh` settings (victory-4090 `ed99b56`), adapted to calling Wine directly (GE-Proton11-7, no `proton runinprefix`, no native d3dcompiler/dxil), plus the two fixes from above: the argument clamp rewrite (local commit) and `VICTORY_POKE` for the watchdog. Shared in case it helps other Linux/NVIDIA users or helps with comparing trees. Numbers follow. <details><summary>victory-4090 launch script (Wine direct, RTX 5090)</summary> ```bash #!/bin/bash # victory-4090 with the settings of its scripts/linux/play.sh (ed99b56), Wine called directly. # Adjust these: GAME_EXE='Z:\path\to\your\dump\game_scarlett_master.exe' WINE="$HOME/.local/share/Steam/compatibilitytools.d/GE-Proton11-7/files/bin/wine" REPO="$HOME/Games/victory-4090" DATA="$HOME/victory-data" # outside the repo GPU="RTX 5090" # name of the card to use WIN_DATA="Z:${DATA//\//\\}" mkdir -p "$DATA/nvidia-glcache" && touch "$DATA/write_sites.txt" cd "$REPO" || exit 1 export WINEPREFIX="$DATA/prefix/pfx" # vkd3d-proton d3d12.dll/d3d12core.dll in system32 export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" export WINEDEBUG=err+all,fixme-all export VICTORY_CONFIG="$WIN_DATA\\victory.toml" # game_dir, cache_dir, data_dir export VICTORY_D3D12_ADAPTER="$GPU" VKD3D_FILTER_DEVICE_NAME="$GPU" DXVK_FILTER_DEVICE_NAME="$GPU" export VKD3D_SHADER_CACHE_PATH="$WIN_DATA\\vkd3d-cache" export VKD3D_CONFIG=descriptor_heap export __GL_SHADER_DISK_CACHE_PATH="$DATA/nvidia-glcache" export __GL_SHADER_DISK_CACHE_SIZE=107374182400 __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 export PULSE_LATENCY_MSEC=60 NO_COLOR=1 RUST_BACKTRACE=1 VICTORY_LOG=info export VICTORY_POKE=71b6340:1 # title watchdog off (diagnostics build; image b99f876b74d4a77f) export VICTORY_FRAME_INTERVAL_MS=0 # no frame cap # --- from victory-4090 scripts/linux/play.sh --- export VICTORY_PORT_CBV=1 VICTORY_MESH_LAUNCH=1 VICTORY_BVH_MISS=1 export WINE_VIEW_UNLOCKED=1 # only with gabeparra's ntdll patches; stock Wine ignores it export VICTORY_TEXTURE_NO_WAIT=1 VICTORY_RELAY=2 VICTORY_WIDE_BACK=1 VICTORY_CARD_REHASH_RUNS=1 export VICTORY_JOIN_COPIES=1 VICTORY_INDIRECT_WINDOW=1 VICTORY_RELAY_COPY=1 VICTORY_CARD_STEPS=2 export VICTORY_INDIRECT_BATCH=2 VICTORY_TITLE_PRIORITIES=0 VICTORY_SHOW_AFTER=1 export VICTORY_ACTIVATE_RAYS=1 export VICTORY_AMBIENT=0.8 VICTORY_AMBIENT_SHADE=1,0.6 VICTORY_AMBIENT_FLOOR=0 VICTORY_AMBIENT_SPECULAR=1 export VICTORY_AMBIENT_SPECULAR_ALPHA=1 VICTORY_AMBIENT_AIR=1.5 VICTORY_AMBIENT_MOST=2 export VICTORY_BAKE_TEXTURES_MS=10000 VICTORY_PIPELINE_BOOK=0 VICTORY_PIPELINE_WORKERS=16 export VICTORY_PIPELINE_SLOW=0 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_D3D12_DRED=light export VICTORY_SKIP_PIPELINES=none export VICTORY_OUTPUT=2560x1440 VICTORY_RENDER_SCALE=1.0 export VICTORY_CARD_AWAKE=0 VICTORY_THIN_THREADS=8 VICTORY_UNDER_THREADS=6 VICTORY_LAND_THREADS=8 export VICTORY_WIDE_SPIN=50 VICTORY_VIEW_THREADS=8 VICTORY_MAP_THREADS=4 VICTORY_ASK_GAP_MB=16 export VICTORY_TEXTURE_ROOM_PERCENT=75 VICTORY_WAIT_RESIDENT=0 VICTORY_PLACED_ORDER=1 export VICTORY_PORT_CONSTANTS=1 VICTORY_PORT_CONSTANTS_ORDER=0 VICTORY_PORT_GUARD=1 VICTORY_GUARD_HOT=500 export VICTORY_ASK_SPREAD=1 VICTORY_COPY_BESIDE=1 VICTORY_STORE_BESIDE=1 VICTORY_SEND_CHANGED=1 export VICTORY_WRITE_SITES="$WIN_DATA\\write_sites.txt" export VICTORY_PORT_JOURNAL=1 VICTORY_PORT_BUFFERS=1 VICTORY_WC_NO_BACK=1 VICTORY_WC_NO_BACK_MIN_KB=64 export VICTORY_MAP_LOCK_FINE=1 VICTORY_HEAP_WORKER=1 VICTORY_SETTLE_ROOM=1 VICTORY_DISPATCH_SPREAD=0 export VICTORY_SPREAD_LEAN=1 VICTORY_CAST_E5=1 VICTORY_TEXBACK_ASYNC=1 VICTORY_TABLE_STAGES=1 export VICTORY_TABLE_NAMED_ONLY=1 VICTORY_REAPER=1 export VICTORY_THIN=1 VICTORY_JOIN_PARTS=16 VICTORY_UPLOAD_AHEAD=1 VICTORY_LAND_ECHO=1 exec "$WINE" "$REPO/target/x86_64-pc-windows-msvc/diag/victory.exe" \ run "$GAME_EXE" --console series-x --execute "$@" > "$DATA/run.txt" 2>&1 ``` </details> Results with the script above (victory-4090 `ed99b56` + clamp fix, first run with a cold cache, RTX 5090, driver 615.78.08): | | minimal settings | gabeparra's `play.sh` settings | |---|---|---| | Xid at the prologue | none | **none** | | fps | 7.6–8.5 | 7.3–7.7 | | draws/frame | 1,263–1,625 | **2,839–4,186** | | dropped/frame | 141–154 | 117–142 | | GPU time/frame | ~1 ms | 0–3 ms | | "copying back" / "copies" | ~55 / ~40 ms | ~70 / ~50 ms | Results with the script above (victory-4090 `ed99b56` + clamp fix, RTX 5090, driver 615.78.08, second run with warm cache): | | minimal settings | gabeparra's `play.sh` settings | |---|---|---| | Xid at the prologue | none | **none** | | fps | 7.6–8.5 | 6.3–7.5 | | draws/frame | 1,263–1,625 | **767–5,644** (bigger scenes drawn) | | GPU time/frame | ~1 ms | ~0 ms | | "copies" / "copying back" | ~40 / ~55 ms | 47–83 / 38–64 ms | Outdoors 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=1` made 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=1` and the `VICTORY_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 for `VICTORY_POKE`). Without native `d3dcompiler_47.dll`, the argument clamp rewrite from point 2 is required, or the world renders black.
github-bot changed title from 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) to 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) (fix) 2026-11-28 20:06:11 +00:00
github-bot changed title from 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) (fix) to 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) 2026-11-28 23:24:45 +00:00
Author
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-29 00:17 UTC · original

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-proton 71cae09; ~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

  • commit 1: the argument clamp rewrite for Wine's compiler (point 2 above)
  • commit 2: crates/victory-shader taken from gabeparra/victory-4090 ed99b56 (GPL-3.0), plus
    • emit::host::hardware_adapter() copied back from VIctory-NVIDIA (victory-4090 doesn't have it; host.rs and streamline.rs call it)
    • HostShader's two new fields set in shader_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):

from victory-4090 result
only resource.rs (the journal's lane-guard fix) Xid 109
only emit/ Xid 109
analysis (ir.rs, native.rs, resource.rs, …) without structure.rs Xid 109
emit/ + structure.rs Xid 109
whole translator (ir.rs + structure.rs + emit/ + rest) runs, no Xid

So it isn't one isolated fix. It's spread over ir.rs, structure.rs and emit/ (lower.rs alone differs by ~3,100 lines; victory-4090 also has new emit/halves.rs and emit/loose_lds.rs).

One thing I checked: VIctory-NVIDIA's emit_program() runs a second form with structure::structure_wide_host() ("loop branches taken by each host wave together") that VICTORY_WAVE_WIDE=0 does not turn off. victory-4090 has no host_wide at 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_views isn'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 of 02384a60fda6f2d0 from 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.

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-29 00:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7248010340) 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-proton `71cae09`; ~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 - commit 1: the argument clamp rewrite for Wine's compiler (point 2 above) - commit 2: `crates/victory-shader` taken from gabeparra/victory-4090 `ed99b56` (GPL-3.0), plus - `emit::host::hardware_adapter()` copied back from VIctory-NVIDIA (victory-4090 doesn't have it; `host.rs` and `streamline.rs` call it) - `HostShader`'s two new fields set in `shader_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):** | from victory-4090 | result | |---|---| | only `resource.rs` (the journal's lane-guard fix) | Xid 109 | | only `emit/` | Xid 109 | | analysis (`ir.rs`, `native.rs`, `resource.rs`, …) without `structure.rs` | Xid 109 | | `emit/` + `structure.rs` | Xid 109 | | **whole translator** (`ir.rs` + `structure.rs` + `emit/` + rest) | **runs, no Xid** | So it isn't one isolated fix. It's spread over `ir.rs`, `structure.rs` and `emit/` (`lower.rs` alone differs by ~3,100 lines; victory-4090 also has new `emit/halves.rs` and `emit/loose_lds.rs`). One thing I checked: VIctory-NVIDIA's `emit_program()` runs a second form with `structure::structure_wide_host()` ("loop branches taken by each host wave together") that `VICTORY_WAVE_WIDE=0` does **not** turn off. victory-4090 has no `host_wide` at 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_views` isn'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 of `02384a60fda6f2d0` from 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.
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-29 02:07 UTC · original

Two Blackwell / Linux-Proton specifics worth checking here since neither is listed in the launch env/build notes above:

  1. VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains — on Linux/Proton with NVIDIA 620.x drivers + vkd3d-proton, VK_NV_raw_access_chains has been a frequent cause of GPU hangs / Xid 109 (verified on RTX 5080 620.73.04 and also reported on RTX 4090 in #1199).
  2. Blackwell code-table local-memory spill fix (fxceless/victory-fork#1006 / Marvisak/VIctory#2143 — s_getpc_b64 code-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-tree wineserver, vkd3d-proton master 71cae091b), a 13m 44s run through the opening sequence completed with 0 Xids and 0 GPU hangs (made=2416, 17,564 DLSS Quality frames).

(AI-assisted testing, log analysis, and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-29 02:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7249228188) Two Blackwell / Linux-Proton specifics worth checking here since neither is listed in the launch env/build notes above: 1. **`VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`** — on Linux/Proton with NVIDIA `620.x` drivers + `vkd3d-proton`, `VK_NV_raw_access_chains` has been a frequent cause of GPU hangs / Xid 109 (verified on RTX 5080 `620.73.04` and also reported on RTX 4090 in #1199). 2. **Blackwell code-table local-memory spill fix** (`fxceless/victory-fork#1006` / `Marvisak/VIctory#2143` — `s_getpc_b64` code-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-tree `wineserver`, `vkd3d-proton master 71cae091b`), a `13m 44s` run through the opening sequence completed with `0` Xids and `0` GPU hangs (`made=2416`, `17,564` DLSS Quality frames). *(AI-assisted testing, log analysis, and summary.)*
Author
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-29 14:24 UTC · original

A Massage from Claude :-)

Retest on current main (829188e, v2026.11.29.01 era), Linux + RTX 5090

Thanks for picking up the watchdog: on current main the loader sets the quit flag by itself (the title's 30 s watchdog is told to quit ...), so VICTORY_POKE and 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 channel 0x0000000c, 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:

  1. DXC fallback works under Wine, but only via --set. Wine's d3dcompiler_47 refuses compose (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 shows Loaded L"Z:\...\dxcompiler.dll" ... native). Might be worth a line in docs/linux-proton.md.
  2. dxil.dll next to dxcompiler.dll is not found. dxcompiler.dll loads dxil.dll by bare name and LoadLibraryExW(..., LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | ...) on dxcompiler doesn't extend to its own imports/loads, so Wine logs Failed to load module L"dxil.dll"; status=c0000135. vkd3d-proton accepts unsigned DXIL so it still renders, but on Windows this would matter. Loading dxil.dll explicitly from the same folder first would fix it.
  3. The diagnostics build doesn't compile on 829188e (merge leftovers, 9 errors): mb() missing in crates/victory-gpu/src/copystat.rs:1349-1352, and in crates/victory-gpu/src/host.rs ~9127/9169/9180 a local let mut timing = ... Option<SubmissionTiming> (line 8673) shadows fn timing(), plus the follow-up str size errors at 9172. The normal build is fine.

Next I'll put victory-4090's latest translator (16617ea) onto current main again, as on my linux-rtx5090 branch, to check whether that still avoids the hang there.

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-29 14:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7257281551) A Massage from Claude :-) ## Retest on current main (`829188e`, v2026.11.29.01 era), Linux + RTX 5090 Thanks for picking up the watchdog: on current `main` the loader sets the quit flag by itself (`the title's 30 s watchdog is told to quit ...`), so `VICTORY_POKE` and 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 channel `0x0000000c`, `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: 1. **DXC fallback works under Wine, but only via `--set`.** Wine's d3dcompiler_47 refuses `compose` (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 shows `Loaded L"Z:\...\dxcompiler.dll" ... native`). Might be worth a line in `docs/linux-proton.md`. 2. **`dxil.dll` next to `dxcompiler.dll` is not found.** `dxcompiler.dll` loads `dxil.dll` by bare name and `LoadLibraryExW(..., LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR | ...)` on dxcompiler doesn't extend to its own imports/loads, so Wine logs `Failed to load module L"dxil.dll"; status=c0000135`. vkd3d-proton accepts unsigned DXIL so it still renders, but on Windows this would matter. Loading `dxil.dll` explicitly from the same folder first would fix it. 3. **The diagnostics build doesn't compile on `829188e`** (merge leftovers, 9 errors): `mb()` missing in `crates/victory-gpu/src/copystat.rs:1349-1352`, and in `crates/victory-gpu/src/host.rs` ~9127/9169/9180 a local `let mut timing = ... Option<SubmissionTiming>` (line 8673) shadows `fn timing()`, plus the follow-up `str` size errors at 9172. The normal build is fine. Next I'll put victory-4090's latest translator (`16617ea`) onto current `main` again, as on my `linux-rtx5090` branch, to check whether that still avoids the hang there.
Author
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-29 15:13 UTC · original · edited 2026-11-29 15:21 UTC

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-rtx5090 branch (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.dll from a game's folder). Built with cargo xwin build --locked --profile diag -p victory --target x86_64-pc-windows-msvc (no diagnostics feature needed anymore).

1. VICTORY_CODE_TABLE_AFTER=1 fixes the Xid 109 at the prologue on Blackwell

  • without it: Xid 109 (CTX SWITCH TIMEOUT, channel 0x0000000c) at the "whoosh" when the prologue loads, 3 of 3 runs
  • with it: 0 Xids in 4 of 4 runs
  • VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains alone did not help here (the env does reach vkd3d: VKD3D_CONFIG='breadcrumbs' shows in its log)

Since ce27154a names 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:

unhandled exception 0xc000001d at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x27c8f2 (code e9 69 3a a0 ff 90 90 c4 e2 79 31 c9 c5 e1 72)
  #0 +0x27c8f2  #1 0x8ba82ba  #2 +0x5152c44  #3 +0x515243a ... #16 +0x2215eca  #17 kernel32  #18 ntdll

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 that patch_sse4a has already rewritten (frame #1 is in the stub region). A jmp can'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. With VICTORY_PATCH_SSE4A=0 the crash is gone (0 of 2 runs). A CPU without SSE4a plus 56 threads means many threads hit the same insertq at once when the prologue loads.

Cost of the workaround: console CPU instructions emulated so far ... emulated=1048576 after ~13 minutes, so the patcher is worth fixing rather than turning off. Suggested fix: in the handler, if the bytes at rip are now one of our patches (e9 to a stub), return CONTINUE_EXECUTION without stepping rip; and/or write the patch so no thread can see it half-written.

3. DXC under Wine

VICTORY_DXC must go via --set; a shell export doesn't reach the title. Without DXC there is no picture at all (sound only), since Wine's compiler refuses compose (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)
GAME_EXE='Z:\home\trinity\Games\GTA6\game_scarlett_master.exe'
PROTON=/home/trinity/.local/share/Steam/compatibilitytools.d/GE-Proton11-7-tree
LOG=/home/trinity/victory-data/run-nvidia.txt
cd /home/trinity/Games/victory-nvidia || exit 1
export WINEPREFIX=/home/trinity/victory-prefix-tree/pfx
export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b"
export WINEDEBUG=${WINEDEBUG:-err+all,fixme-all}
export VICTORY_HOME='Z:\home\trinity\victory-data\home-nvidia'
export VICTORY_CONFIG='Z:\home\trinity\victory-data\victory-nvidia.toml'
export VICTORY_D3D12_ADAPTER="RTX 5090"
export VKD3D_FILTER_DEVICE_NAME="RTX 5090"
export DXVK_FILTER_DEVICE_NAME="RTX 5090"
export VKD3D_SHADER_CACHE_PATH='Z:\home\trinity\victory-data\vkd3d-cache-nvidia'
export VKD3D_CONFIG=breadcrumbs
export PULSE_LATENCY_MSEC=60
export VICTORY_LOG=info
export RUST_BACKTRACE=1
export VKD3D_DEBUG=info
export NO_COLOR=1
exec "$PROTON/files/bin/wine" \
  /home/trinity/Games/victory-nvidia/target/x86_64-pc-windows-msvc/diag/victory.exe \
  play "$GAME_EXE" --dlss off \
  --set VICTORY_CODE_TABLE_AFTER=1 \
  --set VICTORY_PATCH_SSE4A=0 \
  --set 'VICTORY_DXC=Z:\home\trinity\tools\dxc-win' "$@" > "$LOG" 2>&1

Thanks again, and thanks @⁠trustno1-coder for building the watchdog fix into the loader. Happy to test a patcher fix on this CPU.

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-29 15:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7257922859) · edited 2026-11-29 15:21 UTC 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-rtx5090` branch (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.dll` from a game's folder). Built with `cargo xwin build --locked --profile diag -p victory --target x86_64-pc-windows-msvc` (no `diagnostics` feature needed anymore). ### 1. `VICTORY_CODE_TABLE_AFTER=1` fixes the Xid 109 at the prologue on Blackwell - without it: Xid 109 (`CTX SWITCH TIMEOUT`, channel `0x0000000c`) at the "whoosh" when the prologue loads, **3 of 3 runs** - with it: **0 Xids in 4 of 4 runs** - `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` alone did **not** help here (the env does reach vkd3d: `VKD3D_CONFIG='breadcrumbs'` shows in its log) Since `ce27154a` names 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: ``` unhandled exception 0xc000001d at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x27c8f2 (code e9 69 3a a0 ff 90 90 c4 e2 79 31 c9 c5 e1 72) #0 +0x27c8f2 #1 0x8ba82ba #2 +0x5152c44 #3 +0x515243a ... #16 +0x2215eca #17 kernel32 #18 ntdll ``` 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 that `patch_sse4a` has **already** rewritten (frame #1 is in the stub region). A `jmp` can'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. With `VICTORY_PATCH_SSE4A=0` the crash is gone (0 of 2 runs). A CPU without SSE4a plus 56 threads means many threads hit the same `insertq` at once when the prologue loads. Cost of the workaround: `console CPU instructions emulated so far ... emulated=1048576` after ~13 minutes, so the patcher is worth fixing rather than turning off. Suggested fix: in the handler, if the bytes at `rip` are now one of our patches (`e9` to a stub), return `CONTINUE_EXECUTION` without stepping `rip`; and/or write the patch so no thread can see it half-written. ### 3. DXC under Wine `VICTORY_DXC` must go via `--set`; a shell `export` doesn't reach the title. Without DXC there is **no picture at all** (sound only), since Wine's compiler refuses `compose` (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**. <details> <summary>Launch script (Wine direct)</summary> ```bash GAME_EXE='Z:\home\trinity\Games\GTA6\game_scarlett_master.exe' PROTON=/home/trinity/.local/share/Steam/compatibilitytools.d/GE-Proton11-7-tree LOG=/home/trinity/victory-data/run-nvidia.txt cd /home/trinity/Games/victory-nvidia || exit 1 export WINEPREFIX=/home/trinity/victory-prefix-tree/pfx export WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b" export WINEDEBUG=${WINEDEBUG:-err+all,fixme-all} export VICTORY_HOME='Z:\home\trinity\victory-data\home-nvidia' export VICTORY_CONFIG='Z:\home\trinity\victory-data\victory-nvidia.toml' export VICTORY_D3D12_ADAPTER="RTX 5090" export VKD3D_FILTER_DEVICE_NAME="RTX 5090" export DXVK_FILTER_DEVICE_NAME="RTX 5090" export VKD3D_SHADER_CACHE_PATH='Z:\home\trinity\victory-data\vkd3d-cache-nvidia' export VKD3D_CONFIG=breadcrumbs export PULSE_LATENCY_MSEC=60 export VICTORY_LOG=info export RUST_BACKTRACE=1 export VKD3D_DEBUG=info export NO_COLOR=1 exec "$PROTON/files/bin/wine" \ /home/trinity/Games/victory-nvidia/target/x86_64-pc-windows-msvc/diag/victory.exe \ play "$GAME_EXE" --dlss off \ --set VICTORY_CODE_TABLE_AFTER=1 \ --set VICTORY_PATCH_SSE4A=0 \ --set 'VICTORY_DXC=Z:\home\trinity\tools\dxc-win' "$@" > "$LOG" 2>&1 ``` </details> Thanks again, and thanks @⁠trustno1-coder for building the watchdog fix into the loader. Happy to test a patcher fix on this CPU.
Author
Owner

@⁠brunofgmag on GitHub · 2026-11-29 16:41 UTC · original

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 on 568c5e5d.

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 hash 0452fc2d2e2fc4c3), right after the layer's batched argument clamp. The program does not go through the wave64 fold, and it translates the same with VICTORY_WAVE_FOLDED=0.

What did not explain it here:

  • The group counts read back right before that ExecuteIndirect, in later runs, were sane (at most 3,082 groups) and matched what the CPU asked for.
  • A diagnostics build with VICTORY_SHADER_LOOP_LIMIT=64 applied still hung. Note that release builds ignore that switch.

To get breadcrumbs we built vkd3d-proton with -Denable_trace=true, set VKD3D_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 loads d3d12core.dll from the prefix's system32, so the new DLL has to go there.

Two side notes from the same runs. no_descriptor_heap removed an Xid 31 we had before. On 568c5e5d, VICTORY_ALIAS_TARGETS (on by default) draws green and red blocks over cutscenes here, and =0 removes them (#1976).

We also reported the hang to vkd3d-proton: https://github.com/HansKristian-Work/vkd3d-proton/issues/3541

**@⁠brunofgmag** on GitHub · 2026-11-29 16:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7259099111) 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 on `568c5e5d`. 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 hash `0452fc2d2e2fc4c3`), right after the layer's batched argument clamp. The program does not go through the wave64 fold, and it translates the same with `VICTORY_WAVE_FOLDED=0`. What did not explain it here: - The group counts read back right before that `ExecuteIndirect`, in later runs, were sane (at most 3,082 groups) and matched what the CPU asked for. - A diagnostics build with `VICTORY_SHADER_LOOP_LIMIT=64` applied still hung. Note that release builds ignore that switch. To get breadcrumbs we built vkd3d-proton with `-Denable_trace=true`, set `VKD3D_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 loads `d3d12core.dll` from the prefix's `system32`, so the new DLL has to go there. Two side notes from the same runs. `no_descriptor_heap` removed an Xid 31 we had before. On `568c5e5d`, `VICTORY_ALIAS_TARGETS` (on by default) draws green and red blocks over cutscenes here, and `=0` removes them (#1976). We also reported the hang to vkd3d-proton: https://github.com/HansKristian-Work/vkd3d-proton/issues/3541
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:43 UTC · original

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:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7283473033) 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](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/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: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
Author
Owner

@⁠transbinaryunicorn-sys on GitHub · 2026-11-30 17:22 UTC · original

Fix for the SSE4a crash (point 2 above): #4196. With it, VICTORY_PATCH_SSE4A=0 is no longer needed; verified at the prologue, where the log now shows the race being caught at the same site that crashed before.
#4196

**@⁠transbinaryunicorn-sys** on GitHub · 2026-11-30 17:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1428#issuecomment-7286167526) Fix for the SSE4a crash (point 2 above): #4196. With it, `VICTORY_PATCH_SSE4A=0` is no longer needed; verified at the prologue, where the log now shows the race being caught at the same site that crashed before. https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/pulls/4196
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#1428
No description provided.