Random crash in iOS at AFQueryStringPairsFromKeyAndValue - ios

Error Message
0 Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000c raw
0 libobjc.A.dylib objc_msgSend + 5 performSelector:withObject:
7 UIKit -[UIViewController dealloc] + 1798
8 Cxxxxxx AFQueryStringPairsFromKeyAndValue + 7759031
9 libsystem_blocks.dylib _Block_release + 216
10 libdispatch.dylib _dispatch_after_timer_callback + 66
11 libdispatch.dylib _dispatch_client_callout + 22
12 libdispatch.dylib _dispatch_source_latch_and_call + 2042
13 libdispatch.dylib _dispatch_source_invoke + 738
14 libdispatch.dylib _dispatch_main_queue_callback_4CF + 394
15 CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation __CFRunLoopRun + 1590
17 CoreFoundation CFRunLoopRunSpecific + 516
18 CoreFoundation CFRunLoopRunInMode + 108
19 GraphicsServices GSEventRunModal + 160
20 UIKit UIApplicationMain + 144
21 Cxxxxxxx main.m line 15 main
22 libdyld.dylib start + 2

Related

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

Fatal Exception: NSInternalInconsistencyException Crash on iOS

Been trying to recreate and research about this issue for days now and I'm not going anywhere. Here's the stack trace. Can anyone shed light on to what's happening? I take that it has something to do with remote notifications. The issue started a while back when I installed the firebase sdk. Back then it wasn't a lot but now, crashes seem to happen more often than usual.
Fatal Exception: NSInternalInconsistencyException
this request has been neutered - you can't call -sendResponse: twice nor after encoding it
+[_CFXNotificationTokenRegistration keyCallbacks]
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1c2726ab8 __exceptionPreprocess
1 libobjc.A.dylib 0x1c192bd00 objc_exception_throw
2 CoreFoundation 0x1c263be90 +[_CFXNotificationTokenRegistration keyCallbacks]
3 Foundation 0x1c3117cfc -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 BaseBoard 0x1c4f2e664 __40-[BSAction sendResponse:withCompletion:]_block_invoke
5 libdispatch.dylib 0x1c2135888 _dispatch_client_callout
6 libdispatch.dylib 0x1c2142404 _dispatch_lane_barrier_sync_invoke_and_complete
7 BaseBoard 0x1c4ee2b84 -[BSAction sendResponse:withCompletion:]
8 UIKitCore 0x1ef72bf84 -[UIHandleRemoteNotificationAction sendResponse:]
9 UIKitCore 0x1efb69028 __91-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:]_block_invoke_3.2678
10 UIKitCore 0x1efb69b4c __125-[UIApplication _updateStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:updateSnapshot:canvas:]_block_invoke_2
11 libdispatch.dylib 0x1c2134308 _dispatch_call_block_and_release
12 libdispatch.dylib 0x1c2135888 _dispatch_client_callout
13 libdispatch.dylib 0x1c214173c _dispatch_main_queue_callback_4CF
14 CoreFoundation 0x1c26b6734 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
15 CoreFoundation 0x1c26b13e4 __CFRunLoopRun
16 CoreFoundation 0x1c26b0964 CFRunLoopRunSpecific
17 GraphicsServices 0x1c48f1d8c GSEventRunModal
18 UIKitCore 0x1efb51758 UIApplicationMain
19 XXXX 0x1023e1480 main + 26 (AppDelegate.swift:26)
20 libdyld.dylib 0x1c216cfd8 start
Crashed: com.twitter.crashlytics.ios.exception
0 XXXX 0x102692000 CLSProcessRecordAllThreads + 4305018880
1 XXXX 0x1026923e8 CLSProcessRecordAllThreads + 4305019880
2 XXXX 0x102681c60 CLSHandler + 4304952416
3 XXXX 0x102690604 __CLSExceptionRecord_block_invoke + 4305012228
4 libdispatch.dylib 0x1c2135888 _dispatch_client_callout + 20
5 libdispatch.dylib 0x1c2142404 _dispatch_lane_barrier_sync_invoke_and_complete + 60
6 XXXX 0x102690070 CLSExceptionRecord + 4305010800
7 XXXX 0x10268fe9c CLSExceptionRecordNSException + 4305010332
8 XXXX 0x10268fa90 CLSTerminateHandler() + 4305009296
9 libc++abi.dylib 0x1c19209cc std::__terminate(void (*)()) + 20
10 libc++abi.dylib 0x1c1920a40 std::terminate() + 60
11 libobjc.A.dylib 0x1c192c09c _destroyAltHandlerList + 14
12 libdispatch.dylib 0x1c213589c _dispatch_client_callout + 40
13 libdispatch.dylib 0x1c2142404 _dispatch_lane_barrier_sync_invoke_and_complete + 60
14 BaseBoard 0x1c4ee2b84 -[BSAction sendResponse:withCompletion:] + 148
15 UIKitCore 0x1ef72bf84 -[UIHandleRemoteNotificationAction sendResponse:] + 148
16 UIKitCore 0x1efb69028 __91-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:]_block_invoke_3.2678 + 76
17 UIKitCore 0x1efb69b4c __125-[UIApplication _updateStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:updateSnapshot:canvas:]_block_invoke_2 + 264
18 libdispatch.dylib 0x1c2134308 _dispatch_call_block_and_release + 32
19 libdispatch.dylib 0x1c2135888 _dispatch_client_callout + 20
20 libdispatch.dylib 0x1c214173c _dispatch_main_queue_callback_4CF + 1012
21 CoreFoundation 0x1c26b6734 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
22 CoreFoundation 0x1c26b13e4 __CFRunLoopRun + 1888
23 CoreFoundation 0x1c26b0964 CFRunLoopRunSpecific + 452
24 GraphicsServices 0x1c48f1d8c GSEventRunModal + 108
25 UIKitCore 0x1efb51758 UIApplicationMain + 216
26 XXXX 0x1023e1480 main + 26 (AppDelegate.swift:26)
27 libdyld.dylib 0x1c216cfd8 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)?

iAd Crash Report

I am seeing the following crash log in Crashlytics with an iOS app. It is certainly infrequent, and I have been unable to replicate, but it is very annoying.
Anyone able to suggest what this is likely linked to?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x000000019548c0b4 objc_retain + 20
1 libsystem_blocks.dylib 0x0000000195b0dbf8 _Block_object_assign + 320
2 libsystem_blocks.dylib 0x0000000195b0d738 _Block_copy_internal + 384
3 UIKit 0x0000000189b49988 +[_UIAsyncInvocation invocationWithBlock:] + 84
4 UIKit 0x0000000189b2e378 +[_UIRemoteViewControllerConnectionRequest __requestRemoteViewController:service:fromServiceWithBundleIdentifier:serializedAppearanceCustomizations:legacyAppearance:exportedHostingObject:serviceViewControllerDeputyInterface:connectionHandler:] + 1320
5 UIKit 0x0000000189b2e7a8 +[_UIRemoteViewControllerConnectionRequest requestViewController:fromServiceWithBundleIdentifier:serializedAppearanceCustomizations:legacyAppearance:exportedHostingObject:serviceViewControllerDeputyInterface:connectionHandler:] + 72
6 UIKit 0x0000000189b30b00 +[_UIRemoteViewController _requestViewController:traitCollection:fromServiceWithBundleIdentifier:service:connectionHandler:] + 528
7 iAd 0x000000018a12c130 +[ADAdSpaceRemoteViewController adSpaceRemoteViewControllerWithCompletionHandler:] + 96
8 iAd 0x000000018a126908 -[ADAdSpace _requestServiceAdSpace] + 228
9 iAd 0x000000018a1264ac __30-[ADAdSpace initForRecipient:]_block_invoke + 36
10 libdispatch.dylib 0x0000000195ab93ac _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x0000000195ab936c _dispatch_client_callout + 16
12 libdispatch.dylib 0x0000000195abd980 _dispatch_main_queue_callback_4CF + 932
13 CoreFoundation 0x0000000184cd5fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x0000000184cd404c __CFRunLoopRun + 1492
15 CoreFoundation 0x0000000184c010a4 CFRunLoopRunSpecific + 396
16 GraphicsServices 0x000000018dda35a4 GSEventRunModal + 168
17 UIKit 0x00000001895363c0 UIApplicationMain + 1488
18 xxxxxxxx 0x00000001000d6380 main (main.m:16)
19 libdyld.dylib 0x0000000195ae2a08 start + 4

Resources