[Resolved] ERROR: Cook failed

Hey guys,
I always got ERROR: Cook failed with blank cook log when I tried top get my project cooked. And I’ve searched for a while with no result…So here’s my output log:

Project.Cook: ********** COOK COMMAND STARTED **********
InternalUtils.SafeFileExists: SafeFileExists G:\Unreal4\UE_4.18\Engine\Binaries\Win64\UE4Editor-Cmd.exe=True
CommandUtils.RunCommandlet: Running UE4Editor Cook for project I:\Unreal4\Projects\ProjectWM2\ProjectWM2.uproject
CommandUtils.RunCommandlet: Commandlet log file is G:\Unreal4\UE_4.18\Engine\Programs\AutomationTool\Saved\Cook-2018.04.05-11.06.32.txt
InternalUtils.SafeFileExists: SafeFileExists G:\Unreal4\UE_4.18\Engine\Binaries\Win64\UE4Editor-Cmd.exe=True
CommandUtils.Run: Running: G:\Unreal4\UE_4.18\Engine\Binaries\Win64\UE4Editor-Cmd.exe I:\Unreal4\Projects\ProjectWM2\ProjectWM2.uproject -run=Cook -NoLogTimes -TargetPlatform=WindowsNoEditor -fileopenlog -unversioned -abslog=G:\Unreal4\UE_4.18\Engine\Programs\AutomationTool\Saved\Cook-2018.04.05-11.06.32.txt -stdout -CrashForUAT -unattended -UTF8Output
Project.Cook: Cook failed. Deleting cooked data.
ExceptionUtils.PrintExceptionInfo: ==============================================================================
ExceptionUtils.PrintExceptionInfo: ERROR: Cook failed.
ExceptionUtils.PrintExceptionInfo: (see C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\G+Unreal4+UE_4.18\UAT_Log.txt for full exception trace)
ExceptionUtils.PrintExceptionInfo:
ExceptionUtils.PrintExceptionInfo: Win32Exception: The requested operation needs to be improved。
ExceptionUtils.PrintExceptionInfo: 在 System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.CommandUtils.Run(String App, String CommandLine, String Input, ERunOptions Options, Dictionary2 Env, SpewFilterCallbackType SpewFilterCallback, String Identifier) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.CommandUtils.RunCommandlet(FileReference ProjectName, String UE4Exe, String Commandlet, String Parameters) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.CommandUtils.CookCommandlet(FileReference ProjectName, String UE4Exe, String[] Maps, String[] Dirs, String InternationalizationPreset, String[] CulturesToCook, String TargetPlatform, String Parameters) ExceptionUtils.PrintExceptionInfo: 在 Project.Cook(ProjectParams Params) ExceptionUtils.PrintExceptionInfo: Wrapped by AutomationException: Cook failed. ExceptionUtils.PrintExceptionInfo: 在 Project.Cook(ProjectParams Params) ExceptionUtils.PrintExceptionInfo: 在 BuildCookRun.DoBuildCookRun(ProjectParams Params) ExceptionUtils.PrintExceptionInfo: 在 BuildCookRun.ExecuteBuild() ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.BuildCommand.Execute() ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Automation.Process(String[] Arguments) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Program.MainProc(Object Param) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.InternalUtils.RunSingleInstance(Func2 Main, Object Param)
ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Program.Main()
ExceptionUtils.PrintExceptionInfo: ==============================================================================
Program.NoThrow: ERROR: Exception performing nothrow action “Kill All Processes”: Exception in System: There are no processes associated with this object。
Program.NoThrow: Stacktrace: 在 System.Diagnostics.Process.EnsureState(State state)
Program.NoThrow: 在 System.Diagnostics.Process.get_HasExited()
Program.NoThrow: 在 AutomationTool.ProcessResult.get_HasExited()
Program.NoThrow: 在 AutomationTool.ProcessManager.KillAll()
Program.NoThrow: 在 AutomationTool.Program.<>c.b__1_1()
Program.NoThrow: 在 AutomationTool.Program.NoThrow(Action Action, String ActionDesc)
Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)

With no other errors but only UNKNOWN COOK FAILED and it seems to accur just after the cooking progress began. Any help will be appreciated, mant thx!

Ive found out the problem. It’s because I checked UE4Editor-Cmd.exe ‘run as admin’ several days ago while facing ios distribution problem, now I’ve uncheck it and everything go on successfully~

Thank you, the same thing happened to me, I tried to elevate the UE4Editor-Cmd.exe because it was not able to create some .lib file, but for that error, a restart helped… probably some stuck handle on a file, while debugging and forcefully killing UE. And after that, this created this second problem.