urbanairship/ios-library — Issue #19: libUAirship-1.1.4.a crashes on iPhone4 with iOS 5.1
Author: sourcebits-tariq
Created: 2012-03-09 09:36:02+00:00
State: open

Last night I updated my device OS version to 5.1. So as soon as I open my app it crashes instantly after 5sec.

I checked device log in Organizer and got some strange logs:

Mar 9 02:45:54 unknown kernel[0] : launchd[581] Builtin profile: container (sandbox)
Mar 9 02:45:54 unknown kernel[0] : launchd[581] Container: /private/var/mobile/Applications/C78FE48C-5674-42A6-863E-6578990935F6 [69] (sandbox)
Mar 9 02:45:55 unknown ProjectName[581] : +[UAirship takeOff:] [Line 206] App Key: MYAPPKEY
Mar 9 02:45:55 unknown ProjectName[581] : +[UAirship takeOff:] [Line 207] App Secret: MYSECRETKEY
Mar 9 02:45:55 unknown ProjectName[581] : +[UAirship takeOff:] [Line 208] Server: https://go.urbanairship.com
Mar 9 02:45:55 unknown ProjectName[581] : -[UAirship configureUserAgent] [Line 457] Setting User-Agent for UA requests to ProjectName 1.0 (iPhone; iPhone OS 5.1; UALib 1.1.4; 9w9oJKNDSv2PMA_WdWqEhA; en_US)
Mar 9 02:45:55 unknown ProjectName[581] : -[UAAnalytics initWithOptions:] [Line 216] Analytics logging not enabled
Mar 9 02:45:55 unknown ProjectName[581] : Reachability Flag Status: -R -----l- networkStatusForFlags
Mar 9 02:45:55 unknown ProjectName[581] : -[UAUser migrateUser] [Line 187] Migrating User Info: (null)
Mar 9 02:45:55 unknown ProjectName[581] : -[UAUser loadUser] [Line 268] User Info: (null)
Mar 9 02:45:55 unknown sandboxd[579] : ProjectName(581) deny file-write-create /Applications/.dat0245.000
Mar 9 02:45:55 unknown ProjectName[581] : libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
Mar 9 02:45:56 unknown ProjectName[581] : libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
Mar 9 02:45:57 unknown ProjectName[581] : -[UAUser listenForDeviceTokenReg] [Line 964] ListenForDeviceTokenReg
Mar 9 02:45:57 unknown ProjectName[581] : *** Terminating app due to uncaught exception 'NSFileHandleOperationException', reason: '*** -[NSConcreteFileHandle writeData:]: Bad file descriptor'
*** First throw call stack:
(0x3548688f 0x368ad259 0x35486789 0x354867ab 0x31301d15 0x312df2a3 0x1ad23 0x40ef 0x326d16f7 0x326d21c9 0x31604af9 0x3545a523 0x3545a4c5 0x35459313 0x353dc4a5 0x353dc36d 0x366d8439 0x324d2e7d 0x4061 0x400c)
Mar 9 02:45:58 unknown ReportCrash[584] : Formulating crash report for process ProjectName[581]
Mar 9 02:45:58 unknown com.apple.launchd[1] : (UIKitApplication:com.ProjectName.ios[0xc71a]) Job appears to have crashed: Abort trap: 6
Mar 9 02:45:58 unknown SpringBoard[52] : Application 'ProjectName' exited abnormally with signal 6: Abort trap: 6
Mar 9 02:45:59 unknown ReportCrash[584] : libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
Mar 9 02:45:59 unknown ReportCrash[584] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/ProjectName_2012-03-09-024557_My-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0