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 Failed to execute 'createOffer' on 'RTCPeerConnection

See original GitHub issue

Bug Report

Your environment

  • Operating system: Catalina 10.15.7
  • Browser version: chrome Version 87.0.4280.67 (Official Build) (x86_64)
  • mediasoup version: 3.6.16
  • mediasoup-client version: 3.6.12

Issue description

  1. produce screen sharing with audio using getDisplayMedia.
  2. close created producers.
  3. produce screen sharing with audio again
  4. then the error occurs and producing failed
Failed to produce DOMException: Failed to execute 'createOffer' on 'RTCPeerConnection': Session error code: ERROR_CONTENT. Session error description: Unknown transceiver.
  • This error occures only when selecting chrome tab with share video.

image

  • And It didn’t occur in chrome version 86.0.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:31 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
ibccommented, Nov 24, 2020

Ok, confirmed that:

  • This is a bug in libwebrtc/Chrome and not in mediasoup-client (even if easier to report everything to mediasoup project because we don’t request jsfiddles).
  • The issue does not happen in Chrome 88 or 89 (Canary).
  • According to the issue in libwebrtc they are gonna fix M87 soon.

So closing. Nothing to do in mediasoup-client side.

2reactions
ibccommented, Nov 20, 2020

I don’t want to go to higher levels. The issue is clearly reproducible with my steps above and the error is in pc.setLocalDescription() (there may be more, but this is clear) so this is a regression in Chrome/libwebrtc.

I know that it’s easier to report issues here than in Chroimum/libwebrtc trackers since there they require a jsfiddle that reproduces the error and they don’t want to know anything about higher layers (such as mediasoup-client library). If I have time next week I’ll try to make a jsfiddle reproducing the bug by just using PeerConnections. If anyone can help on this, that would be great, but this is not a bug in mediasoup-client. I’ll keep this issue open for updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to execute 'createOffer' on 'RTCPeerConnection when ...
To reproduce error: start an instance of CEFSharp browser and navigate to "https://teams.com"; Start or join a meeting with vieo and audio.
Read more >
RTCPeerConnection.createOffer() - Web APIs | MDN
The createOffer() method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC ...
Read more >
RTCPeerConnection setting offer sdp does not match the ...
When I recreate offer in another process and then set answer sdp I get error as "Failed to create session description: InvalidAccessError: Failed...
Read more >
Failed to execute 'addTransceiver' on RTCPeerConnection
Getting some new error. What we get: DP create offer error: {“stack”:"Error: Failed to execute 'addTransceiver' on 'RTCPeerConnection': This ...
Read more >
Safari rejects offer generated by peerconnection.createOffer()
removeTrack(micTransceiver.sender); // NOTE: Chrome does not implement transceive.stop(). try { micTransceiver.stop(); } catch(error) {} // NOTE ...
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