Skip to content

IndexOutOfBoundsException: SimpleExoPlayer.getDuration() #3362

Closed
@Khang-NT

Description

Issue description, Reproduction steps

I have no idea why and how does it happen, just receive some crash logs from my crash reporting service (affected at lest 30 users, 20 different kind of devices).
I post here to find if someone have same issue or has solution for it.

Link to test content

N/A

Version of ExoPlayer being used

r2.5.3

Device(s) and version(s) of Android being used

Variety device and version.

A full bug report captured from the device

Crash log:

java.lang.IndexOutOfBoundsException
	at com.google.android.exoplayer2.Timeline$1.getWindow(Timeline.java:522)
	at com.google.android.exoplayer2.Timeline.getWindow$28c22ef2(Timeline.java:618)
	at com.google.android.exoplayer2.Timeline.getWindow(Timeline.java:605)
	at com.google.android.exoplayer2.ExoPlayerImpl.getDuration(ExoPlayerImpl.java:313)
	at com.google.android.exoplayer2.SimpleExoPlayer.getDuration(SimpleExoPlayer.java:749)

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions