Allow XPC services on iOS to isolate memory-intensive operations

Originator:lievendekeyser
Number:rdar://28471239 Date Originated:26-Sep-2016
Status:Open Resolved:
Product:iOS SDK Product Version:Any
Classification: Reproducible:Always
 
Summary:
Example: Drawing PDF pages using CGContextDrawPDFPage can consume a lot of memory for some users' documents. Since this is a blackbox operation, there's no way for us to respond correctly to memory warnings.

If we'd be able to isolate the rendering in a separate process and iOS kills it, at least the app itself wouldn't need to be killed and users wouldn't be interrupted.

Steps to Reproduce:
1. Render a PDF page containing a high resolution image
2. Watch the app crash

Expected Results:
A way for us to avoid crashing

Actual Results:
No way for us to avoid crashing

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!