Checkpoint observed early pipeline keys independently of driver-library saves #1982
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 trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T05:41:18Z.
Early-use metadata can remain unwritten while driver library serialization is throttled under pressure. Following the measured first-use waits on #1268, I am working on lightweight periodic persistence in crates/victory-gpu/src/pipeline/library.rs with retry and concurrent-writer coverage. No shader, driver cache or sampler safety-policy changes.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by NotADonky43 on 2026-11-29T05:41:20Z.
/claim
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T05:41:28Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kalberts0089-hash on 2026-11-29T08:01:08Z.
I checked this against main at
e1f2eb6. The problem is still there. PR #1989 passes its tests on this PC once it is merged with current main.On main (
e1f2eb6)early-pipelines.txtis written in one place only: at the end ofsave(), after the library rename and the slow-list write (crates/victory-gpu/src/pipeline/library.rs:801-803).save(false)is gated by one timer (library.rs:734-741): 600 s whileresidency::pressured(), otherwisesave_every(size)(20 s up to 256 MB, longer for bigger libraries). The first save of a run is not held back, becauseLASTstarts asNone. That save comes the first time the pipeline workers drain (make.rs:856-857,make.rs:888).save_while_busy()skips its first call and then saves at most every 180 s by default (library.rs:655-675). Under pressure, a key first used after the first save can therefore wait up to 600 s, or until exit.USED_CHANGEDis cleared atlibrary.rs:762, before anything is written. When pipelines were added,library.addedis also reset atlibrary.rs:776, beforereplace_libraryatlibrary.rs:785. The writes are oneand_thenchain at 801-803. If any step fails, the early list is not written: the library rename (only when both renames inreplace_libraryfail,library.rs:997-998), the slow-list write, or the early-list write itself. Every later save then returns at 762 until a new key, slow time or stored pipeline sets the flags again. That includessave(true)fromfinish()(library.rs:946-948). If nothing new arrives before exit, the keys from that interval are never written.PR #1989 (
fd1732f)The PR branch is based on
9e61270, which is 24 commits behind main. It merges intoe1f2eb6without conflicts. Results on the merged tree (RTX 4070 Ti, Windows 11):pipeline::librarytests still pass,concurrent_write_atomically_never_fails_or_truncatesamong them.victory-gpuare inhost/send.rs,pool.rs,resource.rsandhost.rs.rustfmt --checkpasses onearly_history.rs.dirtyagain on any error, so it also closes the lost-update path above for the early list.Points a reviewer may want to look at:
slow-pipelines.txtstill follows the old pattern.SLOW_CHANGEDis cleared at 762 before the write, so a failed rename or write still drops slow-list updates until the next change.early = used.len()field is removed from thehost pipeline library savedlog line. That count is useful when reading user logs. Thetitle pipelines to start earlyline at load time (library.rs:1074) is unchanged.early-pipelines.lockstays in the cache folder for good. The code comment says this is intended.EARLY_MAX= 100,000 keys (library.rs:492). That is much smaller than a library save, but I have not measured its cost.None of this needed a game. It is all unit tests and code reading.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-30T15:38:11Z.
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.