software-mansion / react-native-screens

Native navigation primitives for your React Native app.
https://docs.swmansion.com/react-native-screens/
MIT License
3.04k stars 515 forks source link

[Android] :: running foreground cause screen fragment memory leak #2179

Open chanphiromsok opened 4 months ago

chanphiromsok commented 4 months ago

Description

I have an issue with the app memory leak, I have read the old issue https://github.com/software-mansion/react-native-screens/issues/843#issuecomment-832034119

Screenshot 2024-06-11 at 09 26 25

Steps to reproduce

https://github.com/software-mansion/react-native-screens/assets/65760336/05f48f62-0394-43f1-8286-e2146c1b9822

Snack or a link to a repository

https://github.com/chanphiromsok/rnn-screen-leak

Screens version

3.30.1

React Native version

0.74.2 and 0.73

Platforms

Android

JavaScript runtime

Hermes Engine

Workflow

Expo managed workflow

Architecture

Paper (Old Architecture)

Build type

Release mode

Device

Real device

Device model

Samsung Galaxy S10 + any Android devices

Acknowledgements

Yes

MahmoudNafiseh commented 2 months ago

Did you manage to get this fixed? We are facing a similar problem

chanphiromsok commented 2 months ago

Did you manage to get this fixed? We are facing a similar problem

Not yet our app on prod keeps crashing every day for older version 0.68 using react-native-navigation-stack doesn't face this issue