{"comment":{"created_at":"2011-10-23T21:19:27Z","body":"possible fix: https://github.com/wimh/SparkleShare/commit/9d6cc36ad18b0938245e96c85cd0b976ada7cad5#commitcomment-669471","updated_at":"2011-10-23T21:19:27Z","url":"https://api.github.com/repos/hbons/SparkleShare/issues/comments/2497965","id":2497965,"user":{"avatar_url":"https://secure.gravatar.com/avatar/3e8eee17a5d6c6a20b073af0d2b2b48b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3e8eee17a5d6c6a20b073af0d2b2b48b","url":"https://api.github.com/users/hbons","id":103326,"login":"hbons"}},"action":"created","issue":{"number":358,"created_at":"2011-10-04T08:37:14Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi everyone,\r\n\r\nEvery once in a while, SparkleShare crashes during startup with an InvalidOperationException. My uninformed guess is that there is some race-condition that needs to be taken care of. Please find the traceback below.\r\n\r\nCheers,\r\nJan\r\n\r\n```\r\n10:31:15 [Cmd] /usr/bin/git log -1 --format=%H\r\n10:31:15 [Cmd] /usr/bin/git rev-list --reverse HEAD\r\n10:31:16 [ListenerFactory] Issued new listener for tcp://204.62.14.135:1986/\r\n10:31:16 [ListenerTcp] Connecting to 204.62.14.135\r\n10:31:16 [Listener] Connected to tcp://204.62.14.135:1986/\r\n10:31:16 [Git][test] Checking for remote changes...\r\n10:31:16 [Cmd] /usr/bin/git ls-remote origin master\r\n10:31:16 [Cmd] /usr/bin/git log -1 --format=%H\r\n10:31:16 [Cmd] /usr/bin/git status --porcelain\r\n10:31:16 [ListenerTcp] Subscribing to channel aff4f853098ce6b49d3d9c401b68416bb6af1ae8\r\n10:31:16 [Listener] Got message from debug on tcp://204.62.14.135:1986/\r\n10:31:16 [Cmd] /usr/bin/git rev-list --reverse HEAD\r\n10:31:16 [Cmd] /usr/bin/git log -1 --format=%H\r\nconnected...\r\n ! 07378910f1be21a139af4d90310bc2307002d5a5\r\n10:31:16 [SyncUp][test] Initiated\r\n10:31:16 [Cmd] /usr/bin/git add --all\r\n10:31:16 [Git][test] Changes staged\r\n10:31:16 [Cmd] /usr/bin/git status --porcelain\r\n10:31:16 [Cmd] /usr/bin/git commit -m \"\"\r\n10:31:16 [Commit][test]․\r\n10:31:16 [Cmd] /usr/bin/git push origin master\r\nEverything up-to-date\r\n10:31:17 [SyncUp][test] Done\r\n10:31:17 [Cmd] /usr/bin/git rev-list --reverse HEAD\r\n10:31:17 [Cmd] /usr/bin/git log -1 --format=%H\r\n10:31:17 [Listener] Announcing to aff4f853098ce6b49d3d9c401b68416bb6af1ae8 on tcp://204.62.14.135:1986/\r\n10:31:17 [Listener] Got message from aff4f853098ce6b49d3d9c401b68416bb6af1ae8 on tcp://204.62.14.135:1986/\r\n10:31:17 [Cmd] /usr/bin/git rev-list --reverse HEAD\r\n10:31:17 [Cmd] /usr/bin/git log -1 --format=%H\r\n07378910f1be21a139af4d90310bc2307002d5a5\r\n ! 07378910f1be21a139af4d90310bc2307002d5a5\r\n10:31:17 [Cmd] /usr/bin/git log -1 --format=%H\r\n10:31:17 [SyncDown][test] Initiated\r\n\r\nUnhandled Exception: System.InvalidOperationException: List has changed.\r\n  at System.Collections.ArrayList+SimpleEnumerator.MoveNext () [0x00000] in <filename unknown>:0․\r\n  at System.IO.InotifyWatcher.StopDispatching (System.IO.FileSystemWatcher fsw) [0x00000] in <filename unknown>:0․\r\n  at System.IO.FileSystemWatcher.Stop () [0x00000] in <filename unknown>:0․\r\n  at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean value) [0x00000] in <filename unknown>:0․\r\n  at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)\r\n  at SparkleLib.SparkleRepoBase.DisableWatching () [0x00000] in <filename unknown>:0․\r\n  at SparkleLib.SparkleRepoBase.SyncDownBase () [0x00000] in <filename unknown>:0․\r\n  at SparkleLib.SparkleRepoBase.<CreateListener>m__7 (SparkleLib.SparkleAnnouncement announcement) [0x00000] in <filename unknown>:0․\r\n  at SparkleLib.SparkleListenerBase.OnAnnouncement (SparkleLib.SparkleAnnouncement announcement) [0x00000] in <filename unknown>:0․\r\n  at SparkleLib.SparkleListenerTcp.<Connect>m__E () [0x00000] in <filename unknown>:0․\r\n```","comments":2,"title":"Crash with System.InvalidOperationException: List has changed","updated_at":"2011-10-23T21:19:27Z","url":"https://api.github.com/repos/hbons/SparkleShare/issues/358","id":1811404,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/63a2d200e07e59b472724e8c5ea96a46?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"63a2d200e07e59b472724e8c5ea96a46","url":"https://api.github.com/users/funkey","id":776708,"login":"funkey"},"html_url":"https://github.com/hbons/SparkleShare/issues/358","labels":[{"name":"bug","url":"https://api.github.com/repos/hbons/SparkleShare/labels/bug","color":"FF7D73"},{"name":"major","url":"https://api.github.com/repos/hbons/SparkleShare/labels/major","color":"a60c00"}],"state":"open"},"legacy":{"issue_id":1811404,"comment_id":2497965}}