Editor freezing every few seconds

Hello,

My editor started randomly freezing for a few seconds at a time. I don’t know what I might’ve done to cause this.
I get the error below when I open the project, not sure if that’s involved. It seems to be happening with all projects.

If anybody has any ideas I would really appreciate it. I’m still a newbie so I don’t know how to go about figuring this out.

LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: false [File:D:\Build++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp] [Line: 1738]
LogOutputDevice: Error: Template Mismatch during attachment. Attaching instanced component to template component. Parent ‘SkeletalMeshComponent0’ Self ‘SkeletalMeshComponent0’
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00000000B1DF2786 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000B1B9123A UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000B1BAB906 UE4Editor-Core.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF5EDD68 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF613D12 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF5B5F0E UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF6142F8 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF613FC4 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF5004E3 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF521C29 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF100FF1 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF1102F0 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF10DABC UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF9B6787 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF9B6B67 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF58E887 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF5004E3 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF521C29 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF1012CB UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AF9933DE UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000B02EF9B7 UE4Editor-Engine.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000ADC91B94 UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000ADC82F45 UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000ADC67982 UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AE4FBAC9 UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000ADF7268B UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000ADF722DF UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AE4B486E UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000AE47882D UE4Editor-UnrealEd.dll!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x000000008B7E5326 UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x000000008B7E54AA UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x000000008B7F2379 UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x000000008B7F3D57 UE4Editor.exe!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00000000121A1FE4 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x000000001431F061 ntdll.dll!UnknownFunction []

Did you perform basic checks on your computer? Is your hard drive full? Do you have enough memory available?

Thanks a lot for your reply!
The error seemed to go away for a bit when I cleared out some hard drive space… But then it came back. I don’t get what I could’ve done to cause it to come back, though.
What kind of basic checks did you mean? Like a diagnostic tool? (If you have a recommendation that’d be great!)

After some playing around with it it seems like it’s somehow related to my enemy pawn. I have a player pawn and an enemy pawn in the 3rd person template map. It is only when I look in the direction of the enemy pawn (when he’s on screen) that I get these random freezes. If I look away from him then I can go forever without any freezes.
I seriously have no clue what’s causing this.

I meant really basic checks like hard drive space and enough RAM for the editor to work with. If you do not have enough RAM it will start using the swap space and everything can freeze. But it doesn’t look like it is the case for you.

Taking a closer look at your log there is this:

Template Mismatch during attachment. Attaching instanced component to template component. Parent ‘SkeletalMeshComponent0’ Self ‘SkeletalMeshComponent0’

Are you sure you are not trying to use some sort of Instanced Skeletal Mesh instead of the regular SkeletalMeshComponent?

Hello,

You could do a disk cleanup to free up more space. You will be surprised with how much memory you will gain by doing that. Backup your files and then reinstall your Engine version could remove the error all together.

Hope that you get something that works out.

OK, figured out the main issue. The stuttering or freezing was due to poor programming on my part, I was using a Cast function on every tick in the enemy AI’s behavior tree service. I moved it to the activation node instead of the tick one and saw a huge improvement.

The above log output was not causing this issue but I’m still trying to figure it out.

I have a skeletal mesh actor blueprint for a weapon, it includes a skeletal mesh (a sword). I’m attaching these to the pawns via sockets. Same with a shield blueprint. So the player and enemy characters have as part of their blueprints these weapons as child actors (of the mesh). I’m just not clear what instanced component I’m supposed to be attaching to a template.

Hmm, I’m looking at my child actors and the sword and shield look a bit different. My blueprints are called Sword_SM and Shield_SM. When I highlight the Player_BP blueprint child actor components and look in the Details section/Child Actor Component, the Child Actor Template section looks different for the shield and the sword, the sword one has a Default section that the shield doesn’t, and right above that the field next to the Child Actor Template for the sword says Sword-1 while the shield one says Shield_SM-1, that _SM missing from the sword makes me think that’s where the issue is, though I don’t know how to fix it or why it happened.