Steps to reproduce
Steps to reproduce
-
Open CloudStream (latest pre-release).
-
Go to Cricfy/Sketch → Live Events.
-
Open any live cricket match that uses a Willow stream.
-
Start playback using the built-in (Internal) player.
-
Playback starts normally.
-
After approximately 2–3 minutes, playback stops and the application crashes.
-
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
Steps to reproduce
Steps to reproduce
Open CloudStream (latest pre-release).
Go to Cricfy/Sketch → Live Events.
Open any live cricket match that uses a Willow stream.
Start playback using the built-in (Internal) player.
Playback starts normally.
After approximately 2–3 minutes, playback stops and the application crashes.
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