Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc++abi: terminating with uncaught exception of type MediaSoupClientError: Failed creating data channel #28

Open
NSCodeRover opened this issue Mar 15, 2024 · 4 comments

Comments

@NSCodeRover
Copy link

libc++abi: terminating with uncaught exception of type MediaSoupClientError: Failed creating data channel

with m120 while create transport even if sctp parameter set nil.

@spencexu
Copy link

spencexu commented Apr 2, 2024

I also encountered the same problem

@levs42
Copy link

levs42 commented May 21, 2024

I have the same issue. Updated from m112 ffbb6f4 to m120 8a486a2. The exception is:

libc++abi: terminating due to uncaught exception of type MediaSoupClientError: Failed creating data channel

Triggered from webrtc sdp_offer_answer.cc:2404

observer->OnSetLocalDescriptionComplete(RTCError::OK());

Which doesn't make sense to me because it looks like OK error and should return true from error.ok(). Anyway here's the part of mediasoup that triggers the error:

PeerConnection.cpp
rtc::scoped_refptr<webrtc::DataChannelInterface> PeerConnection::CreateDataChannel(
    const std::string& label, const webrtc::DataChannelInit* config)
  {
  	MSC_TRACE();

  	const auto result =
  	  this->pc->CreateDataChannelOrError(label, config);

  	if (result.ok())
  	{
  		MSC_DEBUG("Success creating data channel");
  	}
  	else
  	{
  		MSC_THROW_ERROR("Failed creating data channel");
  	}

  	return result.value();
  }

Happens every time I try to create a video producer:

try sendTransport.createProducer(
	for: videoTrack,
	encodings: nil,
	codecOptions: options, // ["videoGoogleStartBitrate": 1000]
	codec: nil,
	appData: nil
	)

Will appreciate any help.

@levs42
Copy link

levs42 commented May 22, 2024

Found the issue, it's this call. It shouldn't throw because ok() is true. It's fixed in the upstream.

@fedulvtubudul could you please sync libmediasoupclient? Thanks

@CWftw
Copy link

CWftw commented Jun 5, 2024

Also getting this. Crash on any new consumer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants