Recursion.defaultMaxDepth error!

Max Ivanchenko 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 8

Hi everyone

Bolt is really amazing! Just started to have fun and got this problem:

I've created a Super Unit and it works fine. But then I've connected 2 copy of the same Super Unit one by one and got the error:

StackOverflowException: Max recursion depth of 10 has been exceeded. Consider increasing 'Recursion.defaultMaxDepth'.

Ludiq.Recursion.Guard (System.Object o) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Utilities/Recursion.cs:45) .....

(the object in second unit is still HitButton)

may be it is stupid question.. sorry)

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

I believe this is fixed in the next version. It's a bug though.

Yeh, I noticed that in one of my videos. Copying a super unit breaks it but copy the contents of the super unit to a new super unit and it works. It looks to be fixed in the update.


Hi Max! Welcome to the community.

This does seem like a bug I fixed in v.1.0.4. Please let me know if it persists even in the next version.

Got this error today 

Bolt 1.2.4 Alpha

Fixed by setting object to graph var


Well, that error is actually doing its job: the recursion prevention system is preventing your editor from freezing.

The Null Coalesce tries to get a fallback, but the source of its fallback is a node that uses the very result of the Null Coalesce. There is an infinite recursion in your initial design, and Bolt catches it.