Skip to content

[BUG]: MultiVideo crashes on Linux #1098

@sbcrvl

Description

@sbcrvl

Package version

3.0.0-pre.8

Environment

* OS: Ubuntu 24.04.3 LTS
* Unity version: Unity 6000.0.57f1

Steps To Reproduce

  1. Open the MultiVideoReceive sample scene.
  2. Run it either on the Editor or the standalone Player.
  3. Click the Call button.
  4. Click the AddVideoObject button.
  5. Click the AddTracks button.
pc2 IceConnectionState: Connected
UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
UnityEngine.StackTraceUtility:ExtractStackTrace () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/StackTrace.cs:35)
UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Unity.WebRTC.Samples.MultiVideoReceiveSample:OnIceConnectionChange (Unity.WebRTC.RTCPeerConnection,Unity.WebRTC.RTCIceConnectionState) (at Assets/Samples/WebRTC/3.0.0-pre.8/Example/MultiVideoReceive/MultiVideoReceiveSample.cs:109)
Unity.WebRTC.Samples.MultiVideoReceiveSample:<Start>b__26_1 (Unity.WebRTC.RTCIceConnectionState) (at Assets/Samples/WebRTC/3.0.0-pre.8/Example/MultiVideoReceive/MultiVideoReceiveSample.cs:57)
Unity.WebRTC.RTCPeerConnection/<>c__DisplayClass50_0:<PCOnIceConnectionChange>b__0 () (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/RTCPeerConnection.cs:443)
Unity.WebRTC.WebRTC:SendOrPostCallback (object) (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/WebRTC.cs:1169)
Unity.WebRTC.ExecutableUnitySynchronizationContext/WorkRequest:Invoke () (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/Internal/ExecutableUnitySynchronizationContext.cs:224)
Unity.WebRTC.ExecutableUnitySynchronizationContext:Execute () (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/Internal/ExecutableUnitySynchronizationContext.cs:171)
Unity.WebRTC.ExecutableUnitySynchronizationContext:ExecuteAndAppendNextExecute () (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/Internal/ExecutableUnitySynchronizationContext.cs:189)
Unity.WebRTC.ExecutableUnitySynchronizationContext:SendOrPostCallback (object) (at ./Library/PackageCache/com.unity.webrtc@cd5330803ce2/Runtime/Scripts/Internal/ExecutableUnitySynchronizationContext.cs:57)
UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:156)
UnityEngine.UnitySynchronizationContext:Exec () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:84)
UnityEngine.UnitySynchronizationContext:ExecuteTasks () (at /home/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnitySynchronizationContext.cs:110)

(Filename: Assets/Samples/WebRTC/3.0.0-pre.8/Example/MultiVideoReceive/MultiVideoReceiveSample.cs Line: 109)

Obtained 27 stack frames.
#0  0x00720137445330 in (Unknown)
#1  0x0072013749eb2c in __GI___pthread_kill
#2  0x0072013744527e in __GI_raise
#3  0x007201374288ff in __GI_abort
#4  0x0072013caebdf6 in __gnu_cxx::__verbose_terminate_handler()
#5  0x0072013caeb0f3 in __cxxabiv1::__terminate(void (*)())
#6  0x0072013caeb129 in std::terminate()
#7  0x0072013caeb267 in __cxa_rethrow
#8  0x0071ff0975993c in (Unknown)
#9  0x0071ff097597ee in (Unknown)
#10 0x0071ff09759060 in (Unknown)
#11 0x0071ff0974c5f8 in (Unknown)
#12 0x0071ff0974a717 in (Unknown)
#13 0x0071ff0974a7f4 in (Unknown)
#14 0x0071ff0a243c82 in (Unknown)
#15 0x0071ff0a243730 in (Unknown)
#16 0x0071ff097487df in (Unknown)
#17 0x0071ff09ca3ce0 in (Unknown)
#18 0x0071ff09ca2c63 in (Unknown)
#19 0x0071ff09ca1d88 in (Unknown)
#20 0x0071ff09e99a96 in (Unknown)
#21 0x0071ff09e9b95c in (Unknown)
#22 0x0071ff09e9a4db in (Unknown)
#23 0x0071ff098ee7f8 in (Unknown)
#24 0x0071ff098ee703 in (Unknown)
#25 0x0072013749caa4 in start_thread
#26 0x00720137529c3c in __clone3

Current Behavior

Regardless of running the MultiVideoReceive scene on the Editor or the standalon Player it ends up crashing after completing the peer initialization and negotiation.

Expected Behavior

After pressing the AddTracks button, display both image feeds on the target objects.

Anything else?

A very similar behavior was previously reported on this issue, after cloning the project from the merge request and installing the package locally I was still able to replicate this bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions