I'm getting this crash in my iOS app, and I'm not sure what's causing it:
Crashed: com.apple.CFNetwork.LoaderQ
0 libsystem_kernel.dylib 0x1bf365df8 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x1bf35f838 abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x1bf35f7d4 abort_with_payload_wrapper_internal + 34
3 libobjc.A.dylib 0x1be9a14b4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112
4 libobjc.A.dylib 0x1be9a140c __objc_error + 42
5 libobjc.A.dylib 0x1be9bc018 (anonymous namespace)::AutoreleasePoolPage::AutoreleasePoolPage((anonymous namespace)::AutoreleasePoolPage*) + 142
6 libobjc.A.dylib 0x1be9bb094 objc_autoreleasePoolPush + 68
7 libdispatch.dylib 0x1bf1e4e9c _dispatch_lane_serial_drain$VARIANT$armv81 + 272
8 libdispatch.dylib 0x1bf1e5b2c _dispatch_lane_invoke$VARIANT$armv81 + 468
9 libdispatch.dylib 0x1bf1e6d70 _dispatch_workloop_invoke$VARIANT$armv81 + 1892
10 libdispatch.dylib 0x1bf1edf14 _dispatch_workloop_worker_thread + 584
11 libsystem_pthread.dylib 0x1bf3ec0dc _pthread_wqthread + 312
12 libsystem_pthread.dylib 0x1bf3eecec start_wqthread + 4
This crash is being reported by Crashlytics. It doesn't look like anything interesting is happening in any of the other threads and none of it includes any lines from my app code. Do you know what could be causing this issue?
Related
Our ios app suffers some crashes recently with below title ,
_objc_fatalv(unsigned long long, unsigned long long, char const*, char*)
abort_with_payload_wrapper_internal
Crashed: com.apple.main-thread
SIGABRT ABORT 0x00000001e6013a00
we using capacitor,cordova,ionic for this app
one thing i noticed on resuming the app also this crash event happens, actually firebase log is not adequate to figure out this issue because it has nearly 200 logs with different screens like
firebase_screen: splash screen
firebase_screen_class: CAPBridgeViewController
this error is mainly in our latest version and ios16 platform
# Crashlytics - Stack trace
# Application: com.shopperApp
# Platform: apple
# Version: 0.0.8 (0.0.8)
# Issue: 09f591d6fb0a00eb74e378b77e5bf7b3
# Date: Sun Feb 12 2023 00:44:20 GMT+0530 (India Standard Time)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0xea00 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fb4c abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x2fae8 abort_with_payload_wrapper_internal + 26
3 libobjc.A.dylib 0x2ac64 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112
4 libobjc.A.dylib 0x2abf4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 26
5 libobjc.A.dylib 0x61d0 weak_register_no_lock + 332
6 libobjc.A.dylib 0xa6b0 objc_storeWeak + 344
7 UIKitCore 0x113440 _UIResponderForwarderWantsForwardingFromResponder + 728
8 UIKitCore 0x32fdc __forwardTouchMethod_block_invoke + 40
9 CoreFoundation 0xa2c0 __NSSET_IS_CALLING_OUT_TO_A_BLOCK__ + 16
10 CoreFoundation 0x856e4 -[__NSSetM enumerateObjectsWithOptions:usingBlock:] + 196
11 UIKitCore 0x1eb140 forwardTouchMethod + 216
12 UIKitCore 0xf21f8 -[UIWindow _sendTouchesForEvent:] + 496
13 UIKitCore 0xf16f0 -[UIWindow sendEvent:] + 3224
14 UIKitCore 0xf09ec -[UIApplication sendEvent:] + 740
15 UIKitCore 0xeec58 __dispatchPreprocessedEventFromEventQueue + 2052
16 UIKitCore 0x13496c __processEventQueue + 5612
17 UIKitCore 0x418110 __eventFetcherSourceCallback + 220
18 CoreFoundation 0xcc500 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
19 CoreFoundation 0xd7e70 __CFRunLoopDoSource0 + 172
20 CoreFoundation 0x62224 __CFRunLoopDoSources0 + 232
21 CoreFoundation 0x77230 __CFRunLoopRun + 780
22 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
23 GraphicsServices 0x1984 GSEventRunModal + 160
24 UIKitCore 0x376e7c -[UIApplication _run] + 868
25 UIKitCore 0x376af4 UIApplicationMain + 312
26 shopperApp 0x62e4 main + 7 (AppDelegate.swift:7)
27 ??? 0x1ca24ade0 (Missing)
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 Foundation 0x3e3fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8 Foundation 0x3e2f8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9 UIKitCore 0x49b6d0 -[UIEventFetcher threadMain] + 424
10 Foundation 0x55f44 __NSThread__start__ + 704
11 libsystem_pthread.dylib 0x3060 _pthread_start + 116
12 libsystem_pthread.dylib 0x1688 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 FirebaseCrashlytics 0x188b8 FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194)
5 libsystem_pthread.dylib 0x3060 _pthread_start + 116
6 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 CFNetwork 0x22d6cc _CFURLStorageSessionDisableCache + 51024
8 Foundation 0x55f44 __NSThread__start__ + 704
9 libsystem_pthread.dylib 0x3060 _pthread_start + 116
10 libsystem_pthread.dylib 0x1688 thread_start + 8
JavaScriptCore libpas scavenger
0 libsystem_kernel.dylib 0x19e0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x2584 _pthread_cond_wait$VARIANT$armv81 + 1220
2 JavaScriptCore 0xec4b4 scavenger_thread_main + 1012
3 libsystem_pthread.dylib 0x3060 _pthread_start + 116
4 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.root.default-qos
0 libsystem_kernel.dylib 0x1110 semaphore_wait_trap + 8
1 libdispatch.dylib 0x33e88 _dispatch_sema4_wait$VARIANT$armv81 + 24
2 libdispatch.dylib 0x344c4 _dispatch_semaphore_wait_slow + 128
3 UIKitCore 0x4999c8 __69+[_UIAsyncInvocationObserver whenInvocationsCompleteForObservers:do:]_block_invoke_2 + 56
4 libdispatch.dylib 0x63850 _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
6 libdispatch.dylib 0x3bb2c _dispatch_queue_override_invoke + 708
7 libdispatch.dylib 0x48d48 _dispatch_root_queue_drain + 328
8 libdispatch.dylib 0x49514 _dispatch_worker_thread2 + 160
9 libsystem_pthread.dylib 0x1b14 _pthread_wqthread + 224
10 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.dnssd.client
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 libxpc.dylib 0x26a58 -[OS_xpc_object dealloc] + 52
6 libxpc.dylib 0x15178 _xpc_dictionary_node_free + 80
7 libxpc.dylib 0x12cd8 _xpc_dictionary_dispose + 44
8 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
9 libxpc.dylib 0x80cc _xpc_array_dispose + 40
10 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
11 libxpc.dylib 0x12d4c _xpc_dictionary_dispose + 160
12 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
13 libxpc.dylib 0x10040 _xpc_connection_mach_event + 948
14 libdispatch.dylib 0x6487c _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x377c0 _dispatch_mach_msg_invoke$VARIANT$armv81 + 372
16 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
17 libdispatch.dylib 0x3835c _dispatch_mach_invoke$VARIANT$armv81 + 444
18 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
19 libdispatch.dylib 0x402e4 _dispatch_lane_invoke$VARIANT$armv81 + 380
20 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
21 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
22 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.network.connections
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 Network 0x3611a0 -[OS_nw_array dealloc] + 52
6 Network 0x12a768 nw_resolver_remove_endpoint_locked + 228
7 Network 0x12e468 __nw_resolver_create_dns_getaddrinfo_locked_block_invoke.165 + 6932
8 libdns_services.dylib 0x12f0 ___dnssd_getaddrinfo_activate_block_invoke + 204
9 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
10 libdispatch.dylib 0x3be7c _dispatch_continuation_pop$VARIANT$armv81 + 436
11 libdispatch.dylib 0x4d860 _dispatch_source_invoke$VARIANT$armv81 + 1552
12 libdispatch.dylib 0x4144c _dispatch_workloop_invoke$VARIANT$armv81 + 1636
13 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
14 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
15 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0x1674 start_wqthread + 270
when i googled this error Crash in UIKitCore [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] iOS 12 only also shares similar error message but since we are not using native elements i think my cause of problem is from somewhere else?
did any faced this crashes before?
thanks in advance!
I've got a difficult iOS crash that is a decent % of users. I can't reproduce it and the accompanying logs indicate that it occurs quite randomly. I have not been able to isolate the crash to a particular use case.
From Crashlytics, I get the following title:
libc++abi.dylib
std::__terminate(void (*)())
and stack trace:
Crashed: com.apple.root.default-qos
SIGABRT ABORT 0x00000001b889fb78
Crashed: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x7b78 __pthread_kill + 8
1 libsystem_pthread.dylib 0x73bc pthread_kill + 268
2 libsystem_c.dylib 0x2051c abort + 168
3 libc++abi.dylib 0x11b7c __cxxabiv1::__aligned_malloc_with_fallback(unsigned long) + 130
4 libc++abi.dylib 0x10f38 std::__terminate(void (*)()) + 52
5 libc++abi.dylib 0x10eb4 std::terminate() + 64
6 libobjc.A.dylib 0x2d268 objc::DenseMapBase<objc::DenseMap<objc_class*, PendingInitialize*, objc::DenseMapValueInfo<PendingInitialize*>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, PendingInitialize*> >, objc_class*, PendingInitialize*, objc::DenseMapValueInfo<PendingInitialize*>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, PendingInitialize*> >::FatalCorruptHashTables(objc::detail::DenseMapPair<objc_class*, PendingInitialize*> const*, unsigned int) const + 14
7 libdispatch.dylib 0x3a40 _dispatch_client_callout + 40
8 libdispatch.dylib 0x6b44 _dispatch_queue_override_invoke + 784
9 libdispatch.dylib 0x15164 _dispatch_root_queue_drain + 396
10 libdispatch.dylib 0x1596c _dispatch_worker_thread2 + 164
11 libsystem_pthread.dylib 0x1080 _pthread_wqthread + 228
12 libsystem_pthread.dylib 0xe5c start_wqthread + 8
The app is a Cordova application with a sizable native layer implemented in both Objective C and Swift.
Thanks in advance if anybody can resolve my problem.
I am using NSURLSession API for network calls.
App is crashing on iOS9+ version.
See below crash thread:
Crashed: com.apple.NSURLSession-work 0 libobjc.A.dylib
0x1812f5b88 objc_msgSend + 8 1 CFNetwork
0x1822d6d4c + 56 2 CFNetwork
0x18235b718 + 40 3 libdispatch.dylib
0x1816c94bc + 24 4 libdispatch.dylib
0x1816c947c + 16 5 libdispatch.dylib
0x1816d54c0 + 864 6 libdispatch.dylib
0x1816ccf80 + 464 7 libdispatch.dylib
0x1816d7390 + 728 8 libdispatch.dylib
0x1816d70b0 + 112 9 libsystem_pthread.dylib
0x1818e1470 _pthread_wqthread + 1092 10 libsystem_pthread.dylib
0x1818e1020 start_wqthread + 4
The most frequent crash we're seeing from customers is an exception (0xbbadbeef always in WebThread, thread #2) from _WebTryThreadLock. Usually the crashes contain other threads (main thread included) that has nothing specific to do with our code. We can't reproduce it internally. We've looked in cases in our code where we might be using UIWebView's from other threads but we've found nothing. We always unset the webview's delegate before it's freed.
We see this from all kinds of devices and from what I can see any iOS version (in the 5.x-current range). Based on logs, it does appear that it primarily happens when the application is resumed from background.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xbbadbeef
Crashed Thread: 2
Thread 0 name: Dispatch queue: com.apple.root.default-priority
Thread 0:
0 libsystem_kernel.dylib 0x328e31d4 madvise + 8
1 ImageIO 0x3306c550 CGImageRead_willNeed + 52
2 ImageIO 0x331bcd98 __copyImageBlockSetPNG_block_invoke_0 + 476
3 libdispatch.dylib 0x35d03a68 _dispatch_apply_serial + 16
4 libdispatch.dylib 0x35cf44b4 _dispatch_client_callout + 20
5 libdispatch.dylib 0x35d02886 _dispatch_sync_f_invoke + 22
6 ImageIO 0x331bb446 copyImageBlockSetPNG + 2102
7 ImageIO 0x3306b53e ImageProviderCopyImageBlockSetCallback + 510
8 CoreGraphics 0x33fc59d6 CGImageProviderCopyImageBlockSetWithOptions + 158
9 QuartzCore 0x3a4f474c CA::Render::create_image(CGImage*, CGColorSpace*, unsigned int) + 668
10 QuartzCore 0x3a4f433a CA::Render::copy_image(CGImage*, CGColorSpace*, unsigned int, double) + 254
11 QuartzCore 0x3a4f4226 CA::Render::prepare_image(CGImage*, CGColorSpace*, unsigned int, double) + 14
12 QuartzCore 0x3a4e2af0 CA::Layer::prepare_commit(CA::Transaction*) + 416
13 QuartzCore 0x3a4e221e CA::Context::commit_transaction(CA::Transaction*) + 242
14 QuartzCore 0x3a4e2024 CA::Transaction::commit() + 312
15 UIKit 0x3af260b6 -[UIApplication _reportAppLaunchFinished] + 38
[...]
Thread 2 name: WebThread
Thread 2 Crashed:
0 WebCore 0x379a99ca _WebTryThreadLock(bool) + 298
1 WebCore 0x379a988a WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 42
2 CoreFoundation 0x336da6ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
3 CoreFoundation 0x336d89bc __CFRunLoopDoObservers + 272
4 CoreFoundation 0x336d8c8c __CFRunLoopRun + 604
5 CoreFoundation 0x3364beb8 CFRunLoopRunSpecific + 352
6 CoreFoundation 0x3364bd44 CFRunLoopRunInMode + 100
7 WebCore 0x379a7a40 RunWebThread(void*) + 440
8 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
9 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
[...]
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x328f308c __psynch_cvwait + 24
1 libsystem_c.dylib 0x35d36d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x35d36aa0 pthread_cond_timedwait + 40
3 JavaScriptCore 0x39b67c70 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 104
4 JavaScriptCore 0x39c79552 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x39c8bfa8 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
7 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
Thread 6 name: WebCore: CFNetwork Loader
Thread 6:
0 libsystem_kernel.dylib 0x328e2eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x328e3048 mach_msg + 36
2 CoreFoundation 0x336da040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x336d8d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3364beb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3364bd44 CFRunLoopRunInMode + 100
6 WebCore 0x37a42f6a WebCore::runLoaderThread(void*) + 138
7 JavaScriptCore 0x39c8bfa8 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_c.dylib 0x35d3e30e _pthread_start + 306
9 libsystem_c.dylib 0x35d3e1d4 thread_start + 4
Per my project's current experience, this is an example of the WebKit running out of memory due to memory leaks in the GWT application that we are trying to fix.
I have used the HUD in my project. This situation will occur in my application: in main thread it will do a animation, and in the subthread it will call sleep.
I would receive the crash log like this:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xd0000008
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x383d55b0 objc_msgSend + 16
1 UIKit 0x36b7b822 -[UIAnimator stopAnimation:] + 262
2 UIKit 0x36c16252 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 290
3 UIKit 0x36b7b384 -[UIAnimator(Static) _LCDHeartbeatCallback:] + 48
4 QuartzCore 0x35c7006c CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long) + 156
5 QuartzCore 0x35c6ffc4 CA::Display::IOMFBDisplayLink::callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 60
6 IOMobileFramebuffer 0x312a6fd4 IOMobileFramebufferVsyncNotifyFunc + 152
7 IOKit 0x312ab446 IODispatchCalloutFromCFMessage + 190
8 CoreFoundation 0x3646d5d8 __CFMachPortPerform + 116
9 CoreFoundation 0x36478170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
10 CoreFoundation 0x36478112 __CFRunLoopDoSource1 + 134
11 CoreFoundation 0x36476f94 __CFRunLoopRun + 1380
12 CoreFoundation 0x363e9eb8 CFRunLoopRunSpecific + 352
13 CoreFoundation 0x363e9d44 CFRunLoopRunInMode + 100
14 GraphicsServices 0x385962e6 GSEventRunModal + 70
15 UIKit 0x36a622fc UIApplicationMain + 1116
16 YH_EMenu 0x000e36c4 main (main.m:14)
17 YH_EMenu 0x000dd6cc start + 36
Thread 1:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x384f3648 kevent64 + 24
1 libdispatch.dylib 0x33cc8974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x33cc8654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x384f2eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x384f3048 mach_msg + 36
2 CoreFoundation 0x36478040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x36476d9e __CFRunLoopRun + 878
4 CoreFoundation 0x363e9eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x363e9d44 CFRunLoopRunInMode + 100
6 WebCore 0x385f9a70 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x33a3230e _pthread_start + 306
8 libsystem_c.dylib 0x33a321d4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x38503d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x33a27cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x33a27a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x33a278a0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x385036a4 __semwait_signal + 24
1 libsystem_c.dylib 0x33a373ce nanosleep + 138
2 libsystem_c.dylib 0x33a97de6 sleep + 42
3 YH_EMenu 0x000eb580 -[MainViewController threadENDSHOWHUD:] (MainViewController.m:939)
4 Foundation 0x342ae678 __NSThread__main__ + 968
5 libsystem_c.dylib 0x33a3230e _pthread_start + 306
6 libsystem_c.dylib 0x33a321d4 thread_start + 4
I have no idea to resolve this problem.
Instead try using sleep(1000) for 1sec. Here '1000' represents 1000ms.