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

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.

Related

Swift - UIWebView - This application is modifying the autolayout engine

I am trying to embed a youtube video in a UIWebView the code I have works fine however, every time I play the video and the video players opens I get a warning:
This application is modifying the autolayout engine from a background
thread, which can lead to engine corruption and weird crashes. This
will cause an exception in a future release.
Stack:( 0
CoreFoundation 0x0000000181e96dc8 +
148 1 libobjc.A.dylib 0x00000001814fbf80
objc_exception_throw + 56 2 CoreFoundation
0x0000000181e96cf8 + 0 3 Foundation
0x0000000182947b2c + 88 4 Foundation
0x00000001827c8c3c + 36 5 UIKit
0x00000001870fcd98 + 64 6 UIKit
0x00000001870fd8b0 + 244 7 UIKit
0x000000018788b7f0 + 268 8 UIKit
0x0000000187308aa0 + 176 9 UIKit
0x0000000186ff01e4 + 656 10 QuartzCore
0x0000000184982994 + 148 11 QuartzCore
0x000000018497d5d0 + 292 12 QuartzCore
0x000000018497d490 + 32 13 QuartzCore
0x000000018497cac0 + 252 14 QuartzCore
0x000000018497c820 + 500 15 WebCore
0x0000000186b56270 + 176 16 WebCore
0x0000000186b18fa4 + 368 17 CoreFoundation
0x0000000181e4d09c + 24 18 CoreFoundation
0x0000000181e4cb30 + 540 19 CoreFoundation
0x0000000181e4a830 + 724 20 CoreFoundation
0x0000000181d74c50 CFRunLoopRunSpecific + 384 21 WebCore
0x0000000185d6261c + 456 22 libsystem_pthread.dylib
0x0000000181afbb28 + 156 23 libsystem_pthread.dylib
0x0000000181afba8c + 0 24 libsystem_pthread.dylib
0x0000000181af9028 thread_start + 4 )
The Code I use is:
let string = "<html style='margin:0;background:black;'><body style='margin:0;background:black;'><iframe style='position:absolue;top:0;left:0;margin:0;' width='\(webViewWidth)' height='\(webViewHeight)' src='\(src)' frameborder='0' allowfullscreen></iframe></body></html>"
webViewYT.loadHTMLString(string as String, baseURL: nil)
Looking online I found out that I have to encapsulate UI changes in a dispatch_async.
How can I resolve this issue?

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...];

How do I approach crashes where there is no sign of my own code?

E.g. I have this trace.
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x32fe2df0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x33062c97 pthread_kill + 62
2 libsystem_c.dylib 0x32f81939 abort + 76
3 libc++abi.dylib 0x3217fbbd __cxa_bad_cast
4 libc++abi.dylib 0x3219966f default_terminate_handler() + 266
5 libobjc.A.dylib 0x32973f11 _objc_terminate() + 192
or this
Thread : Crashed: com.apple.main-thread
0 CoreFoundation 0x2d60eab8 __CFBasicHashDeallocate + 48
1 CoreFoundation 0x2d52488f CFRelease + 462
2 QuartzCore 0x2fa8d635 CA::release_objects(X::List<void const*>*) + 16
3 QuartzCore 0x2fa8cec7 CA::Layer::~Layer() + 242
4 QuartzCore 0x2fa8e431 CA::release_root_if_unused(CA::Layer*, CA::Layer*, void*) + 48
5 QuartzCore 0x2fa8e3ad x_hash_table_remove_if + 68
6 QuartzCore 0x2fa89443 CA::Transaction::commit() + 142
7 UIKit 0x2fe0940b _afterCACommitHandler + 126
8 CoreFoundation 0x2d5bf255 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
9 CoreFoundation 0x2d5bcbf9 __CFRunLoopDoObservers + 284
10 CoreFoundation 0x2d5bcf3b __CFRunLoopRun + 730
11 CoreFoundation 0x2d527ebf CFRunLoopRunSpecific + 522
12 CoreFoundation 0x2d527ca3 CFRunLoopRunInMode + 106
13 GraphicsServices 0x3244e663 GSEventRunModal + 138
14 UIKit 0x2fe7414d UIApplicationMain + 1136
15 myapp 0x0009c6f3 main (main.m:6)
or this
Thread : Crashed: WebThread
0 libobjc.A.dylib 0x31ea0f46 objc_msgSend + 5
1 UIKit 0x272eeea1 +[UIViewAnimationState popAnimationState] + 320
2 MediaPlayer 0x2563056b -[MPVolumeSlider _layoutForAvailableRoutes] + 1410
3 MediaPlayer 0x2562f1b5 -[MPVolumeSlider layoutSubviews] + 60
4 UIKit 0x272ba7ff -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 514
5 QuartzCore 0x26ce0835 -[CALayer layoutSublayers] + 136
6 QuartzCore 0x26cdc20d CA::Layer::layout_if_needed(CA::Transaction*) + 360
7 UIKit 0x272ccf77 -[UIView(Hierarchy) layoutBelowIfNeeded] + 138
8 UIKit 0x272d2463 -[UISlider setValue:animated:] + 178
9 MediaPlayer 0x2562f8ab -[MPVolumeSlider volumeController:volumeValueDidChange:] + 78
10 MediaPlayer 0x2569391d -[MPVolumeController updateVolumeValue] + 252
11 MediaPlayer 0x2562f2c3 -[MPVolumeSlider didMoveToSuperview] + 126
12 UIKit 0x272b9721 -[UIView(Hierarchy) _postMovedFromSuperview:] + 428
13 UIKit 0x272c3bcf -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1462
14 UIKit 0x272c360f -[UIView(Hierarchy) addSubview:] + 30
15 MediaPlayer 0x25632099 -[MPVolumeView _createSubviews] + 236
16 MediaPlayer 0x25630ce5 -[MPVolumeView _initWithStyle:] + 212
17 MediaPlayer 0x25630d79 -[MPVolumeView initWithFrame:style:] + 80
18 MediaPlayer 0x25630d23 -[MPVolumeView initWithFrame:] + 38
19 UIKit 0x272da3a1 -[UIView init] + 44
20 WebCore 0x2fdcd1cf -[WebMediaSessionHelper initWithCallback:] + 178
21 WebCore 0x2fdcc611 WebCore::MediaSessionManageriOS::MediaSessionManageriOS() + 172
22 WebCore 0x2fdcc4fd WebCore::MediaSessionManager::sharedManager() + 124
23 WebCore 0x2fdcb785 WebCore::MediaSession::MediaSession(WebCore::MediaSessionClient&) + 32
24 WebCore 0x2fa5fe75 WebCore::HTMLMediaSession::create(WebCore::MediaSessionClient&) + 20
25 WebCore 0x2fa4e81f WebCore::HTMLMediaElement::HTMLMediaElement(WebCore::QualifiedName const&, WebCore::Document&, bool) + 1046
26 WebCore 0x2fa77917 WebCore::HTMLVideoElement::create(WebCore::QualifiedName const&, WebCore::Document&, bool) + 38
27 WebCore 0x2fa41b79 WebCore::videoConstructor(WebCore::QualifiedName const&, WebCore::Document&, WebCore::HTMLFormElement*, bool) + 56
28 WebCore 0x2fa412cd WebCore::HTMLElementFactory::createElement(WebCore::QualifiedName const&, WebCore::Document&, WebCore::HTMLFormElement*, bool) + 232
29 WebCore 0x2f64b53d WebCore::HTMLDocument::createElement(WTF::AtomicString const&, int&) + 88
30 WebCore 0x2f64b47f WebCore::jsDocumentPrototypeFunctionCreateElement(JSC::ExecState*) + 242
31 JavaScriptCore 0x2521d783 llint_entry + 21314
32 JavaScriptCore 0x2521d377 llint_entry + 20278
33 JavaScriptCore 0x2521d377 llint_entry + 20278
34 JavaScriptCore 0x2521d377 llint_entry + 20278
35 JavaScriptCore 0x2521822f callToJavaScript + 334
36 JavaScriptCore 0x251a7d09 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 36
37 JavaScriptCore 0x24fde3fb JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) + 5738
38 JavaScriptCore 0x24fdcc43 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, JSC::JSValue*) + 358
39 WebCore 0x2fefd539 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&) + 196
40 WebCore 0x2f666173 WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&) + 26
41 WebCore 0x2f666117 WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&) + 234
42 WebCore 0x2f6ecb05 WebCore::HTMLScriptRunner::executePendingScriptAndDispatchEvent(WebCore::PendingScript&) + 156
43 WebCore 0x2f6e8059 WebCore::HTMLScriptRunner::executeParsingBlockingScripts() + 244
44 WebCore 0x2f6e576d WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder() + 52
45 WebCore 0x2f68dd77 WebCore::HTMLDocumentParser::canTakeNextToken(WebCore::HTMLDocumentParser::SynchronousMode, WebCore::PumpSession&) + 50
46 WebCore 0x2f68d305 WebCore::HTMLDocumentParser::pumpTokenizer(WebCore::HTMLDocumentParser::SynchronousMode) + 344
47 WebCore 0x2f6edf3f WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution() + 78
48 WebCore 0x2f672c1d WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets() + 44
49 WebCore 0x2f66ff7b WebCore::Document::didRemoveAllPendingStylesheet() + 66
50 WebCore 0x2f738151 WebCore::HTMLLinkElement::sheetLoaded() + 76
51 WebCore 0x2f66fe93 WebCore::StyleSheetContents::checkLoaded() + 130
52 WebCore 0x2fa4d415 WebCore::HTMLLinkElement::setCSSStyleSheet(WTF::String const&, WebCore::URL const&, WTF::String const&, WebCore::CachedCSSStyleSheet const*) + 508
53 WebCore 0x2f6ee08b WebCore::CachedCSSStyleSheet::checkNotify() + 246
54 WebCore 0x2f737a79 WebCore::CachedCSSStyleSheet::finishLoading(WebCore::ResourceBuffer*) + 192
55 WebCore 0x2f6e9893 WebCore::SubresourceLoader::didFinishLoading(double) + 78
56 CFNetwork 0x2380df5f ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 78
57 CFNetwork 0x238aaff9 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 60
58 CFNetwork 0x237fed8d RunloopBlockContext::_invoke_block(void const*, void*) + 60
59 CoreFoundation 0x23cb1e1d CFArrayApplyFunction + 36
60 CFNetwork 0x237fec47 RunloopBlockContext::perform() + 182
61 CFNetwork 0x237feb0d MultiplexerSource::perform() + 216
62 CFNetwork 0x237fe9a1 MultiplexerSource::_perform(void*) + 48
63 CoreFoundation 0x23d66fbf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
64 CoreFoundation 0x23d663cf __CFRunLoopDoSources0 + 218
65 CoreFoundation 0x23d64a35 __CFRunLoopRun + 772
66 CoreFoundation 0x23cb23b1 CFRunLoopRunSpecific + 476
67 CoreFoundation 0x23cb21c3 CFRunLoopRunInMode + 106
68 WebCore 0x2f6a9483 RunWebThread(void*) + 418
69 libsystem_pthread.dylib 0x32567e23 _pthread_body + 138
70 libsystem_pthread.dylib 0x32567d97 _pthread_start + 118
How can I go about to solve these?
I'm also seeing the crashes described above in all of my apps (Hockeyapp reporting). I have no idea what I can do to resolve them, as they seem to be happening in iOS API's. They are only showing up on iOS8 devices...

I need help deciphering this stacktrace

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.

Resources