react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Map already consumed exception (VoiceBroadcastReceiver.onReceive)

Open KolissnikBogdan opened this issue 2 years ago • 5 comments

Hello everyone) After updating to the latest version of the program, there were a lot of crash reports with the following error:

Exception com.facebook.react.bridge.ObjectAlreadyConsumedException: Map already consumed
  at com.facebook.react.bridge.WritableNativeMap.putString
  at io.wazo.callkeep.RNCallKeepModule$VoiceBroadcastReceiver.onReceive (RNCallKeepModule.java:1158)
  at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts (LocalBroadcastManager.java:313)
  at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage (LocalBroadcastManager.java:121)
  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:8191)
  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)

Maybe someone also faced this problem?

  • Reproduced on:
  • [X] Android
  • [ ] iOS

Versions

- Callkeep: ^4.3.3
- React Native: 0.63.5
- iOS: -

Here are some screenshots from google play console:
image_2022_12_14T13_40_05_482Z image_2022_12_14T13_40_36_648Z

KolissnikBogdan avatar Dec 14 '22 13:12 KolissnikBogdan

I experienced this issue too in self managed mode when I wanted to display an Incoming call from background and the setup was not called before

nagyszili avatar Dec 15 '22 13:12 nagyszili

@nagyszili hmm, are you setting the settings on the native side?

KolissnikBogdan avatar Dec 15 '22 13:12 KolissnikBogdan

What do you mean? You mean this? I did not setted anything native side, I'm only using a native incoming call screen. I'm using with expo and expo config plugin

nagyszili avatar Dec 15 '22 16:12 nagyszili

@KolissnikBogdan did you find a fix for this?

wilmxre avatar Feb 07 '23 09:02 wilmxre

Fix available on 4.3.4 => https://github.com/react-native-webrtc/react-native-callkeep/commit/6204cc01ec47d521599d9eabc6055d2ef369253e

SuperBesse avatar Oct 26 '23 12:10 SuperBesse