iOS: Full app crash
See original GitHub issueDescription
I’m receiving the following error on iOS:
com.facebook.react.JavaScript (17): EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
I’ve implemented a stories screen using react-native-navigation, and see this error when I quickly close the story (= unmount the screen) while (or shortly before) I run an animation with reanimated. In this case it’s a withTiming
worklet.
This is my call stack at the time of the crash:
Screenshots
Steps To Reproduce
- Create app using react-native-navigation and reanimated
- Open and close stories like a maniac
- At some point, close the story (and therefore unmount the screen) exactly when a worklet is being started, not sure it it’s caused by a timing function, or the timing function having a callback and then unmounting the Reanimated View.
Expected behavior
I expect the story to close and any reanimated worklets/animations/state to be disposed
Actual behavior
The app crashes with the error com.facebook.react.JavaScript (17): EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
Snack or minimal code example
Working on this. Have to strip out a lot of things, not sure if I can easily replicate it using a simple example…
Package versions
- React: 16.13.1
- React Native: 0.63.2
- React Native Reanimated: 2.0.0-alpha7
- React Native Navigation: 7.0.0-snapshot2020
Issue Analytics
- State:
- Created 3 years ago
- Comments:27 (11 by maintainers)
Top Results From Across the Web
9 Fixes for When Your iPhone Apps Keep Crashing
9 Fixes for When Your iPhone Apps Keep Crashing · 1. Check Your Internet Connection · 2. Close and Relaunch the App ·...
Read more >If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open · Close and reopen the app · Restart...
Read more >[Top 7 Ways] Fix iPhone Apps Keep Crashing on iOS 16
Way 1: Force Quit the Crashed App and Re-Launch · Way 2: Restart your iPhone · Way 3: Update Crashed Apps · Way...
Read more >Fix iPhone Apps Keep Crashing after iOS 16.2 Update
Troubleshooting for iPhone Apps Keep Crashing after iOS 16 Update – Bug Remover top ideas · Fix 1: Should Wait: App is not...
Read more >13 solutions to fix apps crashing on iPhone and iPad
Why do apps crash on iPhone? · Bugs in the app · The app is poorly coded · Bugs in the iOS version...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same as @kanelloc ,
xcode 13 RN 0.66 Reanimated 2.3.0-beta.2
?
We are almost sure what is causing the problem. We are working on it and should be solved soon.