cancel
Showing results for 
Search instead for 
Did you mean: 

Social starter VOIP error

l0g1k
Protege
Hi,

Not sure if this is technically the correct forum, but I'm getting C# exceptions regarding the VOIP buffer in the 'Social Starter' demo.

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List`1+Enumerator[System.Single[]].VerifyState () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:778)
System.Collections.Generic.List`1+Enumerator[System.Single[]].MoveNext () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:784)
OvrAvatar.Update () (at Assets/OvrAvatar/Scripts/OvrAvatar.cs:487)
I've highlighted the offending line from OvrAvatar

x8tko6j1uu5l.png

Elsewhere, 'voiceUpdates' is modified by a method named 'MicFilter'. So I think there is some issue - does voiceUpdates need a lock on it, or something? I am not that much of a concurrency mastermind, especially not in C#. 

Issue does not seem Unity/Oculus version specific, rather a fundamental design issue on the C# side. It's easy to reproduce: just have voip connection between at least 2 people open for 30 seconds or so and you will see the errors every time.


Thanks


0 REPLIES 0