You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IllegalStateException in MediaController.notifyAccepted() #49
Hi. I noticed the following crash report in Crashlytics for my app.
Example stack trace (copied from Firebase Crashlytics)
Fatal Exception: java.lang.IllegalStateException
at androidx.media3.common.util.Assertions.checkState(Assertions.java:85)
at androidx.media3.session.MediaController.notifyAccepted(MediaController.java:1800)
at androidx.media3.session.MediaControllerImplLegacy.updateControllerInfo(MediaControllerImplLegacy.java:1357)
at androidx.media3.session.MediaControllerImplLegacy.handleNewLegacyParameters(MediaControllerImplLegacy.java:1318)
at androidx.media3.session.MediaControllerImplLegacy.access$500(MediaControllerImplLegacy.java:109)
at androidx.media3.session.MediaControllerImplLegacy$ControllerCompatCallback.onSessionReady(MediaControllerImplLegacy.java:1559)
at android.support.v4.media.session.MediaControllerCompat$Callback$MessageHandler.handleMessage(MediaControllerCompat.java:1121)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7386)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
Activity
entibaldi commentedon Nov 3, 2022
We are also reproducing this issue for several of our users
Avoid notifying connection twice from MediaControllerImplLegacy.
Avoid notifying connection twice from MediaControllerImplLegacy.
h6ah4i commentedon Jan 14, 2023
@tonihei Thanks for the fix in 1.0.0-beta03. I no longer see the app crashes due to this error anymore 👍