MyOwnerWorld Error when Cooking [UE - 4.15.3]

Hello,

I have been getting an error when trying to cook my game. When I cook it, there seems to be 30 errors and is related to RegisterComponent() somehow. I tried looking at this thread, but there is no clear solution. Here is the error:


UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: -----------------------------------
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: begin: stack for UAT
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: === Handled ensure: ===
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: 
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: Ensure condition failed: MyOwnerWorld [File:D:\Build\++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp] [Line: 986]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: Stack: 
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:326]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Core.dll!FWindowsPlatformStackWalk::StackWalkAndDump() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\private\windows\windowsplatformstackwalk.cpp:200]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:327]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::EnsureFailed() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:233]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:327]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Core.dll!FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:360]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:327]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Engine.dll!UActorComponent::RegisterComponent() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\engine\private\components\actorcomponent.cpp:986]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:327]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!FObjectInitializer::PostConstructInit() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2888]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:327]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!FObjectInitializer::~FObjectInitializer() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:2745]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:328]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!UClass::CreateDefaultObject() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:2726]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:328]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!UObjectLoadAllCompiledInDefaultProperties() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:777]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:328]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!ProcessNewlyLoadedUObjects() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\coreuobject\private\uobject\uobjectbase.cpp:853]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:328]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-CoreUObject.dll!TBaseStaticDelegateInstance<void __cdecl(void)>::ExecuteIfSafe() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:1027]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Core.dll!TBaseMulticastDelegate<void>::Broadcast() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:937]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:471]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\projects\private\moduledescriptor.cpp:412]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Projects.dll!FProjectManager::LoadModulesForProject() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\projects\private\projectmanager.cpp:60]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!FEngineLoop::LoadStartupModules() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2395]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:329]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!FEngineLoop::PreInit() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:1832]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:330]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!GuardedMain() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\launch\private\launch.cpp:127]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:330]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:330]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!WinMain() [d:\build\++ue4+release-4.15+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:331]  0]LogInit:Display: LogOutputDevice:Error: UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:331]  0]LogInit:Display: LogOutputDevice:Error: KERNEL32.DLL!0x0000000095632774
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:331]  0]LogInit:Display: LogOutputDevice:Error: ntdll.dll!0x0000000098130D51
UATHelper: Cooking (Windows): UE4Editor-Cmd: [2017.07.26-06.25.56:331]  0]LogInit:Display: LogOutputDevice:Error: end: stack for UAT

There were errors before related to some of my classes, but I fixed them. Now, they are all engine related, and not easy to figure out why. I thought maybe the error could be me doing RegisterComponent in PostInitProperties in a class that extends UActorComponent, which was indeed causing an error. But, now I am stuck with just this engine code, and I have no idea where to start.

If anyone has encountered this problem and has solutions/ideas, I’m all ears.

I figured out the problem, I couldn’t do RegisterComponent in PostInitProperties(), only in BeginPlay() or after. Hope this helps people in the future.

1 Like