Hi! I’m relatively new to UE, only about 7 months of experience (pretty much exclusively BP dev), but am having a ton of trouble fixing a bug when cooking.
It seems somewhat random - I’ve tested cooking before & after changing a single “variable” in the code & sometimes the cook fails with this error, but doing the same thing at a different time breaks the cook. I don’t feel like this cook error occurred very frequently until ~2-3 days ago.
I’ve spent the last few days doing everything I can to figure out what the issue is - repeated testing, forum searches, Google searches, Traces, recompilation of all BPs, fixing up redirectors, clearing Derived Data Cache, Intermediate, Saved, & Build folders, resaving all, recompiling all shaders, checking Windows, drivers, & UE are updated, restarting, etc. Sometimes those things seem to fix the issue, but other times (now) they have done nothing. I even have tested revision control, where I get a successful cook, commit/push, make changes, get failed cook, then revert to the successful cook commit/push, then it fails to cook.
I just do not understand what’s happening, how to trace the error to the exact BP/function/etc. causing the issue, & am burning through schedule making basically no progress because I’m constantly encountering this issue.
What’s also strange to me is that usually when I’ve had identifiable errors I CAN correct, they trigger a failed cook prior to (below), but this issue occurs after (below), but before the FShaderCache (or something like that)
“UATHelper: Cooking (Windows): LogPackageBuildDependencyTracker: Display: Package Accesses (622 referencing packages with a total of 11558 unique accesses)
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Cooking (Windows): LogInit: Display: -----------------------------------
UATHelper: Cooking (Windows): LogInit: Display: LogText: Warning: Saving FText “” which has been initialized from FString at cook time resave of source package /Game/Genesis/UI/Components/Roster/BPO_RosterUnit may fix issue.
UATHelper: Cooking (Windows): LogInit: Display: LogText: Warning: Saving FText “” which has been initialized from FString at cook time resave of source package /Game/Genesis/Settings/Structs/S_GenesisUnit may fix issue.
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): LogInit: Display: Success - 0 error(s), 2 warning(s)
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): Execution of commandlet took: 21.42 seconds”
I would be extremely grateful for any assistance provided, even just informing me how to trace these issues so I can solve them in the future. Thank you VERY much!
Here’s the end of the error log:
UATHelper: Cooking (Windows): LogCook: Display: DDC Resource Stats
UATHelper: Cooking (Windows): LogCook: Display: =======================================================================================================
UATHelper: Cooking (Windows): LogCook: Display: Asset Type Total Time (Sec) GameThread Time (Sec) Assets Built MB Processed
UATHelper: Cooking (Windows): LogCook: Display: ---------------------------------- ---------------- --------------------- ------------ ------------
UATHelper: Cooking (Windows): LogCook: Display: Texture 1.01 0.00 0 85.33
UATHelper: Cooking (Windows): LogCook: Display: BulkDataList 0.69 0.00 0 1.17
UATHelper: Cooking (Windows): LogCook: Display: MaterialShader 0.03 0.03 0 6.01
UATHelper: Cooking (Windows): LogCook: Display: StaticMesh 0.02 0.01 0 2.53
UATHelper: Cooking (Windows): LogCook: Display: Audio 0.02 0.00 0 0.20
UATHelper: Cooking (Windows): LogCook: Display: DistanceField 0.02 0.01 0 3.22
UATHelper: Cooking (Windows): LogCook: Display: NavCollision 0.02 0.00 0 0.06
UATHelper: Cooking (Windows): LogCook: Display: CardRepresentation 0.01 0.00 0 0.04
UATHelper: Cooking (Windows): LogCook: Display: GlobalShader 0.01 0.01 0 8.80
UATHelper: Cooking (Windows): LogCook: Display: AnimationSequence 0.01 0.00 0 2.09
UATHelper: Cooking (Windows): LogCook: Display: SkeletalMesh 0.00 0.00 0 2.26
UATHelper: Cooking (Windows): LogCook: Display: BodySetup 0.00 0.00 0 0.84
UATHelper: Cooking (Windows): LogCook: Display: BulkDataPayloadId 0.00 0.00 0 0.00
UATHelper: Cooking (Windows): LogPackageBuildDependencyTracker: Display: Package Accesses (622 referencing packages with a total of 11558 unique accesses)
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): LogInit: Display: Warning/Error Summary (Unique only)
UATHelper: Cooking (Windows): LogInit: Display: -----------------------------------
UATHelper: Cooking (Windows): LogInit: Display: LogText: Warning: Saving FText “” which has been initialized from FString at cook time resave of source package /Game/Genesis/UI/Components/Roster/BPO_RosterUnit may fix issue.
UATHelper: Cooking (Windows): LogInit: Display: LogText: Warning: Saving FText “” which has been initialized from FString at cook time resave of source package /Game/Genesis/Settings/Structs/S_GenesisUnit may fix issue.
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): LogInit: Display: Success - 0 error(s), 2 warning(s)
UATHelper: Cooking (Windows): LogInit: Display:
UATHelper: Cooking (Windows): Execution of commandlet took: 21.42 seconds
UATHelper: Cooking (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Cooking (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: Fatal error!
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa60e2fd52 UnrealEditor-UnrealEd.dll!FPackageBuildDependencyTracker::StaticOnObjectHandleRead() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Cooker\PackageBuildDependencyTracker.cpp:100]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa60da8a06 UnrealEditor-UnrealEd.dll!UE::Core::Private::Function::TFunctionRefCaller<void (__cdecl*)(TArrayView<UObject const * const,int>),void __cdecl(TArrayView<UObject const * const,int>)>::Call() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:480]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6872a36a UnrealEditor-CoreUObject.dll!UE::CoreUObject::Private::OnHandleReadInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ObjectHandleTracking.cpp:202]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa683928df UnrealEditor-CoreUObject.dll!UE::CoreUObject::Private::ResolveObjectHandle() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectHandle.h:223]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6873f6ba UnrealEditor-CoreUObject.dll!FLinkerPlaceholderObjectImpl::ResolvePlaceholderValues() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:86]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6873ec74 UnrealEditor-CoreUObject.dll!FLinkerPlaceholderBase::ResolvePlaceholderPropertyValues() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:597]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6873dc37 UnrealEditor-CoreUObject.dll!FLinkerPlaceholderBase::ResolveAllPlaceholderReferences() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.cpp:517]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6873d64f UnrealEditor-CoreUObject.dll!TLinkerImportPlaceholder::ResolveAllPlaceholderReferences() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderBase.inl:63]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa687111fe UnrealEditor-CoreUObject.dll!ULinkerPlaceholderClass::BeginDestroy() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\LinkerPlaceholderClass.cpp:34]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa68713eae UnrealEditor-CoreUObject.dll!UObject::ConditionalBeginDestroy() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:1175]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa68663f3e UnrealEditor-CoreUObject.dll!UnhashUnreachableObjects() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:4837]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa68600f98 UnrealEditor-CoreUObject.dll!IncrementalPurgeGarbage() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:3955]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa6874d58a UnrealEditor-CoreUObject.dll!StaticExit() [D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:5131]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffa685e1f37 UnrealEditor-CoreUObject.dll!TBaseStaticDelegateInstance<void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:777]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd105e4 UnrealEditor-Cmd.exe!TMulticastDelegate<void __cdecl(void),FDefaultDelegateUserPolicy>::Broadcast() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:956]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd0fc92 UnrealEditor-Cmd.exe!FEngineLoop::AppPreExit() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:6757]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd1bca8 UnrealEditor-Cmd.exe!FEngineLoop::Exit() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5076]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd1d31b UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:202]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd1d37a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd20854 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd36984 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ff66cd38eb6 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
UATHelper: Cooking (Windows): LogWindows: Error: [Callstack] 0x00007ffaefb3257d KERNEL32.DLL!UnknownFunction
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: end: stack for UAT
UATHelper: Cooking (Windows): Took 30.55s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Cooking (Windows): Cook failed.
UATHelper: Cooking (Windows): (see C:\Users\PC\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\Log.txt for full exception trace)
UATHelper: Cooking (Windows): AutomationTool executed for 0h 0m 32s
UATHelper: Cooking (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Cooking (Windows): BUILD FAILED