{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1893","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1893/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1893/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1893/events","html_url":"https://github.com/realm/realm-cocoa/issues/1893","id":74820852,"number":1893,"title":"Dealloc crash with AFNetworking (With example)","user":{"login":"RyanCopley","id":819591,"avatar_url":"https://avatars.githubusercontent.com/u/819591?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCopley","html_url":"https://github.com/RyanCopley","followers_url":"https://api.github.com/users/RyanCopley/followers","following_url":"https://api.github.com/users/RyanCopley/following{/other_user}","gists_url":"https://api.github.com/users/RyanCopley/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCopley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCopley/subscriptions","organizations_url":"https://api.github.com/users/RyanCopley/orgs","repos_url":"https://api.github.com/users/RyanCopley/repos","events_url":"https://api.github.com/users/RyanCopley/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCopley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-10T03:32:15Z","updated_at":"2015-05-10T05:11:08Z","closed_at":null,"body":"https://github.com/RyanCopley/Realm-AFNetworking-Crash\r\n\r\nI'm not sure if this is a problem with how I'm doing things, Realm, or AFNetworking, but I have a proof of concept of the crash. When the Foo object deallocates due to a failed request, it is on a \"different\" thread. AFNetworking is setting the block to nil. The block is *never* called (to my knowledge, no breakpoints would catch).\r\n\r\nI'm probably doing something naive, but this is very odd. I'm having to create a block that I strongly capture to keep the AFNetworking block alive... which I believe is creating a leak in my project. I've never had to watch my threading as much before Realm... :/"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/100585608","html_url":"https://github.com/realm/realm-cocoa/issues/1893#issuecomment-100585608","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1893","id":100585608,"user":{"login":"timanglade","id":9924,"avatar_url":"https://avatars.githubusercontent.com/u/9924?v=3","gravatar_id":"","url":"https://api.github.com/users/timanglade","html_url":"https://github.com/timanglade","followers_url":"https://api.github.com/users/timanglade/followers","following_url":"https://api.github.com/users/timanglade/following{/other_user}","gists_url":"https://api.github.com/users/timanglade/gists{/gist_id}","starred_url":"https://api.github.com/users/timanglade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timanglade/subscriptions","organizations_url":"https://api.github.com/users/timanglade/orgs","repos_url":"https://api.github.com/users/timanglade/repos","events_url":"https://api.github.com/users/timanglade/events{/privacy}","received_events_url":"https://api.github.com/users/timanglade/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T05:11:08Z","updated_at":"2015-05-10T05:11:08Z","body":"@RyanCopley I sent you an email just now. Apologies from Realm again. Thanks for taking the time to file a bug + for providing a repro case. If this issue needs to be investigated any further @jpsim, @mrackwitz or @bdash can help."}}