Access to [PFUser currentUser] causing deadlock

99封情书 提交于 2019-12-21 12:38:19

问题


Getting a deadlock occasionally when several threads trying to access [PFUser currentUser] when using parse iOS sdk v1.2.20

It looks like whenever I make a PFQuery call or PFCloud function call, these operations also access [PFUser currentUser], so there's increase chance of deadlock if you are making queries from separate threads.

Anyone else find a solution for this, I doubt parse even is aware of the problem as they closed these related issues long ago: https://www.parse.com/questions/parse-locking-up-the-main-thread-possible-deadlock And this one: https://www.parse.com/questions/occasional-freezing-at-pfuser-currentuser


回答1:


Parse has released an update with a possible fix of the currentUser deadlock.

Hopefully this fixes your situation.

Check the changelog and try updating to Parse SDK v1.7.2.



来源:https://stackoverflow.com/questions/25419611/access-to-pfuser-currentuser-causing-deadlock

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!