JSON Encoder Crashing

Hi

For some of the user the JSON Encoder is giving crash while converting array of Models into the dictionary its not reproducible at our end. Below is the stack trace of the issue

Please help with above crash how can we reproduce and what should be the solution for this.

Thanks

Answered by DTS Engineer in 791558022

Your app is crashing trying to dereference a NULL pointer. The fact that this is deep within the JSON serialisation code suggests that you’re dealing with some sort of memory corruption issue. My advice is that you apply the standard memory debugging tools to see if they make it easier to reproduce.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Your app is crashing trying to dereference a NULL pointer. The fact that this is deep within the JSON serialisation code suggests that you’re dealing with some sort of memory corruption issue. My advice is that you apply the standard memory debugging tools to see if they make it easier to reproduce.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

JSON Encoder Crashing
 
 
Q