# Where should I be looking from error messages like this for debugging?

**URL:** <https://forums.unrealengine.com/t/where-should-i-be-looking-from-error-messages-like-this-for-debugging/2728190>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** unreal-engine, question\
**Created:** [June 12, 2026, 9:43am UTC](https://forums.unrealengine.com/t/where-should-i-be-looking-from-error-messages-like-this-for-debugging/2728190 "2026-06-12T09:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigDonnyCalTTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BigDonnyCalTTV](https://forums.unrealengine.com/u/BigDonnyCalTTV)\
**Post date:** [June 12, 2026, 9:43am UTC](https://forums.unrealengine.com/t/where-should-i-be-looking-from-error-messages-like-this-for-debugging/2728190/1 "2026-06-12T09:43:35Z")

</div>

Hello, I know this might be quite vague as of course I don’t have my script attached to this post and thus not sharing exactly what UE is referencing here but here is the scenario: I have repetitively had this error message come up when playing through my game after 7-10 minutes and I’m not sure how to take this error message and use it to find what exactly is causing the problem. I understand there is an infinite loop being triggered within my EnemyAI but when following the hyperlinked buttons it points me to logic which seemingly cannot be looped like that.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/1/4f133370658643f1fd3d510683cdff939fe742b0.png)

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [September 11, 2026, 7:00pm UTC](https://forums.unrealengine.com/t/where-should-i-be-looking-from-error-messages-like-this-for-debugging/2728190/2 "2026-09-11T19:00:20Z")

</div>

the hyperlinks in that warning jump to the node the engine was executing when the runaway-loop detector tripped — in a real infinite loop that node is usually innocent, it is just where the budget expired. the loop itself completes elsewhere. patterns that produce this in AI blueprints:

1. event ping-pong: A’s event calls into B, B calls back into A (interface messages between controller/pawn, a dispatcher bound to a handler that dispatches again). the callstack shows one leg of the cycle; the return leg is invisible in the links.
2. MoveCompleted re-issue loops: on move completed you issue a new move command, the path fails instantly (goal unreachable, inside collision, zero-length path), MoveCompleted fires again immediately → tight loop with no frame in between. very common with AI and matches “after 7-10 minutes” if it triggers when something depletes or blocks.
3. a loop whose exit condition depends on a value set outside the loop, or a DoOnce/Gate wired so the exit branch is never reached.
4. recursion through a function where one branch silently never hits the exit condition.  
how to actually find it:

- the warning dialog’s Debug button opens the callstack — look for the same event/function name appearing twice or more in the frame chain. the repeating pattern IS your cycle.
- 
  - instrument the suspects: Print String with the actor name + a counter at the entry of every event on EnemyAI that can fire autonomously (Tick, MoveCompleted, OnSeePawn / perception update, BT service ticks, any dispatcher handler). run your 7-10 minutes and see which print goes into non-stop firing right before the hang.

- 
  - watch for state flips: log the AI state (idle/chase/attack) at the top of the main events. a 7-10 minute delay before the loop smells like something runs out or expires and the fallback branch loops — e.g. no valid target → re-issue logic → re-issue logic.  
fix is usually a guard: after issuing a move, do not re-issue until pathfollowing reports success or a real failure reason, and add a cooldown to any event that can re-trigger itself.
