1
Vote

IE8 out of stack space parsing JSON

description

When running MVCCT within IE8, I'm getting an "out of stack space" error while it's trying to parse JSON.

The error occurs inside MVCControlToolkit.Controls.Core-3.0.0.js on line #142, which looks like this:

return window.JSON.parse(data, convertDates === true ? jsonDateConverter : undefined);

Which is called by MVCControlToolkit.JsQueryable-3.0.0.js line #276, which looks like this:

data = $.parseJSON(data);

If I change from this:

return window.JSON.parse(data, convertDates === true ? jsonDateConverter : undefined);

to this:

return window.JSON.parse(data);

The "out of stack space" error goes away. Of course, then the date parsing doesn't work anymore.

comments

joshmouch wrote Feb 26, 2015 at 2:33 PM

As a temporary workaround, I test for IE8 and use the alternate JSON parsing branch in that case.

frankabbruzzese wrote Mar 15, 2015 at 8:21 AM

We sill look into the issue and correct it in the next release. As soon as we sill have a patch we will publish it