-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(storage, ios): do not enumerate on dictionary being mutated #5455
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/JCiDdtLxrKR5Td4HBbu3gBkNtiph |
f9fd465
to
6819dde
Compare
Codecov Report
@@ Coverage Diff @@
## master #5455 +/- ##
=======================================
Coverage 74.56% 74.56%
=======================================
Files 96 96
Lines 4287 4287
Branches 921 921
=======================================
Hits 3196 3196
Misses 1021 1021
Partials 70 70 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Yes this the same as a couple other areas that had the issue, as you correctly linked. I grepped through the whole code base, since this is obviously a recurring bug and after verifying all the other dealloc cases I think you've found and fixed the last one.
Thank you!
I'm working on a release now but want to fix one other issue first. That means this should be released shortly but in case you want it immediately one of the checks that runs on the PR generates a patch-package .zip which you may download and integrate into your project easily without regard to any possible delay here. Cheers! |
@mikehardy Thank you for the quick review, your very thoughtful answer! |
Description
Noticed crashes originating from RNFBStorage regarding
Collection <__NSDictionaryM: XXXXXXX> was mutated while being enumerated.
. This appears to be addressed in some of the other packages already.Related issues
#3736
Checklist
Android
iOS