ANR details: com.twilio.video.Video.getAudioDevice Input dispatching timed out
karan1213 opened this issue · comments
Describe the bug
I am getting an ANR (Application Not Responding) in Play Store as well as in Firebase Crashlytics.
When try to start a call and the app is trying to get the Audio Device.
Here are the logs
at com.twilio.video.Video.getAudioDevice (Video.java:276)
at com.twilio.video.MediaFactory.instance (MediaFactory.java:84)
at com.twilio.video.LocalAudioTrack.create (LocalAudioTrack.java:83)
at com.twilio.video.ktx.LocalAudioTrackKt.createLocalAudioTrack (LocalAudioTrack.kt)
at com.twilio.video.ktx.LocalAudioTrackKt.createLocalAudioTrack$default (LocalAudioTrack.kt)
at com.twilio.video.app.sdk.LocalParticipantManager.setupLocalAudioTrack (LocalParticipantManager.kt:150)
at com.twilio.video.app.sdk.LocalParticipantManager.onResume (LocalParticipantManager.kt:69)
at com.twilio.video.app.sdk.RoomManager.onResume (RoomManager.kt)
at com.twilio.video.app.ui.room.RoomViewModel.checkPermissions (RoomViewModel.kt:167)
at com.twilio.video.app.ui.room.RoomViewModel.processInput (RoomViewModel.kt:114)
at com.twilio.video.app.ui.room.RoomActivity.onResume (RoomActivity.kt:210)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1456)
at android.app.Activity.performResume (Activity.java:8272)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4532)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4577)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2108)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:223)
at android.app.ActivityThread.main (ActivityThread.java:7974)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:948)
To Reproduce
Steps to reproduce the behavior:
- Open Demo app
- Join a Room
- Try with Bluetooth Device connected and not connected
Expected behavior
The expectation is that this ANR should not occur and any blocking code block should run in asynchronously.
Screenshots
N/A
Android Device (please complete the following information):
- Device: realme RE588E (realme narzo 50i Prime)
- API Version: Android 11 (SDK 30)
Video Android SDK (please complete the following information):
implementation "com.twilio:video-android-ktx:7.5.1"
implementation group: "com.twilio.sdk", name: "twilio", version: "9.2.5"
implementation 'com.twilio:audioswitch:1.1.5'
implementation 'com.twilio:twilio-android-env:1.1.0@aar'
Additional context
N/A
@karan1213 Sorry for the late response and thank you for filing this bug report. We are currently investigating it.