Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception. System.InvalidOperationException: Collection was modified #1173

Open
greco-salvatore opened this issue Sep 9, 2024 · 2 comments

Comments

@greco-salvatore
Copy link

We are experiencing the same exception as in #902, but i can't re-open the issue

We are actually using the SIPSorcery 6.2.4 on a Windows-x64 based environment.

2024-09-09T15:05:43.7628253+02:00  [FTL] Unhandled exception being thrown with Message: [Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
   at SIPSorcery.Net.RtpIceChannel.ProcessChecklist()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()] (1bacd926)

The exception can't be handled outside the library and is being thrown in the application who uses it, causing a crash.

I haven't checked if the problem can be solved using the suggestion in the past closed issue.
Can you look at it?
Thanks

@ChristopheI
Copy link
Collaborator

Could you check if the suggestion is working in your case and create a PR ?
Thx

@greco-salvatore
Copy link
Author

Well, i can't really reproduce the crash programatically but it happens every so often. I'll keep you updated if the fix is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants