Skip to content
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

Android memory leak? #1240

Closed
2 of 7 tasks
cristianoccazinsp opened this issue Dec 14, 2021 · 2 comments
Closed
2 of 7 tasks

Android memory leak? #1240

cristianoccazinsp opened this issue Dec 14, 2021 · 2 comments

Comments

@cristianoccazinsp
Copy link

Description

Android debugger shows that RNScreens is leaking an object. This is mostly a question as perhaps it is not really a problem.

Looks like certain fragments are leaking in the sparse array.

Screenshots

Screen Shot 2021-12-14 at 16 26 21

Screen Shot 2021-12-14 at 16 26 42

Steps To Reproduce

  1. Use createStackNavigator (not native), and test pushing and popping some screens
  2. Plug in the android native profiler
  3. Run a heap dump
  4. Open the leaks tab

Expected behavior

No memory leaks.

Actual behavior

Memory leak.

Reproduction

May provide later.

Platform

  • iOS
  • Android
  • Web
  • Windows
  • tvOS

Workflow

  • Managed workflow
  • Bare workflow

Package versions

package version
react-native 0.66.3
@react-navigation/native 5.9.4
@react-navigation/native-stack using /stack only, 5.14.9
react-native-screens 3.10.1
react-native-safe-area-context 3.3.2
react-native-gesture-handler 1.10.3
react-native-reanimated 1.13.2
expo none
@WoLewicki
Copy link
Member

I believe your issue is mentioned here: https://github.com/software-mansion/react-native-screens#other-problems and explained here: #843 (comment).

@cristianoccazinsp
Copy link
Author

Thanks, I should have searched for that first 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants