/    Sign up×
Community /Pin to ProfileBookmark

‘Stack overflow at line:23’?

When I’m testing a script I wrote, I get an alert message that says: ‘Stack overflow at line:23’

What does that mean, and how can I fix it?

Let me know if you need the file so I can attatch it.

Alan.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Sergey_SmirnovJan 27.2003 — Ofter, it happens because of using recursion when browser invokes function from the same function or something like that.

When function is invoked the return address is put on stack. if function does not return result and called again and again the stack grows and reachs the limit.

Actually, browser operates with javascripts in multi-threads mode, so the problem can be more complex than described above. A specially, if javascript function downloads something from server.

Of couse, the source code is required to find a right solution in your case.
×

Success!

Help @AntonioMainenti spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...