Closed Vepsur closed 7 months ago
Hi @Vepsur, thanks for reporting this issue. It looks like something related to useAnimatedKeyboard
which we have recently refactored. Assigning our keyboard expert @piaskowyk.
Here are a few updates about the behavior of the crash:
And I will try to create a separate reproduction repository for that issue
I also received the same error.
Here are a few updates about the behavior of the crash:
useAnimatedKeyboard
hook inside the items of FlatList
cc @maciekstosio
Hi, I posted PR (#5918) that should fix that. Let me know if it helps.
I checked it in the repo repository and in our project, it seems like it resolved this issue. Thanks!
Description
I got a crash error in my Sentry in the production version of the app on Android
Sentry report:
ConcurrentModificationException java.util.HashMap$HashIterator in nextNode mechanism: UncaughtExceptionHandler
Stack trace:
I faced this bug in the dev environment. I solved it in debug mode on my Android via the created async hook, which waits while the keyboard closes and only then navigates to another screen. But I got the error in my Sentry after releasing a new version with fixes, so I missed something.
P.S. I also suggest that can be related to react-native-keyboard-controller or react-native-screens enableFreeze(true) and will continue my investigation
22-mar updates:
5-apr updates:
useAnimatedKeyboard
hook inside the items ofFlatList
Steps to reproduce
Tap on the
Navigate to profile
buttonImmediately after navigation, tap on text input
The app should crash most of the time
Tap on the
Navigate to profile
buttonAfter navigation, tap on text input
While the keyboard is open, try scrolling
FlatList
The app should crash often enough
Snack or a link to a repository
reanimated-android-crash-example
Reanimated version
3.8.0
React Native version
0.72.6
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Release app & production bundle
Device
Real device
Device model
No response
Acknowledgements
Yes