When I open a blueprint in the editor, either it’s a blank blueprint or one from the starter content, the editor crashes every time. On the next start the editor offers to restore the assets (the blueprints I tried to open) and successfully opens the blueprint editor with assets. Any attempt to open another blueprint results in a crash.
In the log of my project I found a message that the engine crashed due to a failed assertion. This is a chunk from the log:
That is odd, certainly not something that should be happening. Is this an installed version, or one you built yourself from GitHub? Have you modified the engine in any way?
Commented out line 139 “check(Blueprint != NULL);” in SimpleConstructionScript.cpp and no crushing so far.
The UBlueprint* Blueprint variable from void USimpleConstructionScript::PostLoad() which causes “assertion failed: Blueprint != NULL” seems not being used by anyone in the function (except the check macros). I debugged the editor to figure out why is it NULL, but the code was so complicated (honestly, I have never run such a big project) and I didn’t learn much. One thing I noticed, that the variable Blueprint derived NULL from UObject* GetGeneratedBy field of UClass. I went to the declaration of this field and read the comment “This is the blueprint that caused the generation of this class, or NULL if it is a native compiled-in class”. Bug or it is really can’t be a compiled-in class?
Initially I wanted to put here some chunks of code from Unreal Engine, but I’m not sure guys from Epic Games would like it. Can I do so?
We allow up to 30 lines of code to be shown for discussion, any more than that is not permitted. Did this crash start occurring after you created a new blueprint or has this occurred since installing the editor?
I’m not sure it started right after creation of a new blueprint, but I remember I could open and edit blueprints without crashing. Now when I open either level or class blueprint there pops up a window saying “Loading file: ActorMacros.uasset”, the editor freezes for a while and crushes.
Update: I went to my Engine\Content\EditorBlueprintResources\ and found out that my ActorMacros.uasset was modified three days ago… I don’t know by which means it got modified, can’t remember I was doing something unusual with the editor. So after replacing this file with one from the GitHub repository it’s not crushing, even with the uncommented check macros in SimpleConstructionScript.cpp.
Update2:: I created a new blueprint, saved the project and restarted the engine, but the file has not got modified.
Excellent news! I will mark your answer that you found as accepted, if you have any more trouble out of this please feel free to continue the conversation as we will help you further. Have a great day!