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

RuntimeException: Error receiving broadcast Intent { AUDIO_STATE_CHANGED } in BluetoothHeadsetManager #293

Open
stasoption opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stasoption
Copy link

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED flg=0x10 (has extras) } in com.twilio.audioswitch.bluetooth.BluetoothHeadsetManager@d913913
       at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1929)
       at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(:2)
       at android.os.Handler.handleCallback(Handler.java:942)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8762)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
        
Caused by java.util.ConcurrentModificationException:
      at java.util.ArrayList.checkForComodification(ArrayList.java:662)
      at java.util.ArrayList.equals(ArrayList.java:621)
      at kotlin.jvm.internal.Intrinsics.areEqual(Intrinsics.java:169)
      at com.twilio.audioswitch.AudioSwitch$AudioDeviceState.equals(AudioSwitch.kt:12)
      at kotlin.jvm.internal.Intrinsics.areEqual(Intrinsics.java:169)
      at com.twilio.audioswitch.AudioSwitch.enumerateDevices(AudioSwitch.kt:306)
      at com.twilio.audioswitch.AudioSwitch.access$getDefaultPreferredDeviceList$cp(AudioSwitch.kt:35)
      at com.twilio.audioswitch.AudioSwitch.access$enumerateDevices(AudioSwitch.kt:35)
      at com.twilio.audioswitch.AudioSwitch$bluetoothDeviceConnectionListener$1.onBluetoothHeadsetStateChanged(AudioSwitch.kt:55)
      at com.twilio.audioswitch.bluetooth.BluetoothHeadsetConnectionListener$DefaultImpls.onBluetoothHeadsetStateChanged$default(BluetoothHeadsetConnectionListener.kt:4)
      at com.twilio.audioswitch.bluetooth.BluetoothHeadsetManager.onReceive(BluetoothHeadsetManager.kt:130)
      at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$android-app-LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1919)
      at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(:2)
      at android.os.Handler.handleCallback(Handler.java:942)
      at android.os.Handler.dispatchMessage(Handler.java:99)
      at android.os.Looper.loopOnce(Looper.java:226)
      at android.os.Looper.loop(Looper.java:313)
      at android.app.ActivityThread.main(ActivityThread.java:8762)
      at java.lang.reflect.Method.invoke(Method.java)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Logs:
com.appclose.androidapp_issue_95fa592eec39439ebb43bbce9f970f0f_crash_session_66FB22A701B7000151A4BF45EC8D243E_DNE_8_v2_stacktrace.txt

@stasoption stasoption added the bug Something isn't working label Oct 31, 2024
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

1 participant