Infinite loop error

This kind of errors happen when a function A calls function B, but function B calls function A.

Make sure that you are not doing this.