livekit / client-sdk-unity

Official Unity SDK for LiveKit
https://livekit.io
32 stars 13 forks source link

Incoming video stream error and freeze #12

Open AdamBuchweitz opened 1 year ago

AdamBuchweitz commented 1 year ago

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)
FabienDanieau commented 1 year ago

Same here

burakkaraceylan commented 8 months ago

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.