How do I solve "Maximum Call Stack Size exceeded" JS Error

Get help using Construct 2

Post » Fri May 27, 2016 8:53 am

I'm using a few functions in my game and recently I have added one more and keep getting this error when I call the last created function.

Image

I didn't know that there is a limit of functions? Or does the issue come from something else?

The function is complete empty, no actions.

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
106
S
39
G
31
Posts: 1,172
Reputation: 29,233

Post » Fri May 27, 2016 9:05 am

I think that you could have a recursion in one of your functions. That can a cause for a stack overflow.
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Fri May 27, 2016 10:09 am

Asmodean wrote:I think that you could have a recursion in one of your functions. That can a cause for a stack overflow.


Yes, you're right. I just saw that I have two diffrent functions with the same name, so they called each other till the error came up!

Thank you!

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
106
S
39
G
31
Posts: 1,172
Reputation: 29,233


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests