Crash Cast C++ default project Casts.cpp

hey all i started a default third person project and started coding wit C++ to lets say move an object, but every now and then the game crashes with the following error:

Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10] Cast of Object /Script/CoreUObject.Default__Object to Actor failed

UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

this is only when i try to play the game. i just added 1 class with a small amount of code to move a cube with FVector so it is as default as it can be. if i restart it it works a few times but after a while it just has this fatal error, anyone that can help me?

It seems that in my case the problem was live coding messing up my blueprint derived from c++ classes. Disabling it, seems to fix it for me.

2 Likes

I have the same problem but I don’t know how disable from what you are saying

Right bottom
image

1 Like

oh that I already done that but I am still here looking for solutions.

with my code it just happend because the code was not good and just crashed my editor, it was the code i added myself, i never get it now because i’m on another tutorial now. live coding is just on