microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
903 stars 278 forks source link

NullReferenceException in Unity VideoChatDemo #213

Open jwheeler-work opened 4 years ago

jwheeler-work commented 4 years ago

I'm running the latest code. This used to work, but for some reason now I'm getting an error as the peers connect. It looks like it's failing to do the ICE Candidate exchange. After that, it won't accept an offer and begin streaming.

NullReferenceException: Object reference not set to an instance of an object Microsoft.MixedReality.WebRTC.Unity.NodeDssSignaler+d__15.MoveNext () (at Assets/Microsoft.MixedReality.WebRTC.Unity/Scripts/Signaling/NodeDssSignaler.cs:237) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <94c5f4c38cdc42d2b006f8badef04394>:0)

djee-ms commented 4 years ago

I think you received a message but the peer connection is not initialized, so the NodeDssSignaler can't pass the message to it. This is generally a stale message from a previous session, when the app crashed and the message was sent by one peer but not read back from the other peer. The node-dss signaling used here is for debug purpose, and does not handle sessions nor abrupt disconnect. Please try to restart the node-dss server and see if that still happen.