BackgroundTransfer-ANE
BackgroundTransfer-ANE copied to clipboard
ANE crashes on iOS 7
The ANE crashes on iOS 7.1.2, causing whole app to crash.
Error log:
Sep 25 12:57:51 Jacks-iPhone MM DEV[719] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:]: unrecognized selector sent to class 0x195c5f268'
*** First throw call stack:
(0x188b33100 0x19503c1fc 0x188b37ca0 0x188b35ae0 0x188a5578c 0x1013f6d78 0x195613fd4 0x195614e7c 0x1013f6d48 0x1013f5c2c 0x1013f4574 0x100b2b804 0x1007907a0 0x1006d598c 0x1002aea58 0x1002c6330 0x1002c6460 0x1002c6368 0x1002c6460 0x1002c5f50 0x100c8128c 0x100c9f438 0x100c9f040 0x10060f400 0x1002cc1dc 0x1002b23dc 0x1002c6330 0x1002c6460 0x1002c5f50 0x100c8128c 0x100c9f438 0x100c9f040 0x10060f400 0x1002cc1dc 0x1002b4708 0x100c8128c 0x100c9f438 0x100c9f040 0x100c9cf08 0x100412df8 0x10015a280 0x100c8128c 0x100c9f438 0x100c9f040 0x100c9cf08 0x100249b34 0x100c8128c 0x100c9f438 0x100c9f040 0x1009686e4 0x100967e74 0x10096b094 0x100a1794c 0x100a3f01c 0x100a3eeb8 0x1007b499c 0x18b738cbc 0x18b738ac8 0x189a33e74 0x188ae4a90 0x188af3040 0x188af2fa0 0x188af11c4 0x188a31dd0 0x18e719c0c 0x18bb62fc4 0x100894a94 0x19562faa0)
Sep 25 12:57:51 Jacks-iPhone ReportCrash[722] <Notice>: ReportCrash acting against PID 719
Sep 25 12:57:51 Jacks-iPhone ReportCrash[722] <Notice>: Formulating crash report for process MM DEV[719]
Sep 25 12:57:51 Jacks-iPhone ReportCrash[722] <Error>: Failed to open AC log file (/var/mobile/Library/Logs/AppleSupport/general.log) for writing. uid=501
Sep 25 12:57:51 Jacks-iPhone com.apple.launchd[1] (UIKitApplication:com.funkypandagame.mountainDEV[0x6460][719]) <Warning>: (UIKitApplication:com.funkypandagame.mountainDEV[0x6460]) Job appears to have crashed: Abort trap: 6
Sep 25 12:57:51 Jacks-iPhone backboardd[31] <Warning>: Application 'UIKitApplication:com.funkypandagame.mountainDEV[0x6460]' exited abnormally with signal 6: Abort trap: 6
Sep 25 12:57:51 Jacks-iPhone ReportCrash[722] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MM DEV_2015-09-25-125751_Jacks-iPhone.ips using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
@matyasatfp: I see, backgroundSessionConfigurationWithIdentifier:
is available from iOS8. On iOS7 it should use deprecated backgroundSessionConfiguration:
. You can either do a pull request with the fix or wait untill I can do this.
https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLSessionConfiguration_class/#//apple_ref/occ/clm/NSURLSessionConfiguration/backgroundSessionConfiguration:
Thanks for the hint, we fixed it in our fork:
https://github.com/funkypandagame/BackgroundTransfer-ANE/commit/45ab3e42e163d037e1108410f78ceab1a0979860
Sadly I cant make a PR since the commit turned out to be a bit messy, but feel free to copy the code.