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:

  1. ios 8.1 - device a1566 - working
  2. ios 8.4 - device a1403 - working
  3. ios 9 beta 4 - simulator - working
  4. ios 9 beta 4 - device a1566 - working
  5. ios 9 beta 3 - device a1403 - not working
  6. ios 9 beta 4 - device a1403 - not working

testing tander:

  1. ios 8.3 - device - working
  2. ios 9 beta 0 - simulator - working
  3. 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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -