Skip to content

Linux on AMD: got in-game on a 9070 XT, here's what each crash was #752

Backlog

Description

@AwkGrep256

got into gameplay on linux today (hud, minimap, footsteps). world is still mostly black, same as on windows. took a few crashes to get there so writing down what fixed each one, might save someone some time.

setup: rx 9070 xt, cachyos, kernel 7.3.5, mesa 26.3.1, wine 11.22, diagnostics build cross-compiled with xwin, series x, 1.0.2.1

1. you need vkd3d-proton 3.2

the 3.1.0 that ships with proton-cachyos crashes the moment the world starts loading:

err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call.

it's the old dxil-spirv structurizer (#144). on nvidia the driver crashes on it, on amd mesa can't parse the spirv, spirv_to_nir returns null and radv dereferences it (radv_shader.c:547). i grabbed d3d12.dll and d3d12core.dll from GE-Proton11-14 and that crash went away.

2. #190 #454 #493 #579 + VICTORY_NO_WATCHDOG=1

without these i get the gpuvm fault from #714 about 50s into the world. with them it stayed in-game for about 14 minutes, then hit a different fault (address 0x0, device removed).

other stuff

  • WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n", dxgi.dll from dxvk
  • needs 12-14 gb of ram once you're in the world
  • VICTORY_KEYS=20:Enter,24:Enter,... gets through the menus if you don't have a pad set up
  • 0.2-1 fps. the gpu only spends about 20ms a frame, the rest is the cpu-side copies
  • the black screen isn't a linux thing: 533 of 2679 shaders didn't translate in my run (432 of them compute), same as World: which untranslated shaders cost the most draws (ranked from two runs) #293

happy to test prs on this setup if anyone wants amd/linux results.

Activity

  1. cdomergue commented on Nov 24, 2026

    @cdomergue

    I heard footsteps after the intro on native Windows D3D12 with an RTX 4070 SUPER, 32 GB of RAM and the Series S profile (game 1.0.2.1). The screen stayed black at that point. I couldn't see the character or the world.

    I combined #190, #454, #493 and #579 on 58fed37. My first run had audio, but all 21 captured frames were black. After adding the PresentX compositor from #211 and enabling its Windows shader compiler dependency, I could see the Rockstar logo, loading artwork and French subtitles. I used the same save for both runs.

    The second run lasted 7 min 18 s from launch before D3D12 reported DXGI_ERROR_DEVICE_HUNG (0x887A0006). The log recorded 2,945 distinct shader hashes at first bind and 598 translation failures by unique hash, including 481 compute shaders. The last timing sample was 0.5 fps, with about 1.94 s on the GPU out of 2.20 s per frame.

    I've pushed the exact branch I tested (818bd3c). To try it from PowerShell with your own game files:

    git clone --branch test/issue-752-series-s-menu --single-branch https://github.com/cdomergue/VIctory.git victory-752
    cd victory-752
    cargo build --locked --profile diag --features diagnostics -p victory
    $env:VICTORY_GAME_DIR = 'D:\path\to\game'
    $env:VICTORY_NO_WATCHDOG = '1'
    .\target\diag\victory.exe run "$env:VICTORY_GAME_DIR\game_scarlett_master.exe" --execute --console series-s

    I left VICTORY_SKIP_WAVE64 unset and used manual input.

  2. AwkGrep256 commented on Nov 24, 2026

    @AwkGrep256
    Author

    thanks, tried your branch on linux.

    #211's compositor compiles its shaders at startup with D3DCompile, and that fails with wine's builtin d3dcompiler (E_FAIL, no error text). after that the next host list fails to reset and the game exits, so it doesn't fall back to the old present path. installing microsoft's d3dcompiler_47 (winetricks d3dcompiler_47) gets around it. precompiled bytecode like #190 did for the clamp would avoid needing it at all.

    with that, series s gets past the black screen on linux too, loads the world, and ran about 3.5 min before a gpu hang (ring gfx timeout, device removed). i also merged my fsr branch (#730) on top, and the game's ffxDispatch now goes through amd's pc upscaler in the world.

  3. DaviTostes commented on Nov 24, 2026

    @DaviTostes

    Reproduced the vkd3d 3.1 → 3.2 part on a different RDNA4 card, with the full 1.0.2.1 dump:

    • RX 9060 XT (RDNA4, RADV 26.3.1 / Mesa 26.3.1-arch1.3), Arch Linux, kernel 6.18.x
    • Wine 11.22 (system package), DXVK 3.1.1 dxgi, WINEDLLOVERRIDES="d3d12,d3d12core,dxgi=n"
    • vkd3d-proton 3.1.0 (system/GI 11-12) → 3.2.0 (DLLs from Proton Experimental's vkd3d-proton/x86_64-windows)
      Build details (per the report template): VIctory main ffe310e, release build (cargo xwin build --release -p victory, MSVC). victory run prints build unknown (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93), package 1.0.2.1. Command: wine victory.exe run <dump>\game.exe --execute with VICTORY_KEYS=… and the overrides above.

    Not tested: Windows/NVIDIA, sessions longer than a few minutes, and the #454/#493/#579 stack.

    The before/after above are actual game runs with that dump, not synthetic shaders.

    Before (3.1): menus at 30 fps, then the first mesh pipeline:

    INFO victory_gpu::pipeline: first bind pipeline=…frame=1405 stage="mesh" …
    err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call.
    

    process exits 3; crashes.log has nothing.

    After (3.2): same head, same dump, same command:

    INFO victory_gpu::host: host mesh shader support mesh=true
    INFO victory_gpu::pipeline::host: host mesh pipeline shaders=[mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10]
    

    The mesh pipeline is created and the title keeps rendering (11–17 fps in the scene, 30 fps menus, intro 11–15 fps). No vkCreateGraphicsPipelines crash so far in the same spot. The run is still going; the next thing to look for is the #714-style page fault.

    One gap: VICTORY_NO_WATCHDOG is not in main (ffe310e), so I could not apply your #454 part of the recipe yet. If #454 + #493 are the next step for staying in-world, I can test that stack on this card and dump.

  4. AwkGrep256 commented on Nov 24, 2026

    @AwkGrep256
    Author

    Yes, #454 is only in its PR so far. The easiest way to test it is cdomergue's branch above. It has #190, #454, #493 and #579, plus #211, merged on top of main:
    https://github.com/cdomergue/VIctory/tree/test/issue-752-series-s-menu

    On Wine, #211 needs Microsoft's d3dcompiler_47 (winetricks d3dcompiler_47). Without it, the new present code fails and the game closes right away. With it and VICTORY_NO_WATCHDOG=1, I got about 14 minutes in the world on a 9070 XT before a GPU fault. It would be good to know if the 9060 XT does the same.

  5. MichaelSmithAI commented on Nov 24, 2026

    @MichaelSmithAI

    @AwkGrep256, there is a Wine-builtin comparison for the #211 setup failure you reported. On our RTX 4090, Wine’s builtin compiler produced both compositor shaders, then root-signature creation from the vertex shader blob returned E_FAIL. A follow-up to #211 serializes that root signature explicitly and finishes compositor setup before resetting the host command list. The original single-plane path remains usable if setup fails. With that change, a two-plane test produced the same blended pixels with Wine’s builtin and Microsoft’s compiler. PresentX follow-up, head 5bb011d

    If you compare it on your existing stack with Wine’s builtin compiler, the result we’re missing is whether the loading artwork appears and the next list resets successfully. That would test the presentation change in-game. The later world GPU fault is a separate question.

  6. AwkGrep256 commented on Nov 24, 2026

    @AwkGrep256
    Author

    Tried 5bb011d on Linux with Wine's builtin compiler (d3dcompiler_47=b, Microsoft's DLL off). RX 9070 XT, Wine 11.22, vkd3d-proton 3.2.0, Series S.

    No compositor error this time and the list resets fine. Loading artwork shows up and the world starts loading. I stopped it at my memory limit after about 2.5 min so I can't say anything about the later GPU fault, but the winetricks step isn't needed anymore with this.

  7. crashbashash commented on Nov 24, 2026

    @crashbashash

    Same crash on RDNA2, with the exact dxil-spirv versions, in case it helps people pick a Proton build.

    Setup: CachyOS, RX 6800 XT (RADV, Mesa 26.2.6), main at ffe310e, diagnostics build via cargo-xwin, 1.0.2.1.

    With GE-Proton11-6 (vkd3d-proton 3.1.0, build c9c6bf2e), the game exits with code 3 on the first load:

    err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call.
    
    • The crash is in the fragment shader of that pipeline, not the mesh shader. In a native Vulkan test outside Wine, the same SPIR-V also crashes RADV when paired with a trivial vertex shader.
    • vkd3d-proton's SPIR-V for it fails spirv-val: block … exits the loop headed by …, but not via a structured exit. It's a waterfall loop (from ffe310e) whose LOOP_LIMIT exit (discard + return) leaves from the latch.
    • I ran the same DXIL (from VKD3D_SHADER_DUMP_PATH) through the dxil-spirv CLI with --bindless --enable-shader-demote:
    dxil-spirv ships in result
    1b949ec GE-Proton11-6 (vkd3d-proton c9c6bf2e) crashes in-game (the run above; not run through the CLI)
    8b48f0e (2026-10-26) vkd3d-proton v3.1 release invalid SPIR-V
    34f0ff84 (2026-11-20) GE-Proton11-13 / 11-14 (vkd3d-proton cae8353ed) valid
    7c04863 (2026-11-24) dxil-spirv master valid

    The structurizer commits from 2026-11-16/17 (4a73ab4f, a781dce9) look like the fix; I didn't bisect.

    So any Proton whose vkd3d-proton includes dxil-spirv from 2026-11-20 or later works without swapping DLLs. GE-Proton11-14 is one: with it (plus the d3dcompiler_47 workaround from #170), the game gets past the load into the first mission's cutscene: subtitles and audio, scene dark as on Windows.

    I also tried #844's branch (b7cc788) on vkd3d-proton 3.1.0. Its single-ret change gets past the pixel shader that crashed main, but the same load then crashes in vkCreateComputePipelines (Exception 0xc0000005 in Unix call, exit code 3) on a compute pipeline. So #844 alone isn't enough on older Proton builds; the newer dxil-spirv is still needed.

    No game data used. AI-assisted (Claude Code).

  8. jtrudeau1530 commented on Nov 24, 2026

    @jtrudeau1530

    Additional AMD/Linux confirmation on clean ffe310e (diag): RX 7900 XT, RADV 26.2.3, Wine 11.18, Series X.

    With vkd3d-proton 3.1.0 / 85fb5de50663096, startup UI worked but the first mesh graphics pipeline ended the process with the same vkCreateGraphicsPipelines 0xc0000005 Unix-call exception (exit 3). Changing only d3d12.dll + d3d12core.dll to installed Proton Experimental's 3.2.0 / cae8353ed7959c4 got past that failure and into the world-stage workload. Native Microsoft d3dcompiler_47 was kept in both runs; the indirect-clamp creation test passes with it, whereas Wine's built-in compiler fails on RWByteAddressBuffer.Load.

    Readable startup/settings UI ran at about 30 fps. The later scene remained dark with audio, at 0.2–0.4 fps; this is not a visible-world or playability claim. One measured interval was 2233 ms/frame: 2077 ms preparing (1988 ms copies), 32 ms GPU, 94 ms copy-back. It also dropped 1511 draws without a host pipeline and 2035 indirect; 415 translation refusals over the run. User closed the window normally after this observation, so no long-run stability result.

    Next comparison is the race-safe mapped-region fallback discussed in #783, against this unchanged source/backend baseline. No game-derived files attached.

  9. Marvisak commented on Nov 25, 2026

    @Marvisak
    Owner

    Automated triage for the maintainers.

    Thanks, this is a useful Linux/AMD write-up (RX 9070 XT, CachyOS, Mesa 26.3.1, Wine 11.22). The failures map to existing reports:

    @AwkGrep256, for the later fault (address 0x0, device removed after about 14 minutes) please add the VIctory commit or exact PR stack and the full host GPU device removed ... line. A rerun on current main with #454 and #579 would show whether that fault is still there.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions