Repository navigation
Memory guard: a compile put off is no refused pipeline, and the explainer says so - #2743
gabrielecabrini wants to merge 1 commit into
Conversation
…iner says so A driver compile the memory guard puts off returns the driver's own E_OUTOFMEMORY (memguard::refusal), and every Err went through refused::failed. So pipelines the guard was still to make again were counted as refused for the run: a Linux run's summary read "46 host pipelines failed (... 0x8007000e)", all of them put off for the commit floor, with free commit at 2.9 to 3.8 GB for the whole session (2026-11-29). The VICTORY_SHADER_CAPS retry would also have made such a pipeline straight from the driver, past the guard. refused::failed and refused::retry now return early while memguard::deferred() is set for the thread (make_with takes the flag before the build and again only after it, so it is still set there). The F2 explainer showed the draws those pipelines leave out as "THEIR SHADERS CANNOT BE CONVERTED YET / NOTHING ON YOUR SIDE". With compiles put off in the last half second (memguard::put_off, a new panel counter) it now says "NO MEMORY FOR THEIR SHADERS" and suggests closing apps or more swap or page file. a_compile_put_off_for_memory_is_no_failure covers failed and retry; the advisor test covers the new note.
|
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch |
…f is no refused pipeline, and the explainer says so trustno1-coder#2743 by gabrielecabrini, head f046d18.
|
Independent Windows confirmation on base RED/GREEN: applying only The misclassification also occurs in my existing ordinary logs: several failure keys are immediately preceded by guard deferrals. Guard logging is sampled, so not every key has direct timestamp adjacency; I do not infer an actual driver refusal from the HRESULT alone. Separate induced runtime check: process-local The patch does not fix the wait loop: its run still had 10 screen waits of 10000 ms in the 120 s window / 12 over the full run. I tested #3398 separately for that behavior. Limits: the new F2 text did not render in the severely stalled runtime capture, so panel wording is verified by unit tests only. Preservation of real driver-refusal reporting is likewise covered by the unit test; I did not induce a real driver OOM. The periodic compilemem counter can remain stale under starvation, so I used the guard's counter rather than treating sampled log-line counts as total deferrals. AI assistance: Claude performed the isolated tests and analysis; Codex reviewed the evidence. No raw title logs or memory dumps are attached. |
What
A driver compile the memory guard puts off (
crate::compilemem→memguard::refuse_compile) returnsmemguard::refusal(), the driver's ownE_OUTOFMEMORY. EveryErrfrom pipeline creation goes throughrefused::failed, so pipelines the guard was still going to make again were counted as refused for the run, with reason0x8007000e. The F2 explainer then showed the draws they leave out asTHEIR SHADERS CANNOT BE CONVERTED YET/NOTHING ON YOUR SIDE, when the cause was the PC's memory.Evidence
A 29-minute Linux run (Series S, RTX 4070 SUPER 12 GB, 31 GB RAM, Proton Experimental, 2026-11-29):
host pipelineline afterwards.memory guard: a compile is put off ... reason="the commit left would fall under its floor"more than 1,024 times, withfree_commit_mbbetween 2,905 and 3,765 against the 4,096 MB floor for the whole session.None of those were driver refusals; all were deferrals that kept being deferred.
Fix
pipeline/refused.rs:failedandretryreturn early whilememguard::deferred()is set for the thread.make_withtakes the flag before the build and again only after it, so it is still set whenhost.rscalls them.retry(VICTORY_SHADER_CAPS=1) would otherwise have made the pipeline straight from the driver, past the guard.memguard.rs:put_off()exposes the count of compiles put off.host/panel.rs: a twelfth panel counter. When compiles were put off in the last half second, the note readsNOTE: N DRAWS SKIPPED, NO MEMORY FOR THEIR SHADERS/CLOSE OTHER APPS, OR GIVE THE PC MORE SWAP OR PAGE FILE. Otherwise the note is as before.Admission, floors and defaults are unchanged.
Tests
a_compile_put_off_for_memory_is_no_failure: a put-off compile is neither recorded nor retried; a driver refusal still is.the_advisor_names_what_limits_the_frame_ratealso checks the memory note and its width.refused,panelandmemguardtests pass (16, cross-built withcargo xwin, run under Proton).clippy -p victory-gpureports nothing in the changed lines; the onlypanel.rswarning (:149,is_multiple_of) is already onmain.pipeline::make::tests::a_waiting_draw_raises_the_worker_making_its_pipelinefails under Proton with and without this change.