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
100
S
35
G
30
Posts: 1,134
Reputation: 28,081

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: 451
Reputation: 2,165

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
100
S
35
G
30
Posts: 1,134
Reputation: 28,081


Return to How do I....?

Who is online

Users browsing this forum: dop2000, mcscooter and 30 guests