Infinite loop when serializing BigDecimal (SystemStackError Exception: stack level too deep)
I kept getting an infinite loop issue on some of my models and after quite a lot of frustration and tracing, finally noticed that I was seeing a BigDecimal class in my variables...after doing some checking and not finding support, I checked out how these had previously been handled in other AMF serializers and saw them being converted to Floats, so I forked and added in a fix.
For people trying to troubleshoot, the errors I was seeing looked like this:
SystemStackError Exception: stack level too deep
Upon tracing through callstacks, I saw repetition through these methods on the serializer:
serialize
write_prop_list
write_object
serialize
@kirillian:
Infinite loop when serializing BigDecimal (SystemStackError Exception: stack level too deep)
I kept getting an infinite loop issue on some of my models and after quite a lot of frustration and tracing, finally noticed that I was seeing a BigDecimal class in my variables...after doing some checking and not finding support, I checked out how these had previously been handled in other AMF serializers and saw them being converted to Floats, so I forked and added in a fix.
For people trying to troubleshoot, the errors I was seeing looked like this: SystemStackError Exception: stack level too deep
Upon tracing through callstacks, I saw repetition through these methods on the serializer: serialize write_prop_list write_object serialize