Photos Framework Deadlock

Originator:Czechnmail
Number:rdar://22984886 Date Originated:05-Oct-2015
Status:Open Resolved:
Product::iOS SDK Product Version:
Classification:Hang Reproducible:Always
 
Summary:
When hit with many requests from different threads, the Photos framework will randomly deadlock. 

It happens pretty reliably, even if I restrict the system to 10 concurrent requests. -fetchAssetsWithLocalIdentifiers gets deadlocked.

Steps to Reproduce:
1. Request a bunch of assets from the Photos framework on different threads. Even just dispatching 100 blocks to the QOS_CLASS_UTILITY concurrent queue will do it.

Expected Results:
A bunch of assets come back.

Actual Results:
Deadlock.

Version:
iOS 9.0

Notes:


Configuration:
iPhone 6

Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!