Repository: shadowsocks/shadowsocks-windows

Issue #906: 非预期错误：集合已修改；可能无法执行枚举操作。
Created: 2016-11-25T04:04:02Z
Please read Wiki carefully, especially https://github.com/shadowsocks/shadowsocks-windows/wiki/Troubleshooting.
Please answer these questions before submitting your issue. Thanks!
Version(release version or AppVeyor link)
3.3.5
Environment(Operating system, .NET Framework, etc)
Windows 7 Ultimate - 64 bit, .NET 4.6.2
Steps you have tried
无任何操作，自行弹出
What did you expect to see?
None
What did you see instead?

Config and error log in detail (with all sensitive info masked)
软件开启但未启用系统代理，上一次关闭系统代理之前，系统代理模式为全局模式，服务器选择高可用
[2016-11-25 11:32:27] HA switching to server: jp01******
[2016-11-25 11:32:31] HA switching to server: jp06******
[2016-11-25 11:32:32] HA switching to server: jp01******
[2016-11-25 11:36:16] HA switching to server: sg03******
[2016-11-25 11:36:22] sg03****** timed out
[2016-11-25 11:36:26] sg03****** timed out
[2016-11-25 11:36:26] sg03****** timed out
[2016-11-25 11:37:15] HA switching to server: jp01******9
[2016-11-25 11:38:26] HA switching to server: sg01******9
[2016-11-25 11:38:30] [E] System.InvalidOperationException: 集合已修改；可能无法执行枚举操作。
   在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   在 System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   在 System.Collections.Generic.List`1.Enumerator.MoveNext()
   在 System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   在 Shadowsocks.Model.StatisticsRecord..ctor(String identifier, ICollection`1 inboundSpeedRecords, ICollection`1 outboundSpeedRecords, ICollection`1 latencyRecords)
   在 Shadowsocks.Controller.AvailabilityStatistics.UpdateRecords()
   在 Shadowsocks.Controller.AvailabilityStatistics.Run(Object _)
   在 System.Threading.TimerQueueTimer.CallCallbackInContext(Object state)
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.TimerQueueTimer.CallCallback()
   在 System.Threading.TimerQueueTimer.Fire()
   在 System.Threading.TimerQueue.FireNextTimers()
   在 System.Threading.TimerQueue.AppDomainTimerCallback()
[2016-11-25 11:38:47] HA switching to server: jp06******
[2016-11-25 11:40:11] HA switching to server: sg02******
[2016-11-25 11:40:40] HA switching to server: jp01******
[2016-11-25 11:41:58] HA switching to server: sg03******

Duplicate issue #1361: Shadowsocks non-UI Error
Created: 2017-09-06T08:42:28Z
Version(release version or AppVeyor link)
4.0.5
Environment(Operating system, .NET Framework, etc)
Windows 10 Pro 1703 64-Bit
.NET Framework 4.7
Steps you have tried
Nothing. It will occur by itself when I do nothing, but with programs have internet connection through it.
Maybe occur when come back from sleep.（可能发生于从电脑锁屏状态恢复后）
What did you expect to see?
An Error message box. After close it Shadowsocks will exit by itself.
What did you see instead?
Config and error log in detail (with all sensitive info masked)
Error Message:
https://i.loli.net/2017/09/06/59afb2cd19d3e.png
It seems like log(Even in advanced mode) records nothing.

Closing comment (2017-09-06T09:44:54Z): Related to #906