Difficult iOS Crash - SIGABRT ABORT - ios

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.

Related

Crashed: com.apple.CFNetwork.LoaderQ SIGABRT ABORT

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?

I am getting this crash, again and again from Crashlytics, but can't reproduce locally

Crashed: com.IPTV.TVLService.GuideProgramService
0 libobjc.A.dylib 0x182a05b90 objc_msgSend + 16
1 CoreFoundation 0x18326f654 CFBasicHashCreateCopy + 668
2 CoreFoundation 0x183291248 CFDictionaryCreateCopy + 148
3 CFNetwork 0x18396fa70 URLResponse::createArchiveList(__CFAllocator const*, long*, void const***, long*) + 228
4 CFNetwork 0x18396f764 URLResponse::copyPropertyList(__CFAllocator const*) + 68
5 CFNetwork 0x1839c1610 ___ZN12__CFURLCache23CreateAndStoreCacheNodeEP16__CFURLCacheNodePK20_CFCachedURLResponsePK10__CFStringPK13_CFURLRequestPKvbRb_block_invoke + 796
6 libdispatch.dylib 0x182dd94bc _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x182dd947c _dispatch_client_callout + 16
8 libdispatch.dylib 0x182de54c0 _dispatch_queue_drain + 864
9 libdispatch.dylib 0x182ddcf80 _dispatch_queue_invoke + 464
10 libdispatch.dylib 0x182de7390 _dispatch_root_queue_drain + 728
11 libdispatch.dylib 0x182de70b0 _dispatch_worker_thread3 + 112
12 libsystem_pthread.dylib 0x182ff1470 _pthread_wqthread + 1092
13 libsystem_pthread.dylib 0x182ff1020 start_wqthread + 4
I am new to iOS development.
How to understand what's causing issue? Please help me with any document or book that help me to learn solving this issues for future.
It seems like your app crashed in thread com.IPTV.TVLService.GuideProgramService and whether this thread is a custom thread or not?
Are you develop on tvOS?
There is something you should offer to make your question clear.

Crashed: com.apple.NSURLSession-work EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x001a00015ed6be80

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

Iphone Debugging

I am getting the below error for swift app i made for IOS. I had setup notification using this example. How do I debug this and know what the issue is?
Crashed: com.apple.UNSNotificationRegistrarConnection
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000013000001328
Crashed: com.apple.UNSNotificationRegistrarConnection
0 libobjc.A.dylib 0x180cf9b9c objc_msgSend + 28
1 UserNotificationServices 0x183038b54 __destroy_helper_block_27 + 40
2 libsystem_blocks.dylib 0x1811298e8 _Block_release + 156
3 libdispatch.dylib 0x1810cd47c _dispatch_client_callout + 16
4 libdispatch.dylib 0x1810d94c0 _dispatch_queue_drain + 864
5 libdispatch.dylib 0x1810d0f80 _dispatch_queue_invoke + 464
6 libdispatch.dylib 0x1810cd47c _dispatch_client_callout + 16
7 libdispatch.dylib 0x1810db914 _dispatch_root_queue_drain + 2140
8 libdispatch.dylib 0x1810db0b0 _dispatch_worker_thread3 + 112
9 libsystem_pthread.dylib 0x1812e5470 _pthread_wqthread + 1092
10 libsystem_pthread.dylib 0x1812e5020 start_wqthread + 4

App crashes in the thread named com.apple.CFURLCACHE_work_queue

My app crashed in the thread named com.apple.CFURLCACHE_work_queue and the crash logs doesn't seem to provide any clues for me to find a bug or mistake =(
Thread 10 name: Dispatch queue: com.apple.CFURLCACHE_work_queue
Thread 10 Crashed:
0 libsystem_kernel.dylib 0x32e93350 __pthread_kill + 8
1 libsystem_c.dylib 0x3b04011e pthread_kill + 54
2 libsystem_c.dylib 0x3b07c96e abort + 90
3 libc++abi.dylib 0x343ebd4a abort_message + 70
4 libc++abi.dylib 0x343e8ff4 default_terminate() + 20
5 libobjc.A.dylib 0x3559fa74 _objc_terminate() + 144
6 libc++abi.dylib 0x343e9078 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x343e9110 std::terminate() + 16
8 libc++abi.dylib 0x343ea50e __cxa_throw + 118
9 libobjc.A.dylib 0x3559f9ba objc_exception_throw + 90
10 Foundation 0x34d42b60 _NSOutOfMemoryErrorHandler + 56
11 CoreFoundation 0x3725130a __CFDataHandleOutOfMemory + 90
12 CoreFoundation 0x37251458 __CFDataGrow + 288
13 CoreFoundation 0x371d6134 CFDataReplaceBytes + 360
14 CoreFoundation 0x371e3a9a CFDataAppendBytes + 82
15 CFNetwork 0x33150438 CopyAllDataFromDataArray(__CFArray const*) + 104
16 CFNetwork 0x331509ae __CFURLCache::ExecuteSQLInsert(_CFCachedURLResponse const*, __CFString const*, _CFURLRequest const*) + 370
17 CFNetwork 0x3314ec62 __CFURLCache::AddCachedResponseForRequest(__CFURLCacheNode*, _CFCachedURLResponse const*, _CFURLRequest const*) + 58
18 CFNetwork 0x3314eab8 __CFURLCache::ProcessCacheTasks0(bool) + 140
19 CFNetwork 0x3314ea1c __CFURLCache::ProcessCacheTasks(bool) + 32
20 CFNetwork 0x3314e8f0 __CFURLCache::_CFURLCacheTimerCallback0() + 280
21 CFNetwork 0x3314e7c8 __CFURLCache::_CFURLCacheTimerCallback(void*) + 28
22 libdispatch.dylib 0x35f86134 _dispatch_source_invoke$VARIANT$mp + 248
23 libdispatch.dylib 0x35f83e8e _dispatch_queue_drain$VARIANT$mp + 78
24 libdispatch.dylib 0x35f83dbc _dispatch_queue_invoke$VARIANT$mp + 36
25 libdispatch.dylib 0x35f8491a _dispatch_root_queue_drain + 182
26 libdispatch.dylib 0x35f84abc _dispatch_worker_thread2 + 80
27 libsystem_c.dylib 0x3b017a0e _pthread_wqthread + 358
28 libsystem_c.dylib 0x3b0178a0 start_wqthread + 4
any idea or clue of why this happens?
I guess it has something to do with NSURLCache, but I don't manipulate or even create that object in my app.
I'm using Xcode 4.5 GM - I know it's not publicly released yet - and AFNetworking 1.0RC3 for network communication and downloading image data
From the look of things in numbers 10 and 11, it ran out of memory and threw an exception, maybe as part of some kind of assertion.
You will probably find exception information in the console log for the device. If you can connect your device to your Mac, you can access this data in Xcode. Devices don't keep much console data, so it is best to get the log very soon after encountering the error.

Resources