I am using a Direct Web Remoting (DWR) JavaScript library file and am getting an error only in Safari (desktop and iPad)
It says
Maximum call stack size exceeded.
What exactly does this error mean and does it stop processing completely?
Also any fix for Safari
browser (Actually on the iPad Safari
, it says
JS:execution exceeded timeout
which I am assuming is the same call stack issue)
Sometimes happened because of convert data type , for example you have an object that you considered as string.
socket.id in nodejs either in js client as example, is not a string. to use it as string you have to add the word String before:
Check if you have a function that calls itself. For example
If you are working with google maps, then check if the lat lng are being passed into
new google.maps.LatLng
are of a proper format. In my case they were being passed as undefined.Another option that causes this error If you convert to json with socket.
The issue in my case is because I have children route with same path with the parent :
So I had to remove the line of the children route
Check the error details in the Chrome dev toolbar console, this will give you the functions in the call stack, and guide you towards the recursion that's causing the error.