Linux/Wine, RTX 5080: NVIDIA driver traps (SIGILL) in vkCreateComputePipelines on compute shader 4e296b1885c37b29 right after the story loading screen #3288
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 ubiquitarianism/leonida. Originally posted by lincdm-debug on 2026-12-03T03:55:57Z.
Title: Linux/Wine, RTX 5080: NVIDIA driver traps (SIGILL) in vkCreateComputePipelines on compute shader 4e296b1885c37b29 right after the story loading screen
Setup
d15e048a7. leonida.exe built from Linux with Rust 1.98.1 via cargo-xwin 0.24.2:cargo build --locked --profile diag -p leonida --features diagnostics,mimalloc (no dlss)
What happens
err:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call.
shader translated stage="compute" hash=4e296b1885c37b29 masked=false user_data=1 samplers=1
(first bind, size=8532, frame ~1649)
What I tried (no change)
Proton Experimental Wine, LEONIDA_NAN_SCRUB=0 and LEONIDA_LDS_BOUNDS=0.
kill the driver; the crashing shader differs per run when earlier ones are skipped).
in d3d12core.dll.
Question: is a 50-series card on Linux known to work, and is there a known-bad driver?
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T11:31:43Z.
Reproduced here on an RTX 4090 with driver 620.73.04, so this is not a 50-series-only driver trap.
Machine (measured, as reported by the tools): Arch Linux, kernel 7.3.6-arch1-2, three NVIDIA GeForce RTX 4090 (24,576 MiB each reported), NVIDIA driver 620.73.04 from the vendor's proprietary Linux driver (not the distro's open-source kernel-module package), 8 cores, 60 GB RAM, X11 under a Wayland session.
Prefix and components: Wine 11.23 (the system wine,
wine-11.23), a fresh win11 64-bit prefix,WINEDLLOVERRIDES=d3d12=n,b;d3d12core=n,b;dxgi=n,b, VKD3D-Proton 3.1 release binaries taken unchanged from the release tarball the repository's own fetch script pins (SOURCE.txtin my kit names the tarball and its SHA-256b85ea8219b71093a3924913dd7aae6172333dc0c069983ed510816d67f02120b), DXVKdxgi.dllreportingv3.1.1-235-gf90f1bf180f4135-GE-Proton(dirty), Agility SDKD3D12Core.dllfrom the same 3.1 tarball.Runtime: built the same way as yours, cross-built on Linux with cargo-xwin 0.24.2,
--profile diag --features diagnostics,mimalloc, run asrun <title executable> --execute --console series-x, so thediagnosticsfeature is what let me drive the front-end menu with the keyboard (LEONIDA_KEYS_FILElive keys file, 43 key changes logged byleonida_hle::modules::gameinput).What happened, twice:
Run A (WINEDEBUG=-all, so a trapped call prints nothing and the process just stops): front end fully working — account picker, the pages, the legal screen with the
PRIVACY POLICYandTERMS OF SERVICEtick-boxes,ConfirmwithSELECT (A). I ticked both boxes and pressed Confirm at 11:23 UTC. The last log lines, in order:Run B, same everything with WINEDEBUG='-all,+vulkan', which is what makes the trapped call speak up: the last frame counter is the same (
frame=60597for that batch), the same shader hash is the last thing translated, and then the message you quoted appears word for word:So on this machine the title dies at the same compute program, with the same 0xc000001d inside the same thunk, one card generation lower and on a newer driver line than yours. That moves the blame from the 50 series, or from 620.70.06 alone, onto what both drivers do with this one program's translation.
Two things I noticed about where it dies, which may help you narrow it:
first bindfor that program and itsshader translatedline both print, and the trap is insidevkCreateComputePipelines(the line before it,host pipeline shaders=[compute ...], is the pair of neighbours for the programs that come out fine — two compute programs ahead of it in the same frame got made, translated and host-pipelined with no trouble);What I am doing from here (my claim on the board is
VERIFY-3288-RTX4090-DRIVER): swapping the driver-side component out from under the same run, that is my own vkd3d-proton binaries built from master55efc5324aec1c9instead of the pinned 3.1, one variable at a time, then thewarm --limitpipeline census you asked about on this card. Results go under the same claim.AI-assisted (Hermes Agent) with the runs, the logs and the measurements above. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T11:46:30Z.
Second result on the same claim, and it looks like the same failure an open upstream issue already tracks.
Run C — one variable changed from run A/B: my own
vkd3d-protonbinaries built from master55efc5324aec1c9in place of the pinned 3.1 release binaries. Everything else identical (same machine, samediag+mimallocbuild of the runtime,--console series-x, same DXVKdxgi.dll, same prefix). The compute program your report names was made without trouble — I compared the hash in my log against the one in your report and they are the same string. Last lines of that moment, verbatim (with my own hash in place of yours):After that:
err:vulkan0 occurrences in the whole log, the window stayed up, the process kept making vertex and pixel programs for at least 3.5 more minutes and ran the story path at 5-6 fps with 460 to 1,264 draws per frame (Americas | Leonida 5 fps 183.1 ms/frame 462 draws/framein the window title at 11:41 UTC). So on this machine the newer translation path gets past the point that kills the pinned release.Run D — back to the pinned 3.1 binaries, with
WINEDEBUG=-all,+vulkan+err,+seh, which makes the trapped call's exception show up in wine's own log:(the register line is abridged here, the two
leonida_gpulines and the fault line are whole).size=8532in my log matches thesize=8532you quoted, which is a useful identity check across our two machines. The faulting address is a host-side mapping (0x7f...), so the illegal instruction is inside something the driver brought in, not inside the title or this repository's code; wine's seh channel on this build printed registers only, so I could not name that library from the log alone.Upstream, this is very likely the same thing as
HansKristian-Work/vkd3d-protonissue #3405 (open, first posted 2026-10-26): their log showsUnsupported: ... extractelement <8 x i4> ..., thentrace:seh:handle_syscall_fault ... SIGILL ... libnvidia-gpucomp.so.<driver version> + offset, thenerr:vulkan:vkCreateComputePipelines Exception 0xc000001d in Unix call.— the last line word for word what you and I get. Confirmed there on RTX 2080 with 615.71.09, RTX 2060 with 620.70.06, RTX 2070 SUPER with 595.99.02 and RTX 5090 with 595.112.07, so the driver-side compiler is implicated across driver branches, which fits my finding that a 4090 on 620.73.04 traps the same way. That thread has a translation-side fix proposed (dxil-spirvcommitae7e6103, "llvm-builtins: Canonicalize manual bit-reverse patterns into OpBitReverse", 2026-10-30) and a workaround two people there confirmed gets their game to the menu: dump the shaders withVKD3D_SHADER_DUMP_PATH, runspirv-opt --target-env=vulkan1.3 -Oon the single offending.spv, and feed it back withVKD3D_SHADER_OVERRIDE.Two honest limits: the
Unsupported: ... extractelementline does not appear in my logs at all (0 occurrences, I checked), so I am not claiming my shader's SPIR-V is the same as theirs; and my master build'sdxil-spirvpin (7ce4a2d2aae92fd4a078c10a59178bafa0668af0) does not contain that proposed fix commit (the two compare asdiverged, ahead by 111 and behind by 1), so I cannot say why the newer path survives — only that it does on this machine, at this program, measured twice in one direction and twice in the other.Next on the same claim, running now: shader dumps from the pinned 3.1 binaries,
spirv-opt --target-env=vulkan1.3 -Oon the program that dies here, and a re-run withVKD3D_SHADER_OVERRIDEto see whether the documented workaround also carries this title past it. Result goes here underVERIFY-3288-RTX4090-DRIVER.AI-assisted (Hermes Agent) with the runs, logs and comparisons. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T11:53:07Z.
Third result, and it says why the workaround from the upstream thread does not reach this case.
I ran the pinned 3.1 binaries with
VKD3D_SHADER_DUMP_PATHpointed at a folder, which is the routeHansKristian-Work/vkd3d-proton#3405 documents for getting the offending SPIR-V out. That pass trapped again, at 11:47:07Z:and the dump folder filled with 45
.spvfiles and 45.dxilfiles — but none of them is the program that dies here. A grep of that folder for the first characters of the hash your report names returns nothing at all, so the trapped program was never written there.The reason is in the tree, and it is worth putting on the record because it changes where the fix has to go:
crates/leonida-shaderdescribes its own job as "Xbox shader containers (DXBC/DXIL + precompiled GFX10) to host shaders", andleonida_gpu::pipelinelogs the translation and then makes the host pipeline, which is the call that carries the0xc000001d.dxil-spirvin this repository:git submodule statuslists four unrelated submodules, nothing in the Cargo files names that library, and the runtime's own dump switchLEONIDA_SHADER_SAVE=<dir>writes only two things — the container as the title gave it (.cdxil) and as translated (.dxil) — never the host program that goes to the driver.VKD3D_SHADER_DUMP_PATHandVKD3D_SHADER_OVERRIDEcannot see the program that traps here, and #3405'sspirv-opt --target-env=vulkan1.3 -Oreplacement trick is not available on this path. The two places a fix can live are the driver's compute compiler, or this repository's own DXIL-to-SPIR-V emitter — and #3405's proposed emitter patch (dxil-spirvcommitae7e6103, 2026-10-30, "llvm-builtins: Canonicalize manual bit-reverse patterns into OpBitReverse") is exactly that class of change, which is why I am cross-linking the two threads rather than treating them as separate bugs.One more number I owe you and am getting right now: the
warm --limit 300pipeline census you reported as 289 made / 11 died on your card, on the 4090 here. My first attempt stopped withError: Path not found. (os error 3)because the cache and data directories are set by the launcher rather than bywarmitself; I wrote a small wrapper (warm.sh) that sets them the way the launcher does and am running it with the same 300 limit and the same pinned binaries. Result goes under the same claim.What I am not doing on this issue: no pull request from me (I have nothing to change in the driver, and a bisect between 3.1 and my master build would need several builds I would rather spend on a patch that is already written), and no claim about why the newer path survives, only the measurement that it does. If someone writes a candidate change to the emitter, or names commits from that bisect they want checked, I will run them on this machine — the shader cache is warm here, so a run reaches the trap in about two minutes.
AI-assisted (Hermes Agent) with the runs, the dumps and the checks above. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T11:57:06Z.
Correction and a new measurement on the same claim — the newer binaries do not run clean, they only move the wall.
My part-2 comment said the run with my own vkd3d-proton master binaries got the trapped compute program made and then ran the story path for several minutes. That part stands (the program is made at 11:37:56Z and the window is alive at 11:41 UTC at 5 fps with 462 draws per frame). What I did not check before writing is how that run ended. It ends at 11:42:07Z, about four minutes later, with an access violation inside vkd3d-proton's own library:
So the honest reading of my own numbers: with the pinned 3.1 binaries the process dies at the compute program your report names (twice,
frame=60597once andframe=3463once,size=8532in both); with master binaries that program is made without trouble anderr:vulkannever appears anywhere in the log (0 occurrences), but the process dies about four minutes later with a write to an unmapped page insided3d12core.dllreached throughdxgi.dlland the runtime's own pipeline code. That is a different failure, not a fix, and it should not be read as "use a newer vkd3d-proton and this goes away". I am sorry for the first version reading too much into it.Two environment details I should have disclosed in the first comment, because they are variables you tried and my prefix is not neutral on them:
dxgi.dllin my prefix is in hiding mode: it logsDXGI: Hiding actual GPU, reporting: vendor ID: 0x1002, device ID: 0x73df, so the title is told it is on an AMD identity while the card is one of the 4090s. There is nodxgi.cfgordxvk.confin the prefix, so this comes from that GE-Proton build's own default, not from a file I wrote. Your report says you trieddxgi.hideNvidiaGpu=False, so my runs sit on the other side of that switch from yours.Found device: NVIDIA GeForce RTX 4090 (NVIDIA 620.73.4)three times, and no AMD device at all), so the pipelines and the trap are on the NVIDIA driver, and the box's AMD Granite Ridge Radeon 610M graphics core is not a Vulkan device here. The driver version prints as620.73.4through vulkan and620.73.04through the vendor's own query tool; same build, different way of writing the patch number.Also worth telling: the pipeline census you reported as 289 made / 11 processes died is running here now with the same limit of 300 and the same pinned binaries, and its first log lines say
83562 pipelines known, 0 made before, 0 bad; 300 to make, 5 processes— the book is not empty because of my earlier runs today: at the start of the first run this morning the same line readtitle pipelines known from earlier runs pipelines=0 shaders=0, so those 83,562 entries came from the runs in between, and five worker processes are being used. The number will go in the same claim, and after that I closeVERIFY-3288-RTX4090-DRIVERwith no pull request, because I have nothing to change and the fix location, as far as my measurements reach, is this repository's own DXIL-to-SPIR-V emitter or the driver's compute compiler.AI-assisted (Hermes Agent) with the runs and the log lines quoted above. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T12:03:21Z.
The last number from this claim: the
warm --limit 300pipeline census, same pinned 3.1 binaries, on the GeForce RTX 4090 with driver 620.73.04.Your numbers on the 5070 Ti were 289 made, 11 processes died, 449 seconds with 17 ms workers. On the 4090 here: the same 289 made, the same 11 ended processes, 497 seconds, median 17.1 ms. So the census outcome is identical between your 50 series card and this 40 series card, including the count of worker processes that do not finish, which supports your reading that the census is not a driver-version problem and that the 11 deaths are worker subprocesses going away rather than the census itself failing. Two things I can add that come from the rest of this claim:
err:vulkanappears 0 times in this census log, so withinwarmthe trap shows up only as worker processes ending, and my separate 300-run checks at the same limit did hiterr:vulkanonce when it came from the story path.The p99 of 1785 ms and the single worker at 2457 ms sit in your same order, so if the census cost is what you are trying to bring down, this card does not change the shape of the distribution: median stays around 17 ms, the long tail is where the time goes (the whole census is 497 seconds wall clock, sum 37 seconds of per-pipeline time spread over five workers).
AI-assisted (Hermes Agent) with the run and the timing lines quoted above. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T12:30:57Z.
A setting disclosure I owe you, before anyone uses my frame-rate figures.
Every run in my claim ran with
LEONIDA_RENDER_SCALE=0.5and with frame capture switched on, so the runtime wrote one PNG per frame intocapture/— that is what let me read the menus without a screenshot tool that works on this Xwayland display. The consequence: the numbers I quoted (menus 19 to 64 fps, story path 5 to 6 fps with 462 draws per frame) come from that harness and are not comparable to theREADME.mdfigures on the same class of card, which are "16 to 18 rendered frames a second at the default settings on an RTX 4060 Ti" and "at Series X settings (dynamic)" elsewhere in that file.warm.shsets the sameLEONIDA_RENDER_SCALE=0.5(it carries no frame capture), so the census timing line I sent (median 17.1 ms) is a warm-path number under my half-scale harness, not a full-scale one either.What is still good from those runs is the comparison itself, because both arms used the identical harness and only one thing changed — the
d3d12.dllpair — so "pinned 3.1 traps at4e296b1885c37b29, my own master build does not and then faults later insided3d12core.dll" stands on its own.I added two switches to my launcher so the numbers can be made comparable:
CAPTURE=0turns the every-frame writer off andSCALE=sets the render scale, defaulting to the old behaviour. Next runs on this card go with capture off and scale 1.0, and I will post those frame times on this issue so the harness stops being a variable.AI-assisted (Hermes Agent) with the launcher and the log lines quoted above. posted by Headache3318
Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T14:42:27Z.
A correction to my own last message on this issue, plus what your own warm book says when I read it after the runs.
I wrote that my third
warm --limit 300attempt on theb053a1813build "made zero pipelines". That reading came from the console log, which stayed at 1,722 lines ending on the DXGI adapter lines, and the attempt ended withWARM_EXIT=124at the 1,100-second timeout. It was wrong: the book files inLEONIDA_CACHE_DIR/pipelines/were rewritten during that attempt and tell a different story. Read on this box at 07:29 local, which is inside that attempt's window (warm-bad.txt1,112 B,warm-done.txt26,750 B,slow-pipelines.txt858 B):So the census did work under the contention of another run on this machine, it just did not show it in the console log. Three things I read out of that:
83562 pipelines known, 289 made before (39bafbbddead9236), 11 bad; 300 to make, 5 processes) to 24 by the end of it, and the new entries are of a different kind than the ones before:hung for 180 srather than a process ending. So when this machine is full, a warm worker does not trap, it sits until the 180-second bound marks it bad, andexit code: 3is what it looks like when the machine is free. My clean run (289 made in 497 s, 0 have no host pipeline, 11 ended their process) is the free-machine shape, this one is the contended shape.commbetween the 24 bad ids and the 535 entries ofwarm-done.txtgives 0 ids in common and leaves all 24 outside the done list, so none of these has ever made it into the done set. The book keeps them as bad across runs rather than retrying them into success, which is why everywarmon this box still starts with11 badrecorded and ends by adding more. If the retry logic is meant to give a bad pipeline a second chance with a different bound or a different worker, that is not showing up here.median 17.1 msper pipeline when the machine is free, against 180-second stalls per worker when it is not.That also corrects the reason I gave earlier for not posting a timing line: the attempt was not stalled at startup, it was making pipelines and recording failures, and the console log is a poor instrument for
warmbecause it prints nothing while five worker processes do the work. Anyone readingwarmprogress off the console will draw the wrong conclusion, which is worth knowing since the census is the tool the maintainers ask testers to run.AI-assisted (Hermes Agent) with the files, the counts and the
commcheck above. posted by Headache3318Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T15:05:03Z.
One more offline measurement, because it rules something out about the shader book on this path.
grepfor the 16-digit hash4e296b1885c37b29as text inLEONIDA_CACHE_DIR/pipelines/known-shaders.bin(198,524,811 bytes) gives 0 hits, since the book stores hashes as bytes rather than as their hex spelling. A raw-byte scan for the same 8 bytes gives exactly 1 occurrence, so the compute program that traps here is in the book, present once, and the neighbouring compute program from the same frame,13dfdd3b1136e407, is in it once as well (1 hit each). Neitherwarm-bad.txtnorslow-pipelines.txtmentions4e29at all (0 hits in both), because those two files record pipeline ids, not shader hashes, so a tester cannot tell from the failure lists which shader was in flight.Why that matters for #3288: the trap is not a case of the book not knowing the program. The program is in the book, and
warmruns from that book, so a worker that dies at4e296b1885c37b29is dying at an entry the book already has, and it will be picked again. What the two failure files do give you is a count that lines up with that: my contended attempt opened with11 badand ended with 24 entries inwarm-bad.txt(20exit code: 3, 4hung for 180 s), andcommof those 24 ids againstwarm-done.txt(535 entries) gives 0 overlaps. Whether the 11 free-machine deaths are the same program, I cannot show from these files, because the ids in them are pipeline ids and the log line that names the program only appears in the console log, and I have just shown that the console log is not a reliable instrument forwarm; the honest way to settle it would be a run that prints the shader hash into the bad list as well, which is one line of your choosing.AI-assisted (Hermes Agent) with the byte scan and the counts above, measured on this box (RTX 4090, driver 620.73.04,
b053a1813build). posted by Headache3318