{"action":"created","issue":{"url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2696","labels_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2696/labels{/name}","comments_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2696/comments","events_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2696/events","html_url":"https://github.com/gitextensions/gitextensions/issues/2696","id":60387306,"number":2696,"title":"Collection was modified; enumeration operation may not execute","user":{"login":"ArsenShnurkov","id":188456,"avatar_url":"https://avatars.githubusercontent.com/u/188456?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsenShnurkov","html_url":"https://github.com/ArsenShnurkov","followers_url":"https://api.github.com/users/ArsenShnurkov/followers","following_url":"https://api.github.com/users/ArsenShnurkov/following{/other_user}","gists_url":"https://api.github.com/users/ArsenShnurkov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsenShnurkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsenShnurkov/subscriptions","organizations_url":"https://api.github.com/users/ArsenShnurkov/orgs","repos_url":"https://api.github.com/users/ArsenShnurkov/repos","events_url":"https://api.github.com/users/ArsenShnurkov/events{/privacy}","received_events_url":"https://api.github.com/users/ArsenShnurkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitextensions/gitextensions/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/gitextensions/gitextensions/labels/linux/mono","name":"linux/mono","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-09T18:20:46Z","updated_at":"2015-12-02T11:40:39Z","closed_at":null,"body":"Happens on many versions of mono, at least from 3.10 to 4.1\r\n\r\nLaunch the porgram, choose repository from recent list, GitExtensions crash with error:\r\n\r\n    Unhandled Exception:\r\n    System.InvalidOperationException: Collection was modified; enumeration operation may not execute.\r\n      at System.Collections.Hashtable+HashtableEnumerator.MoveNext () [0x00018] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/collections/hashtable.cs:1613 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x00366] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:283 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.UpdateDataAndDispatch (System.IO.DefaultWatcherData data, Boolean dispatch) [0x00047] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:175 \r\n      at System.IO.DefaultWatcher.Monitor () [0x0008d] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:155 \r\n      at System.Threading.Thread.StartInternal () [0x00016] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Threading/Thread.cs:696 \r\n    [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.\r\n      at System.Collections.Hashtable+HashtableEnumerator.MoveNext () [0x00018] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/external/referencesource/mscorlib/system/collections/hashtable.cs:1613 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x00366] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:283 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.DoFiles (System.IO.DefaultWatcherData data, System.String directory, Boolean dispatch) [0x0002a] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:198 \r\n      at System.IO.DefaultWatcher.UpdateDataAndDispatch (System.IO.DefaultWatcherData data, Boolean dispatch) [0x00047] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:175 \r\n      at System.IO.DefaultWatcher.Monitor () [0x0008d] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/System/System.IO/DefaultWatcher.cs:155 \r\n      at System.Threading.Thread.StartInternal () [0x00016] in /var/calculate/tmp/portage/dev-lang/mono-9999/work/mono-9999/mcs/class/corlib/System.Threading/Thread.cs:696 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gitextensions/gitextensions/issues/comments/161268631","html_url":"https://github.com/gitextensions/gitextensions/issues/2696#issuecomment-161268631","issue_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2696","id":161268631,"user":{"login":"ArsenShnurkov","id":188456,"avatar_url":"https://avatars.githubusercontent.com/u/188456?v=3","gravatar_id":"","url":"https://api.github.com/users/ArsenShnurkov","html_url":"https://github.com/ArsenShnurkov","followers_url":"https://api.github.com/users/ArsenShnurkov/followers","following_url":"https://api.github.com/users/ArsenShnurkov/following{/other_user}","gists_url":"https://api.github.com/users/ArsenShnurkov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArsenShnurkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArsenShnurkov/subscriptions","organizations_url":"https://api.github.com/users/ArsenShnurkov/orgs","repos_url":"https://api.github.com/users/ArsenShnurkov/repos","events_url":"https://api.github.com/users/ArsenShnurkov/events{/privacy}","received_events_url":"https://api.github.com/users/ArsenShnurkov/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T11:40:39Z","updated_at":"2015-12-02T11:40:39Z","body":"But it doesn't work this way. Actually MONO_MANAGED_WATCHER just can disable automatic selection if defined, but it is not parsed in code of mono, so it's value is not used."}}