Closed jceddy closed 4 years ago
This appears to be a timing issue while changing the filtered card name quickly (re-applying while it's still doing the filtering operation for the previous value). I will add some synchronization code to keep this from happening, which will be deployed in a future release. It seems edge case enough that it doesn't require its own release, though. If I see it come up again, I might bump up its priority.
Closing this issue, but will keep an eye out for similar ones.
An unhandled exception was detected.
Exception:
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.Listd25d 1.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator
1.Enumerator.MoveNextRare() at System.Linq.Enumerable.WhereSelectListIterator
2.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable
1 source) at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext() at System.Linq.Enumerable.1.MoveNext() at System.Collections.Generic.List
1..ctor(IEnumerable1 collection) at DailyArena.DeckAdvisor.MetaReport..ctor(ReadOnlyDictionary
2 cardsByName, Dictionary2 cardStats, ReadOnlyDictionary
2 cardsById, Dictionary2 playerInventoryCounts, List
1 archetypes, Boolean rotationProof, Dictionary2 setNameTranslations) at DailyArena.DeckAdvisor.MainWindow.FilterArchetypes(DeckFilters filters, Boolean sort) at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.List
1.Enumerator.MoveNextRare() at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Linq.Buffer
1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable
1.2.MoveNext() at System.Linq.Enumerable.<TakeIterator>d__25
1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable
1 collection) at DailyArena.DeckAdvisor.MetaReport..ctor(ReadOnlyDictionary2 cardsByName, Dictionary
2 cardStats, ReadOnlyDictionary2 cardsById, Dictionary
2 playerInventoryCounts, List1 archetypes, Boolean rotationProof, Dictionary
2 setNameTranslations) at DailyArena.DeckAdvisor.MainWindow.FilterArchetypes(DeckFilters filters, Boolean sort) at System.Threading.Tasks.Task.Execute()<---log2020062918.txt
Player.log