ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 90 forks source link

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

Closed Abdullah104 closed 1 week ago

Abdullah104 commented 2 years ago

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

TatankaConCube commented 2 years ago

@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.

Abdullah104 commented 2 years ago

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?

TatankaConCube commented 1 year ago

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

CubeRomanMagellan commented 1 week ago

no activity for a long time, closing.