-
Notifications
You must be signed in to change notification settings - Fork 6k
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
OutOfMemoryError {ExoPlayerImplInternal:Handler} #4221
Comments
This device seems to have 4 or 6 GB of RAM. So, it's definitely not a low-end device which may have issues buffering media with ExoPlayer. Note that the maximum we aim to keep in the buffer at the moment is around 16MB only. Is there any other indication as to what may happen on this device? For example, do you know what media item the device was playing? Or whether your app may allocate memory for other reasons such that no memory is left for ExoPlayer? |
Thanks for the prompt response, I am certainly considering the aspect wherein no memory is left for ExoPlayer. For the content that ExoPlayer is playing, it's an mp4 video. Is it possible that if the video resolution that's being supplied to ExoPlayer is far more than the device's screen resolution, this issue may occur? |
What video resolution are we talking about? By default, ExoPlayer tries to buffer at least 15 seconds worth of media (irrespective of the 16MB mentioned above). So for very high res videos, this may easily exceed 16 MB. An alternative explanation is that there are problems with bad interleaving in MP4 files (see #3481 or #3670). It's of course impossible to say without example media whether this is the problem here. We also recently pushed a workaround that should prevent this from happening for most cases (from ExoPlayer 2.7). Which version are you using? |
Apologies for the delayed response, I finally received the stacktrace of the aforementioned issue in the Google Play Console:
I hope this can help diagnose the issue further. |
That's unfortunately not helpful for an OOM because the point where the system eventually is out of memory is most of the time independent from the cause of excessive memory usage. To reproduce the issue, it would be helpful if
|
Closing as we don't have any more info to go on. If you have additional information which would help to solve the issue, please reopen. |
Google Analytics reflects that one particular device Huawei DUK-L09 Honor 8 Pro keeps encountering this issue. Unfortunately, the only information I get regarding this is
OutOfMemoryError {ExoPlayerImplInternal:Handler}
The text was updated successfully, but these errors were encountered: