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
122
S
44
G
31
Posts: 1,203
Reputation: 30,257

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
26
S
3
G
1
Posts: 497
Reputation: 2,324

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
122
S
44
G
31
Posts: 1,203
Reputation: 30,257


Return to How do I....?

Who is online

Users browsing this forum: Ashley, Lancifer and 4 guests