maximum call stack size exceeded

Discussion and feedback on Construct 2

Post » Sun Jun 26, 2016 7:03 am

Perhaps someone can help me find my problem in the game. Or at least tell me what this error means.
the exact error is.

Javascript error!
Uncaught RangeError: Maximum call stack size exceeded
http://localhost:5000/eveng.js, line 1262 (col41)

(line and col is different everytime)

What I could find on the internet is that it means a function keeps getting called for hundreds of times and reach it maximum amount of calls. However this problem doesn't occur everytime but it seem to do it random. When it happens it is always at a certain point in the game but like I said it doesn't happen every time.

Could this error means a call function is in a loop? Or a condtion is constantly being true and doing the same event over and over again? Or something else?
B
7
S
2
Posts: 144
Reputation: 1,081

Post » Sun Jun 26, 2016 8:46 am

I think you might have a recursion on one of your functions.
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Sun Jun 26, 2016 9:49 am

Thanks for the reply. After a long search I found it. It was indeed a function wich was running in a loop. It seemed random because the function would only be called on a random number but once it was called it would get stuck in a loop.

Thanks!
B
7
S
2
Posts: 144
Reputation: 1,081


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests