twilio/audioswitch

Crash report in playstore console (when calling audioSwitch.stop())

Closed this issue · 3 comments

java.lang.IllegalArgumentException:
at android.app.LoadedApk.forgetReceiverDispatcher (LoadedApk.java:1656)
at android.app.ContextImpl.unregisterReceiver (ContextImpl.java:1858)
at android.content.ContextWrapper.unregisterReceiver (ContextWrapper.java:786)
at com.twilio.audioswitch.bluetooth.BluetoothHeadsetManager.stop (BluetoothHeadsetManager.kt:180)
at com.twilio.audioswitch.AudioSwitch.closeListeners (AudioSwitch.kt:361)
at com.twilio.audioswitch.AudioSwitch.stop (AudioSwitch.kt:180)
at com.bt.resimpli.services.CallingService.stopService (CallingService.kt:278)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.setViews (CallingActivity.kt:183)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.addObservers$lambda-6 (CallingActivity.kt:122)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.lambda$zYuPUpdBjSIPwqOq19upwqicdSo (Unknown Source)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.-$$Lambda$CallingActivity$zYuPUpdBjSIPwqOq19upwqicdSo.onChanged (Unknown Source:4)
at androidx.lifecycle.LiveData.considerNotify (LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue (LiveData.java:151)
at androidx.lifecycle.LiveData.setValue (LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue (MutableLiveData.java:50)
at androidx.lifecycle.LiveData$1.run (LiveData.java:93)
at android.os.Handler.handleCallback (Handler.java:938)
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:8669)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)

Also getting this carsh report

java.lang.IllegalArgumentException:
at android.app.LoadedApk.forgetReceiverDispatcher (LoadedApk.java:1555)
at android.app.ContextImpl.unregisterReceiver (ContextImpl.java:1797)
at android.content.ContextWrapper.unregisterReceiver (ContextWrapper.java:769)
at com.twilio.audioswitch.wired.WiredHeadsetReceiver.stop (WiredHeadsetReceiver.kt:45)
at com.twilio.audioswitch.AudioSwitch.closeListeners (AudioSwitch.kt:362)
at com.twilio.audioswitch.AudioSwitch.stop (AudioSwitch.kt:180)
at com.bt.resimpli.services.CallingService.stopService (CallingService.kt:278)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.setViews (CallingActivity.kt:183)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.addObservers$lambda-6 (CallingActivity.kt:122)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.CallingActivity.lambda$zYuPUpdBjSIPwqOq19upwqicdSo (Unknown Source)
at com.bt.resimpli.ui.home_activity.lead.call_lead.calling_activity.-$$Lambda$CallingActivity$zYuPUpdBjSIPwqOq19upwqicdSo.onChanged (Unknown Source:4)
at androidx.lifecycle.LiveData.considerNotify (LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue (LiveData.java:151)
at androidx.lifecycle.LiveData.setValue (LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue (MutableLiveData.java:50)
at androidx.lifecycle.LiveData$1.run (LiveData.java:93)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7870)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)

Hi @Surajit98 are you still experiencing this issue? Are there any steps you could provide to reproduce this issue? Thank you.

Closing due to inactivity.