{"action":"created","issue":{"url":"https://api.github.com/repos/martydill/ios-queryable/issues/7","labels_url":"https://api.github.com/repos/martydill/ios-queryable/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/martydill/ios-queryable/issues/7/comments","events_url":"https://api.github.com/repos/martydill/ios-queryable/issues/7/events","html_url":"https://github.com/martydill/ios-queryable/issues/7","id":104040919,"number":7,"title":"countByEnumeratingWithState:objects:count: crashes if managed context changes while enumerated","user":{"login":"cristik","id":649286,"avatar_url":"https://avatars.githubusercontent.com/u/649286?v=3","gravatar_id":"","url":"https://api.github.com/users/cristik","html_url":"https://github.com/cristik","followers_url":"https://api.github.com/users/cristik/followers","following_url":"https://api.github.com/users/cristik/following{/other_user}","gists_url":"https://api.github.com/users/cristik/gists{/gist_id}","starred_url":"https://api.github.com/users/cristik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristik/subscriptions","organizations_url":"https://api.github.com/users/cristik/orgs","repos_url":"https://api.github.com/users/cristik/repos","events_url":"https://api.github.com/users/cristik/events{/privacy}","received_events_url":"https://api.github.com/users/cristik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-31T12:03:34Z","updated_at":"2015-09-01T20:42:48Z","closed_at":"2015-09-01T20:42:30Z","body":"The method in discussion executes a fetch request (via its `toArray`) each time the runtime asks for a batch of objects to enumerate through. And if the managed object contents change between fetch requests, it generates a crash as the `toArray` contents are not the same between invocations."},"comment":{"url":"https://api.github.com/repos/martydill/ios-queryable/issues/comments/136855324","html_url":"https://github.com/martydill/ios-queryable/issues/7#issuecomment-136855324","issue_url":"https://api.github.com/repos/martydill/ios-queryable/issues/7","id":136855324,"user":{"login":"martydill","id":405422,"avatar_url":"https://avatars.githubusercontent.com/u/405422?v=3","gravatar_id":"","url":"https://api.github.com/users/martydill","html_url":"https://github.com/martydill","followers_url":"https://api.github.com/users/martydill/followers","following_url":"https://api.github.com/users/martydill/following{/other_user}","gists_url":"https://api.github.com/users/martydill/gists{/gist_id}","starred_url":"https://api.github.com/users/martydill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martydill/subscriptions","organizations_url":"https://api.github.com/users/martydill/orgs","repos_url":"https://api.github.com/users/martydill/repos","events_url":"https://api.github.com/users/martydill/events{/privacy}","received_events_url":"https://api.github.com/users/martydill/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T20:42:48Z","updated_at":"2015-09-01T20:42:48Z","body":"I've just pushed a fix for this. Hopefully it resolves your issues!"}}