Skip to content

Exoplayer OOM #8282

@IriaSomobu

Description

@IriaSomobu

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.22.2 commit 53bf342

Steps to reproduce the bug

  1. Open NewPipe on rather long YT video (like this);
  2. Wait for about 2 minutes;
  3. OOM is here

Sometimes you can avoid OOM by switching resolution before initial video loading is done.

Expected behavior

Video should be played w/o crashes

Actual behavior

  • Sometimes NewPipe just stops playing video with error notification;
  • Sometimes NewPipe crashes with ANR.

Screenshots/Screen recordings

No response

Logs

com.google.android.exoplayer2.ExoPlaybackException: Source error
   at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:641)
   at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:617)
   at android.os.Handler.dispatchMessage(Handler.java:98)
   at android.os.Looper.loop(Looper.java:154)
   at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: com.google.android.exoplayer2.upstream.Loader$UnexpectedLoaderException: Unexpected OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available
   at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:441)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
   at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available

Affected Android/Custom ROM version

RR-N-v5.8.5-20171005-ivy-Unofficial

Affected device model

Sony E6533

Additional information

I've reported that I can reproduce ExoPlayer OOM in #2257 and was told to open a new issue. So here I am.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugdevice/software specificIssues that only happen on some devices or with some specific hardware/softwareplayerIssues related to any player (main, popup and background)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions