objective c - EXC_BAD_ACCESS error when using an NSURLSession NSURLSessionDownloadTask on some hardware in iOS 9 -
update
works in ios9 beta 5
original question
executing line of code causes exc_bad_access error happen shortly after in library code on non-main thread before completion handler called.
[[[nsurlsession sharedsession] downloadtaskwithurl:[nsurl urlwithstring: @"https://www.google.com/images/srpr/logo11w.png"] completionhandler:^(nsurl *location, nsurlresponse *response, nserror *error) { nslog(@"at download completion handler"); }] resume];
it happens on ipad model a1403 on ios 9 beta 3 , 4, not on ios8.1, , works fine on ipad model a1566 on both ios 9 , ios 8.4.
i've logged bug apple.
is else having issue? see workaround?
tests:
- ios 8.1 - device a1566 - working
- ios 8.4 - device a1403 - working
- ios 9 beta 4 - simulator - working
- ios 9 beta 4 - device a1566 - working
- ios 9 beta 3 - device a1403 - not working
- ios 9 beta 4 - device a1403 - not working
testing tander:
- ios 8.3 - device - working
- ios 9 beta 0 - simulator - working
- ios 9 beta 4 - device - working
so problem occurring on device a1403 ios 9...
so have tested bit of code on following versions of ios: 8,3
(device) 9.0
(simulator) , 9.4
(device) - completionhandler
executes , log printed out on test devices. not bug seem. testing on actual device(s) ?
Comments
Post a Comment