InfiniteLoop runtime error

I’m encountering an InfiniteLoop runtime error that appears only occasionally in my project UI_Mechanics. The issue is difficult to diagnose because the map has over 500 hours of playtime daily, yet the Verse crash happens very rarely and I haven’t been able to recreate it.

The project contains 20+ Verse scripts with many lines of code, so its hard to find what is causing it. After spending many hours investigating, I still haven’t identified which script, or which function is causing the crash.

Is there a way to determine which specific script or function triggers the InfiniteLoop runtime error in Verse? Any debugging method, logging approach, or tooling that could help isolate the issue would be very helpful.

Hi! for what it’s said in the error, the problem should be a method that will call itself at the end of it or in the stack call, ends calling itself again, causing the recursion if it happens rarely, I would assume it probably has the “suspends” effect, at it’s something that runs really slow. So it needs time to happen and reach the max stack call. If it’s something like this, you could add the spawn when it calls to itself, to avoid the recursion.