{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/61","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/61/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/61/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/61","id":102000405,"number":61,"title":"Accessing currentUser on multiple threads causing deadlock","user":{"login":"eeallen1","id":6464213,"avatar_url":"https://avatars.githubusercontent.com/u/6464213?v=3","gravatar_id":"","url":"https://api.github.com/users/eeallen1","html_url":"https://github.com/eeallen1","followers_url":"https://api.github.com/users/eeallen1/followers","following_url":"https://api.github.com/users/eeallen1/following{/other_user}","gists_url":"https://api.github.com/users/eeallen1/gists{/gist_id}","starred_url":"https://api.github.com/users/eeallen1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeallen1/subscriptions","organizations_url":"https://api.github.com/users/eeallen1/orgs","repos_url":"https://api.github.com/users/eeallen1/repos","events_url":"https://api.github.com/users/eeallen1/events{/privacy}","received_events_url":"https://api.github.com/users/eeallen1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/labels/needs%20investigation","name":"needs investigation","color":"ffeea9"},{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/labels/needs%20repro","name":"needs repro","color":"ffd182"}],"state":"open","locked":false,"assignee":{"login":"richardjrossiii","id":699752,"avatar_url":"https://avatars.githubusercontent.com/u/699752?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjrossiii","html_url":"https://github.com/richardjrossiii","followers_url":"https://api.github.com/users/richardjrossiii/followers","following_url":"https://api.github.com/users/richardjrossiii/following{/other_user}","gists_url":"https://api.github.com/users/richardjrossiii/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjrossiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjrossiii/subscriptions","organizations_url":"https://api.github.com/users/richardjrossiii/orgs","repos_url":"https://api.github.com/users/richardjrossiii/repos","events_url":"https://api.github.com/users/richardjrossiii/events{/privacy}","received_events_url":"https://api.github.com/users/richardjrossiii/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-08-19T21:14:35Z","updated_at":"2015-08-28T10:39:31Z","closed_at":null,"body":"When I'm launching my app, there are several places where I'm using PFUser.CurrentUser - mostly for queries, but also a couple of writes. It looks like the deadlock occurs when one thread is setting an object on currentUser while another is using it in a query, but I'm not entirely sure. \r\n\r\nHere is a stack trace:\r\n![screen shot 2015-08-19 at 4 13 08 pm](https://cloud.githubusercontent.com/assets/6464213/9369175/1ea8d512-468d-11e5-858f-128f903a50a1.png)\r\n\r\nI know that there have been similar issues opened and resolved for other releases, and it may be that 1.8 has nothing to do with it, but it only started happening in the last couple of days (after I updated). \r\n\r\nSome more details: \r\n\r\n- Deadlock doesn't occur every launch, and it appears to happen much more frequently on older devices (iphone 4s) than the newer models. It almost never occurs on the simulator. \r\n\r\n- I've tried commenting out dozens of lines of code that the stack trace points to, but it always end up getting hung somewhere else. I haven't procedurally uncommented and tested every call to currentUser because so much code depends on it, but that'll be my next step for troubleshooting. \r\n\r\n\r\n**Edit**\r\nIs it possible that the deadlock is occurring during Facebook authentication while I'm trying to query/modify currentUser elsewhere? Take a look at this: \r\n\r\n![screen shot 2015-08-19 at 4 30 21 pm](https://cloud.githubusercontent.com/assets/6464213/9369573/c34da53c-468f-11e5-8828-f19180319965.png)\r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/comments/135733450","html_url":"https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/61#issuecomment-135733450","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-iOS-OSX/issues/61","id":135733450,"user":{"login":"innopage","id":363273,"avatar_url":"https://avatars.githubusercontent.com/u/363273?v=3","gravatar_id":"","url":"https://api.github.com/users/innopage","html_url":"https://github.com/innopage","followers_url":"https://api.github.com/users/innopage/followers","following_url":"https://api.github.com/users/innopage/following{/other_user}","gists_url":"https://api.github.com/users/innopage/gists{/gist_id}","starred_url":"https://api.github.com/users/innopage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innopage/subscriptions","organizations_url":"https://api.github.com/users/innopage/orgs","repos_url":"https://api.github.com/users/innopage/repos","events_url":"https://api.github.com/users/innopage/events{/privacy}","received_events_url":"https://api.github.com/users/innopage/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T10:39:31Z","updated_at":"2015-08-28T10:39:31Z","body":"Ok will create new issue"}}