-
-
Notifications
You must be signed in to change notification settings - Fork 955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.IllegalStateException: Expect view tag to be set on CodePush restart #715
Comments
same issue for |
@jakemmarsh Follow this comment facebook/react-native#25924 (comment) for react-native version > 0.60 you are missing the androidx support for the react native gesture handler as react-native gesture handler is not upgraded yet for androidx support. |
@HarshitMadhav error also exists for version 0.59.5, below 0.60 |
@capslock35 because by default androidx is enabled and this react-native gesture handler doesnt have the support for androidx till now. Run the command |
Any update for this, happening to me on react native |
@asleepace read out my last comment |
@HarshitMadhav androidx is only on react native |
No, somehow your project might be using the updated androidx support third party library. run |
Hello, I've the same problem here, using react native 0.60.5, I've this error:
I'm using jetifier but still having this issue.. |
We are also facing the same issue. We are using Reacr-native 60.4 and also using code-push |
@HarshitMadhav we are using RN 0.60.4 and also code push. RN 0.60.4 uses androidx. How to resolve this issue for RN 0.60.4? also we noticed this issue only after code push update |
We're also facing this issue. I can't say definitely that the issue appears after Code Push update, but I see logs for users, that haven't installed the update yet. RN: 0.59.10 |
Check that your view is a real view, a react component, and that the view is the only thing currently on the screen. |
We are seeing this issue with the following versions, we also run jetifier on
Any suggestion on a path forward? |
facing the same issue in RN 61.4
|
@jakemmarsh how did you end up working around this bug? |
@schumannd unfortunately I didn't. Priorities have shifted but the bug was still occurring last I knew. |
My issue was caused by attempting to navigate to a different screen while CodePush was trying to restart. Stopping that fixed the issue for me. |
Hello, any updates for this? The same issue is still happening with the following versions:
|
Same issue as danut-t with :
|
We're getting this error as a crash for prod builds. I can confirm it's after a CodePush |
Same issue "react-native": "0.61.5", |
Same issue "react-native": "0.63.2", |
Same issue in our production app hope someones provide a solution: |
Trying to navigate when |
Happening to me too, RN63.3, RNGestureHandler: |
We've got a lot of cases with such issue in Crashlytics. Mostly for Android 9, 10 and 11. @HarshitMadhav should adding "npx jetify" at the postinstall step fix such issue? |
same issue here, any workarounds? |
Fatal Exception: java.lang.IllegalStateException: java.lang.IllegalStateException: Expect view tag to be set for com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView{bbcb787 V.E...... ........ 0,0-1080,2400} Got this error on google console and there are many crashes due to it. Any solution? |
I also get a fair number of crashes here. Looking at the code that triggers it here: https://github.com/software-mansion/react-native-gesture-handler/blame/master/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.java#L44-L47 , I'm trying to understand what would cause it to get into this state. The React Native code that exercises it ( https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java#L100-L107 by way of https://github.com/software-mansion/react-native-gesture-handler/blob/master/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java#L603 ) seems to absolutely have a tag associated with the View ( otherwise, how could the exception even be reached? ), but the cc @kmagiera who wrote the original exception here, just in case you have any insight afa what might be up. |
Can any one verify, that the problem disappears when this PR is released (or try building from source)? |
My app is running
react-native
0.60.4 andreact-native-gesture-handler
1.3.0. It also usesreact-native-code-push
5.6.0 for OTA updates.It checks for and installs any new updates on app launch. After installation, the app is restarted with the new version. Upon restart, my Android users are frequently hitting an exception:
Any previous issues I've found around this exception mention issues with
componentDidMount
state logic inside gesture handler components. However, I don't believe I'm doing any of that. The only component I'm using directly isSwipeable
.The text was updated successfully, but these errors were encountered: