Skip to content

Cloudstream App crashes after 2–3 minutes while playing Willow live DASH (cenc.mpd) streams #3006

Description

@shashiyadav366

Steps to reproduce

Steps to reproduce

  1. Open CloudStream (latest pre-release).

  2. Go to Cricfy/Sketch → Live Events.

  3. Open any live cricket match that uses a Willow stream.

  4. Start playback using the built-in (Internal) player.

  5. Playback starts normally.

  6. After approximately 2–3 minutes, playback stops and the application crashes.

  7. On the next launch, CloudStream enters Safe Mode.

Expected behavior

The Willow live stream should continue playing normally without interruption.


Actual behavior

Playback works normally for about 2–3 minutes.

The app then crashes unexpectedly.

CloudStream reports Safe Mode because of the crash.

Crash information:

java.lang.IllegalArgumentException: Out of range: 3074539332930

at com.google.common.primitives.Ints.checkedCast(...)
at androidx.media3.common.util.Util.percentInt(Util.java:1239)
at androidx.media3.common.BasePlayer.getBufferedPercentage(BasePlayer.java:324)
at androidx.media3.common.ForwardingPlayer.getBufferedPercentage(...)
at androidx.media3.session.PlayerWrapper.getBufferedPercentage(...)

The exception occurs while Media3 is calculating the buffered percentage.


Environment

CloudStream: Latest pre-release

Player: Internal (built-in) player

Device: Android Tv

Android: 8

Additional information

This issue is consistently reproducible with Willow live cricket streams from the Cricfy/Sketch extension.

The Willow stream uses a live MPEG-DASH manifest (cenc.mpd), for example:

https://otte.cache.aiv-cdn.net/.../cenc.mpd

These are session-generated URLs, so the exact URL changes over time.

Playback always starts successfully and only crashes after approximately 2–3 minutes.

Even if the underlying stream becomes invalid or requires renewal, the application should handle the playback failure gracefully instead of crashing with an IllegalArgumentException.

Cloudstream version and commit hash

4.7.0-PRE

Android version

Android 8

Logcat

Attachments Of The bug

https://drive.google.com/file/d/1SOM-GbbE8243xxFKV95YZxJ9IxuHSa4e/view

Acknowledgements

  • I am sure my issue is related to the app and NOT some extension.
  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have updated the app to pre-release version Latest.
  • I will fill out all of the requested information in this form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions