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

Memory leak on SampleQueue AllocationNode #5151

Closed
songcream opened this issue Nov 27, 2018 · 3 comments
Closed

Memory leak on SampleQueue AllocationNode #5151

songcream opened this issue Nov 27, 2018 · 3 comments

Comments

@songcream
Copy link

I use exoPlayer to play local mp4 file in my app,and add about 10+ video files with looping mode ,but it crash after running 5 hours long. I made a heap dump in studio,it shows that SampleQueue$AllocationNode takes a lot memory,and it will increase more when app run longer
360 17060221398853

@songcream
Copy link
Author

In addition,this happens on android 5.1,but work right on andorid 7.1

@andrewlewis
Copy link
Collaborator

Is the screenshot showing ~ 35 MB of allocations in the sample queue? That doesn't seem excessive.

Can you reproduce this in the latest version of the ExoPlayer demo app by enabling looping mode and playing the 10 video file concatenation? If so please provide the streams you're trying to play and let us know what device(s) you see the crash on and we'll take a look. Thanks.

@ojw28
Copy link
Contributor

ojw28 commented Dec 18, 2018

Closing due to lack of follow-up. As above, 35MB does not seem excessive for a media buffer. There is no evidence in this issue that usage does actually increase the longer the app runs. It seems most likely that something else in your app is leaking memory.

If you can reproduce with the ExoPlayer demo app, that would be good evidence that it is indeed an ExoPlayer issue. Please respond here if it does reproduce there.

@ojw28 ojw28 closed this as completed Dec 18, 2018
@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants