{"action":"created","issue":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/2453","repository_url":"https://api.github.com/repos/RestKit/RestKit","labels_url":"https://api.github.com/repos/RestKit/RestKit/issues/2453/labels{/name}","comments_url":"https://api.github.com/repos/RestKit/RestKit/issues/2453/comments","events_url":"https://api.github.com/repos/RestKit/RestKit/issues/2453/events","html_url":"https://github.com/RestKit/RestKit/issues/2453","id":170785617,"number":2453,"title":"App crashes in RKObjectRequestOperation.m on line 131 (objectRequestOpertationDidStart:)","user":{"login":"icy1007","id":594024,"avatar_url":"https://avatars.githubusercontent.com/u/594024?v=3","gravatar_id":"","url":"https://api.github.com/users/icy1007","html_url":"https://github.com/icy1007","followers_url":"https://api.github.com/users/icy1007/followers","following_url":"https://api.github.com/users/icy1007/following{/other_user}","gists_url":"https://api.github.com/users/icy1007/gists{/gist_id}","starred_url":"https://api.github.com/users/icy1007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icy1007/subscriptions","organizations_url":"https://api.github.com/users/icy1007/orgs","repos_url":"https://api.github.com/users/icy1007/repos","events_url":"https://api.github.com/users/icy1007/events{/privacy}","received_events_url":"https://api.github.com/users/icy1007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-12T02:04:31Z","updated_at":"2016-12-12T13:50:50Z","closed_at":null,"body":"When a user logs into my app, it does several request operations, but seems to crash when the object in the notification is 'nil'. This is happening everytime.\n\n`RKObjectRequestOperation *objectRequestOperation = [notification object];\nobjc_setAssociatedObject(objectRequestOperation, RKOperationStartDate, [NSDate date], OBJC_ASSOCIATION_RETAIN_NONATOMIC);`\n\nobjectRequestOpertation is sometimes nil. \n\nI've updated to the latest development branch that added the \"RKManagedObjectStore_Private.h\" file.\n\n**Update:** The notification being sent is from `initWithHTTPRequestOperation:responseDescriptors:`. WeakSelf is declared and then once it gets into the executeBlock of the stateMachine, weakSelf is nil. \n\nIt appears it is when I set the completion block and then just do `[operation start]` and then leave the method it was called. Looks like my operation is being deallocated. This is happening with the 0.27.0 release as well.\n\nThis was working using 0.20.3.\n"},"comment":{"url":"https://api.github.com/repos/RestKit/RestKit/issues/comments/266435432","html_url":"https://github.com/RestKit/RestKit/issues/2453#issuecomment-266435432","issue_url":"https://api.github.com/repos/RestKit/RestKit/issues/2453","id":266435432,"user":{"login":"lazar-sidor","id":8193317,"avatar_url":"https://avatars.githubusercontent.com/u/8193317?v=3","gravatar_id":"","url":"https://api.github.com/users/lazar-sidor","html_url":"https://github.com/lazar-sidor","followers_url":"https://api.github.com/users/lazar-sidor/followers","following_url":"https://api.github.com/users/lazar-sidor/following{/other_user}","gists_url":"https://api.github.com/users/lazar-sidor/gists{/gist_id}","starred_url":"https://api.github.com/users/lazar-sidor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazar-sidor/subscriptions","organizations_url":"https://api.github.com/users/lazar-sidor/orgs","repos_url":"https://api.github.com/users/lazar-sidor/repos","events_url":"https://api.github.com/users/lazar-sidor/events{/privacy}","received_events_url":"https://api.github.com/users/lazar-sidor/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T13:50:50Z","updated_at":"2016-12-12T13:50:50Z","body":"@silvaigor: Thanks for the update. I've found the code where I start the operations, I'vew used enqueue and it seems to work now!"}}
{"actor":{"display_login":"lazar-sidor"}}