App crashes in production – NSInvalidArgumentException (NaN in JSON write) #5891
Labels
datastore
Issues related to the DataStore Category
pending-community-response
Pending response from the issue opener or other community members
question
A question about the Amplify Flutter libraries
Description
In iOS the app often crashes when I try to save something in the Amplify DataStore. I couldn't find a reliable pattern to reproduce the issue, but I see the following error logged in Sentry:
I could not reproduce this problem in debug mode—it seems only happen in release builds and makes my app unusable. Howerver I'm sure that it has to do with the amplify library because if I remove it from the app, no crashes appear.
In the following the crashlog (crashlog.txt):
Categories
Steps to Reproduce
I cannot find a pattern that reproduce this problem but it appears whenever the app saves elements in the datastore with a high frequency
Screenshots
No response
Platforms
Flutter Version
3.27.2
Amplify Flutter Version
2.6.0
Deployment Method
Amplify CLI (Gen 1)
Schema
The text was updated successfully, but these errors were encountered: