client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

Incoming video stream error and freeze

Open AdamBuchweitz opened this issue 2 years ago • 2 comments

After I connect to a room with an incoming video stream I receive this error. Immediately, or shortly after, the video stream freezes.

ArgumentException: An item with the same key has already been added. Key: TR_AMYztorQqvg26S
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <6aa56e57ab504395b555cf3ed50fa53d>:0)
LiveKit.Room.OnEventReceived (LiveKit.Proto.RoomEvent e) (at ./Library/PackageCache/io.livekit.livekit-sdk@60ae9e2e41/Runtime/Scripts/Room.cs:94)
LiveKit.Internal.FfiClient+<>c.<FFICallback>b__33_0 (System.Object resp) (at ./Library/PackageCache/io.livekit.livekit-sdk@60ae9e2e41/Runtime/Scripts/Internal/FFIClient.cs:149)

AdamBuchweitz avatar Jul 20 '23 22:07 AdamBuchweitz

Same here

FabienDanieau avatar Aug 14 '23 15:08 FabienDanieau

Freezing happens after around 10 seconds. The VideoStreamEvent messages stop coming. AudioStreamEvent messages keep flowing. There are no errors on the server side. Error happens on both Macbook Pro M3 and Windows 11, editor and builds. Unity version 2021.3.9f1

Also opened an issue on rust-sdk repo.

burakkaraceylan avatar Jan 16 '24 21:01 burakkaraceylan