-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Crash: [RNScreens] Attempt to use context detached from activity #2285
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
@janicduplessis, do you mind checking out 3.34.0? |
I released it specifically to patch this error: https://github.com/software-mansion/react-native-screens/releases/tag/3.34.0. Also I'm surprised that the code even builds - 3.33.0 should fail to build on RN 0.74.x, but hey, if it works it works. |
I made a patch to make it build on 0.74. Just needs a few change to some method signature and in CMake config. |
But have you had opportunity to test 3.34.0 (another version of screens, which I've released just this Monday? It should fix the issue. I'm aware that there can be still some problem when hot-reloading react native, but this should not be problem in production |
If 3.34.0 does not work for you I'll try to debug this urgently & release new version on Friday, cause I'm off next 2 weeks. This crash could happen on Android + Fabric + "bridgeful" combination in the very start of application due to race condition in the code. I've described the issue here: #2276 |
I have not, I will test it today. |
Just deployed an update with |
I can confirm that updating to 3.34.0 fixes this. Thanks! |
Description
I am currently getting this crash in production on the new arch. Sorry I do not currently have a way to repro. It seems to happen on app start.
Just opening this in case you have an idea what could cause this, will try to find how to repro.
Steps to reproduce
N/A
Snack or a link to a repository
N/A
Screens version
3.33.0
React Native version
0.74.3
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Release mode
Device
Real device
Device model
SM-S711W Android 14
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: