Too much recursion WebGL

Hello,

In my project i use xml to communication between ASP.NET MVC and Unity WebGL.
During the deserialization I get an error:
3465926--275085--upload_2018-4-18_9-11-29.png

This XML has 2-4 MB.
Issue exist in below part of code:

            using (MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
            {
                XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(memoryStream, Encoding.UTF8, new XmlDictionaryReaderQuotas() { MaxDepth = int.MaxValue, MaxArrayLength = int.MaxValue, MaxBytesPerRead = int.MaxValue, MaxNameTableCharCount = int.MaxValue, MaxStringContentLength = int.MaxValue }, null);

                DataContractSerializer serializer = new DataContractSerializer(typeof(T));
                var result = (T)serializer.ReadObject(reader);
                return result;
            }

I have repeated this problem on latest Unity 2017.X(Stable) and latest Unity 2018.X(Beta).

Does anyone have any ideas?

Thanks,
Paweł

do you have a development build callstack?

Hello,

Thank you for the quick reply.
I try build my project as development build, but i have second issue with this.
I described this here: Problem with launching the development build.

Thanks,
Paweł