Linux/Proton: RTX 5090 crashes with VK_ERROR_DEVICE_LOST and NVIDIA Xid 13 (MMU fault) #721
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#721
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?
@DuckersMcQuack on GitHub · 2026-11-28 04:25 UTC · original
Had gpt assist with assembling the crash logs and whatnot. Included last 250 lines of the proton log.
Launched victory.exe via steam.
On CachyOS with an RTX 5090 and NVIDIA driver 620.70.06, the latest victory.exe on Proton Experimental bleeding-edge build 11.0-482815 hits VK_ERROR_DEVICE_LOST (0x887A0005). The kernel logged NVRM: Xid 13: Graphics SM Warp Exception: MMU Fault at 05:19:50. I also saw this error pattern with GE-Proton11-14 and VK_NV_raw_access_chains disabled.
victory-crash.txt
@kibagami-nc on GitHub · 2026-11-28 04:59 UTC · original
This looks like the RTX 5090 Xid 13 that #550 is about.
Some translated programs keep the console program's code as a constant table. When a load reads the code at a computed offset, that table is the whole program, 16 to 18 KiB in the lighting computes. NVIDIA's compiler copies a table that large into every thread's local memory. On GB202, those programs fault with Xid 13 (MMU fault).
#550 adds
VICTORY_CODE_TABLE_AFTER=1, which starts the table after the instructions so it stays small. It is off by default.With a build that has #550 (its branch, or a release once it is merged), could you try
VICTORY_CODE_TABLE_AFTER=1and say whether the Xid 13 andVK_ERROR_DEVICE_LOSTstill happen? The first start translates the shaders again, since the switch is part of the shader cache's key.@DuckersMcQuack on GitHub · 2026-11-28 05:43 UTC · original
Thanks! Is there a prebuilt victory.exe for PR #550? I can test it with VICTORY_CODE_TABLE_AFTER=1 and report whether Xid 13 and VK_ERROR_DEVICE_LOST still occur.
@kibagami-nc on GitHub · 2026-11-28 06:12 UTC · original
There is now: a test build of #550 on top of current
main(63b902f), as a pre-release on my fork.https://github.com/kibagami-nc/VIctory-NVIDIA/releases/tag/test-pr550-20261128
The download is
victory.exe, SHA-2566e0fdaef8766ed6423e15fa8cdd19fd48d1178e9ae05a0d303e9002d8e50521c.To test it:
victory.exeand put this one in its place.VICTORY_*variables it does not know, soVICTORY_CODE_TABLE_AFTER=1 %command%in Steam's launch options would not reach the game. Use one of these instead:VICTORY_CODE_TABLE_AFTER=1tovictory-settings.txt. The first line of your play log gives its path asVICTORY_MENU_FILE; in the Proton prefix it is underdrive_c/users/steamuser/AppData/Local/victory/.--set VICTORY_CODE_TABLE_AFTER=1afterplayon the command line.When the switch is on, the first line of the play log lists
VICTORY_CODE_TABLE_AFTER=1among the switches.Without the switch, this build is the same as
main. A run with it and one without, at the same place, is the cleanest comparison. If it still crashes, the play log and the kernel's Xid line from that run will tell us what to look at next.@DuckersMcQuack on GitHub · 2026-11-28 14:09 UTC · original
One step further! It now got past crashing and shows "vice city two years ago" after the initial loading. But no video, but has audio at least. Included stripped log file with relevant errors.
And 2 more issues, though before i create those, should i make 1 new issue per unique problem?
One related to startup where cli window asks to download the 2 files each time i launch the game
Second one where it doesn't start the precompiler when i select it in f1 menu, i press enter twice so the game can restart, or close first, then start, but precompiler doesn't start. Could this be added to the victory-settings.txt to manually trigger in the meantime?
victory-graphics-warnings.txt
@kibagami-nc on GitHub · 2026-11-29 00:10 UTC · original
That's good news: with
VICTORY_CODE_TABLE_AFTER=1, the Xid 13 /VK_ERROR_DEVICE_LOSTis gone on the 5090, which is what #550 is about. I've added your result to #550.Yes, one issue per problem is best. Your two launcher problems share one cause, though: both go through Windows PowerShell, which Proton doesn't have.
1. The download question at every start.
victory.exefetches NVIDIA's DLSS files (and AMD's FSR 3 files, when those are needed) by running a PowerShell script. Under Proton the script never runs, the files never arrive, and the next start asks again.docs/linux-proton.mdalready notes that the built-in download needs Windows PowerShell. Two ways out:nonce to each. That writes adeclinedfile and the question isn't asked again. DLSS and frame generation then stay off, as now. If DLSS is picked in F1, the launcher tries to fetch at every start without asking, so set DLSS to OFF there too.streamline-sdk-v2.14.16.zipfrom github.com/NVIDIA-RTX/Streamline (Releases, v2.14.16).bin/x64intodrive_c/users/steamuser/AppData/Local/victory/nvidia-sdk/Streamline/bin/x64/in the game's Proton prefix:sl.interposer.dll,sl.common.dll,sl.dlss.dll,sl.dlss_g.dll,sl.reflex.dll,sl.pcl.dll,nvngx_dlss.dllandnvngx_dlssg.dll.sl.interposer.dllis there, the launcher stops asking.2. F1's PRELOAD SHADERS. The second Enter saves and closes the game, then starts the launcher again through PowerShell with the preload asked. Under Proton that new start never happens. Settings in
victory-settings.txtdon't start a preload, but the launcher takes it on its command line. In Steam's launch options, add--preloadafterplay:What's done is kept, and a stopped preload goes on from there the next time. So take
--preloadout again once one has finished, or every start will recount the shaders first.docs/linux-proton.mdalso notes that vkd3d-proton couldn't open its cache's write file during one preload, so how much of it Proton keeps hasn't been measured yet.3. No picture, with sound, after "Vice City, two years ago". The attached file is Proton's log, which doesn't show what the layer did. Three lines in it stand out:
Failed to parse root signature, three times, and the 4,194,304 and 2,097,152 view heaps that vkd3d-proton refuses (its limit is 1,041,451). The layer's own play log from that run would tell what follows from them. It's the newestvictory-nvidia-play-*.logindrive_c/users/steamuser/AppData/Local/victory/logs/, and these lines matter most:host view heap;shader does not translateanddropped;DLSS;fps, … draws/frame).Please open that one as its own issue, with the play log attached.
@DuckersMcQuack on GitHub · 2026-11-29 05:53 UTC · original · edited 2026-11-29 05:55 UTC
It now got past the intro cutscenes etc, basically 1 frame every 8+ sec more or less, and no graphics are being rendered. Audio plays though. Included the last 250 lines that shows the same repeated error. The OG log is 2.6GB. This is after precompiling. and dlss added, but disabled, as dlss caused no video whatsoever. The images of the intro videos of vice city's pink art shows, but nothing else.
victory-crash.txt
@kibagami-nc on GitHub · 2026-11-29 06:19 UTC · original
Good progress! Those 250 lines aren't the error, though: they're the layer working as intended, made very slow by Wine's trace.
EXCEPTION_ACCESS_VIOLATION,info[0]=1= write). The handler at0x140463000, which isvictory.exe, records it, and the write goes on:returned ffffffffis "continue". TheQueryWorkingSetExlines are the layer checking pages too. It works the same way on Windows: that is how the layer sees the title's writes to memory it keeps copies of.+sehchannel on, every one of them prints about ten lines. That's your 2.6 GB log, and likely most of the 8 s a frame. Run withWINEDEBUG=-all, or at least without+seh, and look at the frame rate again.For the missing picture, the useful log is victory's own, not Wine's. It's
victory-nvidia-play-<date>-<time>-<number>.login%LOCALAPPDATA%\victory\logs\inside the prefix, from a run without the Wine trace. Zipped, it should fit under GitHub's 25 MB limit.@DuckersMcQuack on GitHub · 2026-11-29 06:43 UTC · original
Thankfully it was only 8MB. The reported run's log.
victory-nvidia-play-20261129-050023-320.log
@kibagami-nc on GitHub · 2026-11-29 06:52 UTC · original
Thanks, this log likely has it, and the fix is already on main.
no argument clamp: indirect execution dropped. Most of the game's picture is drawn that way, which fits audio with no graphics.8f03fa2b: when the system's compiler refuses the clamp, DXC compiles it. Neither v2026.11.28.03 nor my #550 test build has it.So the next step is a build of current main, or the next release, plus DXC beside
victory.exe:dxcompiler.dllanddxil.dll, frombin/x64of Microsoft's DirectXShaderCompiler releases. Proton has no DXC of its own.VICTORY_CODE_TABLE_AFTER=1any more. Since #1880, the short code table is the default.If the clamp works, the log will say
clamp: compiled by DXCnear the start.@kibagami-nc on GitHub · 2026-11-29 07:01 UTC · original
@DuckersMcQuack here's a prebuilt
victory.exeof currentmain(e1f2eb60), unchanged: test-main-20261129. It's a test build, not an official release; its page has the SHA-256.It has the DXC fallback for the argument clamp (
8f03fa2b) and #1880, soVICTORY_CODE_TABLE_AFTER=1isn't needed. In short:victory.exe, then put this one in its place.dxcompiler.dllanddxil.dllbeside it, frombin/x64of Microsoft's DirectXShaderCompiler releases.WINEDEBUG=-all.clamp: compiled by DXC.Then the question is whether the picture shows. The play log of that run will tell either way.
@kibagami-nc on GitHub · 2026-11-29 07:06 UTC · original
I'm away for the rest of today and back tomorrow. I'll read your results with the test build then: the play log is what tells.
@kibagami-nc on GitHub · 2026-11-29 20:37 UTC · original
A correction to what I wrote yesterday, now that v2026.11.29.01 to .03 are out:
8f03fa2b).play --set VICTORY_CODE_TABLE_AFTER=1, or with a lineVICTORY_CODE_TABLE_AFTER=1invictory-settings.txt.@DuckersMcQuack on GitHub · 2026-11-30 02:34 UTC · original
Nice! Now with the dll's latest exe and precomp of the latest shaders, the game has 7 fps and graphics!
Controller doesn't work though. (xbox one x over bluetooth), wasd works, but not mouse.
victory-nvidia-play-20261130-022553-320.log
@trustno1-coder on GitHub · 2026-11-30 15:48 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:
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.github-bot referenced this issue2026-11-30 22:19:22 +00:00