[build] --features diagnostics does not compile on v2026.11.29.01 (shadowed fn timing, missing mb in log_heap_elsewhere) #2164
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#2164
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?
@PeppeBeard on GitHub · 2026-11-29 10:04 UTC · original
Building from source at tag
v2026.11.29.01(commit829188e9) with the diagnostics feature fails to compile:rustc 1.98.1 (per rust-toolchain.toml), x86_64-pc-windows-msvc, Windows 11.
Nine errors, all in
victory-gpu, in three groups:1. Shadowed
timingfunction (E0618 ×3 + E0277 ×2)The local added recently at
crates/victory-gpu/src/host.rs:8673:shadows
fn timing() -> bool(host.rs:2706), so the three later calls in the same function break:let groups: Vec<...> = if timing() {if timing() {if timing() && started.elapsed() > ...The two E0277
strsizing errors at host.rs:9172 (runs[i].slowest(...)) are cascades of the same shadowing.<arg_value>Suggested fix: rename the local (e.g.
sub_timing) at lines 8673 and 8676–8677. The later call sites keep callingfn timing().2. Missing
mbclosure inlog_heap_elsewhere(E0425 ×4)crates/victory-gpu/src/copystat.rs:1349–1352callsmb(...)for thewindow_trim()line, but thembclosure is only defined inside the siblinglog()function; the merge dropped the definition fromlog_heap_elsewhere.Suggested fix: add before the
tracing::info!using it (values are bytes):(same convention as
same_bytes()in shadow.rs).Why CI did not catch it: a plain build without the feature compiles clean — verified locally:
finishes without errors, so released artifacts are unaffected; only self-builders using
--features diagnosticshit this.With these two changes (3 inserted lines, 2 renamed identifiers) the diagnostics build finishes clean.
Happy to open a PR with the fix.
@github-actions[bot] on GitHub · 2026-11-29 10:04 UTC · original
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)
@PeppeBeard on GitHub · 2026-11-29 10:10 UTC · original
Environment
rust-toolchain.tomlAbout the play/crash logs: this failure happens at
cargo buildtime, before anyvictory.exeexists, so there is no run to log — nothing was ever launched. Both%LOCALAPPDATA%\victory\logs\and%LOCALAPPDATA%\VIctory\data\7952987A\are empty on this machine (verified: novictory-nvidia-play-*.log, nocrashes.log, no*.crash.log). The log of the failed run is therefore the compile log, pasted below in full (it is also what a fresh clone at829188e9produces:cargo clean, thencargo build --profile diag -p victory --features diagnostics).A build without the feature (
cargo build --profile diag -p victory) finishes clean on the same commit and toolchain, which is why the released artifacts built withoutdiagnosticsare unaffected.(The two E0277
strerrors are cascades of thetimingshadowing:runs[i]cannot be resolved while the loop operand type is broken.)@trustno1-coder on GitHub · 2026-11-30 16:39 UTC · original
This should be fixed in v2026.11.29.05. If it still happens on the latest version, please open a new issue with the logs from a run on that version (the play log from
%LOCALAPPDATA%\victory\logsandcrashes.log).