IllegalArgumentException on DefaultAnalyticsCollector
Open
@marcbaechinger is already working on this.
Since Jan 6, 2026.
bug
needs triage
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.6.1
More version details
No response
Devices that reproduce the issue
Mostly observed on Samsung devices, but it's what majority of our users use. But the crash is observed only on Android 13 and above.
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Not able to reproduce, only observed from Crashlytics.
Expected result
Actual result
The crash's stacktrace:
Fatal Exception: java.lang.IllegalArgumentException: Multiple entries with same key: i9.b0@7f2b9808=z8.f1@65e731dc and i9.b0@7f2b9808=z8.f1@65e731dc
at com.google.common.collect.ImmutableMap$Builder$DuplicateKey.exception(ImmutableMap.java:713)
at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:601)
at com.google.common.collect.ImmutableMap$Builder.buildOrThrow(ImmutableMap.java:631)
at androidx.media3.exoplayer.analytics.DefaultAnalyticsCollector$MediaPeriodQueueTracker.updateMediaPeriodTimelines(DefaultAnalyticsCollector.java:1141)
at androidx.media3.exoplayer.analytics.DefaultAnalyticsCollector$MediaPeriodQueueTracker.onQueueUpdated(DefaultAnalyticsCollector.java:1119)
at androidx.media3.exoplayer.analytics.DefaultAnalyticsCollector.updateMediaPeriodQueueInfo(DefaultAnalyticsCollector.java:151)
at androidx.media3.exoplayer.MediaPeriodQueue.lambda$notifyQueueUpdate$0(MediaPeriodQueue.java:796)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:204)
at android.os.Looper.loop(Looper.java:291)
at android.app.ActivityThread.main(ActivityThread.java:8155)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:601)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1136)
Media
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.