connectycube-flutter-samples icon indicating copy to clipboard operation
connectycube-flutter-samples copied to clipboard

Unhandled Exception: Unable to RTCPeerConnection::setRemoteDescription: peerConnectionSetRemoteDescription(): WEBRTC_SET_REMOTE_DESCRIPTION_ERROR: Failed to set remote answer sdp: Called in wrong state: stable

Open Abdullah104 opened this issue 3 years ago • 3 comments
trafficstars

Specify the sample to which the issue belongs (use [x]): [] Chat sample [X] P2P Call sample [] Conference Call sample

Platform (use [x]) [X] Android [X] iOS [] macOS [] Windows [] Web

Device info Manufacturer: Huawei Model: P20 Pro OS version:

Describe the bug: Production IOS devices face multiple issues hearing audio from the other peer during audio and video calls, sometimes only one peer can hear the voice of the other peer, and sometimes none of the peers can hear anything While trying to investigate this problem on IOS simulators and my android mobile, I have found this exception thrown among the log

E/flutter ( 4262): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to RTCPeerConnection::setRemoteDescription: peerConnectionSetRemoteDescription(): WEBRTC_SET_REMOTE_DESCRIPTION_ERROR: Failed to set remote answer sdp: Called in wrong state: stable

I would appreciate any help on this issue, even audio calls are facing the same behavior issue even if this exception does not throw

Steps to Reproduce:

  1. Start a one-to-one video call with another user

Logs: Gist Log

Actual result: The previously mentioned exception + audio problems for peers

Expected behavior: Call going with booth peers able to hear each other

Abdullah104 avatar Oct 16 '22 15:10 Abdullah104

@Abdullah104 do you able to reproduce it on the real device? which devices do you use for it? Can you reproduce it on our sample? According to the provided log, it is your app, not our P2P Calls sample. If it reproduces on our sample, please provide a step-by-step guide on how we can reproduce it on our sample.

TatankaConCube avatar Oct 17 '22 07:10 TatankaConCube

The audio problem reproduces on real iPhone devices, but not on Android. We have uploaded the sample to TestFlight in order for the client to test it on their real iPhone devices and the problem did not reproduce. Could I be missing something in my IOS configurations or permissions? If not, do you have any insight into what could I be doing wrong causing this issue to happen? can the exception and the audio issue be related?

Abdullah104 avatar Oct 17 '22 17:10 Abdullah104

sorry for the late answer ((( please try the latest version of our samples, if the issue still happens, please try to collect full logs from both sides and provide them here

TatankaConCube avatar May 17 '23 16:05 TatankaConCube