Error Unknown Cook Failure

Dear UE 4 Community,

I wanted to package my project for a test, and recevied a few errors.

  1. In the end, “build failed”. Error Unknown Cook Failure.

Throughout I noticed some other warnings
2. Some times assets, mostly meshes could not be found. Often it indicates a path for the asset which is clearly not correct. E.g. Can’t find file ‘/Game/Models/fps_hands_stm’ … I do not have a “models” subfolder in my content folder. However, I did rearrange my assets a few weeks ago, which involved moving around some files. But I thought the redirectors were fixed, as I stopped getting warnings in the editor log.
3. The log also mentions that some materials cannot be compiled; default material will be used.

Now, I read similar posts in the forum. One recurring advice was to delete the config, intermediate and saved folders in the project folder. I did just that, restarted the system and UE4 but now I lost all my input settings. even under target platform it says “unspecified”. Was I really supposed to delete the config folder?

Below I post the link to the output log (exceeded 6 MBs), hoping you could point me in the right direction. Thanks!

https://www…com/sh/7a859bi5aub9u8l/AAAa3Oo8_nqYbDUoRbMO5WVWa?dl=0

you weren’t supposed to delete your config folder… you just lost any key bindings and project settings. Always make a backup before you start deleting stuff so you have a go-back option in case you messed something up.

Look into the log files in your saved folder and see what the last errors were before the cook failed. usually that will help you identify the source of the cook failure…

BreakMaker,

I try to always mention to make a backup before deleting anything out of your project, but sometimes I forget to. Intermediate and Saved shouldn’t cause a problem, as they’re repopulated. When Config is deleted, it will delete any configurations that you had previously set and they’ll need to be set up again.

Looking at your logs, here is the major error seen:

MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: Ensure condition failed: !ActorCDO->bExchangedRoles [File:D:\BuildFarm\buildmachine_++UE4+Release-4.11\Engine\Source\Editor\KismetCompiler\Private\KismetCompiler.cpp] [Line: 1814]
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: 
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: Your CDO has had ExchangeNetRoles called on it (likely via RerunConstructionScripts) which should never have happened. This will cause issues replicating this actor over the network due to mutated transient data!

This ensure is caused by using Create Child Blueprint Class on a blueprint created from an empty actor. Doublecheck your blueprints in your project and see if this was accidentally placed.

You also have a lot of warnings that I would clean up:

MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:007][  0]LogInit:Display: LogMaterial:Warning: Failed to compile Material /Game/AbandonedPlace/Material/Light/M_light_lamp.M_light_lamp for platform GLSL_ES2, Default Material will be used in game.
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:008][  0]LogInit:Display: LogMaterial:Warning:  (Node TextureSample) Node not supported in feature level ES2
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:008][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Models/Man_test_size'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:008][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Models/Man_test_size': Can't find file '/Game/Models/Man_test_size'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:008][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Models/Man_test_size.Man_test_size'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:009][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Models/Man_test_size.Man_test_size' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:009][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Models/fps_hands_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:009][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Models/fps_hands_stm': Can't find file '/Game/Models/fps_hands_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:009][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Models/fps_hands_stm.fps_hands_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:010][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Models/fps_hands_stm.fps_hands_stm' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:010][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/sm_pipes/sm_pipe_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:010][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/sm_pipes/sm_pipe_01': Can't find file '/Game/Abandoned_Place/Mesh/sm_pipes/sm_pipe_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:011][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/sm_pipes/sm_pipe_01.sm_pipe_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:011][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/sm_pipes/sm_pipe_01.sm_pipe_01' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:011][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/Walls/sm_sink/sm_sink_holder_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:021][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/Walls/sm_sink/sm_sink_holder_02': Can't find file '/Game/Abandoned_Place/Mesh/Walls/sm_sink/sm_sink_holder_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:021][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/Walls/sm_sink/sm_sink_holder_02.sm_sink_holder_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:021][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/Walls/sm_sink/sm_sink_holder_02.sm_sink_holder_02' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:022][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/sm_lamp_light_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:022][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/sm_lamp_light_01': Can't find file '/Game/Abandoned_Place/Mesh/sm_lamp_light_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:022][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/sm_lamp_light_01.sm_lamp_light_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:022][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/sm_lamp_light_01.sm_lamp_light_01' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:023][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/sm_reinforcement_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:023][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/sm_reinforcement_01': Can't find file '/Game/Abandoned_Place/Mesh/sm_reinforcement_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:023][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/sm_reinforcement_01.sm_reinforcement_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:023][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/sm_reinforcement_01.sm_reinforcement_01' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:024][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/Doors/1/sm_Door_A_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:024][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/Doors/1/sm_Door_A_01': Can't find file '/Game/Abandoned_Place/Mesh/Doors/1/sm_Door_A_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:033][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/Doors/1/sm_Door_A_01.sm_Door_A_01'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:034][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/Doors/1/sm_Door_A_01.sm_Door_A_01' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:035][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Abandoned_Place/Mesh/sm_beam_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:035][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Abandoned_Place/Mesh/sm_beam_02': Can't find file '/Game/Abandoned_Place/Mesh/sm_beam_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:035][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Abandoned_Place/Mesh/sm_beam_02.sm_beam_02'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:036][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Abandoned_Place/Mesh/sm_beam_02.sm_beam_02' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:036][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/for_test_del/Locker_box_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:037][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/for_test_del/Locker_box_stm': Can't find file '/Game/for_test_del/Locker_box_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:037][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/for_test_del/Locker_box_stm.Locker_box_stm'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:037][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/for_test_del/Locker_box_stm.Locker_box_stm' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:038][  0]LogInit:Display: LogShaderCompilers:Warning: Failed to compile Material /Game/Horror_pack/Material/Wall/Wall_plaster_crack_mat.Wall_plaster_crack_mat for platform GLSL_ES2, Default Material will be used in game.
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:038][  0]LogInit:Display: LogShaderCompilers:Warning: Failed to compile Material /Game/AbandonedPlace/Material/VertexPaint/Master_material/M_Master.M_Master for platform GLSL_ES2, Default Material will be used in game.
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:039][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/Models/Props/Refrigerator_opened'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:039][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/Models/Props/Refrigerator_opened': Can't find file '/Game/Models/Props/Refrigerator_opened'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:039][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to find object 'Object /Game/Models/Props/Refrigerator_opened.Refrigerator_opened'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:040][  0]LogInit:Display: LogRedirectors:Warning: String Asset Reference '/Game/Models/Props/Refrigerator_opened.Refrigerator_opened' was not found!
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:040][  0]LogInit:Display: LogShaderCompilers:Warning: Failed to compile Material /Game/Horror_pack/Material/Wall_bricks/Wall_Brick_mat.Wall_Brick_mat for platform GLSL_ES2, Default Material will be used in game.
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:041][  0]LogInit:Display: LogLinker:Warning: Can't find file '/Game/ExampleContent/Cloth/M_Silk'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:041][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load '/Game/ExampleContent/Cloth/M_Silk': Can't find file '/Game/ExampleContent/Cloth/M_Silk'
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:041][  0]LogInit:Display: LogLinker:Warning: Can't find file for asset '/Game/ExampleContent/Cloth/M_Silk' while loading E:/Unreal/UnrealProjectsE/ZombieVRBasementReal - Backup/Content/Cloths/M_Rubber.uasset.
MainFrameActions: Packaging (Android (ETC2)): UE4Editor-Cmd: [2016.06.30-01.00.17:051][  0]LogInit:Display: LogUObjectGlobals:Warning: Failed to load 'E:/Unreal/UnrealProjectsE/ZombieVRBasementReal - Backup/Content/Cloths/M_Rubber.uasset': Can't find file for asset '/Game/ExampleContent/Cloth/M_Silk' 
MainFrameActions: Packaging (Android (ETC2)): while loading E:/Unreal/UnrealProjectsE/ZombieVRBasementReal - Backup/Content/Cloths/M_Rubber.uasset.

How do you clean up those missing file warnings? I’ve got like 8,000 in my project because I move stuff around in my content browser.

Checking your code (if applicable) and your blueprints for lingering references will clean up most of this.

You need to make sure that your project is not referencing these files. I would suggest cleaning out the Saved and Intermediate file while also right-clicking within the Content Browser and fixing up redirectors.

I’d need to see your log to really know how to even begin to help you further. You might have some errors in the actual code or set up of the blueprint that you need to correct as well.

Good luck.

Hi ,

Thanks a lot. I identified the BPs that were causing the issue. They came with the content “Horror pack” and were not correctly parented. I have deleted them as I was not using them, and it all solved it!

No worries regarding the settings issue. Though I did not backup my ini files, I had backups of slightly earlier versions of my project, so I could reimport all settings from there.

Now I need to optimize my draw calls and I cannot seem to find the “actor merging” function as it was in 4.8. Has it been removed from 4.11? (which I am using?)

It used to be enabled through experimental under project settings

Thanks, Slayeming that helped.

BreakMaker,

It’s still in 4.11.2. Here is a screenshot that should help guide you: