-
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
IllegalArgumentException in QueueTimeline#create() (trying to use duplicated keys in ImmutableMap) #290
Labels
Comments
Thanks for reporting! This was an oversight in 5528baa#diff-ba094129e4f511377f6aacdb942221d210c4d784ed4d1673b769a76d39404b25 I believe and caused by having multiple |
marcbaechinger
pushed a commit
that referenced
this issue
Apr 5, 2023
MediaItems are not meant to be unique in a playlist. If a legacy session publishes multiple items that get converted to equal MediaItems, the current code fails because we look up queue ids in a Map (that doesn't allow duplicate entries). Fix this by storing a simple list of items with additional data. #minor-release Issue: #290 PiperOrigin-RevId: 521993802
rohitjoins
pushed a commit
that referenced
this issue
Apr 18, 2023
MediaItems are not meant to be unique in a playlist. If a legacy session publishes multiple items that get converted to equal MediaItems, the current code fails because we look up queue ids in a Map (that doesn't allow duplicate entries). Fix this by storing a simple list of items with additional data. Issue: #290 PiperOrigin-RevId: 521993802 (cherry picked from commit 219967c)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Media3 Version
Media3 1.0.0
Devices that reproduce the issue
Devices that do not reproduce the issue
I think this issue is not device/OS version specific.
Reproducible in the demo app?
Not tested
Reproduction steps
Sorry, I haven't reproduced this issue myself.
MediaContoller
of media3.Expected result
No app crashing occurs inside the
QueueTimeline#create()
method.Actual result
These are example stack traces reported on Crashlytics:
NOTE-1: I am using a slightly modified version of media3 v1.0.0 which is added some debug logging code. Line numbers are not identical to the original v1.0.0.
NOTE-2: I am using a newer version of the guava library (v31.1-android)
Galaxy S21 FE 5G + Android 13 + com.google.android.apps.youtube.music
Model:Galaxy A20 + Android 11 + com.spotify.music
Media
Not applicable
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: