[UE 4.7.6] Cook Content For Windows Fails

Recently upgraded a project from 4.6 to 4.7.6. The game plays fine when launched from the editor, but when I run “Cook Content for Windows” it fails pretty quickly with the following error:

Program.Main: AutomationTool terminated with exception:
Program.Main: Exception in AutomationScripts.Automation: BUILD FAILED: Failed while running Cook for C:\Users\Athomas\Documents\shapeoftheworld\trunk 4.5\ShapeOfTheWorld.uproject; see log C:\Users\Athomas\AppData\Roaming\Unreal Engine\AutomationTool\C+Program+Files+Unreal+Engine+4.7\Cook.txt
Stacktrace: at Project.Cook(ProjectParams Params)
at BuildCookRun.DoBuildCookRun(ProjectParams Params)
at BuildCommand.Execute()
at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
at AutomationTool.Automation.Process(String[] CommandLine)
at AutomationTool.Program.MainProc(Object Param)
at AutomationTool.InternalUtils.RunSingleInstance(MainProc Main, Object Param)
at AutomationTool.Program.Main()
Program.Main: BUILD FAILED: Failed while running Cook for C:\Users\Athomas\Documents\shapeoftheworld\trunk 4.5\ShapeOfTheWorld.uproject; see log C:\Users\Athomas\AppData\Roaming\Unreal Engine\AutomationTool\C+Program+Files+Unreal+Engine+4.7\Cook.txt
ProcessManager.KillAll: Trying to kill 0 spawned processes.
Program.Main: AutomationTool exiting with ExitCode=25

[Log File][1]

40121-shapeoftheworld.log (80 KB)

Note: No Cook.txt file is generated.

EightyGee and I are on the same team. We actually upgraded from 4.5 to 4.7 when this issue appeared. Thinking it might be a blueprint in the map, I removed everything from the map but a landscape and player start, but the cook still fails.

Hey EightyGee,

I have created a project under the file of ‘Trunk 4.5’ which was created in 4.5 named ‘MyProject’. I proceeded to make a copy of it once I was in 4.7.6. That copy then added the ‘MyProject 4.7’ as the title of the project. I packaged the project from 4.5.1 as well as 4.7.6 without any errors.

When you upgraded your project from 4.5 to 4.7, did you copy it or did you convert it?

Would it be possible for you to upload your project to an external site and provide me the link in a PM on the forums? I should be fairly easy to find: .

Thank you!

I figured this one out. We had plugin source files that were read-only due to them being checked into source control with the property needs-lock. The cooker must have been failing to write to these, causing a crash. Once I removed the needs-lock property, all went fine.

, it might be worth investigating this as a bug, since it would be better if the cooker reported this as an error, or Unreal tried to check out these files before packaging.

We figured it out. Please see answer.

Hey,

Thank you for letting us know what the issue was and how you resolved it. I will look into adding a request for more detailed error for cooking and packaging.

Cheers!