-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
RNGestureHandlerModule.mm fatally throws NSGenericException in iOS production due to collection mutating while being enumerated #2658
Comments
I wasn't able to reproduce the crash based on your snippet, but after looking through the code, it seems like the |
@j-piasecki We're testing with that patch in a few days and will let you know what we see. |
@sh-pq Do you maybe have any update on this? |
@j-piasecki Outlook good; that patch seems to have fixed it. QA has been testing in production for more than a week with that patch and we haven't seen the crash even once in that time. Previously we'd see it very frequently and reliably within a short time of using the app. |
## Description Removes usage of `didMountComponentsWithRootTag` on the new architecture. It was doing exactly the same thing as `flushOperations` but was executed on a different thread, which could cause crashes. Removing this method shouldn't change any behavior as `flushOperations` is scheduled after every operation. Closes #2658 ## Test plan See #2658
Description
We use GestureDetector in our application inside the contents of an inverted FlatList. Within that context, we're observing GestureDetector throw a fatal exception (stack trace below) that crashes the application. The fatal error originates from RNGestureHandlerModule.mm line 259.
MVCE notes
I have attached a MVCE but I have some notes to make about it.
Stack trace
Here
Lambda
is the name of our application.Steps to reproduce
Snack or a link to a repository
Gesture Handler version
2.13.2
React Native version
0.72.5
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Release mode
Device
Real device
Device model
iPhone 12 Pro, iPhone 13 Pro Max (and every other iOS device we've tested but for which I don't have the model numbers at present)
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: