You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm here in hopes of salvaging our entire app due to a memory leak we experienced with react-native-video. We are having the same issue with expo-video-player as well. Our app is used for digital signage and plays videos and images in a loop based on a specified schedule. We will often play a quick 5 second video and then show an image, play another video, and another, etc. It all depends on what the user specifies for their content. We've noticed, however, after some portion of time we get OutOfMemory exceptions from ExoPlayer. In most cases it takes about a week, but when I alternate between a video and null once every 5 seconds, I can see the leak with expo-video-player within a few minutes. This ultimately causes our app to crash. I have noticed that the memory leak seems to occur when you unmount and remount the video component. In my screenshot below, you can see how the Native memory grew about 20MB within a 40 minute time period. This doesn't fair well for our app which is intended to run 24 hours per day. For this particular test, I'm using a manged Expo app. I created a development build with eas following the instructions here and installed the .apk on a virtual device that I have indicated below.
You will begin to see the memory growth via the profiler. This is the issue I am referring to that is crashing our application.
Link to reproduction on (Snack)[https://snack.expo.io/]
Expected behavior
A clear and concise description of what you expected to happen.
I expect the memory profiler to indicate that the application's memory usage is not growing over time.
Additional information:
Type:
Emulator/Real Device
Device:
Android TV (1080p) API 29 - Android 10.0 x86, Amazon Fire Stick 4k Max
Describe the bug
I'm here in hopes of salvaging our entire app due to a memory leak we experienced with react-native-video. We are having the same issue with
expo-video-player
as well. Our app is used for digital signage and plays videos and images in a loop based on a specified schedule. We will often play a quick 5 second video and then show an image, play another video, and another, etc. It all depends on what the user specifies for their content. We've noticed, however, after some portion of time we getOutOfMemory
exceptions from ExoPlayer. In most cases it takes about a week, but when I alternate between a video andnull
once every 5 seconds, I can see the leak withexpo-video-player
within a few minutes. This ultimately causes our app to crash. I have noticed that the memory leak seems to occur when you unmount and remount thevideo
component. In my screenshot below, you can see how the Native memory grew about 20MB within a 40 minute time period. This doesn't fair well for our app which is intended to run 24 hours per day. For this particular test, I'm using a manged Expo app. I created a development build with eas following the instructions here and installed the.apk
on a virtual device that I have indicated below.To Reproduce
Steps to reproduce the behavior:
Link to reproduction on (Snack)[https://snack.expo.io/]
Expected behavior
A clear and concise description of what you expected to happen.
I expect the memory profiler to indicate that the application's memory usage is not growing over time.
Additional information:
Emulator/Real Device
Android TV (1080p) API 29 - Android 10.0 x86, Amazon Fire Stick 4k Max
![image](https://user-images.githubusercontent.com/7328278/206617261-c6fa5fb5-4ae4-4cdc-b1bc-98bd1a8a8a63.png)
"expo-av": "~13.0.2",
app.json
)"expo": "~47.0.8",
"version": "0.4.10",
Additional context
None
Screenshots (if applicable)
Profiler after I ran a debuggable build on my Android TV emulator.
The text was updated successfully, but these errors were encountered: