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

ArrayIndexOutOfBoundsException on playback of a HLS stream #1695

Closed
rini-m opened this issue Jul 25, 2016 · 4 comments
Closed

ArrayIndexOutOfBoundsException on playback of a HLS stream #1695

rini-m opened this issue Jul 25, 2016 · 4 comments
Assignees

Comments

@rini-m
Copy link

rini-m commented Jul 25, 2016

java.lang.ArrayIndexOutOfBoundsException: length=12; index=-2
    at java.util.ArrayList.get(ArrayList.java:310)
    at java.util.Collections$UnmodifiableList.get(Collections.java:1054)
    at com.google.android.exoplayer.hls.HlsChunkSource.getChunkOperation(HlsChunkSource.java:441)
    at com.google.android.exoplayer.hls.HlsSampleSource.maybeStartLoading(HlsSampleSource.java:712)
    at com.google.android.exoplayer.hls.HlsSampleSource.onLoadCompleted(HlsSampleSource.java:438)
    at com.google.android.exoplayer.upstream.Loader$LoadTask.handleMessage(Loader.java:245)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:158)
    at android.os.HandlerThread.run(HandlerThread.java:61)
    at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)

Exoplayer version used- r1.5.8.
Playback starts, buffer for few seconds and then app crashes with this error. This is 100% reproducible in all available devices, trying to play same content.

@AquilesCanta
Copy link
Contributor

As stated in the ISSUE_TEMPLATE, please provide a link to the media that causes the error. Otherwise it is practically impossible for us to know the cause. You can send it to dev.exoplayer@gmail.com, if you would rather not post it here. Don't forget to include the issue number.

@AquilesCanta AquilesCanta self-assigned this Jul 25, 2016
@AquilesCanta
Copy link
Contributor

Closing due to lack of requested information.

@londhenamdev
Copy link

Hello AquilesCanta,
I have the same issue as above. I am trying to play this media (http://origin.tcmsdemo.com/94BF6635-FEF4-4702-8800-C3830A353949.m3u8) using exoplayer in android. It plays for 2 seconds and then app is crasing with same error as above.

@AquilesCanta AquilesCanta reopened this Aug 24, 2016
@AquilesCanta
Copy link
Contributor

@londhenamdev What version are you using? Is it possible that you are using an old one? I cannot reproduce it and I am inclined to think the issue is the lack of alignment of the segments (which is not a problem in version 1.5.10, I think). Please, try updating exoplayer and if the problem persists, open a new bug, providing all the information required in the issue template.

carlospontual added a commit to Pluto-tv/exoplayer-amazon-port that referenced this issue Nov 8, 2016
…and google/ExoPlayer#1801: ArrayIndexOutOfBoundsException (Crashlytics issue #11310)
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants