Download

Ensure Condition Failed: GetCharacterOwner() error

Hello! I’m getting an error when I tried playing my game in Editor mode. The issue is that this problem appears only once, when I play in Editor mode for the 1st time. Subsequent play through do not have the error. The error is reproduced when I restart UE4.

Here is the error output log:

LogOutputDevice: Warning: Script Stack:
BP_BaseAIMob_C.ExecuteUbergraph_BP_BaseAIMob
BP_BaseAIMob_C.ReceiveTick
BP_Ghoul_C.ExecuteUbergraph_BP_Ghoul
BP_Ghoul_C.ReceiveTick
LogStats: FPlatformStackWalk::StackWalkAndDump - 0.296 s
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: GetCharacterOwner() [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\CharacterMovementComponent.cpp] [Line: 9025]
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D773E36
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D4FC2D2
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D514746
LogOutputDevice: Error: UE4Editor-Engine.dll!0x0000000069D85C29
LogOutputDevice: Error: UE4Editor-Engine.dll!0x0000000069D12374
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CE3E944
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CFFDDA4
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D013101
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D0152E2
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CFFE7AE
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D0152E2
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CFFE7AE
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D0152E2
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CFFE7AE
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D0152E2
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006CE3E944
LogOutputDevice: Error: UE4Editor-CoreUObject.dll!0x000000006D014675
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006995B247
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006AB0603B
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006997C73E
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006997CC79
LogOutputDevice: Error: UE4Editor-Engine.dll!0x0000000069933716
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A95B38B
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A961E2B
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D3C24F5
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D3C2ADA
LogOutputDevice: Error: UE4Editor-Core.dll!0x000000006D3E29CE
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A97E512
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A983AA2
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A27F944
LogOutputDevice: Error: UE4Editor-Engine.dll!0x000000006A28B2C6
LogOutputDevice: Error: UE4Editor-UnrealEd.dll!0x0000000067E1C982
LogOutputDevice: Error: UE4Editor-UnrealEd.dll!0x00000000686AD646
LogOutputDevice: Error: UE4Editor.exe!0x000000007CFC534A
LogOutputDevice: Error: UE4Editor.exe!0x000000007CFD3970
LogOutputDevice: Error: UE4Editor.exe!0x000000007CFD39EA
LogOutputDevice: Error: UE4Editor.exe!0x000000007CFE02D9
LogOutputDevice: Error: UE4Editor.exe!0x000000007CFE1C47
LogOutputDevice: Error: KERNEL32.DLL!0x00000000D2072774
LogOutputDevice: Error: ntdll.dll!0x00000000D46D0D51

Does anyone have any idea what went wrong? The problem is that in standalone it causes a split second lag for the 1st playthrough, and then it works properly.

Version: UE4.17.2

Thank you!

If you using blueprints then its not probably your fail…

Try to delete all your characters from level and restart editor and check what happens…

Its some problem with nullptr in c++, however im c++ beginner so i dont know what exactly it means and how to solve it, but try what i mentioned - delete all characters from level if there are some…
And if there arent any and you still get this error, open visual studio, open charactermovementcomponent.cpp, go to line 9025 and delete only (ensure) or (!ensure) macro, it will fail but wont lag.