Windows 11 Smart App Control blocks cargo build scripts: build-script-build never executed (os error 4551) #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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Tanju42 on 2026-11-29T19:08:43Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T19:08:51Z.
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)