SecItemUpdate failed to resume in time - ios

Upon UIApplicationDidBecomeActiveNotification, I trigger a SecItemUpdate call:
OSStatus itemError = SecItemUpdate((__bridge CFDictionaryRef)secItemSearchParams, (__bridge CFDictionaryRef)secItemNewData);
I have one device (64 bit + iOS 7) that takes about 10 seconds to evaluate this line, and it returns with no error (OSStatus = errSecSuccess).
I keep getting a 8badf00d exception ("failed to resume in time" exception, see attached call stack), so as a remedy I moved this logic out of the main thread. However I don't understand why SecItemUpdate takes so much time to evaluate! It seems like the KeyChain or some other resource is not ready.
Any clues?
Call stack:
Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Highlighted Thread: 0
Application Specific Information:
com.MyApp123.MyApp123 failed to resume in time
Elapsed total CPU time (seconds): 3.670 (user 3.670, system 0.000), 15% CPU
Elapsed application CPU time (seconds): 0.022, 0% CPU
Thread 0:
0 libsystem_kernel.dylib 0x0000000193d49cdc semaphore_wait_trap + 8
1 libxpc.dylib 0x0000000193e006b0 xpc_connection_send_message_with_reply_sync + 180
2 Security 0x0000000189f1157c securityd_message_with_reply_sync + 92
3 Security 0x0000000189f21350 __SecItemUpdate_block_invoke + 300
4 Security 0x0000000189f20228 SecOSStatusWith + 28
5 Security 0x0000000189f211e0 SecItemUpdate + 136
6 MyApp123 0x000000010059472c +[WDKeyChainUtils setKeyChainData:forLabel:] (WDKeyChainUtils.m:39)
7 MyApp123 0x0000000100173e68 -[DateWatcher setLastSeenDate:] (DateWatcher.m:123)
8 MyApp123 0x0000000100173ae8 -[DateWatcher watchLogic] (DateWatcher.m:96)
9 MyApp123 0x0000000100173b68 -[DateWatcher watchOnAppBecomeActiveOrMainKeyDidBecomeAvailable:] (DateWatcher.m:101)
10 CoreFoundation 0x000000018711f5b0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 16
11 CoreFoundation 0x000000018706c100 _CFXNotificationPost + 2060
12 Foundation 0x0000000187bfe744 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
13 UIKit 0x000000018a1b92e4 -[UIApplication _stopDeactivatingForReason:] + 424
14 UIKit 0x000000018a36161c -[UIApplication _handleApplicationResumeEvent:] + 1136
15 UIKit 0x000000018a13532c -[UIApplication handleEvent:withNewEvent:] + 1876
16 UIKit 0x000000018a134acc -[UIApplication sendEvent:] + 100
17 MyApp123 0x0000000100266738 -[WDApplication sendEvent:] (WDApplication.m:38)
18 UIKit 0x000000018a1a1040 _UIApplicationHandleEvent + 668
19 GraphicsServices 0x000000018cd53500 _PurpleEventCallback + 672
20 GraphicsServices 0x000000018cd5302c PurpleEventCallback + 44
21 CoreFoundation 0x000000018712ae8c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
22 CoreFoundation 0x000000018712adec __CFRunLoopDoSource1 + 440
23 CoreFoundation 0x0000000187129010 __CFRunLoopRun + 1616
24 CoreFoundation 0x0000000187069c1c CFRunLoopRunSpecific + 448
25 GraphicsServices 0x000000018cd51c08 GSEventRunModal + 164
26 UIKit 0x000000018a19afd8 UIApplicationMain + 1152
27 MyApp123 0x0000000100110dc8 main (main.m:17)
28 libdyld.dylib 0x0000000193c67a9c start + 0

Related

React Native Firebase Push Notification Crash Report Problem

I am building an app with React Native. With React Native Firebase, I am adding push notification functionality. When I open a push notification from quit state, the app opens and hangs at the splash screen for a while, and then crashes.
Here is the crash report from the device, symbolicated. Honestly, I am new to programming and so I am having trouble in interpreting below report. I assume that there is a problem with RNSplashScreen module or AppDelegate.m, but can't be sure.
Can anyone help me out in interpreting this and point me to what might be a root cause/where to look at?
Thanks!
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<myapp.myapp>:2661 exhausted real (wall clock) time allowance of 59.91 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 16.580 (user 16.580, system 0.000), 5% CPU", | "Elapsed application CPU time (seconds): 0.918, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001daebe2d0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001daebd660 mach_msg + 76
2 CoreFoundation 0x00000001acf08c30 __CFRunLoopServiceMachPort + 380
3 CoreFoundation 0x00000001acf02c14 __CFRunLoopRun + 1216
4 CoreFoundation 0x00000001acf0221c CFRunLoopRunSpecific + 600
5 Foundation 0x00000001ae1b1df0 -[NSRunLoop+ 36336 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001ae1b1cbc -[NSRunLoop+ 36028 (NSRunLoop) runUntilDate:] + 92
7 myapp 0x00000001005d15f0 +[RNSplashScreen show] (in myapp) (RNSplashScreen.m:31) + 5641712
8 myapp 0x0000000100075be4 -[AppDelegate application:didFinishLaunchingWithOptions:] (in myapp) (AppDelegate.m:53) + 23524
9 UIKitCore 0x00000001af93f228 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 360
10 UIKitCore 0x00000001af941290 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 5136
11 UIKitCore 0x00000001af946cec -[UIApplication _runWithMainScene:transitionContext:completion:] + 1244
12 UIKitCore 0x00000001aef9cc74 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 152
13 UIKitCore 0x00000001af50af9c _UIScenePerformActionsWithLifecycleActionMask + 112
14 UIKitCore 0x00000001aef9d80c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 224
15 UIKitCore 0x00000001aef9d2cc -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 484
16 UIKitCore 0x00000001aef9d61c -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 768
17 UIKitCore 0x00000001aef9ce58 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 340
18 UIKitCore 0x00000001aefa53a4 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 196
19 UIKitCore 0x00000001af41760c +[BSAnimationSettings+ 6936076 (UIKit) tryAnimatingWithSettings:actions:completion:] + 892
20 UIKitCore 0x00000001af5236c4 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 272
21 UIKitCore 0x00000001aefa509c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 384
22 UIKitCore 0x00000001aedcc5a0 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 776
23 UIKitCore 0x00000001aedcaf14 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 256
24 UIKitCore 0x00000001aedcc1c8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 248
25 UIKitCore 0x00000001af944e8c -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 572
26 UIKitCore 0x00000001af440e38 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 388
27 FrontBoardServices 0x00000001bccf83bc -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 432
28 FrontBoardServices 0x00000001bcd23d04 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.200 + 128
29 FrontBoardServices 0x00000001bcd074a0 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
30 FrontBoardServices 0x00000001bcd239c8 __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke + 372
31 libdispatch.dylib 0x00000001acb81db0 _dispatch_client_callout + 20
32 libdispatch.dylib 0x00000001acb85738 _dispatch_block_invoke_direct + 268
33 FrontBoardServices 0x00000001bcd4c250 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
34 FrontBoardServices 0x00000001bcd4bee0 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 448
35 FrontBoardServices 0x00000001bcd4c434 -[FBSSerialQueue _performNextFromRunLoopSource] + 32
36 CoreFoundation 0x00000001acf0976c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
37 CoreFoundation 0x00000001acf09668 __CFRunLoopDoSource0 + 208
38 CoreFoundation 0x00000001acf08960 __CFRunLoopDoSources0 + 268
39 CoreFoundation 0x00000001acf02a8c __CFRunLoopRun + 824
40 CoreFoundation 0x00000001acf0221c CFRunLoopRunSpecific + 600
41 GraphicsServices 0x00000001c4ace784 GSEventRunModal + 164
42 UIKitCore 0x00000001af942ee8 -[UIApplication _run] + 1072
43 UIKitCore 0x00000001af94875c UIApplicationMain + 168
44 myapp 0x0000000100075db4 main (in myapp) (main.m:7) + 23988
45 libdyld.dylib 0x00000001acbc26b0 start + 4
I had the same issue after adding React Native Firebase to my project and found the answer in this issue: https://github.com/crazycodeboy/react-native-splash-screen/issues/397
The real cause is in the react-native-splash-screen. Firebase requires to change "Background modes" in your App's Capabilities, this causes react-native-splash-screen to go into loop in RNSplashScreen.m:
while (waiting) {
NSDate* later = [NSDate dateWithTimeIntervalSinceNow:0.1];
[[NSRunLoop mainRunLoop] runUntilDate:later];
}
You can find it in this part of the backtrace:
5 Foundation 0x00000001ae1b1df0 -[NSRunLoop+ 36336 (NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x00000001ae1b1cbc -[NSRunLoop+ 36028 (NSRunLoop) runUntilDate:] + 92
7 myapp 0x00000001005d15f0 +[RNSplashScreen show] (in myapp) (RNSplashScreen.m:31) + 5641712
To solve the problem you need to modify your AppDelegate.m, replace
[RNSplashScreen show]
with
[RNSplashScreen showSplash:#"LaunchScreen" inRootView:rootView];
But be careful, if your project uses LaunchScreen.storyboard instead of LaunchScreen.xib, you can catch this error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/containers/Bundle/Application/D22A78C5-5733-4511-85BF-217A3BAEB6AB/myapp.app> (loaded)' with name 'LaunchScreen''
In this case you need to create the new View named "LaunchScreen" and copy-paste here your launch view from the LaunchScreen.storyboard.

iOS app crashes on launch when only when downloaded from App Store on iOS 12 device

I have an iOS app that works perfectly fine on all devices unless they are using iOS 12. I am not sure what the issue is. I tried downloading the app directly from my laptop, and it worked fine. But, when it is downloaded from the App Store or TestFlight, it crashes on launch.
This is my crash log:
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.X.X exhausted real (wall clock) time allowance of 18.98 seconds | ProcessVisibility: Background | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 4.380 (user 4.380, system 0.000), 24% CPU", | "Elapsed application CPU time (seconds): 1.411, 8% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018b1f6ac4 __msync + 8
1 Realm 0x0000000101485044 realm::util::msync+ 3117124 (int, void*, unsigned long) + 216
2 Realm 0x0000000101391078 realm::GroupWriter::commit+ 2117752 (unsigned long) + 264
3 Realm 0x000000010138bde0 realm::SharedGroup::low_level_commit+ 2096608 (unsigned long long) + 344
4 Realm 0x000000010138b978 realm::SharedGroup::do_commit+ 2095480 () + 96
5 Realm 0x000000010138c184 realm::SharedGroup::commit_and_continue_as_read+ 2097540 () + 44
6 Realm 0x00000001011ceccc realm::_impl::RealmCoordinator::commit_write+ 273612 (realm::Realm&) + 76
7 Realm 0x00000001012a20f8 realm::Realm::commit_transaction+ 1138936 () + 168
8 Realm 0x0000000101271628 -[RLMRealm commitWriteTransactionWithoutNotifying:error:] + 288
9 RealmSwift 0x000000010172826c Realm.write<A>(withoutNotifying:_:) + 115308 (Realm.swift:280)
10 MYAPP 0x0000000100c7f820 specialized JSONSerializer.serialize(input:) + 178208 (JSONSerializer.swift:30)
11 MYAPP 0x0000000100cd6fa4 specialized AppDelegate.setUpRealm() + 536484 (AppDelegate.swift:235)
12 MYAPP 0x0000000100cd5e14 #objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 531988 (<compiler-generated>:20)
13 UIKitCore 0x00000001b7e400f0 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 412
14 UIKitCore 0x00000001b7e41854 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3352
15 UIKitCore 0x00000001b7e46fe0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1540
16 UIKitCore 0x00000001b770a2a4 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 776
17 UIKitCore 0x00000001b771283c +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
18 UIKitCore 0x00000001b7709f28 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 236
19 UIKitCore 0x00000001b770a818 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1064
20 UIKitCore 0x00000001b7708b64 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 744
21 UIKitCore 0x00000001b770882c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 428
22 UIKitCore 0x00000001b770d36c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
23 UIKitCore 0x00000001b770e150 _performActionsWithDelayForTransitionContext + 112
24 UIKitCore 0x00000001b770d224 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 244
25 UIKitCore 0x00000001b7711f24 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 360
26 UIKitCore 0x00000001b7e455e8 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
27 UIKitCore 0x00000001b7a41e04 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 360
28 FrontBoardServices 0x000000018dfd79fc -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 440
29 FrontBoardServices 0x000000018dfe140c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 256
30 FrontBoardServices 0x000000018dfe0c14 __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 64
31 libdispatch.dylib 0x000000018b0997d4 _dispatch_client_callout + 16
32 libdispatch.dylib 0x000000018b03e5dc _dispatch_block_invoke_direct$VARIANT$mp + 224
33 FrontBoardServices 0x000000018e012040 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
34 FrontBoardServices 0x000000018e011cdc -[FBSSerialQueue _performNext] + 408
35 FrontBoardServices 0x000000018e012294 -[FBSSerialQueue _performNextFromRunLoopSource] + 52
36 CoreFoundation 0x000000018b5ecf1c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation 0x000000018b5ece9c __CFRunLoopDoSource0 + 88
38 CoreFoundation 0x000000018b5ec784 __CFRunLoopDoSources0 + 176
39 CoreFoundation 0x000000018b5e76c0 __CFRunLoopRun + 1004
40 CoreFoundation 0x000000018b5e6fb4 CFRunLoopRunSpecific + 436
41 GraphicsServices 0x000000018d7e879c GSEventRunModal + 104
42 UIKitCore 0x00000001b7e48c38 UIApplicationMain + 212
43 MYAPP 0x0000000100c5a274 main + 25204 (LanguageExampleCell.swift:16)
44 libdyld.dylib 0x000000018b0aa8e0 start + 4
I serialize a large Realm database the first time the app launches. Is this causing the issue? I have no way to find out because this doesn't happen when I install the app through my computer.
8badfood is a watchdog timer exception. You must exit didFinishLaunching with a view presented as soon as possible.
If you have to load a large amount of data then you should present an initial "loading" view and perform the load, moving to the actual UI once that is complete.
This is to avoid an impression to the user that the app has just "hung".
The fact that you are only getting the crashes on iOS 12 devices is probably because they are older, slower devices.

EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x000000008346beb8

I get the following crash log from Crashlytics for my app. My code do not call msgpack_zone_free or msgpack parse method at all and so I'm confused how that happened. I'm unable to reproduce this crash myself so I'm left to analyze the issue from the crash report itself. Any pointers to what I need to check will be very helpful.
This is not a case of low memory as I see free memory from Crashlytics.
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x0000000192953bd0 objc_msgSend + 16
1 CoreFoundation 0x00000001820d5228 CFRelease + 524
2 CoreFoundation 0x00000001821e62ac -[__NSArrayM removeAllObjects] + 284
3 MyApp 0x00000001004a69e0 msgpack_zone_free
4 MyApp 0x00000001004a4afc msgpack_zone_free
5 CoreFoundation 0x000000018219cae4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
6 CoreFoundation 0x00000001820db220 _CFXNotificationPost + 2060
7 Foundation 0x0000000182fdac60 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
8 UIKit 0x0000000186c32e98 -[UIApplication _handleApplicationDectivationWithScene:shouldForceExit:transitionContext:completion:] + 1132
9 UIKit 0x0000000186c3b370 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 92
10 UIKit 0x0000000186c3b2f8 -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 380
11 UIKit 0x0000000186c2ec2c -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 512
12 FrontBoardServices 0x000000018a45d62c __31-[FBSSerialQueue performAsync:]_block_invoke + 28
13 CoreFoundation 0x00000001821aea28 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
14 CoreFoundation 0x00000001821adb30 __CFRunLoopDoBlocks + 312
15 CoreFoundation 0x00000001821ac154 __CFRunLoopRun + 1756
16 CoreFoundation 0x00000001820d90a4 CFRunLoopRunSpecific + 396
17 GraphicsServices 0x000000018b2735a4 GSEventRunModal + 168
18 UIKit 0x0000000186a0aaa4 UIApplicationMain + 1488
19 MyApp 0x00000001000cce40 main (main.m:16)
20 libdyld.dylib 0x0000000192faea08 start + 4
Thanks.

How to understand this crash report for iPhone App

This iPhone App will dial and hangup a call automatically. It works on jailbroken devices.
Sometimes it will crash when hanging up a phone call.
What is the problem and how do I fix it?
Exception Type: EXC_GUARD
Exception Subtype: GUARD_TYPE_FD
Exception Message: CLOSE on file descriptor 16 (guarded with 0x08fd4dbfade2dead)
Triggered by Thread: 0
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x38cdf130 __close_nocancel + 12
1 libsystem_c.dylib 0x38c4fcd5 fclose + 69
2 libCGFreetype.A.dylib 0x2e56dde5 FT::file_stream::~file_stream() + 25
3 libCGFreetype.A.dylib 0x2e56ddbb FT::file_stream::~file_stream() + 7
4 libCGFreetype.A.dylib 0x2e5730b5 destroy_face + 117
5 libCGFreetype.A.dylib 0x2e573039 FT_Done_Face + 93
6 libCGFreetype.A.dylib 0x2e5658e3 FT::face_release(FT_FaceRec_*) + 95
7 libCGFreetype.A.dylib 0x2e568f31 FT::font::~font() + 269
8 libCGFreetype.A.dylib 0x2e568e13 FT::font::~font() + 7
9 libCGFreetype.A.dylib 0x2e56fa77 (anonymous namespace)::release_private_data(void*) + 55
10 CoreGraphics 0x2e51301f font_finalize + 27
11 CoreFoundation 0x2e2ffe2d CFRelease + 465
12 libcache.dylib 0x38bc321f _value_entry_remove + 139
13 libcache.dylib 0x38bc25b3 _entry_remove + 195
14 libcache.dylib 0x38bc2761 cache_remove_with_block + 129
15 CoreFoundation 0x2e307fcb __CFNotificationCenterAddObserver_block_invoke + 123
16 CoreFoundation 0x2e391e6f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 11
17 CoreFoundation 0x2e305aad _CFXNotificationPost + 1717
18 Foundation 0x2ecebec1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 69
19 UIKit 0x30bd7e79 -[UIApplication _handleApplicationSuspend:eventInfo:] + 909
20 UIKit 0x30b590c3 -[UIApplication handleEvent:withNewEvent:] + 771
21 UIKit 0x30b58cf9 -[UIApplication sendEvent:] + 69
22 UIKit 0x30bbe31d _UIApplicationHandleEvent + 661
23 GraphicsServices 0x3303876b _PurpleEventCallback + 607
24 GraphicsServices 0x33038353 PurpleEventCallback + 31
25 CoreFoundation 0x2e39a775 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 33
26 CoreFoundation 0x2e39a70f __CFRunLoopDoSource1 + 343
27 CoreFoundation 0x2e398edb __CFRunLoopRun + 1403
28 CoreFoundation 0x2e30346d CFRunLoopRunSpecific + 521
29 CoreFoundation 0x2e30324f CFRunLoopRunInMode + 103
30 GraphicsServices 0x330372e7 GSEventRunModal + 135
31 UIKit 0x30bb8841 UIApplicationMain + 1133
32 MyApp 0x000f6d0d main (main.m:15)
33 libdyld.dylib 0x38c29ab5 start + 1
It looks like you have a bogus file descriptor that its trying to close. The address ends in "fade2dead", which is likely a special value to indicate freed memory. Since I don't see any of your code in the stack trace, it's likely that something is overwriting memory used by the FreeType library. I'd look for other memory stompers in your code using GuardMalloc or other similar memory tools to track down what it could be, as it's not obvious from the above stack trace.

PLCrashReporter ios6 crash

My iOS6 app is crashing when compiled and run in release mode, please see crash report below:
Incident Identifier: 0267EA79-BAAB-4559-90FB-9ED8C268EB19
CrashReporter Key: 7b2d29f7c42065db47d89a8b3ae1056cf45f7d95
Hardware Model: iPhone5,2
Process: Instant Santa [5814]
Path: /var/mobile/Applications/B303BD19-177E-4DBB-A7C2-89BBF3331818/Instant Santa.app/Instant Santa
Identifier: Instant Santa
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-11-10 22:30:34.889 -0600
OS Version: iOS 6.0.1 (10A525)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3a6eb3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3974495e objc_exception_throw + 26
2 CoreFoundation 0x3a6eb302 +[NSException raise:format:] + 102
3 Instant Santa 0x001196aa -[PLCrashReporter enableCrashReporterAndReturnError:] + 82
4 Instant Santa 0x000b1064 -[BWQuincyManager init] (BWQuincyManager.m:182)
5 Instant Santa 0x000b0c00 __38+[BWQuincyManager sharedQuincyManager]_block_invoke_0 (BWQuincyManager.m:107)
6 libdispatch.dylib 0x334d35d6 _dispatch_client_callout + 18
7 libdispatch.dylib 0x334d4586 dispatch_once_f + 42
8 Instant Santa 0x000b0bc0 +[BWQuincyManager sharedQuincyManager] (once.h:68)
9 Instant Santa 0x0009f9a2 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:51)
10 UIKit 0x33f5ba74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
11 UIKit 0x33f5b5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
12 UIKit 0x33f53806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
13 UIKit 0x33efbcea -[UIApplication handleEvent:withNewEvent:] + 1006
14 UIKit 0x33efb778 -[UIApplication sendEvent:] + 68
15 UIKit 0x33efb1ba _UIApplicationHandleEvent + 6194
16 GraphicsServices 0x3a78f5f2 _PurpleEventCallback + 586
17 GraphicsServices 0x3a78f222 PurpleEventCallback + 30
18 CoreFoundation 0x3a6c03e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
19 CoreFoundation 0x3a6c0386 __CFRunLoopDoSource1 + 134
20 CoreFoundation 0x3a6bf20a __CFRunLoopRun + 1378
21 CoreFoundation 0x3a632238 CFRunLoopRunSpecific + 352
22 CoreFoundation 0x3a6320c4 CFRunLoopRunInMode + 100
23 UIKit 0x33f52440 -[UIApplication _run] + 664
24 UIKit 0x33f4f28c UIApplicationMain + 1116
25 Instant Santa 0x0009f73e main (main.m:16)
26 Instant Santa 0x0009f6f4 start + 36
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a455350 __pthread_kill + 8
1 libsystem_c.dylib 0x339edfb2 pthread_kill + 54
2 libsystem_c.dylib 0x33a2a366 abort + 90
3 Instant Santa 0x00119912 uncaught_exception_handler + 22
4 CoreFoundation 0x3a6eb6cc __handleUncaughtException + 624
5 libobjc.A.dylib 0x39744a46 _objc_terminate() + 126
6 libc++abi.dylib 0x33ae3118 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x33ae31b0 std::terminate() + 16
8 libc++abi.dylib 0x33ae459a __cxa_throw + 118
9 libobjc.A.dylib 0x3974499e objc_exception_throw + 90
10 CoreFoundation 0x3a6eb302 +[NSException raise:format:] + 102
11 Instant Santa 0x001196aa -[PLCrashReporter enableCrashReporterAndReturnError:] + 82
12 Instant Santa 0x000b1064 -[BWQuincyManager init] (BWQuincyManager.m:182)
13 Instant Santa 0x000b0c00 __38+[BWQuincyManager sharedQuincyManager]_block_invoke_0 (BWQuincyManager.m:107)
14 libdispatch.dylib 0x334d35d8 _dispatch_client_callout + 20
15 libdispatch.dylib 0x334d4586 dispatch_once_f + 42
16 Instant Santa 0x000b0bc0 +[BWQuincyManager sharedQuincyManager] (once.h:68)
17 Instant Santa 0x0009f9a2 -[AppDelegate application:didFinishLaunchingWithOptions:] (AppDelegate.m:51)
18 UIKit 0x33f5ba74 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
19 UIKit 0x33f5b5f8 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
20 UIKit 0x33f53806 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
21 UIKit 0x33efbcea -[UIApplication handleEvent:withNewEvent:] + 1006
22 UIKit 0x33efb778 -[UIApplication sendEvent:] + 68
23 UIKit 0x33efb1ba _UIApplicationHandleEvent + 6194
24 GraphicsServices 0x3a78f5f4 _PurpleEventCallback + 588
25 GraphicsServices 0x3a78f222 PurpleEventCallback + 30
26 CoreFoundation 0x3a6c03e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
27 CoreFoundation 0x3a6c0386 __CFRunLoopDoSource1 + 134
28 CoreFoundation 0x3a6bf20a __CFRunLoopRun + 1378
29 CoreFoundation 0x3a632238 CFRunLoopRunSpecific + 352
30 CoreFoundation 0x3a6320c4 CFRunLoopRunInMode + 100
31 UIKit 0x33f52440 -[UIApplication _run] + 664
32 UIKit 0x33f4f28c UIApplicationMain + 1116
33 Instant Santa 0x0009f73e main (main.m:16)
34 Instant Santa 0x0009f6f4 start + 36
Any help would be appreciated!
This happens if PLCrashReporter is already initialized before QuincyKit initializes it. Are you initializing PLCrashReporter yourself or is there any other framework installed that uses PLCrashReporter?
This is the exception that is being raised and causes the crash: https://github.com/bitstadium/PLCrashReporter/blob/master/Source/PLCrashReporter.m#L296
Nevermind, you don't need CrashReporter.framework with the new HockeySDK, see here: http://support.hockeyapp.net/kb/client-integration/migrate-from-hockeykit-quincykit-to-hockeysdk-for-ios

Resources