StateTree Crashing Sometimes When Compiling

Using Unreal 5.5

Recently my statetree started (seemingly) randomly crashing Unreal when I compile it. The log throws back this error:

Assertion failed: EditorNode.Instance.GetScriptStruct() == Instance.GetScriptStruct() [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\StateTree\Source\StateTreeEditorModule\Private\StateTreeCompiler.cpp] [Line: 1241]

I can reopen the project just fine afterwards and it usually compiles just fine a few times and then crashes again.

1 Like

More Information:

More rarely it can throw this error as well:
Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

I also recently upgraded my engine from 5.4 to 5.5

it can be a bug in UE5.5

it is using a null pointer somewhere

Maybe the “Instance” is not instancied…

Can you back to your previus UE version?
Or maybe you can wait to EU5.6… it will be release soon.

this happen too much often… have a backup always

Hey thanks for your response. It was probably something that happened during the update process… I think that I have managed to fix it somewhat.

I deleted the .vs, binaries, intermediate, and saved folders in the project and also deleted the global derived data cache in AppData\Local\UnrealEngine\Common\DerivedDataCache

Then I regenerated the projectfiles and rebuilt the project and now it seems to work

1 Like

Good news!!
Yes that files is recomended delete very often. I deleted it each day.
Best Regards!!