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

IndexOutOfBoundsException in SinglePeriodTimeline.getWindow #4877

Closed
ummerakbar45 opened this issue Sep 27, 2018 · 3 comments
Closed

IndexOutOfBoundsException in SinglePeriodTimeline.getWindow #4877

ummerakbar45 opened this issue Sep 27, 2018 · 3 comments
Assignees
Labels

Comments

@ummerakbar45
Copy link

java.lang.IndexOutOfBoundsException:
at com.google.android.exoplayer2.util.Assertions.checkIndex (Assertions.java:68)
at com.google.android.exoplayer2.source.SinglePeriodTimeline.getWindow (SinglePeriodTimeline.java:151)
at com.google.android.exoplayer2.source.ForwardingTimeline.getWindow (ForwardingTimeline.java:62)
at com.google.android.exoplayer2.source.AbstractConcatenatedTimeline.getWindow (AbstractConcatenatedTimeline.java:164)
at com.google.android.exoplayer2.Timeline.getWindow (Timeline.java:633)
at com.google.android.exoplayer2.Timeline.getWindow (Timeline.java:620)
at com.google.android.exoplayer2.ui.PlayerControlView.updateProgress (PlayerControlView.java:731)
at com.google.android.exoplayer2.ui.PlayerControlView.access$000 (PlayerControlView.java:162)
at com.google.android.exoplayer2.ui.PlayerControlView$ComponentListener.onTimelineChanged (PlayerControlView.java:1094)
at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo (ExoPlayerImpl.java:659)
at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo (ExoPlayerImpl.java:611)
at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent (ExoPlayerImpl.java:557)
at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage (ExoPlayerImpl.java:106)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6119)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)

@erdemguven

This comment has been minimized.

@erdemguven erdemguven self-assigned this Sep 28, 2018
@tonihei
Copy link
Collaborator

tonihei commented Sep 28, 2018

Most likely, the issue is caused by one of two reasons:

  1. You are accessing the player from multiple threads. (see e.g. Allow specifying a Looper when instantiating ExoPlayer #4278). If you switch to the latest 2.9.0 release, you should see warnings in the log if that happens.
  2. A bug which happens when removing playlist elements (see e.g. SinglePeriodTimeline.getPeriod assertion fails when manipulating playlist #4871). That is also fixed in 2.9.0.

@ummerakbar45

This comment has been minimized.

@ojw28 ojw28 changed the title From playstore IndexOutOfBoundsException in SinglePeriodTimeline.getWindow Oct 1, 2018
@ojw28 ojw28 assigned tonihei and unassigned erdemguven Oct 1, 2018
@ojw28 ojw28 added the question label Oct 1, 2018
@google google locked and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants