Unreal Editor Crash When including Gameframework/Actor.h

Hello Folks!

I ran across a pretty annoying problem: As soon as I include Gameframework/Actor.h, and add the line

FString ClassName = GetOwner()->GetName();

the unreal editor crashes when trying to compile the project from there. I also can’t launch the editor anymore then.

If I remove derived files and regenerate without the line above, I can start the editor again.

Also I don’t get any useful information in the crash reporter (“You do not have any debugging symbols required to display the callstack for this crash.”; how could I change that?) and the logs under “BuildingEscape\Saved\Crashes\UE4CC-Windows-XXXXX” are of no help either.

Any ideas?

Found the issue, it might be helping somebody so I’ll post it:

I had that code in the constructor’s class. When moving it to BeginPlay(), everything works fine!

2 Likes

Privacy & Terms