找到你要的答案

Q:Access to [PFUser currentUser] causing deadlock

Q:访问[ PFUser currentUser ]造成死锁

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

得到一个僵局偶尔当多个线程试图访问[中] pfuser当使用iOS SDK v1.2.20解析

看起来,每当我做一个pfquery电话或PFCloud函数的调用,这些操作也pfuser访问[中],所以有增加死锁如果你从单独的线程查询。

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

answer1: 回答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.

解析已经发布了一个更新的僵局中一个可能的修复。

希望这修复你的情况。

检查更新和尝试更新SDK v1.7.2解析。

parse.com  pfuser