[Android] SIGSEGV in `MountingCoordinator::pullTransaction` since 4.7.0
Description
Hey! We bumped Reanimated from 4.6.0 to 4.7.0 (worklets 0.12.1 to 0.13.0) in our Expo 57 / RN 0.86.3 app. Since that release went out two days ago, we get a new native crash on Android. The build didn't change React Native itself.
So far there are about 30 crashes from about 20 users, all on the new build. None came from the previous release. Devices are mostly Samsung A-series and Xiaomi, plus one Galaxy S21, on Android 11 to 16, both armeabi-v7a and arm64. It's rare for any single user, so I don't have a repro.
The stack is the same every time (outermost first, trimmed):
UIManager::completeSurface
ShadowTreeRegistry::visit
ShadowTree::commit
ShadowTree::tryCommit
ShadowTree::mount
UIManager::shadowTreeDidFinishTransaction
Scheduler::uiManagerDidFinishTransaction
FabricUIManagerBinding::schedulerDidFinishTransaction
MountingCoordinator::pullTransaction
<unknown>
<unknown>
SIGSEGVThe frames below pullTransaction aren't symbolicated yet, so I can't tell where exactly it crashes. It might be related to #10732 or #10676, which both fix release crashes in the layout animations proxy on 4.7.0, but I haven't confirmed that. I'll update this issue once we have symbols uploaded.
Steps to reproduce
Unknown
Snack or a link to a repository
X
Reanimated version
4.7.0
Worklets version
0.13.0
React Native version
0.87
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Reanimated feature flags
None
React Native release level
None
Build type
No response
Device
No response
Host machine
None
Device model
No response
Acknowledgements
Yes
Source: software-mansion/react-native-reanimated