NVIDIA compiler faults in vkCreateComputePipelines on ProjectScarlett CS cb564c01 (driver 595.99.02, cold cache, swap full) #231
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 brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T13:42:02Z.
On
main(c6ce497), with an RTX 5090 (driver 595.99.02, GE-Proton11-14, Linux 7.0.0), ProjectScarlett sometimes dies about 2 minutes in, during cold shader compilation (Game exited with exit code 3):The faulting frame is inside NVIDIA's compiler:
libnvidia-gpucomp.so.595.99.02 + 0x1242b74;libnvidia-glvkspirv.so/_nv002nvvm.Which pipeline. Both crashes happened while
CreatePipelineState #50737 CS cb564c01was compiling ("still running 50s"). In the second run it was the only pipeline in flight when the driver faulted.When it began. The same compute pipeline compiled in 13 s on
mainbefore #216, but took 135 s onc6ce497in the one cold run that survived it:main773278a(before #216)c6ce497c6ce497Cache note. It only shows up with a cold NVIDIA driver cache. The prefix's oversized
GLCachewas moved aside, perc6ce497, which is why these runs are cold.What I haven't done. I haven't found the guest shader behind
cb564c01or compared its translation before and after #216 (compute roots / stride table / the-O0cap change in7e0ad65). If someone knows how to map that pipeline hash back to its request in the shader cache, I can bisect it.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-26T15:58:30Z.
I tried to reproduce this on an RTX 4070 Ti SUPER, driver 620.73.4, GE-Proton11-14, and couldn't.
cb564c01compiles here from a root-keyed Wave32 request. I translated that request with773278a(before #216),ed742e8(#216 merged) and4d3dd26(currentmain). The last two give identical HLSL. For this shader, the difference across #216 that I found is how compute guards combine jump flags (||became|).I built both DXIL outputs with
-O1 -disable-lifetime-markers(sizes match the launcher's cached files), then timedCreateComputePipelineStateon its own, with the vkd3d-proton and NVIDIA disk caches off and the call on a 64 MiB stack:773278a)ed742e8)Neither faulted. In our recent game logs this pipeline finished in about 45–52 s with no driver fault. So on this driver the translation change doesn't explain a 13 s to 135 s jump.
This was one isolated compile each, so it doesn't cover compiling alongside other pipelines, and it doesn't rule out your driver (595.99.02).
Could you check:
.csofiles the runtime cache held for this shader (names and sizes only; please don't upload shader files).Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T16:23:21Z.
Thanks for checking. That suggests the translation change isn't the cause. On your three points:
.csofiles: I couldn't mapcb564c01to its request files from the logs. The log only has the short pipeline hash, and no file in the prefix's request store carries it in its name. If you can tell me how you found its root-keyed request, I'll list the names and sizes.cb564c01as the only pipeline in flight, four others had finished just before. So an allocation failure inside the driver's compiler under memory pressure would fit a fault that comes and goes and doesn't show up in an isolated compile. That's a guess, not a measurement. I'll log memory and swap over the next cold run so it can be confirmed or ruled out.Since then the same build has compiled
cb564c01once without a fault (127 s), so on this machine it's intermittent.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T16:34:46Z.
Correction: the "before #216" row in my table is wrong. I've found that my game folder kept the provider DLLs I deployed from #216's head at 20:01, and runs launched from other worktrees didn't redeploy them. So all four runs, including the one I labelled
773278a, used the same #216 runtime. The 13 s vs 135 s difference therefore isn't a before/after-#216 comparison, and I withdraw "since #216". That agrees with your finding that the translation is effectively unchanged. What remains is the intermittent driver fault on 595.99.02 under memory pressure (swap full). I'll gather the memory and swap data over the next cold run.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T17:03:44Z.
One more correction on point 3: most of that swap use was my own scratch data. On this machine
/tmpis a RAM-backed tmpfs, and about 30 GB of leftover analysis files there had been pushed to swap. With those removed, swap is at 16 of 32 GiB during a game run. So memory pressure from the game alone is less likely than I suggested. I'll keep logging memory over the next cold run, but I no longer have a lead beyond the driver version.Imported from brcly/TuxBox. Originally posted by brcly on 2026-11-26T17:43:46Z.
yeah ivee had the issue with memory running out as well due to temp files, the game does use a lot across the board, a solution will need to be researched
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T18:15:23Z.
Closing for now. After the corrections above, all that's left is an intermittent fault inside NVIDIA's compiler on driver 595.99.02, and it doesn't reproduce on 620.73. I'm upgrading to 620 and will reopen with concrete data if
cb564c01(or any other pipeline) still faults during a cold compile there.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T21:47:05Z.
An update on driver 620: the compiler fault isn't gone, but it's intermittent, so I'm leaving this closed for now.
Two back-to-back launches of
mainat68e79b7on an RTX 5090, driver 620.70.10 (open kernel module), GE-Proton11-14, from an empty NVIDIA cache:libnvidia-glcore.so.620.70.10 + 0xe8f119insidevkCreateGraphicsPipelines(err:vulkan:vkCreateGraphicsPipelines Exception 0xc0000005 in Unix call). This time it was a graphics pipeline, not compute. Memory was not short: 57 GB available, no swap in use, and game RSS 20.7 GB.I haven't identified the pipeline; neither run had
--profile-pipelines. Both runs also logged about 100 handled faults at+0xd216a7and+0xd213e4around Xbox GPU page-pool registration, but they didn't stop either run. I'll reopen if a run with pipeline profiling catches the same fault, and name the pipeline.