IndexOutOfBoundException at HlsChunkSource.getNextSegmentHolder
See original GitHub issue- We are getting IndexOutOfBoundException at https://github.com/google/ExoPlayer/blob/release-v2/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsChunkSource.java#L470
- Possibly due to this
==
check at https://github.com/google/ExoPlayer/blob/release-v2/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsChunkSource.java#L463 - is this a deliberate
==
check or a bug, will replacing it with >= be of any help?
StackTrace:
com.google.common.base.Preconditions.checkElementIndex (Preconditions.java:1402)
com.google.common.base.Preconditions.checkElementIndex (Preconditions.java:1384)
com.google.common.collect.RegularImmutableList.get (RegularImmutableList.java:77)
com.google.android.exoplayer2.source.hls.HlsChunkSource.getNextSegmentHolder (HlsChunkSource.java:480)
com.google.android.exoplayer2.source.hls.HlsChunkSource.getNextChunk (HlsChunkSource.java:399)
com.google.android.exoplayer2.source.hls.HlsSampleStreamWrapper.continueLoading (HlsSampleStreamWrapper.java:708)
com.google.android.exoplayer2.source.CompositeSequenceableLoader.continueLoading (CompositeSequenceableLoader.java:78)
com.google.android.exoplayer2.source.hls.HlsMediaPeriod.continueLoading (HlsMediaPeriod.java:371)
com.google.android.exoplayer2.source.MaskingMediaPeriod.continueLoading (MaskingMediaPeriod.java:226)
com.google.android.exoplayer2.source.MaskingMediaPeriod.continueLoading (MaskingMediaPeriod.java:226)
com.google.android.exoplayer2.MediaPeriodHolder.continueLoading (MediaPeriodHolder.java:221)
com.google.android.exoplayer2.ExoPlayerImplInternal.maybeContinueLoading (ExoPlayerImplInternal.java:2222)
com.google.android.exoplayer2.ExoPlayerImplInternal.handleContinueLoadingRequested (ExoPlayerImplInternal.java:2185)
com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage (ExoPlayerImplInternal.java:500)
android.os.Handler.dispatchMessage (Handler.java:103)
android.os.Looper.loop (Looper.java:237)
android.os.HandlerThread.run (HandlerThread.java:67)
Specifications
Exo player version 2.14.1
Reproduction
The Issue was reproducible on a live-stream, we can share the test-stream if required, it would need some work on our side. please let me know if its required.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hmm, this may be difficult. In the internal network IPs may change and given the WFH situation which is still in place for some engineering sites this can be even more complicated. Using a VPN client on our side is fine for us but the IP approach has been difficult in the past. Do you have another way to make the stream available?
We can close this Issue, the issue was with the stream itself. Thanks !!