UE4 package failed, and the last prompt is “error unknown cook failure”
What’s the reason? Look up the error from the beginning of the log. The suspicious errors found at the beginning are as follows:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:613][ 0] LogCook:Display : Cooking /Engine/Functions/Engine_ MaterialFunctions02/Texturing/ScreenAlignedPixelToPixelUVs -> E:/work/Viba/trunk/UnrealEngine-4.10/ShooterGame/Saved/Cooked/WindowsNoEditor/Engine/Content/Functions/Engine_ MaterialFunctions02/Texturing/ScreenAl ignedPixelToPixelUVs.uasset
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:615][ 0]LogSa vePackage:Display : Finished SavePackage E:/work/Viba/trunk/UnrealEngine-4.10/ShooterGame/Saved/Cooked/WindowsNoEditor/Engine/Content/Functions/Engine_ MaterialFunctions02/Texturing/ScreenAl ignedPixelToPixelUVs.uasset
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:616][ 0] LogLinker:Warning : Unable to load package (../../../ShooterGame/Content/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal.uasset ) PackageVersion 493, MaxExpected 482 : LicenseePackageVersion 0, MaxExpected 0.
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:616][ 0]Co okResults:Warning : Warning Package /Game/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal supposed to be fully loaded but isn’t. RF_ WasLoaded is not set
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:617][ 0] LogCook:Warning : Package /Game/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal supposed to be fully loaded but isn’t. RF_ WasLoaded is not set
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:617][ 0] LogCook:Display : Cooking /Game/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal -> E:/work/Viba/trunk/UnrealEngine-4.10/ShooterGame/Saved/Cooked/WindowsNoEditor/ShooterGame/Content/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal.uasset
Packagi ngResults:Warning : Warning Warning Package /Game/RestrictedAssets/PhysicalMaterials/PhysMat_ Metal supposed to be fully loaded but isn’t. RF_ WasLoaded is not set
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.42.02:617][ 0]L ogWindows:Error : Windows GetLastError: operation completed successfully. (0)
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.45.13:425][ 0]LogOut putDevice:Error :
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: begin: stack for UAT
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: [2016.05.27-13.45.13:425][ 0]L ogWindows:Error : === Critical error: ===
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: Fatal error!
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: KERNELBASE.dll
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd:
MainFrameActions: Packaging (Windows (64-bit)): UE4Editor-Cmd: UE4Editor- Core.dll !FOutputDeviceWindowsError::Serialize() [e:\work\viba\trunk\unrealengine-4.
The fatal error in the red letter doesn’t explain the specific reason. Continue to look up and see that “the operation is completed successfully”. Don’t be confused by this. Continue to look up and find that one is just packing output, but packing it to the file physmat_ Metal stops, continues the file, and finds that the file can’t be seen in the editor, but exists in the folder. The original file has been covered by an error. Just restore it to the previous version.
In some cases, one of the above knowledge may be the problem of cook, such as the following example:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: [2016.11.25-07.42.11:776][ 0]LogOut putDevice:Error :
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: begin: stack for UAT
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: [2016.11.25-07.42.11:776][ 0]L ogWindows:Error : === Critical error: ===
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: Fatal error!
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd:
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: [2016.11.25-07.42.11:777][ 0]LogOut putDevice:Error :
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: end: stack for UAT
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: [2016.11.25-07.42.13:768][ 0]L ogShaders:Display : Finished batch of 10 jobs in 3.173s, TShadowDepthVSForGSVertexShadowDepth_ OutputDepthfalse Instructions = 100, TShadowDepthVSVertexShadowDepth_ OutputDepthfalse Instructions = 100, TShadowDepthVSForGSVertexShadowDepth_ PerspectiveCorrectfalse Instructions = 9
8, TShadowDepthVSVertexShadowDepth_ PerspectiveCorrectfalse Instructions = 98, FOnePassPointShadowProjectionGS Instructions = 64, FHitProxyPS Instructions = 72, FHitProxyVS Instructions = 93, TLightMapDensityPSFNoLightMapPolicy Instructions = 98, TLightMapDensityVSFNoLightMapPolicy Instructions = 93, FDepthOnlyPS Instructions = 72
MainFrameActions: ´ò°ü (Windows (64λ)): UE4Editor-Cmd: [2016.11.25-07.42.13:769][ 0]L ogShaders:Display : Finished batch of 10 jobs in 2.885s, DepthNoPixelPipeline, FVertexDensityPS Instructions = 87, FVertexDensityGS Instructions = 55, FVertexDensityVS Instructions = 66, FVelocityPS Instructions
MainFrameActions: ´ò°ü (Windows (64λ)): = 78, FVelocityVS Instructions = 103, TShadowDepthPSPixelShadowDepth_ OnePassPointLightfalse Instructions = 67, TShadowDepthPSPixelShadowDepth_ PerspectiveCorrectfalse Instructions = 68, TShadowDepthPSPixelShadowDepth_ NonPerspectiveCorrectfalse Instructions = 67, TShadowDepthVSForGSVertexShadowDepth_ OnePassPointLightfalse
Instructions = 65
MainFrameActions: ´ò°ü (Windows (64λ)): CommandUtils.Run : Run: Took 719.6181598s to run UE4Editor- Cmd.exe , ExitCode=3
MainFrameActions: ´ò°ü (Windows (64λ)): Project.Cook : Cook failed. Deleting cooked data.
MainFrameActions: ´ò°ü (Windows (64λ)): Program.Main : ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException : Cook failed. —> AutomationTool.AutomationException : BUILD FAILED: Failed while running Cook for E:\Work\FPS\UnrealEngine-VXGI-4.12\ShooterGame\ShooterGame.
MainFrameActions: ´ò°ü (Windows (64λ)): uproject; see log E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Programs\AutomationTool\Saved\Logs\Cook-2016.11.25-15.44.05.txt
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.CommandUtils.RunCommandlet (FileReference ProjectName, String UE4Exe, String Commandlet, String Parameters) λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\AutomationUtils\ CommandletUtils.cs :ÐкŠ359
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ Project.Cook (ProjectParams Params) λÖà e:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\Scripts\ CookCommand.Automation.cs :ÐкŠ24
MainFrameActions: ´ò°ü (Windows (64λ)): — ÄÚ²¿Òì³£¶ÑÕ»¸ú×ٵĽáβ —
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ Project.Cook (ProjectParams Params) λÖà e:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\Scripts\ CookCommand.Automation.cs :ÐкŠ262
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ BuildCookRun.DoBuildCookRun (ProjectParams Params) λÖà e:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\Scripts\ BuildCookRun.Automation.cs :ÐкŠ212
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.BuildCommand.Execute () λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\AutomationUtils\ BuildCommand.cs :ÐкŠ28
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.Automation.Execute (List`1 CommandsToExecute, CaselessDictionary`1 Commands) λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\AutomationUtils\ Automation.cs :ÐкŠ538
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.Automation.Process (String[] CommandLine) λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\AutomationUtils\ Automation.cs :ÐкŠ509
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.Program.MainProc (Object Param) λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\ Program.cs :ÐкŠ131
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.InternalUtils.RunSingleInstance (Func`2 Main, Object Param) λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\AutomationUtils\ Utils.cs :ÐкŠ704
MainFrameActions: ´ò°ü (Windows (64λ)): ÔÚ AutomationTool.Program.Main () λÖà E:\Work\FPS\UnrealEngine-VXGI-4.12\Engine\Source\Programs\AutomationTool\ Program.cs :ÐкŠ54
MainFrameActions: ´ò°ü (Windows (64λ)): Program.Main : AutomationTool exiting with ExitCode=25 (Error_ UnknownCookFailure)
MainFrameActions: ´ò°ü (Windows (64λ)): Domain_ ProcessExit
MainFrameActions: ´ò°ü (Windows (64λ)): AutomationToolLauncher exiting with ExitCode=25
MainFrameActions: ´ò°ü (Windows (64λ)): copying UAT log files…
MainFrameActions: ´ò°ü (Windows (64λ)): BUILD FAILED
Packagi ngResults:Error : ´íÎó Unknown Cook Failure
Pay attention to the part marked red in the log. You need to go to the log file cook-2016.11.25-15.44.05.txt to check the original contents of the specific cook
Read More:
- Take over the project, the project path is inconsistent with the native UE4 path and the solution of Failed to open descriptor file ..//..//..//UE4/UE4.uproject
- An error occurred when running ROCR: Failed to load the package ‘caTools’, package or namespace load failed
- Unity package APK exception failed to re package resources
- Failed to import package with error: couldn’t decompress package
- Idea Maven project uses package to package and report error (package does not exist)
- How to Solve UE4 packaging Android error
- UE4 cannot save the asset. The asset uasset failed to save
- UE4 texture streaming pool over xxmb error
- Completely solve install_ FAILED_ UPDATE_ Incompatible installation error, the installation package is not consistent with the previous installation package signature on the device
- UE4 solves lighting need to be rebuilt
- How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent
- Solution: unity package failed. Commandinvocationfailure: gradle build failed
- Error C1083 error msb3075 in UE4 generated by vs2019 debug editor
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- The solution of package main extensions undefined package struts default
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- Julia install and use the extension package package (ERROR: UndefVarError: Pkg not defined)
- How to set the custom blood bar UI in UE4 and how to call it
- Error while importing package: couldn’t decompress package
- R: error: package or namespace load failed for ‘rjava’: