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

RAM usage increases with repeated stack navigation #617

Open
medlyai opened this issue Nov 21, 2024 · 1 comment
Open

RAM usage increases with repeated stack navigation #617

medlyai opened this issue Nov 21, 2024 · 1 comment

Comments

@medlyai
Copy link

medlyai commented Nov 21, 2024

Do you understand that any discussions or questions opened as issues in the core Expo Snack repository will be closed?

Yes

@medlyai
Copy link
Author

medlyai commented Nov 21, 2024

Description
When navigating between screens using stack navigation in Expo Go, the app exhibits a memory leak. The RAM usage continuously increases without returning to its original value after navigating back to the home screen.

Steps to Reproduce
Create new Expo app using npx create-expo-app@latest my-app
Add stack navigation following the official Expo tutorial for "Add a new screen to the stack"
Use Expo Go to launch app in iOS simulator (iPhone 15)
Open Expo Go performance monitor
Navigate from home screen to second screen
Navigate back to home screen
Repeat steps 4-5 multiple times
RAM increases in Expo Go performance monitor

Expected Behavior
RAM usage should remain relatively stable or return close to its original value after navigating back to the home screen.
Actual Behavior
RAM usage incrementally increases with each navigation cycle without being properly cleaned up, indicating a memory leak.

Additional Context
This occurs with a fresh project following the official tutorial
The issue is consistently reproducible
No custom memory-intensive operations are being performed

Environment
Expo SDK Version: [email protected]
Platform: iOS (iPhone 15 Simulator)
React Navigation Version: @react-navigation/[email protected]
Device: iOS Simulator (iPhone 15)

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

1 participant