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 HLS stream, ExoPlayer v2.x #1900

Closed
ChernyshovYuriy opened this issue Oct 5, 2016 · 4 comments
Closed
Assignees
Labels

Comments

@ChernyshovYuriy
Copy link

I had searched for the same exception but didn't found with the same scenario and root point of exception.
Reproduced on application assembled from dev-v2 (hash 89c4380), as well as assembled from release-v2.
Steps:

  • launch application and select HLS -> "Apple 16x9 basic stream"
  • once started, select Text -> "unknown"
  • observe:
10-05 14:59:29.197 E: playerFailed [5.63]
                      com.google.android.exoplayer2.ExoPlaybackException
                          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:315)
                          at android.os.Handler.dispatchMessage(Handler.java:98)
                          at android.os.Looper.loop(Looper.java:148)
                          at android.os.HandlerThread.run(HandlerThread.java:61)
                          at com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
                       Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=3
                          at com.google.android.exoplayer2.source.hls.HlsSampleStreamWrapper.setTrackGroupEnabledState(HlsSampleStreamWrapper.java:611)
                          at com.google.android.exoplayer2.source.hls.HlsSampleStreamWrapper.selectTracks(HlsSampleStreamWrapper.java:183)
                          at com.google.android.exoplayer2.source.hls.HlsMediaPeriod.selectTracks(HlsMediaPeriod.java:167)
                          at com.google.android.exoplayer2.ExoPlayerImplInternal$MediaPeriodHolder.updatePeriodTrackSelection(ExoPlayerImplInternal.java:1263)
                          at com.google.android.exoplayer2.ExoPlayerImplInternal.reselectTracksInternal(ExoPlayerImplInternal.java:704)
                          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:293)
                          at android.os.Handler.dispatchMessage(Handler.java:98) 
                          at android.os.Looper.loop(Looper.java:148) 
                          at android.os.HandlerThread.run(HandlerThread.java:61) 
                          at com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40) 
@AquilesCanta AquilesCanta self-assigned this Oct 5, 2016
@AquilesCanta
Copy link
Contributor

Yes, this is a bug. I will use this to keep track of this. Also there is a possibly related issue that dates from the v1 older versions reproducible thorugh the Apple master playlist advanced (TS) stream by alternating from text option 2 to 1.

@ojw28
Copy link
Contributor

ojw28 commented Oct 5, 2016

My fault.

@ojw28 ojw28 assigned ojw28 and unassigned AquilesCanta Oct 5, 2016
@ojw28
Copy link
Contributor

ojw28 commented Oct 5, 2016

Note - A similar issue also affects MergingMediaSource in the case that two of the children being merged contain tracks of the same type, and if the track selection for a renderer is switched from a track belonging to one child to a track belonging to the other in a single selection step.

ojw28 added a commit that referenced this issue Oct 5, 2016
Playback would fail if a renderer is toggled from consuming from
one child to another in a single step.

Issue: #1900

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=135270356
@ojw28 ojw28 closed this as completed Oct 5, 2016
@ChernyshovYuriy
Copy link
Author

Just verified proposed solution. Working as designed and as desired :-)
Thanks guys!

@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.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants