-
Notifications
You must be signed in to change notification settings - Fork 306
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
An exception might be thrown inside MediaControllerImplBase.onPlayerInfoChanged() #51
Labels
Comments
icbaker
pushed a commit
that referenced
this issue
May 9, 2022
This fixes an inconsistent state of the `PlayerInfo` when the index of the playing media item is changed by a playlist modification. In this inconsistent state, calling `Playerinfo.getCurrentMediaItem` can produce an `ArrayIndexOutOfBoundException` (see stack trace in GH issue). This change takes the following measurements: - always update sessionPosition and timeline of the PlayerInfo together in `MediaSessionImpl.PlayerListener` where the PlayerInfo originates from - add an assertion to avoid building a `PlayerInfo` instance in an inconsistent state - reduce the window of opportunity for concurrent access to `mediaSessionImpl.playerInfo` when dispatching player info changes in `MediaSessionImpl` Issue: #51 PiperOrigin-RevId: 444812661
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi. I found the following crash report on Crashlytics. An exception thrown inside of the
MediaControllerImplBase.onPlayerInfoChanged()
.(Click here to display the full stacktrace)
Example 1
Example 2
Library versions
androidx.media3
: Built from source (Commit ID: f92ae23)Affected devices
How to reproduce the issue?
Sorry, I have not succeeded in reproducing the issue yet. I'll post details if I can get any info.
The text was updated successfully, but these errors were encountered: