Crash: Stale node memory in behavior tree service tick.

Just thought I would report this as a potential crash for other teams.

I have a service that selects a new target and changes a blackboard key. It then sets the time interval for next evaluation.

if (CheckConditions(OwnerComp, NodeMemory))
{
ProcessTargetSelector(OwnerComp, NodeMemory);

     SetNextTickTime(NodeMemory, NextInterval);

}

I have bbkey decorator that triggers when this blackboard value changes. This tree search can cause the nodememory for the node I’m in to become stale. Then when I set the next tick time interval I’m writing to stale memory.

This seems like something that could be relatively common.
Just thought I would report this as a potential crash for other teams.