Unknown error packaging, cook fails on build. However, standalone build works, standalone cook works

I’m messing around with the ocean project, trying to control scene content using a c++ class.

Unknown error packaging, cook fails on build.

In the editor, I can build, and compile.
In the editor, I can successfully cook.
In VC 2013 I can build all configurations.

The problem happens when I go to package (any config, debug, game, ship). Only then, cook fails with a non-descript error.

I can, however, make this error go away.
All I need to do is comment out an instance of a class that is declared and defined in a 3rd party library of my making.
However, I need to use that library/class (it’s kind of the point).
Also, the lib runs fine in other projects.

Note that I can run this project in the editor (play button), and everything runs fine (3rd party libs included). No runtime issues, and everything is a-ok.

If I repeatedly ‘uncomment, build, package, comment, build, package, uncomment, build, package’, etc, etc. Now and then it will succeed to package with the code not commented out - and the packaged files seem to run fine.

Any clues are welcome.

Thank you.

Log Output

MainFrameActions: Packaging (Windows (64-bit)): Running AutomationTool…
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: CWD=D:\development\project\Epic Games\4.9\Engine\Binaries\DotNET
MainFrameActions: Packaging (Windows (64-bit)): Automation.ParseCommandLine: Parsing command line: BuildCookRun -rocket -nocompile -nocompileeditor -installed -nop4 -project=D:/temp/packaged/OceanProject-4.9 - rec(c3,m,l)/OceanProject.uproject -cook -stage -archive -archivedirectory=D:/temp/pack -package -clientconfig=Shipping -ue4exe=UE4Editor-Cmd.exe -pak -prereqs -nodebuginfo -targetplatform=Win64 -build -utf8output
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: IsBuildMachine=False
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: ShouldKillProcesses=True
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: Setting up command environment.
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.SetEnvVar: SetEnvVar uebp_EngineSavedFolder=D:/development/project/Epic Games/4.9/Engine/Programs/AutomationTool/Saved
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.DeleteDirectoryContents: DeleteDirectoryContents(C:/Users//AppData/Roaming/Unreal Engine/AutomationTool/Logs/D+development+project+Epic+Games+4.9)
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: Setting .Net Framework environment variables.
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: Supports64bitExecutables=True
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: WindowsPlatform.CompilerVisualStudio2013
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: WindowsSDKDir=C:\Program Files (x86)\Windows Kits\8.1
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: BaseVSToolPath=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: Setting VS environment variables via C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools....\VC\bin\x86_amd64\vcvarsx86_amd64.bat.
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.SetEnvVar: SetEnvVar FrameworkDir=C:\Windows\Microsoft.NET\Framework
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.SetEnvVar: SetEnvVar FrameworkVersion=v4.0.30319
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: FrameworkDir=C:\Windows\Microsoft.NET\Framework
MainFrameActions: Packaging (Windows (64-bit)): WindowsHostPlatform.SetFrameworkVars: FrameworkVersion=v4.0.30319
MainFrameActions: Packaging (Windows (64-bit)): ProjectUtils.CleanupFolders: Cleaning up project rules folder
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.DeleteDirectoryContents: DeleteDirectoryContents(C:\Users\AppData\Local\Temp\UAT\D+development+project+Epic+Games+4.9\Rules)
MainFrameActions: Packaging (Windows (64-bit)): Automation.Process: Compiling scripts.
MainFrameActions: Packaging (Windows (64-bit)): ScriptCompiler.LoadPreCompiledScriptAssemblies: Loading precompiled script DLLs
MainFrameActions: Packaging (Windows (64-bit)): ScriptCompiler.LoadPreCompiledScriptAssemblies: Found 9 script DLL(s).
MainFrameActions: Packaging (Windows (64-bit)): BuildCookRun.SetupParams: Setting up ProjectParams for D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject
MainFrameActions: Packaging (Windows (64-bit)): ProjectUtils.CompileAndLoadTargetsAssembly: Compiling targets DLL: C:\Users\AppData\Local\Temp\UAT\D+development+project+Epic+Games+4.9\Rules\UATRules803347121.dll
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Project Params **************
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: AdditionalServerMapParams=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Archive=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ArchiveMetaData=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CreateAppBundle=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: BaseArchiveDirectory=D:\temp\pack
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: BaseStageDirectory=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Saved\StagedBuilds
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Build=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Cook=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Clean=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Client=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ClientConfigsToBuild=Shipping
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ClientCookedTargets=OceanProject
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ClientTargetPlatform=Win64
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Compressed=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: UseDebugParamForEditorExe=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CookFlavor=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CookOnTheFly=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CookOnTheFlyStreaming=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: UnversionedCookedContent=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SkipCookingEditorContent=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NumCookersToSpawn=0
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: GeneratePatch=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CreateReleaseVersion=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: BasedOnReleaseVersion=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: DLCName=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: DLCIncludeEngineContent=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: AdditionalCookerOptions=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: DedicatedServer=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: DirectoriesToCook=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CulturesToCook=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: EditorTargets=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Foreign=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: IsCodeBasedProject=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: IsProgramTarget=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: IterativeCooking=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CookAll=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CookMapsOnly=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Deploy=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: IterativeDeploy=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: FastCook=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: LogWindow=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Manifests=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: MapToRun=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NoClient=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NumClients=0
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NoDebugInfo=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NoCleanStage=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NoXGE=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: MapsToCook=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Pak=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Package=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NullRHI=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: FakeClient=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: EditorTest=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: RunAutomationTests=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: RunAutomationTest=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: RunTimeoutSeconds=0
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: CrashIndex=0
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ProgramTargets=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ProjectBinariesFolder=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ProjectBinariesPath=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ProjectGameExeFilename=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64\OceanProject.exe
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ProjectGameExePath=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64\OceanProject.exe
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Distribution=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Prebuilt=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Prereqs=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: NoBootstrapExe=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: RawProjectPath=D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Rocket=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Run=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ServerConfigsToBuild=Development
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ServerCookedTargets=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ServerTargetPlatform=Win64
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: ShortProjectName=OceanProject
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SignedPak=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SignPak=
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SkipCook=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SkipCookOnTheFly=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SkipPak=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: SkipStage=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Stage=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: bUsesSteam=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: bUsesCEF3=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: bUsesSlate=True
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: bDebugBuildsActuallyUseDebugCRT=False
MainFrameActions: Packaging (Windows (64-bit)): ProjectParams.ValidateAndLog: Project Params **************
MainFrameActions: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND STARTED **********
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: XGE was requested, but is unavailable, so we won’t use it.
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* UE4Build:
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* ForceMonolithic: False
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* ForceNonUnity:False
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* ForceDebugInfo: False
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* UseXGE: False
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.Build: ************************* UseParallelExecutor: False
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\development\project\Epic Games\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe OceanProject Win64 Shipping “D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject” -noxge -generatemanifest -rocket -NoHotReloadFromIDE
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Performing full C++ include scan (building a new target)
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\ThirdParty\ETS\lib
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\ThirdParty\ETS
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\ThirdParty\ETS\lib\ets_lib_amd64.lib
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.8781822s to run UnrealBuildTool.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.PrepareManifest: Copied UBT manifest to C:\Users\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+development+project+Epic+Games+4.9\UBTManifest.0.xml
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\development\project\Epic Games\4.9\Engine\Binaries\DotNET\UnrealBuildTool.exe OceanProject Win64 Shipping “D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject” -noxge -rocket -NoHotReloadFromIDE -ignorejunk
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: Target is up to date.
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 0.4863478s to run UnrealBuildTool.exe, ExitCode=0
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.CheckBuildProducts: Build products *******
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.CheckBuildProducts: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64\OceanProject-Win64-Shipping.exe
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.CheckBuildProducts: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Binaries\Win64\OceanProject-Win64-Shipping.pdb
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.CheckBuildProducts: D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\Build\Receipts\OceanProject-Win64-Shipping.target.xml
MainFrameActions: Packaging (Windows (64-bit)): UE4Build.CheckBuildProducts: End Build products *******
MainFrameActions: Packaging (Windows (64-bit)): Project.Build: ********** BUILD COMMAND COMPLETED **********
MainFrameActions: Packaging (Windows (64-bit)): Project.Cook: ********** COOK COMMAND STARTED **********
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.RunCommandlet: Running UE4Editor Cook for project D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.RunCommandlet: Commandlet log file is D:\development\project\Epic Games\4.9\Engine\Programs\AutomationTool\Saved\Cook-2016.02.17-23.43.24.txt
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: D:\development\project\Epic Games\4.9\Engine\Binaries\Win64\UE4Editor-Cmd.exe “D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject” -run=Cook -I18NPreset= -TargetPlatform=WindowsNoEditor -fileopenlog -abslog=“D:\development\project\Epic Games\4.9\Engine\Programs\AutomationTool\Saved\Cook-2016.02.17-23.43.24.txt” -stdout -FORCELOGFLUSH -CrashForUAT -unattended -UTF8Output
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: LogInit:Display: Running engine for game: OceanProject
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: LogInit:Display: RandInit(1350874376) SRandInit(1350874376).
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.26:324][ 0]LogShaderCompilers:Display: Using Local Shader Compiler.
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:273][ 0]LogTemp:Display: Loaded TP AllDesktopTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:278][ 0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:283][ 0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:288][ 0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:292][ 0]LogTemp:Display: Loaded TP WindowsTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:295][ 0]LogTemp:Display: Loaded TP AndroidTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:298][ 0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:301][ 0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:305][ 0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:308][ 0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:311][ 0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:315][ 0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:315][ 0]LogTemp:Display: Loaded TP HTML5TargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:331][ 0]LogTemp:Display: Loaded TP IOSTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:334][ 0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:337][ 0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:341][ 0]LogTemp:Display: Loaded TP LinuxTargetPlatform
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:341][ 0]LogTargetPlatformManager:Display: Building Assets For WindowsNoEditor
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:415][ 0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:445][ 0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users//AppData/Local/UnrealEngine/4.9/DerivedDataCache/Boot.ddc
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.27:573][ 0]LogDerivedDataCache:Display: Pak cache opened for reading …/…/…/Engine/DerivedDataCache/Compressed.ddp.
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.02.18-04.43.28:117][ 0]LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
MainFrameActions: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 4.8300663s to run UE4Editor-Cmd.exe, ExitCode=3
MainFrameActions: Packaging (Windows (64-bit)): Project.Cook: Cook failed. Deleting cooked data.
MainFrameActions: Packaging (Windows (64-bit)): BuildCommand.Execute: ERROR: BUILD FAILED
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception:
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: ERROR: Exception in AutomationScripts.Automation: Cook failed.
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace: at Project.Cook(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)): at BuildCookRun.DoBuildCookRun(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)): at BuildCommand.Execute()
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Execute(List1 CommandsToExecute, CaselessDictionary1 Commands)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Automation.Process(String[] CommandLine)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.MainProc(Object Param)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.InternalUtils.RunSingleInstance(Action`1 Main, Object Param)
MainFrameActions: Packaging (Windows (64-bit)): at AutomationTool.Program.Main()InnerException in AutomationUtils.Automation: BUILD FAILED: Failed while running Cook for D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject; see log C:\Users\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+development+project+Epic+Games+4.9\Cook-2016.02.17-23.43.29.txt
MainFrameActions: Packaging (Windows (64-bit)): Stacktrace: at AutomationTool.CommandUtils.RunCommandlet(String ProjectName, String UE4Exe, String Commandlet, String Parameters)
MainFrameActions: Packaging (Windows (64-bit)): at Project.Cook(ProjectParams Params)
MainFrameActions: Packaging (Windows (64-bit)): ProcessManager.KillAll: Trying to kill 0 spawned processes.
MainFrameActions: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=Error_UnknownCookFailure
MainFrameActions: Packaging (Windows (64-bit)): Domain_ProcessExit
MainFrameActions: Packaging (Windows (64-bit)): copying UAT log files…
MainFrameActions: Packaging (Windows (64-bit)): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
MainFrameActions: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults:Error: Error Unknown Cook Failure

Log file :

[2016.02.18-04.43.25:716][ 0]Log file open, 02/17/16 23:43:25
[2016.02.18-04.43.25:716][ 0]LogInit: Version: 4.9.2-2707645+++depot+UE4-Releases+4.9
[2016.02.18-04.43.25:716][ 0]LogInit: API Version: 2672455
[2016.02.18-04.43.25:716][ 0]LogInit: Compiled (64-bit): Sep 28 2015 10:25:44
[2016.02.18-04.43.25:716][ 0]LogInit: Compiled with Visual C++: 18.00.21005.01
[2016.02.18-04.43.25:716][ 0]LogInit: Build Configuration: Development
[2016.02.18-04.43.25:716][ 0]LogInit: Branch Name: ++depot+UE4-Releases+4.9
[2016.02.18-04.43.25:716][ 0]LogInit: Command line: “D:\temp\packaged\OceanProject-4.9 - rec(c3,m,l)\OceanProject.uproject” -run=Cook -I18NPreset= -TargetPlatform=WindowsNoEditor -fileopenlog -abslog=“D:\development\project\Epic Games\4.9\Engine\Programs\AutomationTool\Saved\Cook-2016.02.17-23.43.24.txt” -stdout -FORCELOGFLUSH -CrashForUAT -unattended -UTF8Output
[2016.02.18-04.43.25:716][ 0]LogInit: Base directory: D:/development/project/Epic Games/4.9/Engine/Binaries/Win64/
[2016.02.18-04.43.25:716][ 0]LogInit: Rocket: 1
[2016.02.18-04.43.25:724][ 0]LogInit: Using libcurl 7.41.0
[2016.02.18-04.43.25:724][ 0]LogInit: - built for x86_64-pc-win32
[2016.02.18-04.43.25:724][ 0]LogInit: - supports SSL with WinSSL
[2016.02.18-04.43.25:724][ 0]LogInit: - other features:
[2016.02.18-04.43.25:724][ 0]LogInit: CURL_VERSION_SSL
[2016.02.18-04.43.25:724][ 0]LogInit: CURL_VERSION_IPV6
[2016.02.18-04.43.25:724][ 0]LogInit: CURL_VERSION_ASYNCHDNS
[2016.02.18-04.43.25:724][ 0]LogInit: CURL_VERSION_LARGEFILE
[2016.02.18-04.43.25:724][ 0]LogInit: CURL_VERSION_IDN
[2016.02.18-04.43.25:724][ 0]LogInit: CurlRequestOptions (configurable via config and command line):
[2016.02.18-04.43.25:724][ 0]LogInit: - bVerifyPeer = true - Libcurl will verify peer certificate
[2016.02.18-04.43.25:724][ 0]LogInit: - bUseHttpProxy = false - Libcurl will NOT use HTTP proxy
[2016.02.18-04.43.25:724][ 0]LogInit: - bDontReuseConnections = false - Libcurl will reuse connections
[2016.02.18-04.43.25:724][ 0]LogInit: - CertBundlePath = nullptr - Libcurl will use whatever was configured at build time.
[2016.02.18-04.43.25:731][ 0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
[2016.02.18-04.43.25:737][ 0]LogInit: Object subsystem initialized
[2016.02.18-04.43.25:739][ 0]LogInit: Selected Device Profile: [Windows]
[2016.02.18-04.43.25:739][ 0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
[2016.02.18-04.43.25:746][ 0]LogInit: Computer: DESKTOP-M8040O3
[2016.02.18-04.43.25:746][ 0]LogInit: User:
[2016.02.18-04.43.25:746][ 0]LogInit: CPU Page size=4096, Cores=6
[2016.02.18-04.43.25:746][ 0]LogInit: High frequency timer resolution =3.222651 MHz
[2016.02.18-04.43.25:746][ 0]LogMemory: Memory total: Physical=15.8GB (16GB approx)
[2016.02.18-04.43.25:746][ 0]LogMemory: Platform Memory Stats for Windows
[2016.02.18-04.43.25:746][ 0]LogMemory: Process Physical Memory: 53.73 MB used, 53.73 MB peak
[2016.02.18-04.43.25:746][ 0]LogMemory: Process Virtual Memory: 55.67 MB used, 55.67 MB peak
[2016.02.18-04.43.25:746][ 0]LogMemory: Physical Memory: 3709.66 MB used, 16210.27 MB total
[2016.02.18-04.43.25:746][ 0]LogMemory: Virtual Memory: 366.79 MB used, 134217728.00 MB total
[2016.02.18-04.43.25:774][ 0]LogTextLocalizationManager: No specific translations for (‘en-US’) exist, so (‘en’) translations will be used.
[2016.02.18-04.43.26:324][ 0]LogShaderCompilers: Guid format shader working directory is 15 characters bigger than the processId version (…/…/…/…/…/…/…/temp/packaged/OceanProject-4.9 - rec(c3,m,l)/Intermediate/Shaders/WorkingDirectory/7696/).
[2016.02.18-04.43.26:324][ 0]LogShaderCompilers: Cleaned the shader compiler working directory ‘…/…/…/…/…/…/…/temp/packaged/OceanProject-4.9 - rec(c3,m,l)/Intermediate/Shaders/tmp/4F30748B48EC9FB62FF67187823DD883/’.
[2016.02.18-04.43.26:324][ 0]LogShaderCompilers:Display: Using Local Shader Compiler.
[2016.02.18-04.43.27:273][ 0]LogTemp:Display: Loaded TP AllDesktopTargetPlatform
[2016.02.18-04.43.27:278][ 0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
[2016.02.18-04.43.27:283][ 0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
[2016.02.18-04.43.27:288][ 0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
[2016.02.18-04.43.27:292][ 0]LogTemp:Display: Loaded TP WindowsTargetPlatform
[2016.02.18-04.43.27:295][ 0]LogTemp:Display: Loaded TP AndroidTargetPlatform
[2016.02.18-04.43.27:298][ 0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
[2016.02.18-04.43.27:301][ 0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
[2016.02.18-04.43.27:305][ 0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
[2016.02.18-04.43.27:308][ 0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
[2016.02.18-04.43.27:311][ 0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
[2016.02.18-04.43.27:315][ 0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
[2016.02.18-04.43.27:315][ 0]LogTemp:Display: Loaded TP HTML5TargetPlatform
[2016.02.18-04.43.27:331][ 0]LogTemp:Display: Loaded TP IOSTargetPlatform
[2016.02.18-04.43.27:334][ 0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
[2016.02.18-04.43.27:337][ 0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
[2016.02.18-04.43.27:341][ 0]LogTemp:Display: Loaded TP LinuxTargetPlatform
[2016.02.18-04.43.27:341][ 0]LogTargetPlatformManager:Display: Building Assets For WindowsNoEditor
[2016.02.18-04.43.27:415][ 0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache: Loaded boot cache 0.03s 45MB C:/Users//AppData/Local/UnrealEngine/4.9/DerivedDataCache/Boot.ddc.
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users//AppData/Local/UnrealEngine/4.9/DerivedDataCache/Boot.ddc
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache: FDerivedDataBackendGraph: Pak pak cache file …/…/…/…/…/…/…/temp/packaged/OceanProject-4.9 - rec(c3,m,l)/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache: FDerivedDataBackendGraph: CompressedPak pak cache file …/…/…/…/…/…/…/temp/packaged/OceanProject-4.9 - rec(c3,m,l)/DerivedDataCache/Compressed.ddp not found, will not use a pak cache.
[2016.02.18-04.43.27:445][ 0]LogDerivedDataCache: Unable to find inner node CompressedPak for hierarchical cache Hierarchy.
[2016.02.18-04.43.27:573][ 0]LogDerivedDataCache:Display: Pak cache opened for reading …/…/…/Engine/DerivedDataCache/Compressed.ddp.
[2016.02.18-04.43.27:584][ 0]LogDerivedDataCache: Using Local data cache path C:/Users//AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
[2016.02.18-04.43.27:737][ 0]LogInit: Selected Device Profile: [Windows]
[2016.02.18-04.43.27:898][ 0]LogMeshUtilities: No automatic mesh reduction module available
[2016.02.18-04.43.27:898][ 0]LogMeshUtilities: No automatic mesh merging module available
[2016.02.18-04.43.27:963][ 0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2016.02.18-04.43.28:117][ 0]LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
[2016.02.18-04.43.28:311][ 0]LogWindows: === Critical error: ===
Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.9\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp] [Line: 83]
SECURE CRT: Invalid parameter detected.
Expression: Unknown Function: Unknown. File: Unknown Line: 0

[2016.02.18-04.43.28:311][ 0]LogExit: Executing StaticShutdownAfterError
[2016.02.18-04.43.28:314][ 0]LogWindows: FPlatformMisc::RequestExit(1)
[2016.02.18-04.43.28:314][ 0]Log file closed, 02/17/16 23:43:28

Thanks