# State Tree Crashing Engine On Compilation

**URL:** <https://forums.unrealengine.com/t/state-tree-crashing-engine-on-compilation/2543529>\
**Category:** Blueprint\
**Tags:** debug, bug, compiling, debug-trace, engine-crash, crash-editor, unreal-engine, crash, compile, bug-report, editor, Blueprint, question\
**Created:** [June 6, 2025, 6:45am UTC](https://forums.unrealengine.com/t/state-tree-crashing-engine-on-compilation/2543529 "2025-06-06T06:45:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zapking9224](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zapking9224/32/1060813_2.png) [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Post date:** [June 6, 2025, 6:45am UTC](https://forums.unrealengine.com/t/state-tree-crashing-engine-on-compilation/2543529/1 "2025-06-06T06:45:54Z")

</div>

Hi,  
So I’m having an issue where I have a state tree and I want to see if the enemy’s (the context actor) distance to the player is between 700 and 1000. The condition works fine if I put in just one condition for if it’s greater than 700 or less than 1000. But as soon as I do multiple conditions (using the “and” operator) with using the inputs to reference the player, compiling the program crashes it. I attached screenshots of the conditions’ states that cause the crash to happen when I compile. Any ideas as to why this is happening would be super helpful!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/f/0cfe362b0d17b2b78e3b6498ac1c1e7a70d13f5c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/9/9a9be1ce6f84e0a786e7701e022d9fe8753064c7.png)

LoginId:e6eda27d48b9f561561b199b702f50cd  
EpicAccountId:05d5c4ed640a4f0dbc00372b1849ef79

Unhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0xffffffffffffffff

UnrealEditor\_CoreUObject  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_StateTreeEditorModule  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_Slate  
UnrealEditor\_ApplicationCore  
UnrealEditor\_ApplicationCore  
UnrealEditor\_ApplicationCore  
UnrealEditor\_ApplicationCore  
user32  
user32  
UnrealEditor\_ApplicationCore  
UnrealEditor  
UnrealEditor  
UnrealEditor  
UnrealEditor  
UnrealEditor  
UnrealEditor  
kernel32  
ntdll

---

<div class="post-metadata">

**Author:** ![pastalapate](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pastalapate](https://forums.unrealengine.com/u/pastalapate)\
**Post date:** [August 1, 2025, 10:21am UTC](https://forums.unrealengine.com/t/state-tree-crashing-engine-on-compilation/2543529/2 "2025-08-01T10:21:28Z")

</div>

Have you solved this ?

---

<div class="post-metadata">

**Author:** ![Zapking9224](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zapking9224/32/1060813_2.png) [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Post date:** [August 9, 2025, 7:10pm UTC](https://forums.unrealengine.com/t/state-tree-crashing-engine-on-compilation/2543529/3 "2025-08-09T19:10:09Z")

</div>

I have not. The best solution/workaround is I just wrote out my own distance checking condition that mimics how the distance conditional should be working.
