I realise this is not the ideal place to ask about this in terms of searchability, but I've got a page whose JavaScript code throws "Stack overflow in line 0" errors when I look at it in Internet Explorer.
The problem is quite clearly not in line 0, but somewhere in the list of stuff that I'm writing to the document. Everything works fine in Firefox, so I don't have the delights of Firebug and friends to assist in troubleshooting.
Are there any standard causes for this? I'm guessing this is probably an Internet Explorer 7 bug or something quite obscure, and my Google-fu is bringing me little joy currently. I can find lots of people who have run into this before, but I can't seem to find how they solved it.
You can turn off the
"Disable Script Debugging"
option inside of Internet Explorer and start debugging withVisual Studio
if you happen to have that around.I've found that it is one of few ways to diagnose some of those
IE
specific issues.This is problem with Java and Flash Player. Install the latest Java and Flash Player, and the problem will be resolved. If not, then install Mozilla Firefox, it will auto install the updates required.
I have reproduced the same error on IE8. One of the text boxes has some event handlers to replace not valid data.
The error message was shown on entering data to this text box. We removed event "propertychange" from the code above and now it works correctly.
P.S. maybe it will help somebody
I had this problem, and I solved it. There was an attribute in the
<%@ Page
tag namedMaintainScrollPositionOnPostback
and after removing it, the error disapeared. I added it before to prevent scrolling after each postback.Also having smartNavigation="true" causes this"
Aha!
I had an
OnError()
event in some code that was setting the image source to a default image path if it wasn't found. Of course, if the default image path wasn't found it would trigger the error handler...For people who have a similar problem but not the same, I guess the cause of this is most likely to be either an unterminated loop, an event handler that triggers itself or something similar that throws the JavaScript engine into a spin.