java.lang.IndexOutOfBoundsException:
Before filing an issue:
-
Issue description
App is live,while testing we doesnt get any crush but on playstore there are number of bug report. Issue is java.lang.IndexOutOfBoundsException
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$PlaybackInfoUpdate.notifyListeners (ExoPlayerImpl.java:746) at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo (ExoPlayerImpl.java:681) at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo (ExoPlayerImpl.java:622) at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent (ExoPlayerImpl.java:567) at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage (ExoPlayerImpl.java:109) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:154) at android.app.ActivityThread.main (ActivityThread.java:6776) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1496) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1386)
Reproduction steps
While testing, we are not able to replicate issue,but playstore shows this bug
Link to test content
Filmrise app is in playstore
Version of ExoPlayer being used
implementation 'com.google.android.exoplayer:exoplayer:2.8.2'
Device(s) and version(s) of Android being used
on Version7 and 7.1 we get this issue different devices lg moto samsung etc
A full bug report captured from the device
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$PlaybackInfoUpdate.notifyListeners (ExoPlayerImpl.java:746) at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo (ExoPlayerImpl.java:681) at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo (ExoPlayerImpl.java:622) at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent (ExoPlayerImpl.java:567) at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage (ExoPlayerImpl.java:109) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:154) at android.app.ActivityThread.main (ActivityThread.java:6776) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1496) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1386)
I try to use 2.9.0 version,but logcat shows not found issue
Are you saying that you don't see the issue in 2.9.0 and it's therefore fixed?
@tonihei When I try to use 2.9.0
error: 'true' is incompatible with attribute com.recipe.filmrise:show_buffering (attr) enum [always=1, never=0, when_playing=2] [weak]. Message{kind=ERROR, text=error: 'true' is incompatible with attribute com.recipe.filmrise:show_buffering (attr) enum [always=1, never=0, when_playing=2] [weak]., sources=[/home/ummer/AppliedAllProjects/videoapp/filmrise/src/main/res/layout-small/media_player.xml:14], original message=, tool name=Optional.of(AAPT)}
That's seems to be unrelated to ExoPlayer.
I'll close the issue under the assumption that the original error above is already fixed. If you have any indication that it isn't fixed, please reopen the issue.
On using 2.9.0
@tonihei error: no suitable method found for newSimpleInstance(DefaultRenderersFactory,DefaultTrackSelector,DefaultLoadControl) method ExoPlayerFactory.newSimpleInstance(Context,TrackSelector,LoadControl) is not applicable (argument mismatch; DefaultRenderersFactory cannot be converted to Context) method ExoPlayerFactory.newSimpleInstance(Context,RenderersFactory,TrackSelector) is not applicable (argument mismatch; DefaultRenderersFactory cannot be converted to Context)