NSBundleResourceRequest are not pausable

Originator:borissotillos
Number:rdar://24151061 Date Originated:12-Jan-2016 07:02 PM
Status:open Resolved:
Product:tvOS SDK Product Version:9.1 (13U85)
Classification: Reproducible:100%
 
Boris Sotillos
12-Jan-2016 07:02 PM

Summary:
The NSBundleResourceRequest::progress::pause/NSBundleResourceRequest::progress::resume methods are not working. pausingHandler and resumingHandler are called, but the actual download is left unaffected (the progress is still getting called).
For the NSBundleResourceRequest, progress::isPausable returns "NO". I guess this means that there is no way to pause a download.

I would expect downloads to be pausable.

2016-01-12 17:50:18.210 crappy[1033:2669647] 1 pausable = 0
2016-01-12 17:50:18.214 crappy[1033:2669647] 2
2016-01-12 17:50:18.226 crappy[1033:2669666] conditionallyBeginAccessingResourcesWithCompletionHandler downloadRequired = 1
2016-01-12 17:50:19.215 crappy[1033:2669647] 3
2016-01-12 17:50:19.215 crappy[1033:2669647] 4 downloadRequired = 1 
2016-01-12 17:50:19.217 crappy[1033:2669647] 6
2016-01-12 17:50:25.224 crappy[1033:2669647] 7 pausing
2016-01-12 17:50:25.224 crappy[1033:2669666] pausingHandler
2016-01-12 17:50:25.225 crappy[1033:2669647] 8 finished = 0
2016-01-12 17:50:53.982 crappy[1033:2669672] beginAccessingResourcesWithCompletionHandler
2016-01-12 17:51:05.226 crappy[1033:2669647] 9 finished = 1

Steps to Reproduce:
I have attached an xcode project.
run it, inspect console log, read description above

Expected Results:
I would expect downloads to be pausable.
I know that NSBundleResourceRequest::progress::isPausable returns NO.

Actual Results:
Downloads are not pausable.
And the completion handler gets called even after the release

Version:
9.1 (13U85)

Notes:


Configuration:
ATV using LAN

Attachments:
'crappy_pause.zip' was successfully uploaded.

====================================================================================================================================

Boris Sotillos
28-Jan-2016 04:29 PM

Retested with tvOS 9.2 beta 2 (12Y5189e), compiled on Xcode 7.3 beta (7D129n)

Same behaviour.
Still can't pause a download.
progress::isPausable returns "NO".

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!