Closed soorin1990 closed 8 months ago
Thank you, we need to check this line.
Assertion at threads.c:6918, condition `this_thread_controls == thread_given_control' not met
memo: WRS-461
Any estimate on when we expect this issue to be fixed? This affects macOS, iOS and Android.
@Yousif-CS Does it work on Windows or Linux platform? How about small resolution?
This is working in Windows, didn't get a chance to test it on Linux.
@soorin1990 Thank you for the valuable information. In other words, it means this issue depends on platforms.
@soorin1990
Package version
3.0.0-pre.4
Environment
Steps To Reproduce
I am trying to enable simulcast using VP8 Codec type by modifying the existing MediaStreamSample.cs with the below code
Current Behavior
Both Editor & App Crashes on running with VP8 with simulcast enabled
Expected Behavior
App should not crash and stream simulcast layers
Log:
0 0x000001818bc97d in void absl::internal_any_invocable::RemoteInvoker<false, void, webrtc::(anonymous namespace)::RepeatingTask&&>(absl::internal_any_invocable::TypeErasedState*)
Thread 0x31171c000 may have been prematurely finalized#1 0x00000181de52c3 in std::1::function::func<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib*, absl::string_view, rtc::ThreadPriority)::$_1, std::1::allocator<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib, absl::string_view, rtc::ThreadPriority)::$_1>, void ()>::operator()() Thread 0x31171c000 may have been prematurely finalized#2 0x000001818b2447 in std::1::function::func<rtc::PlatformThread::SpawnThread(std::1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1, std::1::allocator<rtc::PlatformThread::SpawnThread(std::1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1>, void ()>::operator()() Thread 0x31171c000 may have been prematurely finalized#3 0x000001818b20c8 in rtc::(anonymous namespace)::RunPlatformThread(void) Thread 0x31171c000 may have been prematurely finalized#4 0x007ff8030a9259 in _pthread_start Thread 0x31171c000 may have been prematurely finalized#5 0x007ff8030a4c7b in thread_start Obtained 6 stack frames. Thread 0x3125f6000 may have been prematurely finalized#0 0x000001818bc97d in void absl::internal_any_invocable::RemoteInvoker<false, void, webrtc::(anonymous namespace)::RepeatingTask&&>(absl::internal_any_invocable::TypeErasedState) Thread 0x3125f6000 may have been prematurely finalized#1 0x00000181de52c3 in std::1::function::__func<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib, absl::string_view, rtc::ThreadPriority)::$_1, std::1::allocator<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib*, absl::string_view, rtc::ThreadPriority)::$_1>, void ()>::operator()() Thread 0x3125f6000 may have been prematurely finalized#2 0x000001818b2447 in std::1::function::func<rtc::PlatformThread::SpawnThread(std::1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1, std::1::allocator<rtc::PlatformThread::SpawnThread(std::__1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1>, void ()>::operator()() Thread 0x3125f6000 may have been prematurely finalized#3 0x000001818b20c8 in rtc::(anonymous namespace)::RunPlatformThread(void) Thread 0x3125f6000 may have been prematurely finalized#4 0x007ff8030a9259 in _pthread_start Thread 0x3125f6000 may have been prematurely finalized#5 0x007ff8030a4c7b in thread_start Obtained 5 stack frames. Thread 0x31215c000 may have been prematurely finalized#0 0x00000104dade03 in MetalSurfaceCallback(__CVDisplayLink, CVTimeStamp const, CVTimeStamp const, unsigned long long, unsigned long long, void) Thread 0x31215c000 may have been prematurely finalized#1 0x007ff80b8fe2b1 in CVDisplayLink::performIO(CVTimeStamp) Thread 0x31215c000 may have been prematurely finalized#2 0x007ff80b8fd10d in CVDisplayLink::runIOThread() Thread 0x31215c000 may have been prematurely finalized#3 0x007ff8030a9259 in _pthread_start Thread 0x31215c000 may have been prematurely finalized#4 0x007ff8030a4c7b in thread_start Obtained 7 stack frames. Thread 0x3126f9000 may have been prematurely finalized#0 0x0000018171f971 in webrtc::TimeDelta absl::internal_any_invocable::LocalInvoker<false, webrtc::TimeDelta, unity::webrtc::VideoFrameScheduler::StartRepeatingTask()::$_2&>(absl::internal_any_invocable::TypeErasedState) Thread 0x3126f9000 may have been prematurely finalized#1 0x000001818bc959 in void absl::internal_any_invocable::RemoteInvoker<false, void, webrtc::(anonymous namespace)::RepeatingTask&&>(absl::internal_any_invocable::TypeErasedState) Thread 0x3126f9000 may have been prematurely finalized#2 0x00000181de52c3 in std::1::function::__func<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib, absl::string_view, rtc::ThreadPriority)::$_1, std::1::allocator<webrtc::(anonymous namespace)::TaskQueueStdlib::InitializeThread(webrtc::(anonymous namespace)::TaskQueueStdlib*, absl::string_view, rtc::ThreadPriority)::$_1>, void ()>::operator()() Thread 0x3126f9000 may have been prematurely finalized#3 0x000001818b2447 in std::1::function::func<rtc::PlatformThread::SpawnThread(std::1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1, std::1::allocator<rtc::PlatformThread::SpawnThread(std::__1::function<void ()>, absl::string_view, rtc::ThreadAttributes, bool)::$_1>, void ()>::operator()() Thread 0x3126f9000 may have been prematurely finalized#4 0x000001818b20c8 in rtc::(anonymous namespace)::RunPlatformThread(void*) Thread 0x3126f9000 may have been prematurely finalized#5 0x007ff8030a9259 in _pthread_start Thread 0x3126f9000 may have been prematurely finalized#6 0x007ff8030a4c7b in thread_start Launching bug reporter Launching bug reporter Launching bug reporter Launching bug reporter