ingageco/capacitor-music-controls-plugin

Crash on Android: java.lang.IllegalArgumentException on com.ingageco.capacitormusiccontrols.CMCNotifyKiller.onTaskRemoved

NorthFred opened this issue · 0 comments

Some instances of this crash are reported on Production track in Google Play console for Android 12.

Crash type: java.lang.IllegalArgumentException for com.ingageco.capacitormusiccontrols.CMCNotifyKiller.onTaskRemoved

Details:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:4825)
  at android.app.ActivityThread.access$2100 (ActivityThread.java:254)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2222)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:233)
  at android.os.Looper.loop (Looper.java:344)
  at android.app.ActivityThread.main (ActivityThread.java:8212)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)
Caused by java.lang.IllegalArgumentException:
  at android.app.LoadedApk.forgetServiceDispatcher (LoadedApk.java:1983)
  at android.app.ContextImpl.unbindService (ContextImpl.java:2029)
  at android.content.ContextWrapper.unbindService (ContextWrapper.java:858)
  at android.content.ContextWrapper.unbindService (ContextWrapper.java:858)
  at com.ingageco.capacitormusiccontrols.CMCNotifyKiller.onTaskRemoved (CMCNotifyKiller.java:161)
  at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:4809)