Closed aelkady closed 5 years ago
Hi @aelkady, thanks for the PR! We've been experiencing similar issue in internal testing. We'll evaluate your solution and get back to you ASAP.
We have identified and reproduced this issue internally. We have a partial solution thanks in part to @aelkady. We will have an update to the iOS Client SDK out very soon. Thank you for your patience.
@aelkady We just released an update that fixes this issue.
@torchhound thanks for the update! Will be sure to install it and report back if there are any more issues.
Thanks again, especially for the quick turnaround time on this! 😄
Background
We are seeing two bad crashes in the LaunchDarkly SDK in our app. The stacktraces are below:
These are the stacktraces we get from Crashlytics. I was unable to produce these crashes locally but my suspicion based on the stacktrace is that they are triggered when a feature flag is deleted on LaunchDarkly and the iOS client is updating its flags as a result.
For both crashes we are getting the following crash reason:
Potential Findings
This tells me that something in either
findChangedFlagKeys
orsymmetricDifference
is trying to access a deallocated object. I have included in this PR measures to mitigate against this.Version bump
I have also included in this PR a version bump in the podspec - I would like to respectfully ask that this change come with a version bump to the LaunchDarkly SDK as well as a push to the Cocoapods trunk so that we can take advantage of this fix as quickly as possible.