Closed bytetang closed 2 years ago
hi @bytetang , thanks for bringing it up. We are considering refactoring the archiving part of the SDK which will greatly improve the performance and reduce crashes. We will update you on this.
Hi, thanks. I am kind of concerned about this, we have these crashes in our app in production. Is this something you consider as a priority ? Thanks :)
@zihejia Is this related? We see some crashes at startup:
@bytetang @cflorion @RamblinWreck77 We have a new beta release that addresses this issue if you'd like to try it out here: https://github.com/mixpanel/mixpanel-swift/releases/tag/v3.0.0.beta.4 (Please do note the beta version does not include Messages & Experiments functionality)
Instructions for installing the beta branch are here: https://github.com/mixpanel/mixpanel-swift/tree/3.0.0.beta#installation
@jaredmixpanel Awesome! We'll try this out and let you know how it works! We don't use the messages/experiments functionality anyways
@jaredmixpanel Great!! Thanks, we will try it out
@jaredmixpanel So I have some good news to report. We shipped an update with just this mixpanel lib change and:
1) It's out to 70% of users so far
2) No new crashes/slight reduction in crash rate
3) Our % of sessions that experienced 100% CPU for >1 dropped from 13% 0.03%.
4) No event anomalies have been detected by our product team in any of their reports so far.
Holy cow, nice work team!
found some users still face the the crash when mixpanel archiveToFile. I saw a race condition bug has been resolved in 2.9.1, but we used the sdk version is v2.9.3.
after doing the detail investigation in a user , we found it's cup was overload. I guess this might effect the the archive performance or cause the crash.
if we provide the wrong type of event or properties data to Mixpanel track API. it's might effect most of users. but now it's a small probability event.
any suggestion?
Mixpanel swift SDK version: v2.9.3 OS: 14.6 Swift version: 5.4 Crash thread stack:
Thread 30 [Crashed]: