Open fzy-github opened 8 months ago
full crash log: 620fa117e58f4fdf86d1ac249c3179e1-symbolicated.txt
@fzy-spyro Thanks for opening the issue. Our team is looking into it and will provide an update.
@harsh62 @lawmicha Could you please leave us an update. We're closing in on the public release, and the app keeps crashing regularly.
Hello @madej10 @fzy-spyro,
Apologies, we were unable to replicate the crash. To address this issue:
amplify diagnose --send-report
Instruments.App
and provide Leak
and Zombie
reports for the crashing appThank you.
@5d @harsh62 @lawmicha
I've sent a diagnose report:
✅ Report saved: /var/folders/st/dtn7dgkx5t7ggh7m72c0421h0000gn/T/*******/report-1705578808834.zip ✔ Done Project Identifier: 2fe7f2619666633cbea23b61a6aaf9fd
I couldn't reproduce the issue by myself yet, but we're still noticing the crash about 2 times / day, having ~30 users.
I'll deliver more details if I figure out how to reproduce it but for onw, maybe the diagnose report will help.
@5d @harsh62 @lawmicha were you able to take a look at the diagnose report? We can't reproduce with Instruments.App as it makes the app barely usable. Please let us know if you're looking at this issue at all
Hi @PrzemekIntent / @madej10, are these crashes coming from the same app?
@lawmicha yes
Thanks for confirming, the schema looks the same as the redacted one from https://github.com/aws-amplify/amplify-swift/issues/3407#issuecomment-1849931410 i'm not sure if we have more information here
We're working on a sample app that hopefully will allow you to reproduce in-house. We will keep you posted
Thanks, keep us posted. Feel free to reach out on Discord https://discord.com/invite/jWVbPfC if it is more convenient for you! We also monitor the swift-help channel
Hey @lawmicha We keep experiencing this issue. One thing we notices it that most often this crash happens when we write data to datastore and app is in background or moves to background.
We write data to datastore when app is in background eg. as a result of bluetooth device sending data to our app
@fzy-spyro Thanks for sharing this information. We will try to recreate the issues with the steps you mentioned.
A potential fix has been released with version 2.34.2. Could you try it and see if it resolves your issue?
Describe the bug
This is regression/the same crash as in https://github.com/aws-amplify/amplify-swift/issues/3325
Error reported:
Steps To Reproduce
Expected behavior
no crash
Amplify Framework Version
2.25.2
Amplify Categories
DataStore
Dependency manager
Swift PM
Swift version
5.7
CLI version
12.8.2
Xcode version
15.1
Relevant log output
Is this a regression?
Yes
Regression additional context
Previusly reported and supposedly fixed: https://github.com/aws-amplify/amplify-swift/issues/3325
Platforms
iOS
OS Version
16, 17
Device
various devices
Specific to simulators
no
Additional context
Sync expression configuration:
When initial sync queries complete we run following code to update sync expressions and re-sync data: