Windows 11 Smart App Control blocks cargo build scripts: build-script-build never executed (os error 4551) #2972
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#2972
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?
@Tanju42 on GitHub · 2026-11-29 19:08 UTC · original
Symptom (cargo on Windows 11, fresh
cargo build --profile diag -p victoryafter a large upstream merge wave):(English Windows shows: "An application control policy prevented this file from running." / ERROR_ACCESS_DISABLED_BY_POLICY_OTHER)
Diagnosis: this is Windows 11 Smart App Control (Settings > Privacy & security > Windows Security > App & browser control > Smart App Control settings) blocking freshly compiled, unsigned build scripts by reputation - not Defender, not a code problem.
Get-MpComputerStatusshowsSmartAppControlState: On.Evidence it is SAC and not our build: the SAME commit compiled cleanly within minutes after turning SAC off (exit 0, 3m22s). SAC's verdicts are reputation-based and time-varying - the same repo built three times earlier the same day, then started blocking every new build-script hash after a large dependency churn. SAC cannot be disabled programmatically or via GPO by design; the toggle is GUI-only and one-way (re-enabling requires a Windows reinstall).
Suggestion: add this exact error string to a Windows build-troubleshooting doc so 8 GB laptop tinkerers (who are exactly the people most likely to have SAC still enabled on a fresh Win11 install) don't lose an afternoon, and keep pushing prebuilt signed release binaries as the recommended path for non-builders.
@github-actions[bot] on GitHub · 2026-11-29 19:08 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)