访问[PFUser currentUser]导致死锁 [英] Access to [PFUser currentUser] causing deadlock

查看:111
本文介绍了访问[PFUser currentUser]导致死锁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用解析iOS sdk v1.2.20的多个线程尝试访问[PFUser currentUser]时,偶尔会出现死锁

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

每当我进行PFQuery调用或PFCloud函数调用时,这些操作也会访问[PFUser currentUser],因此,如果您从单独的线程中进行查询,则死锁的可能性会增加.

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.

其他任何人都可以找到解决方案,我怀疑分析很早就解决了相关问题,甚至他们也意识到了这个问题: https://www.parse.com/questions/parse-locking-主线程可能出现死锁 和这个: > https://www.parse.com/questions/occasional-freezing-at-pfuser-currentuser

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

推荐答案

Parse发布了可能修复了currentUser死锁的更新.

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

希望这可以解决您的情况.

Hopefully this fixes your situation.

检查更改日志,然后尝试更新为 Parse SDK v1.7.2 .

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

这篇关于访问[PFUser currentUser]导致死锁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆