-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
[0.77] Android Old Architecture debug app freezes when Metro triggers reload #50274
Comments
Hi @floydkim, is this happening on Android only or also on iOS? |
@cipolleschi react-native-0772-ios-not-freezing.mov |
This was working fine for me in 0.77.1 but recently upgraded to 0.77.2 and now metro won't even connect to my emulator not sure if this is related. |
I thought it wasn't an issue with my local environment since I observed the same behavior on two different MacBook, but was I mistaken? |
I just tried with a new app created using 0.77.2 and with an android emulator, and everything works on my side. Have you tried with |
@cipolleschi Thank you for your help. While testing again, I discovered something new.. It works fine on the Android 14 (SDK 35) emulator. On the Android 15 emulator, the issue occurs within the first couple of attempts. |
@cortinico do you have an Android 15 we can use for testing? |
I just tested on a Android 15 emulator and I cannot reproduce at all @floydkim Screen.Recording.2025-04-04.at.16.41.54.mov |
@cortinico Thank you for looking into this issue. |
You're right I was on New Arch. We can look into it. In the meantime, what's the reason why you can't use NewArch? |
@cortinico I’m maintaining an OTA update library, a fork of react-native-code-push. As you probably know, teams with long-standing React Native apps often manage to upgrade to RN 0.77+ but still run into issues enabling the New Architecture for various reasons. I hope support for the Old Architecture continues a bit longer. |
Thanks for the context |
Description
The issue originates within the app as generated by the @react-native-community/cli template in versions 0.77.2 and 0.77.1
(Old Architecture, debug build. Occurs on both emulators and real devices.)
It did not occur in version 0.78.1.
After triggering a reload by pressing the ‘r’ key in Metro, the top status bar indicates that fast refresh is active when modifying the UI code, but the UI does not update.
Steps to reproduce
App.tsx
to change the UI.The issue may not be reproducible immediately.
But, repeatedly performing steps 2 and 3 often results in the UI not updating.
--
The reproducer repository consists of a template app generated using the command
npx @react-native-community/cli@latest init RN772 --version 0.77.2
.No other modifications have been made except for setting it to use the Old Architecture.
React Native Version
0.77.2
Affected Platforms
Runtime - Android
Output of
npx @react-native-community/cli info
Stacktrace or Logs
When this log appears after a reload, the issue occurs.
When scrolling the screen after the issue occurs, this log appears repeatedly.
Reproducer
https://github.com/floydkim/repro-react-native-0.77.2
Screenshots and Videos
react-native-0772-android-freeze-2.mov
The text was updated successfully, but these errors were encountered: