Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[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, Dictionary`2 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(List`1 CommandsToExecute, Dictionary`2 Commands) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Automation.Process(String[] Arguments) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.Program.MainProc(Object Param) ExceptionUtils.PrintExceptionInfo: 在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 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!

Product Version: UE 4.18
more ▼

asked Apr 05 '18 at 03:20 AM in Packaging & Deployment

avatar image

76 1 6 8

avatar image wzspdw Apr 05 '18 at 03:48 AM

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~

avatar image XRarach Apr 18 '19 at 02:50 PM

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.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question