Issue description
I see some crash reports:
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=2; index=-1
at com.google.android.exoplayer2.source.ConcatenatingMediaSource$ConcatenatedTimeline.getFirstWindowIndexByChildIndex(SourceFile:922)
at com.google.android.exoplayer2.source.AbstractConcatenatedTimeline.getPeriodByUid(SourceFile:207)
at com.google.android.exoplayer2.ExoPlayerImpl.getCurrentWindowIndex(SourceFile:460)
at com.google.android.exoplayer2.analytics.AnalyticsCollector.generateEventTime(SourceFile:632)
at com.google.android.exoplayer2.analytics.AnalyticsCollector.generatePlayingMediaPeriodEventTime(SourceFile:650)
at com.google.android.exoplayer2.analytics.AnalyticsCollector.onTimelineChanged(SourceFile:442)
at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.notifyListeners(SourceFile:771)
at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(SourceFile:708)
at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(SourceFile:639)
at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent(SourceFile:584)
at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage(SourceFile:125)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
(index always = -1)
Do you have any idea why it happen?
It maybe something wrong with my implementation, but I'm pretty sure that I access ExoPlayer instance and update ConcatenatingMediaSource in single thread. The stack trace is quite complicated to me to investigate, so please take a look.
Reproduction steps
Can't.
Link to test content
Not available.
Version of ExoPlayer being used
2.9.2
Device(s) and version(s) of Android being used
Variety devices.
Variety os versions.
Issue description
I see some crash reports:
(index always = -1)
Do you have any idea why it happen?
It maybe something wrong with my implementation, but I'm pretty sure that I access
ExoPlayerinstance and updateConcatenatingMediaSourcein single thread. The stack trace is quite complicated to me to investigate, so please take a look.Reproduction steps
Can't.
Link to test content
Not available.
Version of ExoPlayer being used
2.9.2Device(s) and version(s) of Android being used
Variety devices.
Variety os versions.