# UE 5.5.2.0 Crash in FStateTreeCompiler::CreateBindingsForNodes due to garbage memory access

**URL:** <https://forums.unrealengine.com/t/ue-5-5-2-0-crash-in-fstatetreecompiler-createbindingsfornodes-due-to-garbage-memory-access/2432732>\
**Category:** C++\
**Tags:** editor-crash, unreal-engine, state-machines, crash, CPP\
**Created:** [March 31, 2025, 7:09pm UTC](https://forums.unrealengine.com/t/ue-5-5-2-0-crash-in-fstatetreecompiler-createbindingsfornodes-due-to-garbage-memory-access/2432732 "2025-03-31T19:09:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EmkyuNQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EmkyuNQ](https://forums.unrealengine.com/u/EmkyuNQ)\
**Post date:** [June 19, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/ue-5-5-2-0-crash-in-fstatetreecompiler-createbindingsfornodes-due-to-garbage-memory-access/2432732/2 "2025-06-19T13:28:37Z")

</div>

We are currently experiencing a similar issue in Unreal 5.5.2 with the State Tree Compiler.

The State Tree Compiler can sporadically make the editor crash. It happens for any State Tree Asset using a lot of binded properties, especially bindings using property functions.  
Moreover, it can prevent the cook of the project, as the State Tree Compilation sometimes break and needs manual recompilation.

 ![image_2025-06-19_140208481](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/1/bb1a06ddf84011caeb6c64b2bd85f4ac6742dfca.png)  
 ![image (5)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/8/c58369bd425ed57484d27a4fcf337ce11ca80dff.png)

This issue was partially solved by replacing the `FStateTreeCompiler::CreateBindingNodes` signature from

> bool FStateTreeCompiler::CreateBindingsForNodes(TConstArrayView EditorNodes, FStateTreeIndex16 NodesBegin, TArrayView Instances)

to

> `bool FStateTreeCompiler::CreateBindingsForNodes(TConstArrayView<FStateTreeEditorNode> EditorNodes, FStateTreeIndex16 NodesBegin, TArray<FInstancedStruct>& Instances)`

as suggested by @brain56.

However, making the changes makes any `FStateTreePropertyRef` unusable. Pointers to State Tree Parameters seems to break. This is noticeable while performing a `FStateTreeRunEnvQueryTask`, where the Parameter binded for the result is not updated.

Has anyone suggestions on how to solve this ?

---

_[View the full topic](https://forums.unrealengine.com/t/ue-5-5-2-0-crash-in-fstatetreecompiler-createbindingsfornodes-due-to-garbage-memory-access/2432732)._
