# Why do I get the error "Infinite Loop Detected" when there's NO INFINITE LOOP!?!?!??

**URL:** <https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052>\
**Category:** Blueprint\
**Tags:** error, infinite-loop, unreal-engine, bug-report, Blueprint, question\
**Created:** [January 26, 2023, 2:04am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052 "2023-01-26T02:04:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fallerrr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fallerrr/32/482685_2.png) [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Post date:** [January 26, 2023, 2:04am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/1 "2023-01-26T02:04:47Z")

</div>

I set up code that changes the actor the player is holding when they overlap a trigger, BUT EVERYTIME THEY OVERLAP IT, IT CLOSES THE GAME AND GIVES ME AN INFINITE LOOP. I’ve checked the node that the error called out, and THERE’S NO INFINITE LOOP. If I remove the node it called out and try again, IT CALLS OUT A COMPLETELY UNRELATED NODE. It even linked me to code in a MACRO that I didn’t even write myself. I’m genuinely going insane because of this please help.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/8/e0811282aeafefbe345c051165dcf987f46361b5.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/6/b760cd7a3214cedfc8758bcabe5fd03fd4bb6df7.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 26, 2023, 2:41am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/2 "2023-01-26T02:41:41Z")

</div>

Hey @Fallerrr!

Can you post pictures of the blueprints in question? Getting another set of eyes on something is always good!

---

<div class="post-metadata">

**Author:** ![Fallerrr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fallerrr/32/482685_2.png) [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Post date:** [January 26, 2023, 2:43am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/3 "2023-01-26T02:43:29Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/3/bc365f350ea84a3eb18bab64cb97b560cf4d6a1c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/9/3d95d6d5e84c705d83d1f055d3187c64f10d7056.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 26, 2023, 2:55am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/4 "2023-01-26T02:55:17Z")

</div>

@Fallerrr You’re right, I don’t see any infinite loops.

(On another note, instead of casting on tick, try setting that dodgeball\_Health widget as a variable, it’ll help out your performance 🙂 )

But yeah, I would say try saving and closing out of UE5, and reopening it. That’s what I usually do when things are happening that don’t make any sense. Apart from that… Idk I’m not seeing any loops either. Give it a restart and let us know. 🙂

---

<div class="post-metadata">

**Author:** ![Fallerrr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fallerrr/32/482685_2.png) [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Post date:** [January 26, 2023, 3:56am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/5 "2023-01-26T03:56:03Z")

</div>

Alright, I’ll try restarting and give you an update.

---

<div class="post-metadata">

**Author:** ![Fallerrr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fallerrr/32/482685_2.png) [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Post date:** [January 26, 2023, 4:02am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/6 "2023-01-26T04:02:17Z")

</div>

No words.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/5/a25ea36e86ef0b0e013ae13c2e8d444fc0c00529.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [January 26, 2023, 5:13am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/7 "2023-01-26T05:13:44Z")

</div>

I honestly am at a loss myself. Try putting in a “DoOnce” Node before the DestroyActor?

---

<div class="post-metadata">

**Author:** ![AustrianMunzter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/austrianmunzter/32/630075_2.png) [@AustrianMunzter](https://forums.unrealengine.com/u/AustrianMunzter)\
**Post date:** [January 26, 2023, 9:34am UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/8 "2023-01-26T09:34:34Z")

</div>

hi,  
i had this problem in my project and just adding a DelayNextTick Node fixed it up, try adding the node before DestroyActor.

 ![ue_infLoop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/8/1e85d8183714eddacb41e029ccc3178b03b2c43a.jpeg)

i think this warning comes if you destroy the actor OnOverlap with no Delay, if there is at least 1 frame it should be gone

hope this helps you 🙂

cheers 🖖

---

<div class="post-metadata">

**Author:** ![Fallerrr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fallerrr/32/482685_2.png) [@Fallerrr](https://forums.unrealengine.com/u/Fallerrr)\
**Post date:** [January 31, 2023, 10:10pm UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/9 "2023-01-31T22:10:06Z")

</div>

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![AustrianMunzter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/austrianmunzter/32/630075_2.png) [@AustrianMunzter](https://forums.unrealengine.com/u/AustrianMunzter)\
**Post date:** [January 31, 2023, 10:11pm UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-infinite-loop-detected-when-theres-no-infinite-loop/757052/10 "2023-01-31T22:11:27Z")

</div>

hi,  
no problem, glad it helped you 🙂
