Xamarin.iOS App crash once on launch - but works on next run - azure-mobile-engagement

I have a xamarin.ios app developed and decided to connect it to Mobile Engagement. As a result - some of the devices now experience crash on launch. Type of crash is Exception Type: SIGBUS, Exception Codes: BUS_ADRALN, thread info is useless.. Did any of you encountered this issue? and if so how did you resolve? Crashing line is EngagementAgent.Init(config);
Thread 13 Crashed:
0 App 0x03fda98c 0xdd000 + 66050444
1 App 0x03fdb550 0xdd000 + 66053456
2 App 0x03618478 0xdd000 + 55817336
3 App 0x036198c8 0xdd000 + 55822536
4 App 0x0368051c 0xdd000 + 56243484
5 App 0x034813d4 0xdd000 + 54150100
6 App 0x0348b198 0xdd000 + 54190488
7 App 0x03480afc 0xdd000 + 54147836
8 App 0x03680408 0xdd000 + 56243208
9 App 0x03680194 0xdd000 + 56242580
10 App 0x034906bc 0xdd000 + 54212284
11 App 0x0346f470 0xdd000 + 54076528
12 App 0x036195e8 0xdd000 + 55821800
13 App 0x03618704 0xdd000 + 55817988
14 App 0x036198c8 0xdd000 + 55822536
15 App 0x0368051c 0xdd000 + 56243484
16 App 0x034813d4 0xdd000 + 54150100
17 App 0x0348b198 0xdd000 + 54190488
18 App 0x03480afc 0xdd000 + 54147836
19 App 0x03680408 0xdd000 + 56243208
20 App 0x03680194 0xdd000 + 56242580
21 App 0x03490978 0xdd000 + 54212984
22 App 0x019df0fc 0xdd000 + 26222844
23 App 0x034d53f8 0xdd000 + 54494200
24 App 0x03511438 0xdd000 + 54740024
25 App 0x0348ae58 0xdd000 + 54189656
26 App 0x034d27c4 0xdd000 + 54482884
27 App 0x019deed4 0xdd000 + 26222292
28 App 0x019df0fc 0xdd000 + 26222844
29 App 0x034d1dd0 0xdd000 + 54480336
30 App 0x019deed4 0xdd000 + 26222292
31 App 0x034904ec 0xdd000 + 54211820
32 App 0x0346f470 0xdd000 + 54076528
33 App 0x036195e8 0xdd000 + 55821800
34 App 0x03618704 0xdd000 + 55817988
35 App 0x019df0fc 0xdd000 + 26222844
36 App 0x03845d88 0xdd000 + 58101128
37 App 0x019deed4 0xdd000 + 26222292
38 App 0x036bdfac 0xdd000 + 56496044
39 App 0x035d766c 0xdd000 + 55551596
40 App 0x019df0fc 0xdd000 + 26222844
41 App 0x038456a4 0xdd000 + 58099364
42 App 0x019deed4 0xdd000 + 26222292
43 App 0x019df0fc 0xdd000 + 26222844
44 App 0x03845444 0xdd000 + 58098756
45 App 0x039c8b40 0xdd000 + 59685696
46 App 0x04006610 0xdd000 + 66229776
47 App 0x034813d4 0xdd000 + 54150100
48 App 0x03b1f458 0xdd000 + 61088856
49 App 0x016dbd10 0xdd000 + 23063824
50 App 0x016db414 0xdd000 + 23061524
51 App 0x016dbca0 0xdd000 + 23063712
52 App 0x016f2c94 0xdd000 + 23157908
53 App 0x016f2a70 0xdd000 + 23157360
54 App 0x016dbbe4 0xdd000 + 23063524
55 App 0x016db9f0 0xdd000 + 23063024
56 App 0x016db848 0xdd000 + 23062600
57 App 0x016fc594 0xdd000 + 23197076
58 App 0x008ad3ec 0xdd000 + 8193004
59 App 0x016fe0c8 0xdd000 + 23204040
60 App 0x0198d198 0xdd000 + 25887128
61 App 0x0026c087 0xdd000 + 1634439
62 App 0x002c9805 0xdd000 + 2017285
63 App 0x002ea1c1 0xdd000 + 2150849
64 App 0x002f0daf 0xdd000 + 2178479
65 App 0x00332b6f 0xdd000 + 2448239
66 libsystem_pthread.dylib 0x1b515a27 _pthread_body + 217
67 libsystem_pthread.dylib 0x1b51594d _pthread_start + 235
68 libsystem_pthread.dylib 0x1b51349c thread_start + 8

Related

How do I get my Xamarin app running on an iOS device?

Can anyone help me?
I'm developing a Xamarin Forms app in Visual Studio 2022 on a Windows PC. I have VS attached to a MacinCloud Mac and an iPhone connected to the Windows PC.
My app deploys and starts up on the iPhone but when I go to login it crashes.
The line of code it is crashing on is making a call to HttpClient.PostAsync to call back to our API to authenticate.
The error and crash dump are below.
Any ideas?
Thanks,
Paul.
Foundation.MonoTouchException
Message=Objective-C exception thrown. Name: NSMallocException Reason: Failed to grow buffer
Native stack trace:
0 CoreFoundation 0x0000000180a35060 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 626784
1 libobjc.A.dylib 0x00000001990a9f54 objc_exception_throw + 60
2 CoreFoundation 0x0000000180b42af0 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 1731312
3 CoreFoundation 0x0000000180b3addc B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 1699292
4 CoreFoundation 0x00000001809cf28c __CFSafelyReallocate + 72
5 Foundation 0x00000001821f6a48 D59C6975-5AF2-37BC-93BE-43B80B4293A5 + 232008
6 Foundation 0x00000001821f26d4 D59C6975-5AF2-37BC-93BE-43B80B4293A5 + 214740
7 Xamarin.PreBuilt.iOS 0x00000001024e9c54 do_icall + 328
8 Xamarin.PreBuilt.iOS 0x00000001024e82e4 do_icall_wrapper + 296
9 Xamarin.PreBuilt.iOS 0x00000001024df1d8 interp_exec_method_full + 2740
10 Xamarin.PreBuilt.iOS 0x00000001024dd768 interp_runtime_invoke + 336
11 Xamarin.PreBuilt.iOS 0x000000010234ae70 mono_jit_runtime_invoke + 900
12 Xamarin.PreBuilt.iOS 0x00000001023f9188 mono_runtime_try_invoke + 156
13 Xamarin.PreBuilt.iOS 0x00000001023faddc mono_runtime_invoke + 100
14 Xamarin.PreBuilt.iOS 0x00000001022613e0 _ZL31native_to_managed_trampoline_11P11objc_objectP13objc_selectorPP11_MonoMethodj + 244
15 Xamarin.PreBuilt.iOS 0x00000001022a7db8 -[UIKit_UIControlEventProxy BridgeSelector] + 44
16 UIKitCore 0x000000018330abf0 8388EB03-002B-3B35-A78A-6A022894292E + 5016560
17 UIKitCore 0x0000000183436a4c 8388EB03-002B-3B35-A78A-6A022894292E + 6244940
18 UIKitCore 0x00000001831b22c8 8388EB03-002B-3B35-A78A-6A022894292E + 3605192
19 UIKitCore 0x000000018324eae0 8388EB03-002B-3B35-A78A-6A022894292E + 4246240
20 UIKitCore 0x00000001834e17c0 8388EB03-002B-3B35-A78A-6A022894292E + 6944704
21 UIKitCore 0x0000000182fa6d40 8388EB03-002B-3B35-A78A-6A022894292E + 1461568
22 UIKitCore 0x0000000182fd98c8 8388EB03-002B-3B35-A78A-6A022894292E + 1669320
23 UIKitCore 0x0000000182fe6a68 8388EB03-002B-3B35-A78A-6A022894292E + 1722984
24 UIKitCore 0x0000000183196318 8388EB03-002B-3B35-A78A-6A022894292E + 3490584
25 UIKitCore 0x0000000182fb9c30 8388EB03-002B-3B35-A78A-6A022894292E + 1539120
26 UIKitCore 0x0000000182faea1c 8388EB03-002B-3B35-A78A-6A022894292E + 1493532
27 UIKitCore 0x0000000182fb3ec8 8388EB03-002B-3B35-A78A-6A022894292E + 1515208
28 CoreFoundation 0x0000000180a57020 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 765984
29 CoreFoundation 0x0000000180a67ce0 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 834784
30 CoreFoundation 0x00000001809a1fe8 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 24552
31 CoreFoundation 0x00000001809a77f4 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 47092
32 CoreFoundation 0x00000001809bb3b8 CFRunLoopRunSpecific + 600
33 GraphicsServices 0x000000019c34b38c GSEventRunModal + 164
34 UIKitCore 0x000000018335b6a8 8388EB03-002B-3B35-A78A-6A022894292E + 5346984
35 UIKitCore 0x00000001830da7f4 UIApplicationMain + 2092
36 Xamarin.PreBuilt.iOS 0x00000001024e9bb0 do_icall + 164
37 Xamarin.PreBuilt.iOS 0x00000001024e82e4 do_icall_wrapper + 296
38 Xamarin.PreBuilt.iOS 0x00000001024df1d8 interp_exec_method_full + 2740
39 Xamarin.PreBuilt.iOS 0x00000001024dd768 interp_runtime_invoke + 336
40 Xamarin.PreBuilt.iOS 0x000000010234ae70 mono_jit_runtime_invoke + 900
41 Xamarin.PreBuilt.iOS 0x00000001023f7984 mono_runtime_invoke_checked + 148
42 Xamarin.PreBuilt.iOS 0x00000001023fe000 mono_runtime_try_invoke_array + 1272
43 Xamarin.PreBuilt.iOS 0x00000001023a74f0 ves_icall_InternalInvoke + 1036
44 Xamarin.PreBuilt.iOS 0x00000001023b7780 ves_icall_InternalInvoke_raw + 108
45 Xamarin.PreBuilt.iOS 0x00000001024e9bb0 do_icall + 164
46 Xamarin.PreBuilt.iOS 0x00000001024e82e4 do_icall_wrapper + 296
47 Xamarin.PreBuilt.iOS 0x00000001024df1d8 interp_exec_method_full + 2740
48 Xamarin.PreBuilt.iOS 0x00000001024dd768 interp_runtime_invoke + 336
49 Xamarin.PreBuilt.iOS 0x000000010234ae70 mono_jit_runtime_invoke + 900
50 Xamarin.PreBuilt.iOS 0x00000001023f7984 mono_runtime_invoke_checked + 148
51 Xamarin.PreBuilt.iOS 0x00000001023fcbf8 mono_runtime_exec_main_checked + 128
52 Xamarin.PreBuilt.iOS 0x000000010232f850 mono_jit_exec + 376
53 Xamarin.PreBuilt.iOS 0x00000001024db834 xamarin_main + 1944
54 Xamarin.PreBuilt.iOS 0x00000001022f74f4 main + 76
55 dyld 0x0000000102e71a24 start + 520
Source=Xamarin.iOS
StackTrace:
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:449
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:392
at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
I have managed to solve this issue by creating a handler and passing it in to the constructor of my Http client.
var handler = new HttpClientHandler();
var httpClient = new HttpClient(handler);
I thought I had already tried this solution earlier to no avail but I found a second place that was creating the client and implementing it there as well solved the issue.

Bug when uploading app to real Apple Watch

I am trying to upload my independent watchOS App on my real Apple Watch series 5, but I am having a problem. I am receiving a issue that I telling me:
Unable to install "FirstTestWatch WatchKit App"
Domain: com.apple.dtdevicekit
Code: -402620395
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620395
Failure Reason: A valid provisioning profile for this executable was not found.
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001261406e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000126140de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x000000012618056a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010d00bc22 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000126180301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
5 IDEiOSSupportCore 0x0000000126008a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x000000010d13ce8a __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x000000010d13e562 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff70480583 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff7048150e _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff70486ace _dispatch_lane_serial_drain + 597
11 libdispatch.dylib 0x00007fff70487452 _dispatch_lane_invoke + 363
12 libdispatch.dylib 0x00007fff70490a9e _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff706db6fc _pthread_wqthread + 290
14 libsystem_pthread.dylib 0x00007fff706da827 start_wqthread + 15
);
}
--
I am trying to figure out the problem, but I am having difficulties. The Apple Watch is with watchOS 6.1.1, MAC BOOK - macOS Catalina 10.15.2 and Xcode 11.3. Thank you!
I solved this problem today after getting stuck for two days.
Download watchOSLogging.mobileconfig to the paired iPhone and install it.

Crash in ios 6 and later -[MKStoreManager provideContent:forReceipt:]

I have my app live which is non-consumable type.
App is crashing on iOS 6 and later. It is crashing on user's device but not on testing device.
Crash log says this:
Exception Type: SIGTRAP
Exception Codes: #0 at 0x3350316c
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x3350316c _CFHash + 8
1 CoreFoundation 0x00002b50 CFBasicHashFindBucket + 1892
2 CoreFoundation 0x33503a8b _CFDictionaryGetValue + 83
3 CoreFoundation 0x0004a7a7 -[CFXPreferencesPropertyListSource setValue:forKey:] + 39
4 CoreFoundation 0x0004a723 _CFXPreferencesSetValue + 135
5 CoreFoundation 0x3354a601 _CFPreferencesSetAppValue + 41
6 Foundation 0x00009907 -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 83
7 myAppName 0x00038287 -[MKStoreManager provideContent:forReceipt:] (MKStoreManager.m:311)
8 myAppName 0x000387b1 -[MKStoreObserver restoreTransaction:] (MKStoreObserver.m:88)
9 myAppName 0x000385e1 -[MKStoreObserver paymentQueue:updatedTransactions:] (MKStoreObserver.m:64)
10 StoreKit 0x0000404d __NotifyObserverAboutChanges + 85
11 CoreFoundation 0x3350874d _CFArrayApplyFunction + 177
12 StoreKit 0x00003fe9 -[SKPaymentQueue _notifyObserversAboutChanges:sendUpdatedDownloads:] + 129
13 StoreKit 0x000048af -[SKPaymentQueue _processUpdates:trimUnmatched:sendUpdatedDownloads:] + 999
14 StoreKit 0x00004f8d -[SKPaymentQueue _setTransactionsWithReply:] + 157
15 StoreKit 0x00003b8b __block_global_0 + 63
16 libdispatch.dylib 0x0000211f _dispatch_call_block_and_release + 11
17 libdispatch.dylib 0x000014b7 _dispatch_client_callout + 23
18 libdispatch.dylib 0x000061bd _dispatch_main_queue_callback_4CF$VARIANT$mp + 225
19 CoreFoundation 0x00095f3b __CFRunLoopRun + 1291
20 CoreFoundation 0x33508ebd _CFRunLoopRunSpecific + 357
21 CoreFoundation 0x33508d49 _CFRunLoopRunInMode + 105
22 GraphicsServices 0x370bb2eb _GSEventRunModal + 75
23 UIKit 0x3541e301 _UIApplicationMain + 1121
24 myAppName 0x0000260f main (main.m:20)
This app supports iOS 4.3 and later.
I have tried in many ways but can't find proper solution. Anyone have any idea how I resolve this? Should I use some other code for in-app purchase?

Instruments.app crash when profiling

Instruments.app crashes when I try to profile on the device. It works fine in the simulator.
This happens with all instruments- time profiler, leaks, etc. I am able to use the energy diagnostics instrument.
I tried:
Made sure app was set to debug mode (also tried with release mode)
Reinstalling xcode
Rebooting device/computer
Attaching to process once app is running
My main device is an iPhone 4 running 5.1, jailbroken but this also happens on a non-jailbroken iPhone running 4.3.x
Please let me know if you have any thoughts on why this is happening.
Partial crash log below
Process: Instruments [12983]
Path: /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
Identifier: com.apple.dt.Instruments
Version: 4.3 (4321)
Build Info: Instruments-4321000000000000~2
Code Type: X86-64 (Native)
Parent Process: launchd [253]
Date/Time: 2012-06-08 16:27:06.214 -0400
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Sleep/Wake UUID: 1556D9E2-2B8A-4A76-A591-F8ACEF479C31
Interval Since Last Report: 24319 sec
Crashes Since Last Report: 8
Per-App Interval Since Last Report: 13147 sec
Per-App Crashes Since Last Report: 7
Anonymous UUID: A73B414D-9FB6-4055-94D3-A887EB7ADFFD
Crashed Thread: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004
VM Regions Near 0x4:
-->
__TEXT 0000000101a71000-0000000101a76000 [ 20K] r-x/rwx SM=COW /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/MacOS/Instruments
Application Specific Information:
objc[12983]: garbage collection is OFF
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff849ab67a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff849aad71 mach_msg + 73
2 com.apple.framework.IOKit 0x00007fff826899bf io_service_get_matching_services + 210
3 com.apple.framework.IOKit 0x00007fff82641604 IOServiceGetMatchingServices + 137
4 com.apple.framework.IOKit 0x00007fff82641741 IOServiceGetMatchingService + 25
5 com.apple.Foundation 0x00007fff85f7710b +[NSFileWrapper _canSafelyMapFilesAtPath:] + 241
6 com.apple.Foundation 0x00007fff85f1c510 -[NSData(NSData) initWithContentsOfFile:options:error:] + 139
7 com.apple.Foundation 0x00007fff85f83b48 -[NSData(NSData) initWithContentsOfURL:options:error:] + 238
8 com.apple.AppKit 0x00007fff89e6e387 NSImageRepNewDataFromFileURL + 247
9 com.apple.AppKit 0x00007fff89aa00fc +[NSImageRep _imageRepsWithContentsOfURL:expandImageContentNow:giveUpOnNetworkURLsWithoutGoodExtensions:] + 548
10 com.apple.AppKit 0x00007fff89a9fe9a __-[NSImageURLReferencingRepProvider representations]_block_invoke_1 + 48
11 com.apple.Foundation 0x00007fff85f34347 _NSFaultInObject + 35
12 com.apple.AppKit 0x00007fff89a70ae7 -[NSImageURLReferencingRepProvider representations] + 80
13 com.apple.AppKit 0x00007fff89a9fd7e __-[NSImage size]_block_invoke_1 + 353
14 com.apple.AppKit 0x00007fff89a2b825 -[NSImage _usingRepProviderPerformBlock:] + 37
15 com.apple.AppKit 0x00007fff89a596c2 -[NSImage size] + 129
16 com.apple.AppKit 0x00007fff89a9f9a6 -[NSImage alignmentRect] + 51
17 com.apple.AppKit 0x00007fff89b08de5 -[NSImageCell _imageRectForDrawing:inFrame:inView:] + 43
18 com.apple.AppKit 0x00007fff89b08c6b -[NSImageCell drawInteriorWithFrame:inView:] + 541
19 com.apple.AppKit 0x00007fff89b08a28 -[NSImageCell drawWithFrame:inView:] + 1705
20 com.apple.AppKit 0x00007fff89a9ddb7 -[NSControl drawRect:] + 398
21 com.apple.AppKit 0x00007fff89a6997a -[NSView _drawRect:clip:] + 3758
22 com.apple.AppKit 0x00007fff89a96b4f -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1583
23 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
24 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
25 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
26 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
27 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
28 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
29 com.apple.AppKit 0x00007fff89a96f7b -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2651
30 com.apple.AppKit 0x00007fff89a66f55 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 1032
31 com.apple.AppKit 0x00007fff89a6644f -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 270
32 com.apple.AppKit 0x00007fff89a6186f -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 4755
33 com.apple.AppKit 0x00007fff89a5a2ed -[NSView displayIfNeeded] + 1676
34 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8e155 -[XRSplitViewAnimation setCurrentProgress:] + 81
35 com.apple.AppKit 0x00007fff89bec62d -[NSAnimation(NSInternal) _advanceTimeWithTimer:] + 156
36 com.apple.Foundation 0x00007fff85f4ef40 __NSFireTimer + 102
37 com.apple.CoreFoundation 0x00007fff8689b934 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
38 com.apple.CoreFoundation 0x00007fff8689b486 __CFRunLoopDoTimer + 534
39 com.apple.CoreFoundation 0x00007fff8687be11 __CFRunLoopRun + 1617
40 com.apple.CoreFoundation 0x00007fff8687b486 CFRunLoopRunSpecific + 230
41 com.apple.Foundation 0x00007fff85f02f7b -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 267
42 com.apple.AppKit 0x00007fff89cc956c -[NSAnimation(NSInternal) _runBlocking] + 365
43 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8e058 -[XRHorizontalFillSplitView animateSplitFromPosition:toPosition:] + 377
44 com.apple.dt.instruments.InstrumentsKit 0x0000000101a8dc86 -[PFTTraceDocument animateLowerVisibility:] + 215
45 com.apple.dt.instruments.InstrumentsKit 0x0000000101aaa3e5 -[PFTTraceDocument toggleDetail:] + 71
46 com.apple.dt.instruments.InstrumentsKit 0x0000000101aaa320 -[PFTTraceDocument _didStartCommand:] + 238
47 com.apple.Foundation 0x00007fff85f0dd0e __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
48 com.apple.CoreFoundation 0x00007fff8688f7ba _CFXNotificationPost + 2634
49 com.apple.Foundation 0x00007fff85ef9fc3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
50 com.apple.dt.instruments.InstrumentsPlugIn 0x0000000101c5f8c7 -[XRTrace startCommandWithPurpose:] + 1546
51 com.apple.dt.instruments.InstrumentsKit 0x0000000101aa8d4d -[PFTTraceDocument startRun] + 164
52 com.apple.dt.instruments.InstrumentsKit 0x0000000101aa8b55 -[PFTTraceDocument recordTrace:] + 599
53 com.apple.dt.instruments.InstrumentsKit 0x0000000101ae370d -[PFTDocumentController openDocumentWithContentsOfURL:display:error:] + 2769
54 com.apple.dt.instruments.InstrumentsKit 0x0000000101ae3f3a -[PFTDocumentController _templateChooserActionEnded:returnCode:contextInfo:] + 494
55 com.apple.AppKit 0x00007fff89cd13df -[NSApplication endSheet:returnCode:] + 275
56 com.apple.imageKit 0x00007fff896992fb -[IKImageBrowserView(ImageBrowserEvents) mouseUp:] + 649
57 com.apple.AppKit 0x00007fff89aea40e -[NSWindow sendEvent:] + 6504
58 com.apple.AppKit 0x00007fff89a83a55 -[NSApplication sendEvent:] + 5593
59 com.apple.dt.Instruments 0x0000000101a7339f 0x101a71000 + 9119
60 com.apple.AppKit 0x00007fff89a1a0c6 -[NSApplication run] + 555
61 com.apple.AppKit 0x00007fff89c96244 NSApplicationMain + 867
62 com.apple.dt.Instruments 0x0000000101a73724 0x101a71000 + 10020
Appears to be fixed with Instruments 4.4

App Crashes because iAd Fails to Resume in Time

My app runs fine when I don't have iAds. As soon as I display an iAd the system shuts down my app because the iAd can't resume in time.
How do I resolve this?
Elapsed total CPU time (seconds): 1.380 (user 0.880, system 0.500), 14% CPU
Elapsed application CPU time (seconds): 0.000, 0% CPU
Thread 0:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 AppSupport 0x0001009e CPDMMessage + 158
3 AppSupport 0x0000f3e4 -[CPDistributedMessagingCenter _sendMessage:userInfoData:oolKey:oolData:makeServer:receiveReply:nonBlocking:error:] + 848
4 AppSupport 0x0000ed76 -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:nonBlocking:] + 618
5 AppSupport 0x0000deba -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:] + 58
6 AppSupport 0x0000e08e -[CPDistributedMessagingCenter sendMessageName:userInfo:] + 34
7 iAd 0x00012bcc -[ADSession sendMessageName:userInfo:] + 100
8 iAd 0x00013cfe -[ADSession open] + 22
9 iAd 0x000065c2 -[ADBannerView sessionDidBecomeAvailable:] + 38
10 iAd 0x00014d60 -[ADSessionManager considerCreatingSessions] + 416
11 iAd 0x00014a42 __-[ADSessionManager sessionForRecipient:]_block_invoke_1 + 34
12 libSystem.B.dylib 0x000d597c _dispatch_call_block_and_release + 12
13 libSystem.B.dylib 0x000d69f4 _dispatch_main_queue_callback_4CF + 212
14 CoreFoundation 0x00027894 __CFRunLoopRun + 1328
15 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
16 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
17 GraphicsServices 0x000045ec GSEventRunModal + 108
18 GraphicsServices 0x00004698 GSEventRun + 56
19 UIKit 0x0000411c -[UIApplication _run] + 396
20 UIKit 0x00002128 UIApplicationMain + 664
21 StockTwits 0x00002c5c main (main.m:14)
22 StockTwits 0x00002c2c start + 32
Sigh, it's a bug with iAds. No confirmed work around yet. Supposed fix in 4.2, no word if it's the 4.2 SDK that's required or if users will be required to upgrade.
https://devforums.apple.com/message/309701