question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with multiple offers per RTCPeerConnection setup

See original GitHub issue

I have encountered several scenarios where setRemoteDescription has been called more than once. This can happen if the sdp message is delayed on its way from one client, to the signalhub, to the second client. This mostly happens in slow networks with a high packet drop rate (e.g. 4G).

This is what’s printed when debug is turned on:

simple-peer [783e416] destroy (error: InvalidStateError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote offer sdp: Called in wrong state: kHaveLocalOffer) +2ms

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
nazar-pccommented, Jul 9, 2019

I’m closing this issue then, but feel free to continue discussion if necessary

1reaction
corwin-of-ambercommented, Jul 9, 2019

So those are logs from one side. What the other side says?

It is rather unfortunate but I did not have debug enabled on the other side at that particular point 😩 Will update if this comes up again when I can catch both ends.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I re-use an "offer" in WebRTC for mulitple connections?
In my prototype I see that clicking "create offer" multiple times results in the same string. So, if have client A, and connect...
Read more >
Establishing a connection: The WebRTC perfect negotiation ...
Perfect negotiation works by assigning each of the two peers a role ... an offer, we ask WebRTC to select an appropriate local...
Read more >
825576 - RTCPeerConnection objects are released too slowly ...
Issue 825576: RTCPeerConnection objects are released too slowly and reallocating causes exception: Cannot create so many PeerConnections.
Read more >
WebRTC RTCPeerConnection. One to rule them all, or one ...
What would be the trade-offs between combining multiple streams in 1 connection or setting up multiple connections (e.g. 1 for each stream)?.
Read more >
Manage Dynamic Multi-Peer Connections in WebRTC - Medium
The second user, when receiving the offer, will have to do the same thing as first client did: create a RTCPeerConnection associated with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found