UE5系列文章目录文章目录UE5系列文章目录前言一、彻底解决二、成功前言我使用unrealEngine5.7.4创建了使用第三人称模版创建了蓝图桌面工程命名MyGameFPS创建基础关卡然后再工具菜单Platforms-Cook Content -Cook Contentue编辑器右下角提示Cooking failed!然后我点击Show Output Log 后窗口显示错误信息UATHelper: Error: Cooking (Windows): Cook failed.UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode25 (Error_UnknownCookFailure)LogWindows: Failed to load ‘aqProf.dll’ (GetLastError126)LogWindows: Failed to load ‘VtuneApi.dll’ (GetLastError126)LogWindows: Failed to load ‘VtuneApi32e.dll’ (GetLastError126)LogWindows: Failed to load ‘WinPixGpuCapturer.dll’ (GetLastError126)LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_24x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_128x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Content/Slate/Common/ButtonHoverHint.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Content/Slate/./Editor/Slate/Icons/doc_16x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Plugins/Animation/EaseCurveTool/Resources/Common/ButtonHoverHint.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_24x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_128x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Content/Slate/./Editor/Slate/Icons/doc_16x.png’ error.LogStreaming: Warning: Failed to read file ‘…/…/…/Engine/Plugins/Animation/EaseCurveTool/Resources/Common/ButtonHoverHint.png’ error.LogWindows: Failed to load ‘Wintab32.dll’ (GetLastError126)MapCheck: Map check complete: 0 Error(s), 0 Warning(s), took 0.429ms to complete.LogEOSSDK: Warning: LogEOS: Error response received from backend. ServiceName[Friend], OperationName[GetBlockList], Url[], HttpStatus[403], ErrorCode[errors.com.epicgames.common.insufficient_scopes], NumericErrorCode[1056], ErrorMessage[Insufficient access scopes. Expected: [friends_list]], CorrId[EOS-z9ixF68g8UCps6CPaRDK0A-adH9MAIWgEeiCSQy060Lzg]LogEOSSDK: Error: LogEOSAuth: Authentication session lost due to failing verification. Error: EOS_Auth_InvalidToken UserId: 1f8…1b9ditor-Cmd.exe -platformWin64 -DDCInstalledNoZenLocalFallback -installed -SkipCookingErrorSummary -JsonStdOut -skipstage -nocompile -nocompileuat ]LogStreaming: Display: FlushAsyncLoading(405): 1 QueuedPackages, 0 AsyncPackagesUATHelper: Cooking (Windows): Running: D:\Program Files\Epic Games\UE_5.7\Engine\Binaries\Win64\UnrealEditor-Cmd.exe “E:\workSpace\project\Ue5Exercise\MyGameFPS\MyGameFPS.uproject” -runCook -TargetPlatformWindows -ddcInstalledNoZenLocalFallback -unversioned -NoErrorSummary -fileopenlog -abslog“D:\Program Files\Epic Games\UE_5.7\Engine\Programs\AutomationTool\Saved\Cook-2026.05.21-10.15.15.txt” -stdout -CrashForUAT -unattended -NoLogTimesUATHelper: Cooking (Windows): LogInit: Display: Running engine for game: MyGameFPSUATHelper: Cooking (Windows): LogCsvProfiler: Display: Metadata set : commandline“” E:\workSpace\project\Ue5Exercise\MyGameFPS\MyGameFPS.uproject -runCook -TargetPlatformWindows -ddcInstalledNoZenLocalFallback -unversioned -NoErrorSummary -fileopenlog -abslog“D:\Program Files\Epic Games\UE_5.7\Engine\Programs\AutomationTool\Saved\Cook-2026.05.21-10.15.15.txt” -stdout -CrashForUAT -unattended -NoLogTimesUATHelper: Cooking (Windows): LogCsvProfiler: Display: Metadata set : loginid“069f22d64f4b4280702c28b51ed4b644”UATHelper: Error: Cooking (Windows): LogShaderCompilers: Error: Shader compiler returned a non-zero error code (-1073741819).UATHelper: Error: Cooking (Windows): LogShaderCompilers: Error: Shader compiler returned a non-zero error code (-1073741819).UATHelper: Error: Cooking (Windows): LogShaderCompilers: Error: Shader compiler returned a non-zero error code (-1073741819).UATHelper: Error: Cooking (Windows): Cook failed.请问发生了什么错误为什么导致错误如何解决?我什么都没做尝试第二次烘焙提示成功了为什么呢主要原因是第一次虽然最后被判定失败但它其实已经做完了大量工作LogCook: Display: Done!Shaders Compiled: 7,578NumPackagesSaved526第一次失败发生在 shader 编译/XGE/IncrediBuild 相关路径里但很多 shader 和资源已经被编译并写进了缓存也就是 DDC / Derived Data Cache。第二次再 Cook 时日志显示TotalGetHits 4795TotalGetMisses 0GetHitPct 1.000000Assets Built 0这说明第二次基本都是直接命中缓存没有再大规模重新编译 shader所以绕过了第一次容易出错的重编译阶段21 秒就完成了。简单说就是第一次像是“边失败边把作业写进缓存了”第二次直接用缓存所以成功了。但这不代表根因完全消失。你的环境里仍然有 IncrediBuild License not activated 和 XGE shader compile 的隐患。以后清空缓存、换材质、升级引擎、换机器可能还会复现。稳妥做法还是禁用 XGE shader 编译或者正确激活/修复 IncrediBuild。一、彻底解决1.修改GameFPS.uproject文件/MyGameFPS/MyGameFPS.uproject使用notepad 打开{ FileVersion: 3, EngineAssociation: 5.7, Category: , Description: , Plugins: [ { Name: ModelingToolsEditorMode, Enabled: true, TargetAllowList: [ Editor ] }, { Name: GameplayStateTree, Enabled: true }, { Name: XGEController, Enabled: false } ] }修改ConsoleVariables.ini文件/MyGameFPS/Config/ConsoleVariables.ini; Keep shader compilation local for this project. ; The XGE/IncrediBuild path can fail when IncrediBuild is installed but not licensed. r.XGEShaderCompile0 r.XGEController.Enabled0二、成功再次Platforms-Cook Content -Cook Content