Repository navigation
Conversation
… the run Under Wine a fault inside a Unix call never reaches a handler of ours: winevulkan's thunk logs "Exception 0xc0000005 in Unix call." and calls ExitProcess(3). One shader the driver's compiler does not survive ends every run at the same place. winevulkan's import of ExitProcess is pointed at a function of ours. A pipeline worker that arrives there while it makes a pipeline is parked, its pipeline counts as lost (nothing waits for it, its draws are dropped, the frame line's reason says so), the name it holds in the pipeline library is let go and refused to others, and another worker takes its place. Any other caller exits as before. Nothing happens where winevulkan is not loaded. VICTORY_WINE_EXIT=1 leaves Wine's exit alone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
catminou4
reviewed
Nov 25, 2026
catminou4
left a comment
Contributor
There was a problem hiding this comment.
Under Wine, a host driver compiler crash costs its pipeline only, unless VICTORY_WINE_EXIT=1. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1.
Owner
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into From the earlier needs-work note: it needs the maintainer's decision (it patches Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From a tester working with Claude (AI-assisted). Measured on my own machine; the limits of what was measured are in "Tested".
Problem
Under Wine, when the host driver's compiler crashes inside
vkCreateComputePipelines/vkCreateGraphicsPipelines, the process ends with exit code 3 and no handler of ours runs (#144, and the reason #491 needs a second run to name the pipeline). The cause is in winevulkan, not in vkd3d-proton or the driver: the fault happens inside a Unix call, Wine turns it into that call's status, and winevulkan's PE thunk for the function logsand then calls
ExitProcess(3). A vectored exception handler never sees it. (Read from the import table and thunk ofwinevulkan.dllof Wine 11.22 Staging;ExitProcessis one of two functions it imports from kernel32.)Change
On first use of the pipeline workers, if
winevulkan.dllis loaded, its import ofExitProcessis pointed at a function of ours (pipeline/wine.rs):readyandwaitskip it, so it does not cost the per-frame budget), its draws and dispatches are dropped as for a refused one,missingsays "lost to the driver's compiler", and an error line names its shaders.library::abandon), so a second title pipeline with the same host description does not wait for ever.winevulkan.dll).VICTORY_WINE_EXIT=1leaves Wine's exit alone.This does not replace #491: that one remembers the pipeline for the next run; this one keeps the current run alive. Nothing is remembered here across runs.
shortcut:in the module comment: the parked thread keeps whatever the driver and vkd3d-proton held when the compiler crashed, so a later compile that needs the same lock would wait for it. I did not see that in the runs below, but it is possible.Tested
RTX 5070 Ti (driver 615.78.08), Linux, Wine 11.22 Staging, vkd3d-proton and DXVK
dxgifrom GE-Proton11-14,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains, Microsoft'sd3dcompiler_47.dll(see #1279), Series X 1.0.2.1, clean cache folders.cargo clippy --workspace --all-targets -- -D warnings(targetx86_64-pc-windows-msvc) is clean; thepipeline::tests pass under Wine (16, one new: the import-table rewrite on a synthetic image);cargo xtask policypasses.In the title, on this branch as it is (
main940d32f+ this commit), one run:mainends at the first compiler crash here (about 80 s after start).+0x23cf683), which ended the run. I do not know whether that fault follows from the lost pipelines.With #259 merged on top (the level query that crashes NVIDIA's compiler), one run: 12 pipelines lost, all within one minute (mostly mesh and vertex+pixel pipelines, two compute), then the same title fault at 146 s.
The same mechanism, as a local patch on two forks that carry #259 and much else (so not this branch): three runs of 13 to 15 minutes in the world, 0, 3 and 8 pipelines lost, none ended by a crash; all three were stopped by my own time limit.
So what I can claim: the process no longer ends at the first compiler crash, and the lost pipeline is named in the same run. What I cannot claim: that a run on
mainis healthy afterwards. Losses come in bursts (many within a second), which I read as the driver's compiler being unwell for a while after a first crash, not as that many bad shaders; that is my inference, not something I measured.Not tested: AMD/RADV or Intel under Wine, Proton's own Wine builds (the thunk may differ; the log line
winevulkan does not import ExitProcesswould show it), Windows beyond the unit test and the absence ofwinevulkan.dll.🤖 Generated with Claude Code