question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IndexOutOfBoundException at HlsChunkSource.getNextSegmentHolder

See original GitHub issue
  1. 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
  2. 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
  3. 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:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
marcbaechingercommented, Sep 30, 2021

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?

0reactions
LuGO0commented, Oct 6, 2021

We can close this Issue, the issue was with the stream itself. Thanks !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found