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, 2022 in Other DevOps Questions by Kichu
• 19,040 points
766 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, 2022 by narikkadan
• 63,600 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,300 points
757 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,340 points
2,415 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,340 points
2,155 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
3,916 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,300 points
23,026 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,520 points
934 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,840 points

edited Jan 21, 2020 by Niroj 1,143 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, 2022 in Other DevOps Questions by narikkadan
• 63,600 points
800 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP