Skip to content

Fatal Exception: java.lang.IndexOutOfBoundsException Index: 1, Size: 1 #2805

Closed

Description

@JJSarrasin

Version

Media3 1.8.0

More version details

No response

Devices that reproduce the issue

Vantiva TV Box

Devices that do not reproduce the issue

?

Reproducible in the demo app?

No

Reproduction steps

We're seeing this on our crashlytics report in production:
Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.get(ArrayList.java:437)
at com.google.android.exoplayer2.source.dash.DefaultDashChunkSource.updateManifest(DefaultDashChunkSource.java:282)
at com.google.android.exoplayer2.source.dash.DashMediaPeriod.updateManifest(DashMediaPeriod.java:182)
at com.google.android.exoplayer2.source.dash.DashMediaSource.processManifest(DashMediaSource.java:853)
at com.google.android.exoplayer2.source.dash.DashMediaSource.lambda$new$0(DashMediaSource.java:484)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)

Expected result

Even if the stream isn't correct, the application should not crash.

Actual result

The application crashes sometimes with the stack above

Media

We experienced it only on a low latency stream, I don't know if it's related.

Bug Report

Activity

  1. tonihei commented on Oct 10, 2025

    @tonihei
    Collaborator

    Even if the stream isn't correct, the application should not crash.

    I agree with that, we should ensure it get reported through the normal player error channels. I will update the code to capture this exception correctly.

    The error itself looks like a representation got removed from an existing DASH period, which is indeed not allowed per spec. If you have any further details on the manifest itself and think it might be caused by something else, please let us know.

  2. locked and limited conversation to collaborators on Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions