webshim icon indicating copy to clipboard operation
webshim copied to clipboard

Out of Stack Space on IE 7 and 8

Open devlife opened this issue 14 years ago • 8 comments

I'm getting an "Out of Stack Space" error in IE7 and 8 when using a number input and webshims. If I remove the call to $.webshims.polyfill() the error doesn't occur anymore. Has anyone come across this?

devlife avatar Sep 09 '12 14:09 devlife

I couldn't reproduce this. Can you give a testcase? You can also mail me.

aFarkas avatar Sep 09 '12 16:09 aFarkas

Yeah I've been trying to repro in a new project and can't. There must be something else going on in the page that is having some negative side-effect.

devlife avatar Sep 09 '12 22:09 devlife

Yes, there might be some issues with other scripts, but I need to see it, to know, wether it is a bug in webshims or not. It would really help me to get this testcase, even if it is a little bit more code.

aFarkas avatar Sep 09 '12 22:09 aFarkas

I'll see if I can track down the offending code. If I can find it I'll provide you with it.

devlife avatar Sep 09 '12 22:09 devlife

I'm pretty much 100% sure that this issue has nothing to do with webshims. For whatever reason, the number input has 4 change handlers on the page I'm looking at. I haven't been able to identify where they are all coming from. In addition, I added a number input on another page and the error doesn't occur.

devlife avatar Sep 10 '12 20:09 devlife

So I finally tracked down the issue. I had the call to $.webshims.polyfill() in a div that was being used as an overlay (from jquery tools). Apparently the code was being executed when the page was rendered (as expected) but was being executed again when the overlay was actually opened. I think the issue is that webshims was applying multiple change handlers to the input.

devlife avatar Sep 10 '12 22:09 devlife

Ok, thanks, could you still give me a testcase. It doesn't need to be simplified and if you mail me it stays private :-).

aFarkas avatar Sep 10 '12 23:09 aFarkas

No problem. I just emailed it to you. Let me know if you have any issues or questions. If you don't mind, could you let me know if/how you fix it?

Thanks, Mike

devlife avatar Sep 10 '12 23:09 devlife