Page MenuHomePhabricator

Threading issue in stalk config
Closed, ResolvedPublic

Description

Encountered when deleting a lot of stalks simultaneously

[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
  at System.Collections.Generic.SortedList`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <6bff51911ba74b8784948845d461f16f>:0 
  at EyeInTheSky.Model.StalkConfiguration.DoSave () [0x00071] in <323f860bb9134eb8bcdc2caa51767837>:0 
  at EyeInTheSky.Model.StalkConfiguration.Save () [0x00013] in <323f860bb9134eb8bcdc2caa51767837>:0 
  at EyeInTheSky.Commands.StalkCommand+<DeleteMode>d__10.MoveNext () [0x0006c] in <323f860bb9134eb8bcdc2caa51767837>:0 
  at System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection) [0x000ea] in <62351af909f64c3d9f8698380a6f7518>:0 
  at System.Collections.Generic.List`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] collection) [0x00000] in <62351af909f64c3d9f8698380a6f7518>:0 
  at System.Linq.Enumerable+ConcatIterator`1[TSource].ToList () [0x00027] in <1c92f35828464202a86a9844124d52f3>:0 
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <1c92f35828464202a86a9844124d52f3>:0 
  at Stwalkerster.Bot.CommandLib.Commands.CommandUtilities.CommandBase.Run () [0x00044] in <614f3fa65ab64ac3b1508b0ebc7d169f>:0 
  at Stwalkerster.Bot.CommandLib.Commands.CommandUtilities.CommandHandler.ProcessMessageAsync (System.Object state) [0x00069] in <614f3fa65ab64ac3b1508b0ebc7d169f>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <62351af909f64c3d9f8698380a6f7518>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in 
<62351af909f64c3d9f8698380a6f7518>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <62351af
909f64c3d9f8698380a6f7518>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <62351af909f64c3d9f8698380a6f7518>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <62351af909f64c3d9f8698380a6f7518>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <62351af909f64c3d9f8698380a6f7518>:0 
2018-03-25 23:37:45,396 INFO  Stwalkerster.Bot.CommandLib.Services.CommandParser - Creating command object of type EyeInTheSky.Commands.StalkCommand

Revisions and Commits

Event Timeline

Diffusion closed this task as Resolved by committing Unknown Object (Diffusion Commit).Mar 26 2018, 7:12 PM
Diffusion added a commit: Unknown Object (Diffusion Commit).