wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.01k stars 2.68k forks source link

[v2] Tried to create view after it has already been destroyed #3767

Closed pibo closed 4 years ago

pibo commented 5 years ago

My app users are complaining about random crashes on Android. I have Crashlytics installed and I verified by using user and time filters that this crashes are caused by the following error:

captura de tela 2018-08-14 as 18 17 04

I can't reproduce the problem in the Android simulator and it seems Android exclusive, as it appears. Can anyone help me what might be happening? Thanks in advance.


Environment

AugustoAleGon commented 5 years ago

This issue is still in Android. I got the same error but different logs tho:


Fatal Exception: java.lang.RuntimeException
Tried to create view after it has already been destroyed
com.reactnativenavigation.viewcontrollers.ViewController.getView (ViewController.java:165)
com.reactnativenavigation.viewcontrollers.ChildController.onViewBroughtToFront (ChildController.java:45)
com.reactnativenavigation.viewcontrollers.ChildControllersRegistry.onViewDisappear (ChildControllersRegistry.java:15)
com.reactnativenavigation.viewcontrollers.ChildController.onViewDisappear (ChildController.java:41)
com.reactnativenavigation.viewcontrollers.ComponentViewController.onViewDisappear (ComponentViewController.java:48)
com.reactnativenavigation.viewcontrollers.ViewController.destroy (ViewController.java:235)
com.reactnativenavigation.viewcontrollers.ChildController.destroy (ChildController.java:70)
com.reactnativenavigation.viewcontrollers.ComponentViewController.destroy (ComponentViewController.java:93)
com.reactnativenavigation.viewcontrollers.ParentController.destroy (ParentController.java:112)
com.reactnativenavigation.viewcontrollers.stack.StackController.destroy (StackController.java:138)
com.reactnativenavigation.viewcontrollers.navigator.Navigator.destroyRoot (Navigator.java:121)
com.reactnativenavigation.viewcontrollers.navigator.Navigator.destroyViews (Navigator.java:117)
com.reactnativenavigation.NavigationActivity.onReload (NavigationActivity.java:124)
com.reactnativenavigation.react.JsDevReloadHandler$$Lambda$1.run (Unknown Source:2)
turbix commented 5 years ago

The issue still reproduces on Android: after app start press back button and start app again -- crash occurs with same stack.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] commented 4 years ago

The issue has been closed for inactivity.

gigby commented 4 years ago

The issue still reproduces on Android: after app start press back button and start app again -- crash occurs with same stack.

This bug is still here (version 6.7.5)

avonipenti commented 3 years ago

Upgraded to fix the crashes but I still see the crashes in firebase.

marf commented 3 years ago

We still see the crash with version 7.8.4

dooleyb1 commented 3 years ago

Still seeing crashes occur in Crashlytics on app using "react-native-navigation": "7.9.0"

dooleyb1 commented 3 years ago

Any updates on this?

parth-koshta commented 2 years ago

This issue still exists in 7.27.1

TrustDec commented 1 year ago

This issue still exists in 7.27.1、7.28.1、7.29.0