I need help deciphering this stacktrace - ios

While running my ios app a user has encountered the following error. It has only happened once and I cannot figure out how to repeat the error. Could someone please interpret the following stacktrace to help me find the cause of the error.
Signal
Unknown Signal
Stacktrace (9)
0 LeadsBoard 0x0001b5f2 testflight_backtrace + 142
1 LeadsBoard 0x0001c180 TFSignalHandler + 212
2 libsystem_c.dylib 0x3419d72e _sigtramp + 42
3 libsystem_c.dylib 0x341923ba pthread_kill + 58
4 libsystem_c.dylib 0x3418abfe abort + 78
5 libsystem_c.dylib 0x3419e828 szone_error + 216
6 libsystem_c.dylib 0x341a4f0e szone_realloc + 66
7 libsystem_c.dylib 0x341c60e6 malloc_zone_realloc + 62
8 Foundation 0x3486bcf4 NSZoneRealloc + 32
9 Foundation 0x3486bb40 _NSMutableDataGrowBytes + 336
10 Foundation 0x3486b96c -[NSConcreteMutableData appendData:] + 80
11 LeadsBoard 0x0000fd90 -[DataModelPeopleClass connection:didReceiveData:] (DataModelPeopleClass.m:152)
12 Foundation 0x3486b8f6 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveData:originalLength:] + 150
13 Foundation 0x3486b822 _NSURLConnectionDidReceiveData + 90
14 CFNetwork 0x35a7406c _ZN19URLConnectionClient21_clientDidReceiveDataEPK8__CFDataPNS_26ClientConnectionEventQueueE + 172
15 CFNetwork 0x35a68fb4 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 212
16 CFNetwork 0x35a68e36 _ZN19URLConnectionClient13processEventsEv + 70
17 CFNetwork 0x35a68de8 _ZN13URLConnection24multiplexerClientPerformEP18RunLoopMultiplexer + 36
18 CFNetwork 0x35a68d5a _ZN17MultiplexerSource7performEv + 126
19 CFNetwork 0x35a68cd8 _ZN17MultiplexerSource8_performEPv + 8
20 CoreFoundation 0x36487a78 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x3648975e __CFRunLoopDoSources0 + 382
22 CoreFoundation 0x3648a4ea __CFRunLoopRun + 230
23 CoreFoundation 0x3641aec2 CFRunLoopRunSpecific + 230
24 CoreFoundation 0x3641adca CFRunLoopRunInMode + 58
25 GraphicsServices 0x35bd441e GSEventRunModal + 114
26 GraphicsServices 0x35bd44ca GSEventRun + 62
27 UIKit 0x352c4d68 -[UIApplication _run] + 404
28 UIKit 0x352c2806 UIApplicationMain + 670
29 LeadsBoard 0x000020fc main (main.m:14)
30 LeadsBoard 0x000020c7 start + 39
Environment
Device Name: iPhone
Model: iPhone 4
Version: 4.3.5
Language: en_AU (English)
Carrier: Virgin Mobile
Timezone: AEST
Architecture: armv7
Connection State: Wifi

Check your NSURLConnection delegates, specifically in DataModelPeopleClass.

Related

iOS: Realm + Layar SDK = Assertion failed: typeid(Col) == typeid(col)

I have been trying to integrate a new SDK (from Layar) in my app that already contains the Realm SDK.
The app was working fine up until now (with Realm). As soon as I add the Layar SDK following the steps in the link above (I don't actually call any functionality, I just add the framework and dependencies), the app crashes on launch at the Realm config, with the trace below.
Any ideas as to what might be causing the behaviour?
../realm/table.hpp:1470: [realm-core-0.92.4] Assertion failed: typeid(Col) == typeid(col)
0 XXContainerIOSDebug 0x00000001004747ec _ZN5realm4util18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 44
1 XXContainerIOSDebug 0x000000010030b83c _ZN5realm4util9terminateEPKcS2_l + 1196
2 XXContainerIOSDebug 0x0000000100535f08 _ZNK5realm5Table8get_boolEmm + 0
3 XXContainerIOSDebug 0x00000001003b86b8 _ZN5realm11ObjectStore22create_metadata_tablesEPNS_5GroupE + 588
4 XXContainerIOSDebug 0x00000001003bed0c _ZN5realm11ObjectStore24update_realm_with_schemaEPNS_5GroupEyRNSt3__16vectorINS_12ObjectSchemaENS3_9allocatorIS5_EEEENS3_8functionIFvS2_S9_EEE + 72
5 XXContainerIOSDebug 0x0000000100321188 RLMUpdateRealmToSchemaVersion + 1512
6 XXContainerIOSDebug 0x000000010038cd6c +[RLMRealm realmWithConfiguration:error:] + 4148
7 XXContainerIOSDebug 0x000000010038b490 +[RLMRealm defaultRealm] + 92
8 XXContainerIOSDebug 0x000000010019c294 -[XXNewsstand init] + 708
9 XXContainerIOSDebug 0x000000010019b92c __34+[XXNewsstand sharedInstance]_block_invoke + 60
10 libdispatch.dylib 0x00000001013c9bb0 _dispatch_client_callout + 16
11 libdispatch.dylib 0x00000001013caa28 dispatch_once_f + 132
12 XXContainerIOSDebug 0x000000010019b8d0 +[XXNewsstand sharedInstance] + 144
13 XXContainerIOSDebug 0x00000001001b09f4 -[XXTrackingManager init] + 272
14 XXContainerIOSDebug 0x00000001001b089c __36+[XXTrackingManager sharedInstance]_block_invoke + 60
15 libdispatch.dylib 0x00000001013c9bb0 _dispatch_client_callout + 16
16 libdispatch.dylib 0x00000001013caa28 dispatch_once_f + 132
17 XXContainerIOSDebug 0x00000001001b0840 +[XXTrackingManager sharedInstance] + 144
18 XXContainerIOSDebug 0x000000010003d338 -[XXAppDelegate application:didFinishLaunchingWithOptions:] + 1212
19 UIKit 0x00000001880a1704 <redacted> + 400
20 UIKit 0x00000001882d0130 <redacted> + 2904
21 UIKit 0x00000001882d44b8 <redacted> + 1672
22 UIKit 0x00000001882d15c0 <redacted> + 168
23 FrontBoardServices 0x00000001848ef790 <redacted> + 184
24 FrontBoardServices 0x00000001848efb10 <redacted> + 56
25 CoreFoundation 0x00000001832f0efc <redacted> + 24
26 CoreFoundation 0x00000001832f0990 <redacted> + 540
27 CoreFoundation 0x00000001832ee690 <redacted> + 724
28 CoreFoundation 0x000000018321d680 CFRunLoopRunSpecific + 384
29 UIKit 0x000000018809a580 <redacted> + 460
30 UIKit 0x0000000188094d90 UIApplicationMain + 204
31 XXContainerIOSDebug 0x00000001000348a8 main + 124
32 libdyld.dylib 0x0000000182dbe8b8 <redacted> + 4
IMPORTANT: if you see this error, please send this log to help#realm.io.

iOS App Crash with pthread_kill

I have the following crash report but I can't figure out the cause of this crash. This crash appears quite frequently but the pattern varies at each time. Many thanks!
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000198337270 __pthread_kill + 8
1 libsystem_c.dylib 0x00000001982aeb18 abort + 112
2 libsystem_malloc.dylib 0x00000001983723e4 <redacted> + 0
3 libsystem_malloc.dylib 0x00000001983712f8 <redacted> + 192
4 CoreFoundation 0x00000001866c55e8 <redacted> + 192
5 CoreFoundation 0x00000001865d1394 CFRelease + 328
6 CoreFoundation 0x00000001866bc2bc _CFStringCreateWithFormatAndArgumentsAux2 + 272
7 Foundation 0x0000000187502448 -[NSPlaceholderString initWithFormat:locale:arguments:] + 172
8 0x000000010020f088 _mh_execute_header + 1536136
9 0x0000000100225614 _mh_execute_header + 1627668
10 0x00000001001ac6d0 _mh_execute_header + 1132240
11 CFNetwork 0x00000001861745b8 <redacted> + 80
12 CFNetwork 0x0000000186174548 <redacted> + 208
13 CFNetwork 0x00000001861746c4 <redacted> + 60
14 CFNetwork 0x0000000186047990 <redacted> + 104
15 CFNetwork 0x000000018611150c <redacted> + 104
16 CFNetwork 0x0000000186033ac8 <redacted> + 76
17 CoreFoundation 0x00000001865d4cdc CFArrayApplyFunction + 68
18 CFNetwork 0x0000000186033974 <redacted> + 136
19 CFNetwork 0x0000000186033828 <redacted> + 312
20 CFNetwork 0x0000000186033654 <redacted> + 68
21 CoreFoundation 0x00000001866ac240 <redacted> + 24
22 CoreFoundation 0x00000001866ab4e4 <redacted> + 264
23 CoreFoundation 0x00000001866a9594 <redacted> + 712
24 CoreFoundation 0x00000001865d52d4 CFRunLoopRunSpecific + 396
25 GraphicsServices 0x000000018fc9b6fc GSEventRunModal + 168
26 UIKit 0x000000018b19afac UIApplicationMain + 1488
27 0x000000010024bf1c _mh_execute_header + 1785628
28 libdyld.dylib 0x000000019821ea08 <redacted> + 4
I am assuming that you download some information from the web and are trying to create a string with some parts of that information:
6 CoreFoundation 0x00000001866bc2bc _CFStringCreateWithFormatAndArgumentsAux2 + 272
7 Foundation 0x0000000187502448 -[NSPlaceholderString initWithFormat:locale:arguments:] + 172
Where ever you are using information that you fetched from the Internet, you should first check if that information is valid and respects the right format you expect. Therefore, I recommend you to validate the information before using it.
this might help you:
iPhone app crash at [NSString stringWithFormat]
the error line must be:
[NSString stringWithFormat:#"%#,%#...",a,b...];

Understanding stack trace that is redacted

I have a stack trace from Flurry that is from a crash that is happening a couple times on my app and I dont understand what is going wrong. Any suggestions or hints how I can make sense of this?
0 CoreFoundation 0x184bc2084 <redacted> + 132
1 libobjc.A.dylib 0x1951a00e4 _objc_exception_throw + 60
2 CoreFoundation 0x184ab6ff8 <redacted> + 0
3 My App 0x100015ef4 __mh_execute_header + 73460
4 My App 0x10000c61c __mh_execute_header + 34332
5 My App 0x10000b024 __mh_execute_header + 28708
6 CFNetwork 0x1846624cc <redacted> + 80
7 CFNetwork 0x18466245c <redacted> + 208
8 CFNetwork 0x1846625d8 <redacted> + 60
9 CFNetwork 0x184537684 <redacted> + 104
10 CFNetwork 0x1845ffcb8 <redacted> + 104
11 CFNetwork 0x1845239cc <redacted> + 76
12 CoreFoundation 0x184aa506c _CFArrayApplyFunction + 68
13 CFNetwork 0x184523878 <redacted> + 136
14 CFNetwork 0x18452372c <redacted> + 312
15 CFNetwork 0x184523558 <redacted> + 68
16 CoreFoundation 0x184b7a324 <redacted> + 24
17 CoreFoundation 0x184b795c8 <redacted> + 264
18 CoreFoundation 0x184b77678 <redacted> + 712
19 CoreFoundation 0x184aa5664 _CFRunLoopRunSpecific + 396
20 GraphicsServices 0x18dbe75a4 _GSEventRunModal + 168
21 UIKit 0x1893aa4f8 _UIApplicationMain + 1488
22 My App 0x10000c8f0 __mh_execute_header + 35056
23 libdyld.dylib 0x19580ea08 <redacted> + 4

-[MPVolumeView initWithFrame:style] not called on main thread when loading UIWebView

I'm getting a bizarre crash in a UIWebView where, somehow, MPVolumeView is somehow being instantiated by the OS, and not in the main thread. As a result, the application crashes.
Nowhere in my code is MPVolumeView being used or called, so I'm not sure what I should be doing here. The crash was not present in iOS 7 and only started to present itself in iOS 8.
Here's the traceback immediately before the crash:
Stacktrace: (
0 CustomFramework 0x000000010e918587 PSPDFAssertIfNotMainThread + 87
1 CustomFramework 0x000000010e918690 __PSPDFUIKitMainThreadGuard_block_invoke_2 + 32
2 UIKit 0x000000010cd2338c -[UIView initWithFrame:] + 153
3 MediaPlayer 0x0000000119b64b0d -[MPVolumeView initWithFrame:style:] + 80
4 UIKit 0x000000010cd22fb7 -[UIView init] + 62
5 WebCore 0x00000001151f9913 -[WebMediaSessionHelper initWithCallback:] + 115
6 WebCore 0x00000001151f9259 _ZN7WebCore22MediaSessionManageriOSC2Ev + 89
7 WebCore 0x00000001151f91d1 _ZN7WebCore19MediaSessionManager13sharedManagerEv + 49
8 WebCore 0x00000001151f7b6e _ZN7WebCore12MediaSessionC2ERNS_18MediaSessionClientE + 46
9 WebCore 0x0000000114be08a8 _ZN7WebCore16HTMLMediaSession6createERNS_18MediaSessionClientE + 40
10 WebCore 0x0000000114bc3545 _ZN7WebCore16HTMLMediaElementC2ERKNS_13QualifiedNameERNS_8DocumentEb + 1733
11 WebCore 0x0000000114c36118 _ZN7WebCore16HTMLVideoElementC2ERKNS_13QualifiedNameERNS_8DocumentEb + 24
12 WebCore 0x0000000114c34219 _ZN7WebCore16HTMLVideoElement6createERKNS_13QualifiedNameERNS_8DocumentEb + 57
13 WebCore 0x0000000114b9ef41 _ZN7WebCoreL16videoConstructorERKNS_13QualifiedNameERNS_8DocumentEPNS_15HTMLFormElementEb + 81
14 WebCore 0x0000000114b9df14 _ZN7WebCore18HTMLElementFactory13createElementERKNS_13QualifiedNameERNS_8DocumentEPNS_15HTMLFormElementEb + 356
15 WebCore 0x0000000114b8af85 _ZN7WebCore12HTMLDocument13createElementERKN3WTF12AtomicStringERi + 101
16 WebCore 0x0000000114e14f35 _ZN7WebCore40jsDocumentPrototypeFunctionCreateElementEPN3JSC9ExecStateE + 357
17 ??? 0x0000042139137034 0x0 + 4540738007092
18 JavaScriptCore 0x0000000117742d8e llint_entry + 22744
19 JavaScriptCore 0x000000011773d291 callToJavaScript + 311
20 JavaScriptCore 0x0000000117621be3 _ZN3JSC7JITCode7executeEPNS_2VMEPNS_14ProtoCallFrameE + 35
21 JavaScriptCore 0x0000000117603c93 _ZN3JSC11Interpreter7executeEPNS_17ProgramExecutableEPNS_9ExecStateEPNS_8JSObjectE + 8035
22 JavaScriptCore 0x000000011747272c _ZN3JSC8evaluateEPNS_9ExecStateERKNS_10SourceCodeENS_7JSValueEPS5_ + 508
23 WebCore 0x000000011546d2f4 _ZN7WebCore16ScriptController15evaluateInWorldERKNS_16ScriptSourceCodeERNS_15DOMWrapperWorldE + 260
24 WebCore 0x000000011546d609 _ZN7WebCore16ScriptController8evaluateERKNS_16ScriptSourceCodeE + 41
25 WebCore 0x0000000115473d62 _ZN7WebCore13ScriptElement13executeScriptERKNS_16ScriptSourceCodeE + 194
26 WebCore 0x0000000114bf6107 _ZN7WebCore16HTMLScriptRunner36executePendingScriptAndDispatchEventERNS_13PendingScriptE + 231
27 WebCore 0x0000000114bf68a7 _ZN7WebCore16HTMLScriptRunner29executeParsingBlockingScriptsEv + 135
28 WebCore 0x0000000114b8e3fb _ZN7WebCore18HTMLDocumentParser14notifyFinishedEPNS_14CachedResourceE + 59
29 WebCore 0x000000011477f067 _ZN7WebCore14CachedResource11checkNotifyEv + 343
30 WebCore 0x0000000115553347 _ZN7WebCore17SubresourceLoader16didFinishLoadingEd + 119
31 CFNetwork 0x0000000110e205f7 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 107
32 CFNetwork 0x0000000110eec871 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 273
33 CFNetwork 0x0000000110e0bb36 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 72
34 CoreFoundation 0x000000010eebe714 CFArrayApplyFunction + 68
35 CFNetwork 0x0000000110e0b9f7 _ZN19RunloopBlockContext7performEv + 133
36 CFNetwork 0x0000000110e0b836 _ZN17MultiplexerSource7performEv + 256
37 CFNetwork 0x0000000110e0b64c _ZN17MultiplexerSource8_performEPv + 72
38 CoreFoundation 0x000000010eeebad1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
39 CoreFoundation 0x000000010eee199d __CFRunLoopDoSources0 + 269
40 CoreFoundation 0x000000010eee0fd4 __CFRunLoopRun + 868
41 CoreFoundation 0x000000010eee0a06 CFRunLoopRunSpecific + 470
42 WebCore 0x00000001156e8a95 _ZL12RunWebThreadPv + 469
43 libsystem_pthread.dylib 0x000000010f842899 _pthread_body + 138
44 libsystem_pthread.dylib 0x000000010f84272a _pthread_struct_init + 0
45 libsystem_pthread.dylib 0x000000010f846fc9 thread_start + 13
You have a framework that "ensures" no UIKit methods are called on a background thread. However, as you see, this kinds of frameworks are not recommended in a production environment, only in a debug environment.
This is an Apple framework bug. It has been reported, and you should create a bug report as well.
Make sure to update your helper framework to the latest version:
https://gist.github.com/steipete/5664345
My recommendation would be to surround this framework with #if DEBUG statements. This should not be running on production code. Even the author of the framework says so:
You should only use this in debug builds. It doesn't use private
API, but I wouldn't ship it.

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.

Resources