SDWebImage crash randomly - ios

Im using SDImage in my project, when checking the crash log, this SDImage crashed at
[SDWebImageDownloaderOperation start] func, here are logs, pls help, it wastes my 2 days.
Thread 12:
0 libsystem_kernel.dylib 0x3c383eb4 mach_msg_trap + 20
1 CoreFoundation 0x34143045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x34141da3 __CFRunLoopRun + 883
3 CoreFoundation 0x340b4ebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x340b4d49 CFRunLoopRunInMode + 105
5 demo 0x0022a683 -[SDWebImageDownloaderOperation start] + 471
6 Foundation 0x34a73be3 __block_global_6 + 103
7 libdispatch.dylib 0x3c2ae11f _dispatch_call_block_and_release + 11
8 libdispatch.dylib 0x3c2b2961 _dispatch_root_queue_drain + 253
9 libdispatch.dylib 0x3c2b2ac1 _dispatch_worker_thread2 + 85
10 libsystem_c.dylib 0x3c2e2a11 _pthread_wqthread + 361
another log
Thread 9 Crashed:
0 CoreFoundation 0x35418b9c CFEqual + 24
1 CFNetwork 0x34d60469 URLConnectionClient::getRequestForTransmission(unsigned char, CFURLResponse*, _CFURLRequest const*, __CFError**) + 205
2 CFNetwork 0x34cc666d URLConnectionClient::_clientWillSendRequest(_CFURLRequest const*, _CFURLResponse*, URLConnectionClient::ClientConnectionEventQueue*) + 157
3 CFNetwork 0x34cc64c5 URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo*, long) + 457
4 CFNetwork 0x34cc61a3 URLConnectionClient::processEvents() + 107
5 CFNetwork 0x34cc60d9 MultiplexerSource::perform() + 157
6 CoreFoundation 0x354a3ad3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 15
7 CoreFoundation 0x354a329f __CFRunLoopDoSources0 + 215
8 CoreFoundation 0x354a2045 __CFRunLoopRun + 653
9 CoreFoundation 0x354254a5 CFRunLoopRunSpecific + 301
10 CoreFoundation 0x3542536d CFRunLoopRunInMode + 105
11 demo 0x001d1683 -[SDWebImageDownloaderOperation start] + 471
12 Foundation 0x34fe2793 __block_global_6 + 103
13 libdispatch.dylib 0x3435cc59 _dispatch_call_block_and_release + 13
14 libdispatch.dylib 0x3435f817 _dispatch_worker_thread2 + 259
15 libsystem_c.dylib 0x3288cdfb _pthread_wqthread + 295
another crash on cancel
Thread 0 Crashed:
0 demo 0x001a58f2 -[SDWebImageDownloaderOperation cancel] + 130
1 demo 0x001a88df -[SDWebImageCombinedOperation cancel] + 179
2 demo 0x001aaf71 -[UIImageView(WebCache) cancelCurrentImageLoad] + 49
my log help~

Related

Crashed: NSOperationQueue 0x11f10ac10 (QOS: UNSPECIFIED) SIGABRT ABORT 0x00000001b5efe84c

I'm getting a crash, reported in Crashlytics, and I have no idea how to reproduce the error, It happens randomly so it's hard to debug it with Xcode. Any ideas?
Crashed: NSOperationQueue 0x11f10ac10 (QOS: UNSPECIFIED)
0 libsystem_kernel.dylib 0x1b5efe84c __pthread_kill + 8
1 libsystem_pthread.dylib 0x1d211a9e8 pthread_kill + 212
2 libsystem_c.dylib 0x1934bd8f4 abort + 100
3 libsystem_malloc.dylib 0x199b73030 _malloc_put + 554
4 libsystem_malloc.dylib 0x199b732a4 malloc_zone_error + 100
5 libsystem_malloc.dylib 0x199b732e0 nanov2_allocate_from_block$VARIANT$mp.cold.1 + 36
6 libsystem_malloc.dylib 0x199b58498 nanov2_find_block_and_allocate$VARIANT$mp + 510
7 libsystem_malloc.dylib 0x199b57710 nanov2_allocate$VARIANT$mp + 124
8 libsystem_malloc.dylib 0x199b57644 nanov2_malloc$VARIANT$mp + 60
9 libsystem_malloc.dylib 0x199b689ac _malloc_zone_malloc + 144
10 CoreFoundation 0x18a6b7c14 -[__NSArrayM insertObject:atIndex:] + 264
11 CoreFoundation 0x18a756fdc __CFSetApplyFunction_block_invoke + 24
12 CoreFoundation 0x18a7f86f0 CFBasicHashApply + 136
13 CoreFoundation 0x18a756f9c CFSetApplyFunction + 192
14 CoreFoundation 0x18a747e50 CFRunLoopCopyAllModes + 136
15 CoreFoundation 0x18a74c4ec __CFRunLoopSourceRemoveFromRunLoop + 64
16 CoreFoundation 0x18a6ebab4 __CFBagApplyFunction_block_invoke + 48
17 CoreFoundation 0x18a7f86f0 CFBasicHashApply + 136
18 CoreFoundation 0x18a6eba5c CFBagApplyFunction + 84
19 CoreFoundation 0x18a74c450 CFRunLoopSourceInvalidate + 208
20 Realm 0x102993634 realm::util::EventLoopSignal<realm::_impl::WeakRealmNotifier::Callback>::~EventLoopSignal() + 24
21 Realm 0x102888c70 realm::_impl::RealmCoordinator::unregister_realm(realm::Realm*) + 388
22 Realm 0x10295a858 realm::Realm::~Realm() + 40
23 Realm 0x10284c210 std::__1::shared_ptr<realm::_impl::CollectionNotifier>::~shared_ptr() + 64
24 libobjc.A.dylib 0x19eb37ae0 object_cxxDestructFromClass(objc_object*, objc_class*) + 112
25 libobjc.A.dylib 0x19eb4d8a4 objc_destructInstance + 88
26 libobjc.A.dylib 0x19eb546ec _objc_rootDealloc + 52
27 Realm 0x10292bcac -[RLMRealm dealloc] + 92
28 libobjc.A.dylib 0x19eb57574 AutoreleasePoolPage::releaseUntil(objc_object**) + 200
29 libobjc.A.dylib 0x19eb57450 objc_autoreleasePoolPop + 208
30 libswiftObjectiveC.dylib 0x1aea1bf4c autoreleasepool<A>(invoking:) + 68
31 Foresight 0x100eaad74 specialized BloodPressureDataManager.getUnSyncedReadings(getHistoricData:fromAppleHealth:) + 441 (BloodPressure.swift:441)
32 Foresight 0x100fccd14 specialized CloudDataManager.syncAllVitalData(withType:syncHistoricalData:fromAppleHealth:_:) + 408 (VitalDataManager.swift:408)
33 Foresight 0x100dba408 SyncAllVitalOperation.main() + 4310885384 (<compiler-generated>:4310885384)
34 Foresight 0x100dba560 #objc SyncAllVitalOperation.main() + 4310885728 (<compiler-generated>:4310885728)
35 Foresight 0x101340af4 #objc SynchronizationOperation.start() + 4316678900 (<compiler-generated>:4316678900)
36 Foundation 0x18ba84f98 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 20
37 Foundation 0x18ba84a64 __NSOQSchedule_f + 180
38 libdispatch.dylib 0x18a3b775c _dispatch_block_async_invoke2 + 104
39 libdispatch.dylib 0x18a408280 _dispatch_client_callout + 16
40 libdispatch.dylib 0x18a3ad390 _dispatch_continuation_pop$VARIANT$mp + 412
41 libdispatch.dylib 0x18a3acad4 _dispatch_async_redirect_invoke + 596
42 libdispatch.dylib 0x18a3b9f3c _dispatch_root_queue_drain + 376
43 libdispatch.dylib 0x18a3ba704 _dispatch_worker_thread2 + 124
44 libsystem_pthread.dylib 0x1d211b568 _pthread_wqthread + 212
45 libsystem_pthread.dylib 0x1d211e874 start_wqthread + 8
Please help me how to reproduce and debug this type of crash and What i need to check in my code related to crash.

iOS App crashes on ICMPushNotificationManager classesToSwizzle

I am getting crashlogs on crashlytics about number of my users are facing this crash but i couldn't be able to found the solution. If any one can help that will be greatful below are stack trace i am getting on crashlytics
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x239559dd0 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x239553924 abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x2395538c0 abort_with_payload_wrapper_internal + 26
3 libobjc.A.dylib 0x238b97478 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112
4 libobjc.A.dylib 0x238b973d0 __objc_error + 38
5 libobjc.A.dylib 0x238ba4218 class_conformsToProtocol + 448
6 GrocerApp 0x100bd102c +[ICMPushNotificationManager classesToSwizzle] + 1366376
7 GrocerApp 0x100bd02a0 +[ICMPushNotificationManager swizzlePushNotificationClasses] + 1362908
8 libdispatch.dylib 0x2393fd7d4 _dispatch_client_callout + 16
9 libdispatch.dylib 0x2393a0eb8 _dispatch_once_callout + 28
10 GrocerApp 0x100bd0230 +[ICMPushNotificationManager swizzleReceiveRemoteNotifications] + 1362796
11 GrocerApp 0x100b7bf18 +[ICMBridge registerDeviceToken:] + 1017940
12 GrocerApp 0x100421574 specialized AppDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:) + 4308604276 (<compiler-generated>:4308604276)
13 GrocerApp 0x10041d310 #objc AppDelegate.application(_:didRegisterForRemoteNotificationsWithDeviceToken:) + 4308587280 (<compiler-generated>:4308587280)
14 GrocerApp 0x100c2f8a4 -[OneSignalAppDelegate oneSignalDidRegisterForRemoteNotifications:deviceToken:] + 1753568
15 libdispatch.dylib 0x2393fca38 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x2393fd7d4 _dispatch_client_callout + 16
17 libdispatch.dylib 0x2393ab008 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
18 CoreFoundation 0x239950b20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
19 CoreFoundation 0x23994ba58 __CFRunLoopRun + 1924
20 CoreFoundation 0x23994afb4 CFRunLoopRunSpecific + 436
21 GraphicsServices 0x23bb4c79c GSEventRunModal + 104
22 UIKitCore 0x2661acc38 UIApplicationMain + 212
23 GrocerApp 0x100397fd0 main + 29 (AppDelegate.swift:29)
24 libdyld.dylib 0x23940e8e0 start + 4

MRAVOutputContext crash ios 11 beta

Is it a known issue to be fixed by apple final non-beta ios 11 release?
Where can i find the MRAVOutputContext reference?
From Crashlytics crash report: (Crash reproduces while starting Bluetooth audio, but cannot reproduce it while in debug)
Crashed: com.apple.coremedia.routingcontext.xpc.notifications
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000fa4a1beb8
#23. Crashed: com.apple.coremedia.routingcontext.xpc.notifications
0 libobjc.A.dylib 0x1856f4430 objc_msgSend + 16
1 MediaRemote 0x191826618 -[MRAVOutputContext _outputDevicesDidChangeNotification:] + 296
2 CoreFoundation 0x18615e12c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
3 CoreFoundation 0x18615d6cc _CFXRegistrationPost + 420
4 CoreFoundation 0x18615d430 ___CFXNotificationPost_block_invoke + 60
5 CoreFoundation 0x1861da9f4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1408
6 CoreFoundation 0x1860943e0 _CFXNotificationPost + 380
7 Foundation 0x186ab1498 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
8 AVFoundation 0x18ba5beb4 AVCMNotificationDispatcherCallback + 200
9 CoreFoundation 0x18615e12c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
10 CoreFoundation 0x18615d6cc _CFXRegistrationPost + 420
11 CoreFoundation 0x18615d430 ___CFXNotificationPost_block_invoke + 60
12 CoreFoundation 0x1861da9f4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1408
13 CoreFoundation 0x1860943e0 _CFXNotificationPost + 380
14 CoreFoundation 0x1860b758c CFNotificationCenterPostNotification + 132
15 CoreMedia 0x1892c6114 CMNotificationCenterPostNotification + 124
16 CoreMedia 0x1893c6828 __figXPC_HandleNotificationMessage_block_invoke + 164
17 libdispatch.dylib 0x185b51088 _dispatch_call_block_and_release + 24
18 libdispatch.dylib 0x185b51048 _dispatch_client_callout + 16
19 libdispatch.dylib 0x185b5ae48 _dispatch_queue_serial_drain$VARIANT$mp + 528
20 libdispatch.dylib 0x185b5b7d8 _dispatch_queue_invoke$VARIANT$mp + 340
21 libdispatch.dylib 0x185b5c200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
22 libdispatch.dylib 0x185b644a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
23 libsystem_pthread.dylib 0x185df6fe0 _pthread_wqthread + 932
Update: Was fixed in the official release

SIGABRT ABORT in QuartzCore

I'm seeing crashlogs being generated containing the following call stack
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x38a0a1f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x38a74797 pthread_kill + 58
2 libsystem_c.dylib 0x389bafdd abort + 76
3 libsystem_malloc.dylib 0x38a32d67 free + 382
4 libobjc.A.dylib 0x3844e3ad object_dispose + 20
5 UIKit 0x305511ef -[UIViewAnimationState dealloc] + 174
6 libobjc.A.dylib 0x38456b6b objc_object::sidetable_release(bool) + 174
7 CoreFoundation 0x2dc2d93d CFRelease + 556
8 QuartzCore 0x30195635 CA::release_objects(X::List<void const*>*) + 16
9 QuartzCore 0x3019aad7 -[CAAnimation dealloc] + 54
10 libobjc.A.dylib 0x38456b6b objc_object::sidetable_release(bool) + 174
11 CoreFoundation 0x2dc2d93d CFRelease + 556
12 QuartzCore 0x3019d117 CA::Layer::run_animation_callbacks(void*) + 238
13 libdispatch.dylib 0x3892f81f _dispatch_client_callout + 22
14 libdispatch.dylib 0x3893649f _dispatch_main_queue_callback_4CF$VARIANT$mp + 278
15 CoreFoundation 0x2dcc78f1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x2dcc61c5 __CFRunLoopRun + 1300
17 CoreFoundation 0x2dc30f0f CFRunLoopRunSpecific + 522
18 CoreFoundation 0x2dc30cf3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x32b52663 GSEventRunModal + 138
20 UIKit 0x3057c16d UIApplicationMain + 1136
21 Domino M 0x000c125f main (main.m:14)
Other threads only show the AFNetworking library doing something.
How can I find and fix issues like this (the ones that don't seem to have anything to do with self written code)?

Strange CFNetwork crash in iOS7.1 - possibly AFNetworking Related

I have started receiving details of a crash that I have not seen before, and it only appears to have started happening since the 7.1 update.
The exact line from the stack is :
CFNetwork
___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
and the entire trace is here:
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x3a1b81f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3a222797 pthread_kill + 58
2 libsystem_c.dylib 0x3a168fdd abort + 76
3 libc++abi.dylib 0x39497cd7 abort_message + 74
4 libc++abi.dylib 0x394af6f3 __cxa_pure_virtual + 18
5 CFNetwork 0x2ec994bf ___ZN14CoreStreamBase34_streamSetEventAndScheduleDeliveryEmh_block_invoke + 30
6 CoreFoundation 0x2ef37981 CFArrayApplyFunction + 36
7 CFNetwork 0x2ec007fb RunloopBlockContext::perform() + 182
8 CFNetwork 0x2ec006b9 MultiplexerSource::perform() + 220
9 CFNetwork 0x2ec0054d MultiplexerSource::_perform(void*) + 48
10 CoreFoundation 0x2efcf25b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
11 CoreFoundation 0x2efce72b __CFRunLoopDoSources0 + 206
12 CoreFoundation 0x2efccf1f __CFRunLoopRun + 622
13 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
14 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
15 GraphicsServices 0x33e3e663 GSEventRunModal + 138
16 UIKit 0x3188316d UIApplicationMain + 1136
The only other thread i can see that is running is from AFNetworking, as this would be the only thing I would imagine is using CFNetworking:
Thread : AFNetworking (com.apple.main-thread)
0 libsystem_kernel.dylib 0x3a1a5a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a1a5859 mach_msg + 48
2 CoreFoundation 0x2efce89b __CFRunLoopServiceMachPort + 154
3 CoreFoundation 0x2efccfc1 __CFRunLoopRun + 784
4 CoreFoundation 0x2ef37f4f CFRunLoopRunSpecific + 522
5 CoreFoundation 0x2ef37d33 CFRunLoopRunInMode + 106
6 Foundation 0x2f92a1eb -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 254
7 Foundation 0x2f97b0a1 -[NSRunLoop(NSRunLoop) run] + 80
8 **** 0x0011d35f +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:148)
9 Foundation 0x2f9eca5f __NSThread__main__ + 1062
10 libsystem_pthread.dylib 0x3a221919 _pthread_body + 140
11 libsystem_pthread.dylib 0x3a22188b _pthread_start + 102
Has anyone else experienced issues with this? I have been over to the AFN github but cant see anyone else reporting this issue.
Thanks

Resources