-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
Memory Leak with latest React Native Integrated App on v0.74.2 #45217
Comments
@cortinico can you please look into this issue. |
Facing the same issue |
We are facing the same issue since 0.73.0. do we have any solution to this? |
Can you try to update incrementally (first to 0.72 and then 0.73) and mention where you notice this regression? |
Facing this issue from 0.73 version. 72.x works fine |
Facing the same memory leak issue. @cortinico This issue has been mentioned many times previously also. Kindly check this issue on priority. It is affecting all our integrated apps currently. Previously raised issues: |
Here are some more finding from my side for the memory leak I used this repo rn-diff-purge repo for taking android folders and followed the steps mentioned here in https://reactnative.dev/docs/integration-with-existing-apps for integration Here's what I did in this repo - https://github.com/satheshrgs-rksv/memoryleakreproducer. Please use this as reproducer
Following are some of the methods i tried Method 1: Method 2: Method 3: Method 4: Findings:
|
The main thing which we need to figure out is why in the latest versions of react native with brownfield approach multiple leaks are seen |
Please see this comment from @fannnzhang @cortinico Since we are nearing the android deadline for android 14 support and since ours is an integrated app running on 0.71.1, upgrading to latest versions of React Native is a must for this update. Could you please help with this as soon as possible |
Description
Facing Memory Leak with React Native app integrated with existing native app.
I am currently on React Native 0.71.1 and tried to update to React Native 0.74.2.After upgrade facing memory leak. Memory usage keeps on increasing. With version 0.72 also there is no leak faced. But from version 0.73 facing memory leak.
Following this react native callstack brownfield architecture to load react native inside existing app as we have multiple entry points from native app to load react native in Fragment and also in Activity.
Steps to reproduce
https://github.com/callstack/react-native-brownfield
yarn install
React Native Version
0.74.2
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/satheshrgs-rksv/memoryleakreproducer
Screenshots and Videos
The text was updated successfully, but these errors were encountered: