# I need a workaround on "Inifinite Loop detected"

**URL:** <https://forums.unrealengine.com/t/i-need-a-workaround-on-inifinite-loop-detected/1211847>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [June 27, 2023, 5:04am UTC](https://forums.unrealengine.com/t/i-need-a-workaround-on-inifinite-loop-detected/1211847 "2023-06-27T05:04:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![UnrealEverything](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealEverything](https://forums.unrealengine.com/u/UnrealEverything)\
**Post date:** [June 28, 2023, 6:06am UTC](https://forums.unrealengine.com/t/i-need-a-workaround-on-inifinite-loop-detected/1211847/5 "2023-06-28T06:06:13Z")

</div>

The runaway loop counter typically resets every tick. So one approach would be to spread processing into chunks over multiple ticks. Where does the input array to the foreach loop come frome? This can be a common mistake as the function providing the array will be called for each iteration as well. Try searching other threads with the same issue, not too long ago I spent a while answering one here [Absolute BS infinite loop error...](https://forums.unrealengine.com/t/absolute-bs-infinite-loop-error/836778/1)

---

_[View the full topic](https://forums.unrealengine.com/t/i-need-a-workaround-on-inifinite-loop-detected/1211847)._
