Exception related to media3 DefaultAudioSink with Version 3.52.0

Hi Team,

Getting exception related to media3 DefaultAudioSink with Version 3.52.0.

Fatal Exception: java.lang.IllegalStateException:
       at androidx.media3.common.util.Assertions.checkState(Assertions.java:85)
       at androidx.media3.exoplayer.audio.DefaultAudioSink.onAudioCapabilitiesChanged(DefaultAudioSink.java:1469)
       at androidx.media3.exoplayer.audio.DefaultAudioSink$$ExternalSyntheticLambda1.onAudioCapabilitiesChanged(:2)
       at androidx.media3.exoplayer.audio.AudioCapabilitiesReceiver.onNewAudioCapabilities(AudioCapabilitiesReceiver.java:142)
       at androidx.media3.exoplayer.audio.AudioCapabilitiesReceiver.access$200(AudioCapabilitiesReceiver.java:42)
       at androidx.media3.exoplayer.audio.AudioCapabilitiesReceiver$AudioDeviceCallbackV23.onAudioDevicesRemoved(AudioCapabilitiesReceiver.java:191)
       at android.media.AudioManager$NativeEventHandlerDelegate$1.handleMessage(AudioManager.java:6240)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:223)
       at android.app.ActivityThread.main(ActivityThread.java:7656)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Hi @malviya.software,

thanks for reporting the issue. Can you provide some additional details in order to allow us to reproduce the issue? Most notably the following would be useful:

  • stream/configuration that reproduces the issue
  • devices this issue occurs on
  • additional logs before/ after this exception occurs. See Logging in the Android Player SDK for how to enable additional logs.

Thanks in advance,
Lukas

Device

Brand:Google TV

Model:Chromecast Google TV

Orientation:Landscape

RAM free: 532.09 MB

Disk free: 896.57 MB

Operating System

Version:Android 12

Orientation:Landscape

Rooted:No

log: log - Pastebin

Thanks, that already helps. Any steps to reproduce the issue?

Based on the Firebase user logs, i can see the max crash from DefaultAudioSink.onAudioCapabilitiesChanged. I do not have STR

This was fixed in https://developer.bitmovin.com/playback/docs/release-notes-android#3570. Please update to the latest SDK version and verify that this fixes the issue for you.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.