Unity-Technologies / Unity-Technologies/com.unity.webrtc

[BUG]: Crash on Linux

Open
#1,079 0 comments 0 reactions 1 assignee View on GitHub

@karasusan is already working on this.

Since Apr 17, 2025.

bug
Dominant language
Assembly
Stars
852
Forks
238
PR merge metrics
No merged PRs in 30d

Description

Package version

3.0.0-pre.8

Environment
* OS:Linux Mint
* Unity version: Unity 6000.0.46f1
Steps To Reproduce
  1. Open the sample scene: MultiVideoReceive
  2. Enter Play Mode (in Editor) or run the built Player
  3. Click Button in order: Call → AddVideoObject → AddTracks
Current Behavior

Crash occurs after click the button AddTracks

Expected Behavior
  • Video tracks are added successfully
  • Video is sent and received without crashing
Anything else?

stack trace:

pc1 IceConnectionState: Connected
pc1 IceConnectionState: Completed
pc2 IceConnectionState: Connected
free(): invalid pointer
Caught fatal signal - signo:6 code:-6 errno:0 addr:0x3e800001c8b
Obtained 22 stack frames.
#0  0x007b4bfca42476 in __GI_raise
#1  0x007b4bfca287f3 in __GI_abort
#2  0x007b4bfca89677 in __libc_message
#3  0x007b4bfcaa0cfc in malloc_printerr
#4  0x007b4bfcaa2a44 in _int_free
#5  0x007b4bfcaa5453 in __free
#6  0x007b4bf02c088a in std::locale::_Impl::~_Impl()
#7  0x007b4bdfcb8477 in std::locale::~locale()
#8  0x007b4bded5b496 in unity::webrtc::UnityVideoDecoder::Configure(webrtc::VideoDecoder::Settings const&)
#9  0x007b4bdf28653f in webrtc::VCMGenericDecoder::Configure(webrtc::VideoDecoder::Settings const&)
#10 0x007b4bdf288838 in webrtc::VCMDecoderDatabase::CreateAndInitDecoder(webrtc::VCMEncodedFrame const&)
#11 0x007b4bdf288637 in webrtc::VCMDecoderDatabase::GetDecoder(webrtc::VCMEncodedFrame const&, webrtc::VCMDecodedFrameCallback*)
#12 0x007b4bdf284d68 in webrtc::VideoReceiver2::Decode(webrtc::VCMEncodedFrame const*)
#13 0x007b4bdee19031 in webrtc::internal::VideoReceiveStream2::HandleEncodedFrameOnDecodeQueue(std::unique_ptr<webrtc::EncodedFrame, std::default_delete<webrtc::EncodedFrame> >, bool, bool)
#14 0x007b4bdee19e5a in void absl::internal_any_invocable::RemoteInvoker<false, void, webrtc::internal::VideoReceiveStream2::OnEncodedFrame(std::unique_ptr<webrtc::EncodedFrame, std::default_delete<webrtc::EncodedFrame> >)::$_0&&>(absl::internal_any_invocable::TypeErasedState*)
#15 0x007b4bdf493946 in webrtc::(anonymous namespace)::TaskQueueLibevent::OnWakeup(int, short, void*)
#16 0x007b4bdf49580c in event_base_loop
#17 0x007b4bdf49438b in std::_Function_handler<void (), webrtc::(anonymous namespace)::TaskQueueLibevent::TaskQueueLibevent(std::basic_string_view<char, std::char_traits<char> >, rtc::ThreadPriority)::$_0>::_M_invoke(std::_Any_data const&)
#18 0x007b4bdeee88e8 in std::_Function_handler<void (), rtc::PlatformThread::SpawnThread(std::function<void ()>, std::basic_string_view<char, std::char_traits<char> >, rtc::ThreadAttributes, bool)::$_0>::_M_invoke(std::_Any_data const&)
#19 0x007b4bdeee87f3 in rtc::(anonymous namespace)::RunPlatformThread(void*)
#20 0x007b4bfca94ac3 in start_thread
#21 0x007b4bfcb26850 in __clone3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.