Maximum call stack size exceeded error

0 votes

I am getting an error in safari when I use Direct Web Remoting (DWR) JavaScript library file. I am getting this error only in safari.
Error :

Maximum call stack size exceeded.


What does this error mean and does it stop processing completely?

Apr 28 in Other DevOps Questions by Kichu
• 19,040 points
55 views

1 answer to this question.

0 votes

The problem is that you are calling a function which in turn calls another function. This happens because of a recursive function with a base case that isn't being met. 

Viewing the stack.

Code:

(function a() {

    a();

})();

Here is the stack:

Web Inspector

The call stack grows until it hits a limit. To fix it check your recursive function has a base case that is able to be met.

(function a(x) {

    // The following condition 

    // is the base case.

    if ( ! x) {

        return;

    }

    a(--x);

})(10);

I hope this helps.

answered Apr 29 by narikkadan
• 18,480 points

Related Questions In Other DevOps Questions

0 votes
1 answer

Python-based project of salt stack

you can use python instead of yaml, ...READ MORE

answered Jun 5, 2018 in Other DevOps Questions by ajs3033
• 7,280 points
360 views
0 votes
1 answer

salt error : “TypeError: coercing to Unicode: need string or buffer, bool found”

You can check the discussion regarding same ...READ MORE

answered Jun 17, 2018 in Other DevOps Questions by shubham
• 7,320 points
1,697 views
0 votes
1 answer

IS app pool import fails with error message.configuration error…insufficient permissions

There is a config file at %SystemRoot%\System32\inetsrv\config\redirection.config Removed the ...READ MORE

answered Jun 19, 2018 in Other DevOps Questions by shubham
• 7,320 points
1,123 views
0 votes
1 answer

Unable to Pull image from quay.io: ERROR x509: certificate signed by unknown authority

Download necessary CA certificate. "/etc/ssl/certs/ca-certificates.crt", -> Debian/Ubuntu "/etc/pki/tls/certs/ca-bundle.crt", ...READ MORE

answered Jul 3, 2018 in Other DevOps Questions by Kalgi
• 52,350 points
2,208 views
0 votes
1 answer

How to store an array in localstorage?

Localstorage only supports Strings. So you can ...READ MORE

answered Jul 1, 2019 in Others by sunshine
• 1,280 points
19,437 views
0 votes
1 answer
0 votes
0 answers

Anyone can help me out to understand the semantic of (document.getElementBYId("demo").innerHTML="Hello") ?

Hello guys, Can Someone helps me to find ...READ MORE

Jan 17, 2020 in Web Development by anonymous
• 37,510 points
427 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,780 points

edited Jan 21, 2020 by Niroj 423 views
0 votes
1 answer
0 votes
1 answer

Emulator: ERROR: x86 emulation currently requires hardware acceleration

You can solve this by enabling virtualization ...READ MORE

answered Apr 29 in Other DevOps Questions by narikkadan
• 18,480 points
121 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP