question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS: Full app crash

See original GitHub issue

Description

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

  1. Create app using react-native-navigation and reanimated
  2. Open and close stories like a maniac
  3. 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)

Screenshot 2020-09-26 at 18 44 27

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:closed
  • Created 3 years ago
  • Comments:27 (11 by maintainers)

github_iconTop GitHub Comments

12reactions
592dacommented, Oct 3, 2021

Same as @kanelloc ,

xcode 13 RN 0.66 Reanimated 2.3.0-beta.2

?

10reactions
Szymon20000commented, Oct 13, 2020

We are almost sure what is causing the problem. We are working on it and should be solved soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found