Skip to content
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

ANR details: com.twilio.video.Video.getAudioDevice Input dispatching timed out #267

Open
karan1213 opened this issue Mar 28, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@karan1213
Copy link

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:

  1. Open Demo app
  2. Join a Room
  3. 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 karan1213 added the bug Something isn't working label Mar 28, 2023
@afalls-twilio
Copy link
Contributor

@karan1213 Sorry for the late response and thank you for filing this bug report. We are currently investigating it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants