EXC_BAD_ACCESS : ESRI ARCGis Maps - ios

Using ESRI ARCGis Maps into app, Crashlytics reported some crashes with following stack trace, but not able to reproduce it.
Any direction how to debug this crash.
#0
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
Raw Text
0
libsystem_platform.dylib
_platform_memmove + 176
3
GLEngine
glDrawElements_ACC_ES2Exec
4 MyCity
Esri_runtimecore::Map_renderer::Sequence_pick_visitor::draw_() + 396
5 MyCity
Esri_runtimecore::Map_renderer::Graphic_buffer::visit_sequences_(std::__1::shared_ptr<Esri_runtimecore::HAL::Device> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Sequence_visitor> const&, Esri_runtimecore::Map_renderer::Graphic_buffer::Allow_throttling, bool) + 972
6 MyCity
Esri_runtimecore::Map_renderer::Graphics_layer::gpu_hit_test_(std::__1::shared_ptr<Esri_runtimecore::HAL::Device> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Display_properties> const&, std::__1::shared_ptr<Esri_runtimecore::Map_renderer::Hit_testable::Hit_test_request_details> const&) + 1004
7 MyCity
Esri_runtimecore::Map_renderer::Graphics_layer::hit_test(std::__1::shared_ptr<Esri_runtimecore::Geometry::Multi_path> const&, unsigned long) + 460
8 MyCity
-[AGSMapViewBase hitTestPoint:mapPoint:] + 232
9 MyCity
-[AGSMapView singleTap] + 336
10
UIKit
_UIGestureRecognizerSendTargetActions + 164
21
UIKit
UIApplicationMain + 204
22 MyCity
AppDelegate.swift line 16
main
23 libdispatch.dylib
(Missing)
Tried with NSZombieEnabled, but still not found anything.

Related

iOS - Understanding my symbolicated crash report (help needed)

My app is rejected from the iOS store because the app is terminated after user log in. I'm not able to reproduce the problem (local devices, TestFlight), it looks like it only happens when the app is running in production.
I have symbolicated the crash report that I got from the App Store review team. I understand that a abort() is called ontThread 0. But I have a hard time understanding the crash report. I'm new to crash reports so I appreciate the help!
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x192e2efe0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x191890538 objc_exception_throw + 56
2 CoreFoundation 0x192e35ef4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140
3 CoreFoundation 0x192e32f54 ___forwarding___ + 916
4 CoreFoundation 0x192d2ed4c _CF_forwarding_prep_0 + 92
5 appname 0x1000c9ce4 -[PushPlugin setApplicationIconBadgeNumber:] (PushPlugin.m:573)
6 appname 0x10015d130 -[CDVCommandQueue execute:] + 504
7 appname 0x1000e6d98 -[CDVWKWebViewEngine handleCordovaMessage:] (CDVWKWebViewEngine.m:427)
8 appname 0x1000e6c40 -[CDVWKWebViewEngine userContentController:didReceiveScriptMessage:] (CDVWKWebViewEngine.m:413)
9 appname 0x1000e7b98 -[CDVWKWeakScriptMessageHandler userContentController:didReceiveScriptMessage:] (CDVWKWebViewEngine.m:601)
10 WebKit 0x19c729590 ScriptMessageHandlerDelegate::didPostMessage(WebKit::WebPageProxy&, WebKit::FrameInfoData const&, WebCore::SerializedScriptValue&) + 196
11 WebKit 0x19c6c8c48 WebKit::WebUserContentControllerProxy::didPostMessage(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&) + 176
12 WebKit 0x19c6cb0c0 void IPC::handleMessage<Messages::WebUserContentControllerProxy::DidPostMessage, WebKit::WebUserContentControllerProxy, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&)>(IPC::Connection&, IPC::Decoder&, WebKit::WebUserContentControllerProxy*, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&)) + 156
13 WebKit 0x19c4fbda4 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 120
14 WebKit 0x19c6a4830 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 32
15 WebKit 0x19c4c1c8c IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 164
16 WebKit 0x19c4c4484 IPC::Connection::dispatchOneMessage() + 232
17 JavaScriptCore 0x19769fff4 WTF::RunLoop::performWork() + 172
18 JavaScriptCore 0x1976a02cc WTF::RunLoop::performWork(void*) + 36
19 CoreFoundation 0x192ddd42c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
20 CoreFoundation 0x192ddcd9c __CFRunLoopDoSources0 + 540
21 CoreFoundation 0x192dda9a8 __CFRunLoopRun + 744
22 CoreFoundation 0x192d0ada4 CFRunLoopRunSpecific + 424
23 GraphicsServices 0x194774074 GSEventRunModal + 100
24 UIKit 0x198fbe058 UIApplicationMain + 208
25 appname 0x1000b2b78 main (main.m:32)
26 libdyld.dylib 0x191d1959c start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000191e29014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000191ef3264 pthread_kill + 112
2 libsystem_c.dylib 0x0000000191d9d9c4 abort + 140
3 libc++abi.dylib 0x00000001918691b0 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000191882c04 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x0000000191890820 _objc_terminate() + 124
6 libc++abi.dylib 0x000000019187f5d4 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000019187eef8 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libobjc.A.dylib 0x000000019189066c _objc_exception_destructor(void*) + 0
9 CoreFoundation 0x0000000192e35ef4 __methodDescriptionForSelector + 0
10 CoreFoundation 0x0000000192e32f54 ___forwarding___ + 916
11 CoreFoundation 0x0000000192d2ed4c _CF_forwarding_prep_0 + 92
12 appname 0x00000001000c9ce4 -[PushPlugin setApplicationIconBadgeNumber:] (PushPlugin.m:573)
13 appname 0x000000010015d130 -[CDVCommandQueue execute:] + 504
14 appname 0x00000001000e6d98 -[CDVWKWebViewEngine handleCordovaMessage:] (CDVWKWebViewEngine.m:427)
15 appname 0x00000001000e6c40 -[CDVWKWebViewEngine userContentController:didReceiveScriptMessage:] (CDVWKWebViewEngine.m:413)
16 appname 0x00000001000e7b98 -[CDVWKWeakScriptMessageHandler userContentController:didReceiveScriptMessage:] (CDVWKWebViewEngine.m:601)
17 WebKit 0x000000019c729590 ScriptMessageHandlerDelegate::didPostMessage(WebKit::WebPageProxy&, WebKit::FrameInfoData const&, WebCore::SerializedScriptValue&) + 196
18 WebKit 0x000000019c6c8c48 WebKit::WebUserContentControllerProxy::didPostMessage(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&) + 176
19 WebKit 0x000000019c6cb0c0 void IPC::handleMessage<Messages::WebUserContentControllerProxy::DidPostMessage, WebKit::WebUserContentControllerProxy, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&)>(IPC::Connection&, IPC::Decoder&, WebKit::WebUserContentControllerProxy*, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, WebKit::FrameInfoData const&, unsigned long long, IPC::DataReference const&)) + 156
20 WebKit 0x000000019c4fbda4 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 120
21 WebKit 0x000000019c6a4830 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 32
22 WebKit 0x000000019c4c1c8c IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 164
23 WebKit 0x000000019c4c4484 IPC::Connection::dispatchOneMessage() + 232
24 JavaScriptCore 0x000000019769fff4 WTF::RunLoop::performWork() + 172
25 JavaScriptCore 0x00000001976a02cc WTF::RunLoop::performWork(void*) + 36
26 CoreFoundation 0x0000000192ddd42c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
27 CoreFoundation 0x0000000192ddcd9c __CFRunLoopDoSources0 + 540
28 CoreFoundation 0x0000000192dda9a8 __CFRunLoopRun + 744
29 CoreFoundation 0x0000000192d0ada4 CFRunLoopRunSpecific + 424
30 GraphicsServices 0x0000000194774074 GSEventRunModal + 100
31 UIKit 0x0000000198fbe058 UIApplicationMain + 208
32 appname 0x00000001000b2b78 main (main.m:32)
33 libdyld.dylib 0x0000000191d1959c start + 4
...

App Crashes on ParallelRenderQueue thread with Exception Type: EXC_BAD_ACCESS (SIGSEGV) and Exception Subtype: KERN_INVALID_ADDRESS

I am facing a crash with the following log. Basically I am trying to add an Image to a web view through camera.
The flow is as follows:
1. I take a picture through camera using Image Picker controller, save it into PhotosAlbum and get the image data.
2. Then I upload that image to the server, get the related data to that image.
3. Then I call a JS function to insert the URL received of the image in the web view.
After repeating the steps 1-3 for a couple of times, I get a crash on this particular thread.

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000040
Triggered by Thread: 16
Thread 16 name: Dispatch queue: CA::CG::ParallelRenderQueue
Thread 16 Crashed:
0 AGXMetalG5 0x0000000107f2a3c4 0x107f20000 + 41924
1 AGXMetalG5 0x0000000107f689b0 0x107f20000 + 297392
2 AGXMetalG5 0x0000000107f694b8 0x107f20000 + 300216
3 AGXMetalG5 0x0000000107f2c308 0x107f20000 + 49928
4 QuartzCore 0x0000000189b34cdc CA::OGL::MetalContext::start_render_encoder(CA::OGL::Surface*) + 268
5 QuartzCore 0x0000000189a2b07c CA::OGL::Context::prepare_destination_() + 32
6 QuartzCore 0x0000000189b39920 CA::OGL::MetalContext::draw_elements(CA::OGL::PrimitiveMode, unsigned int, unsigned short const*, CA::OGL::Vertex const*, unsigned int, unsigned int, CA::OGL::ClipPlane const*) + 184
7 QuartzCore 0x0000000189a00ccc CA::OGL::Context::ClippedArray::next_rect(CA::Bounds&) + 340
8 QuartzCore 0x0000000189abd468 CA::OGL::emit_one_part_rect(CA::OGL::Context&, CA::OGL::RectState const&, float const*, float const*, unsigned int) + 800
9 QuartzCore 0x0000000189a2a3ec CA::OGL::fill_rect_tex(CA::OGL::Context&, CA::OGL::RectState const&, float const*) + 188
10 QuartzCore 0x0000000189a29fa0 CA::OGL::ContentsGeometry::fill_and_unbind(CA::OGL::Context&, CA::OGL::Image*, CA::OGL::TextureFilter, float) const + 976
11 QuartzCore 0x0000000189aed41c CA::CG::fill_image(CA::CG::Renderer&, CGImage*, CA::Rect const&, CA::Mat2<double> const&, bool, bool, CGInterpolationQuality, CA::Bounds const*) + 2200
12 QuartzCore 0x0000000189a02298 CA::CG::DrawImage::draw_image(CA::CG::Renderer&, bool) const + 100
13 QuartzCore 0x00000001899fe574 CA::CG::DrawOp::render(CA::CG::Renderer&) const + 1280
14 QuartzCore 0x0000000189af3b3c CA::CG::Queue::parallel_render_callback(void*) + 320
15 libdispatch.dylib 0x000000019a96d770 _dispatch_client_callout + 16
16 libdispatch.dylib 0x000000019a978cbc _dispatch_sync_f_invoke + 72
17 QuartzCore 0x00000001899fcbc4 CA::CG::Queue::render_callback(void*) + 176
18 libdispatch.dylib 0x000000019a96d770 _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000019a97975c _dispatch_queue_drain + 864
20 libdispatch.dylib 0x000000019a971274 _dispatch_queue_invoke + 464
21 libdispatch.dylib 0x000000019a97b62c _dispatch_root_queue_drain + 728
22 libdispatch.dylib 0x000000019a97b34c _dispatch_worker_thread3 + 112
23 libsystem_pthread.dylib 0x000000019ab81478 _pthread_wqthread + 1092

How to debug webkit crash log in iOS

We got crash log like this(Only crash on iOS 9):
Crashed: com.apple.main-thread
EXC_BAD_ACCESS 0x00000000815fe0fd
And detail
Crashed: com.apple.main-thread
0 WebKit 0x281aa862 std::__1::__function::__func<WebKit::WebsiteDataStore::fetchData(WebKit::WebsiteDataTypes, std::__1::function<void (WTF::Vector<WebKit::WebsiteDataRecord, 0ul, WTF::CrashOnOverflow, 16ul>)>)::$_0, std::__1::allocator<WebKit::WebsiteDataStore::fetchData(WebKit::WebsiteDataTypes, std::__1::function<void (WTF::Vector<WebKit::WebsiteDataRecord, 0ul, WTF::CrashOnOverflow, 16ul>)>)::$_0>, void (WebKit::WebsiteData)>::destroy_deallocate() + 29
1 libobjc.A.dylib 0x20a37e09 object_dispose + 20
2 WebKit 0x2808fbaf std::__1::__function::__func<WebKit::NetworkProcessProxy::fetchWebsiteData(WebCore::SessionID, WebKit::WebsiteDataTypes, std::__1::function<void (WebKit::WebsiteData)>)::$_0, std::__1::allocator<WebKit::NetworkProcessProxy::fetchWebsiteData(WebCore::SessionID, WebKit::WebsiteDataTypes, std::__1::function<void (WebKit::WebsiteData)>)::$_0>, void (WebKit::WebsiteData)>::destroy_deallocate() + 30
3 WebKit 0x280518d5 WTF::HashTable<unsigned long long, WTF::KeyValuePair<unsigned long long, std::__1::function<void (WebKit::WebsiteData)> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<unsigned long long, std::__1::function<void (WebKit::WebsiteData)> > >, WTF::IntHash<unsigned long long>, WTF::HashMap<unsigned long long, std::__1::function<void (WebKit::WebsiteData)>, WTF::IntHash<unsigned long long>, WTF::HashTraits<unsigned long long>, WTF::HashTraits<std::__1::function<void (WebKit::WebsiteData)> > >::KeyValuePairTraits, WTF::HashTraits<unsigned long long> >::deallocateTable(WTF::KeyValuePair<unsigned long long, std::__1::function<void (WebKit::WebsiteData)> >*, unsigned int) + 48
4 WebKit 0x2808f449 WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch() + 252
5 JavaScriptCore 0x246f7a4f WTF::RunLoop::performWork() + 310
6 JavaScriptCore 0x246f7ebb WTF::RunLoop::performWork(void*) + 22
7 CoreFoundation 0x21255dff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
8 CoreFoundation 0x212559ed __CFRunLoopDoSources0 + 452
9 CoreFoundation 0x21253d5b __CFRunLoopRun + 794
10 CoreFoundation 0x211a3229 CFRunLoopRunSpecific + 520
11 CoreFoundation 0x211a3015 CFRunLoopRunInMode + 108
12 GraphicsServices 0x22793ac9 GSEventRunModal + 160
13 UIKit 0x25877189 UIApplicationMain + 144
14 Our App 0x7187e5 main (main.m:20)
15 libdispatch.dylib 0x20e4b873 (Missing)
We use WKWebView to show some web page. And using WKUserContentController as bridge to do some call between H5 and Native.
So, how to debug this kind of crash?
I tried to read the source code of Webkit, but it is useless. I only figure out that the WebKit network process is about to exit when crash happened.
We tried to reload webview when WKKit process crashed, and the crash is gone。
- (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView {
[_webView reload];
}

my app crash in IMGSGX543GLDriver

my app crash in IMGSGX543GLDriver ,the most difficult is there are not any code of my app in the crash log and i cannot reproduce it .This issue cost me several days and I still have no idea. Any ideas you guys provide, I will try. Thank you for your help.
Thread 12 name: Dispatch queue: CA::CG::Queue
Thread 12 Crashed:
0 IMGSGX543GLDriver 0x31cb4ff0 glrRetainVendCtxPipeProg + 0
1 IMGSGX543GLDriver 0x31caf8d8 gpusLoadCurrentPipelinePrograms + 1664
2 IMGSGX543GLDriver 0x31cb948c gldUpdateDispatch + 396
3 GLEngine 0x34184a0a gleDoDrawDispatchCoreES2 + 562
4 GLEngine 0x3412ef72 glDrawElements_IMM_ES2Exec + 190
5 QuartzCore 0x331bffc4 CA::OGL::GLContext::draw_elements(CA::OGL::PrimitiveMode, unsigned int, unsigned short const*, CA::OGL::Vertex const*, unsigned int, unsigned int, CA::OGL::ClipPlane const*) + 272
6 QuartzCore 0x331bfe7c CA::OGL::Context::array_flush() + 48
7 QuartzCore 0x331ef8ae CA::OGL::emit_combine_(CA::OGL::Context&, CA::OGL::TextureFunction, CA::OGL::Surface*, int, CA::OGL::Surface*, int, CA::OGL::Surface*, int, CA::Shape const*, CA::Vec4<float> const&) + 1114
8 QuartzCore 0x331ef444 CA::OGL::emit_combine(CA::OGL::Context&, CA::OGL::TextureFunction, CA::OGL::Surface*, int, CA::OGL::Surface*, int, CA::OGL::Surface*, int, CA::Shape const*, CA::Vec4<float> const&) + 112
9 QuartzCore 0x331e3560 CA::CG::DrawOp::render(CA::CG::Renderer&) const + 1940
10 QuartzCore 0x331e1854 CA::CG::Queue::render_callback(void*) + 116
11 libdispatch.dylib 0x346e4d08 _dispatch_queue_drain + 268
12 libdispatch.dylib 0x346e4b6e _dispatch_queue_invoke$VARIANT$mp + 34
13 libdispatch.dylib 0x346e57e0 _dispatch_worker_thread2 + 204
14 libsystem_c.dylib 0x32f67df4 _pthread_wqthread + 288
15 libsystem_c.dylib 0x32f67cc8 start_wqthread + 0

"Failed to resume in time" on a 3.2 iPad?

Recently, I upgradie my iPad app's code to support iOS 4.0. I just added the following methods with no actual code in them in my AppDelegate:
applicationWillEnterForeground:
applicationDidBecomeActive:
applicationWillResignActive:
applicationDidEnterBackground:
I imagined there shouldn't be any change on my 3.2 device, as it shouldn't even be aware of these methods.
However, I received the following "failed to resume in time" time out, on my 3.2 device, which shouldn't do any resuming. This just doesn't make sense to me. Any ideas?
Incident Identifier: 5AB41509-89C9-4016-959A-96F466170CED
CrashReporter Key: fedcf4c4ba6f9d644032ce85fe1bc62664631a46
Hardware Model: iPad1,1
Process: News [1530]
Path: /var/mobile/Applications/76A324ED-567E-4253-9A3B-29A61892C5E4/News.app/News
Identifier: News
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2010-11-25 15:49:49.934 +0800
OS Version: iPhone OS 3.2.2 (7B500)
Report Version: 104
Exception Type: 00000020
Exception Codes: 0x8badf00d
Highlighted Thread: 0
Application Specific Information:
com.NewsPad failed to resume in time
elapsed total CPU time (seconds): 1.580 (user 0.790, system 0.790), 8% CPU
elapsed application CPU time (seconds): 0.690, 3% CPU
Thread 0:
0 libSystem.B.dylib 0x000016c4 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x0002ecc2 semaphore_wait_signal + 2
2 libSystem.B.dylib 0x000034b4 pthread_mutex_lock + 248
3 CoreGraphics 0x00025064 CGFontCacheLock + 24
4 CoreGraphics 0x00024ffe CGGlyphLockLockGlyphBitmaps + 142
5 libRIP.A.dylib 0x00002720 ripc_RenderGlyphs + 116
6 libRIP.A.dylib 0x0000ab38 ripc_DrawGlyphs + 1004
7 CoreGraphics 0x00024166 CGContextDelegateDrawGlyphs + 26
8 CoreGraphics 0x0002411c draw_glyphs + 720
9 CoreGraphics 0x00023cae CGContextShowGlyphsWithAdvances + 398
10 WebCore 0x00007b0e WebCore::Font::drawGlyphs(WebCore::GraphicsContext*, WebCore::SimpleFontData const*, WebCore::GlyphBuffer const&, int, int, WebCore::FloatPoint const&, bool) const + 902
11 WebCore 0x0000775e WebCore::Font::drawGlyphBuffer(WebCore::GraphicsContext*, WebCore::GlyphBuffer const&, WebCore::TextRun const&, WebCore::FloatPoint&) const + 154
12 WebCore 0x00007594 WebCore::Font::drawSimpleText(WebCore::GraphicsContext*, WebCore::TextRun const&, WebCore::FloatPoint const&, int, int) const + 380
13 WebCore 0x000073f8 WebCore::Font::drawText(WebCore::GraphicsContext*, WebCore::TextRun const&, WebCore::FloatPoint const&, int, int) const + 104
14 WebCore 0x00007382 drawAtPoint(unsigned short const*, int, WebCore::FloatPoint const&, WebCore::Font const&, WebCore::GraphicsContext*, WebCore::BidiStatus*, int) + 130
15 WebCore 0x00006ea0 -[NSString(WebStringDrawing) _web_drawAtPoint:forWidth:withFont:ellipsis:letterSpacing:includeEmoji:] + 308
16 UIKit 0x0003c15e -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:letterSpacing:includeEmoji:] + 110
17 UIKit 0x0003c0d8 -[NSString(UIStringDrawing) drawAtPoint:forWidth:withFont:lineBreakMode:] + 44
18 UIKit 0x00047b2c -[UILabel _drawTextInRect:baselineCalculationOnly:] + 1460
19 UIKit 0x00047560 -[UILabel drawTextInRect:] + 44
20 UIKit 0x00047518 -[UILabel drawRect:] + 52
21 UIKit 0x00043f9e -[UIView(CALayerDelegate) drawLayer:inContext:] + 246
22 QuartzCore 0x00014ba2 -[CALayer drawInContext:] + 86
23 QuartzCore 0x00013b02 -[CALayer _display] + 374
24 QuartzCore 0x0001396e -[CALayer display] + 134
25 QuartzCore 0x000138b6 CALayerDisplayIfNeeded + 178
26 QuartzCore 0x00008b64 CA::Context::commit_transaction(CA::Transaction*) + 212
27 QuartzCore 0x00008974 CA::Transaction::commit() + 180
28 QuartzCore 0x0002e15e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 46
29 CoreFoundation 0x0006f29a __CFRunLoopDoObservers + 406
30 CoreFoundation 0x00022baa CFRunLoopRunSpecific + 1722
31 CoreFoundation 0x000224da CFRunLoopRunInMode + 42
32 GraphicsServices 0x000030d4 GSEventRunModal + 108
33 GraphicsServices 0x00003180 GSEventRun + 56
34 UIKit 0x0000342a -[UIApplication _run] + 374
35 UIKit 0x00001954 UIApplicationMain + 636
36 News 0x00003182 main (main.m:7)
37 News 0x00002e00 start + 32
See the similar questions,
"failed to resume in time" on resumption from background crash
how to resolve "failed to resume in time" on iOS
your problem is because you using some long calculation before the application starts in main thread. Try putting those in thread.
thanks,

Resources