{"action":"created","issue":{"url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/58","repository_url":"https://api.github.com/repos/JohnEstropia/CoreStore","labels_url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/58/comments","events_url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/58/events","html_url":"https://github.com/JohnEstropia/CoreStore/issues/58","id":144219655,"number":58,"title":"ListMonitor throws EXC_BAD_ACCESS on deinit","user":{"login":"fractious","id":5934,"avatar_url":"https://avatars.githubusercontent.com/u/5934?v=3","gravatar_id":"","url":"https://api.github.com/users/fractious","html_url":"https://github.com/fractious","followers_url":"https://api.github.com/users/fractious/followers","following_url":"https://api.github.com/users/fractious/following{/other_user}","gists_url":"https://api.github.com/users/fractious/gists{/gist_id}","starred_url":"https://api.github.com/users/fractious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fractious/subscriptions","organizations_url":"https://api.github.com/users/fractious/orgs","repos_url":"https://api.github.com/users/fractious/repos","events_url":"https://api.github.com/users/fractious/events{/privacy}","received_events_url":"https://api.github.com/users/fractious/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JohnEstropia/CoreStore/labels/corestore%20bug","name":"corestore bug","color":"b60205"},{"url":"https://api.github.com/repos/JohnEstropia/CoreStore/labels/looking%20for%20workarounds","name":"looking for workarounds","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-03-29T10:10:58Z","updated_at":"2016-03-31T08:24:56Z","closed_at":null,"body":"After having upgraded from CoreStore v1.4.4 to v1.6.1 I'm getting a repeatable crash when my `ListMonitor` is deinitialized when the controller it is a property of is deallocated:\r\n\r\n<img width=\"961\" alt=\"screen shot 2016-03-29 at 10 40 30\" src=\"https://cloud.githubusercontent.com/assets/5934/14104037/e64983ac-f59a-11e5-9819-52e5cdd36298.png\">\r\n\r\nMy `ListMonitor` is instantiated like so:\r\n\r\n```swift\r\nclass ProjectController: UITableViewController, ListSectionObserver, TableViewDisabling {\r\n\r\n    …\r\n\r\n    var project: Project? {\r\n        didSet {\r\n            guard let project = self.project else { return }\r\n            questions.refetch(Where(\"project.id == %d\", project.id))\r\n        }\r\n    }\r\n\r\n    /// Questions monitor\r\n    let questions = CoreStore.monitorSectionedList(\r\n        From(Question),\r\n        SectionBy(\"category.name\"),\r\n        OrderBy(.Ascending(\"position\")),\r\n        Where(false) // Overridden in .project property observer\r\n    )\r\n\r\n    …\r\n\r\n}\r\n```\r\n\r\nExplicitly removing the observer when the controller is deallocated doesn't help.\r\n\r\nI'm not sure how to go about debugging this one, could you give me some pointers please.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/comments/203816826","html_url":"https://github.com/JohnEstropia/CoreStore/issues/58#issuecomment-203816826","issue_url":"https://api.github.com/repos/JohnEstropia/CoreStore/issues/58","id":203816826,"user":{"login":"fractious","id":5934,"avatar_url":"https://avatars.githubusercontent.com/u/5934?v=3","gravatar_id":"","url":"https://api.github.com/users/fractious","html_url":"https://github.com/fractious","followers_url":"https://api.github.com/users/fractious/followers","following_url":"https://api.github.com/users/fractious/following{/other_user}","gists_url":"https://api.github.com/users/fractious/gists{/gist_id}","starred_url":"https://api.github.com/users/fractious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fractious/subscriptions","organizations_url":"https://api.github.com/users/fractious/orgs","repos_url":"https://api.github.com/users/fractious/repos","events_url":"https://api.github.com/users/fractious/events{/privacy}","received_events_url":"https://api.github.com/users/fractious/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T08:24:56Z","updated_at":"2016-03-31T08:24:56Z","body":"Thanks John, I'll see if I can make a minimal test case from my app. Where do you want me to send it?"}}