Compile Blueprint Crashes editor; (Virtual functions table is invalid)

Hi Everyone,

I am using Unreal Engine 4.17.1 (both the GitHub source and the launcher versions). I am running into an issue that has me stumped. In the project that I am working on there is an actor class that we use as a parent to many other classes. This file has been in our project awhile and has had no issues. Recently we tried to change and compile it but this ends up crashing the editor. When we looked deeper into the issue, it looks like the event is triggered by a conditional statement in the UE4 source code. The statement is as follows:

if (*(void**)this == nullptr)
{
	UE_LOG(LogUObjectBase, Error, TEXT("Virtual functions table is invalid."));
	return false;
}

Does anyone know what could cause this, and how we could fix it?

Thanks!

I have been debugging this problem as well. If I start with my application in 4.16.2 i can compile all of the blueprints no issue. When I upgrade to 4.17.1 I can’t compile some of my actor classes. The only difference i can see is the get root component node (1) changed over to a K2 get root component node (2).

212521-grc.png

212522-k2-get-root-component.png

I would just switch back but we have done development in 4.17.1 and it is saying that my level is not backwards compatible.

Trying to switch back to version 4.16.2 i get this message:
Failed to open map file. This is most likely because the map was saved with a newer version of the engine.

I found a post, that solved my issue with a work around. [Thank you, Burnz]

you have set
[/Script/UnrealEd.BlueprintEditorProjectSettings]
bUseCompilationManager=False

Here is the link to the original post:
Editor crashing (4.17) when compiling Blueprints (UE-48429) - Blueprint - Unreal Engine Forums

If any one figures out the original issue, causing this to happen, or if there is another fix, please let me know.