Fabric Crash com.apple.main-thread specialized AppDelegate - ios

Anyone have any idea about the crash
Crashed: com.apple.main-thread
0 0x7ac30 specialized AppDelegate.updateUserSubscriptionStatus() + 4374539312 (AppDelegate.swift:4374539312)
1 0xb4a9c closure #1 in SubscribeViewController.handlePurchase(purchase:) + 4374776476 (<compiler-generated>:4374776476)
2 0x58310 thunk for #escaping #callee_guaranteed () -> () + 4374397712 (<compiler-generated>:4374397712)
3 libdispatch.dylib 0x1e6c _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x3a30 _dispatch_client_callout + 20
5 libdispatch.dylib 0x11f48 _dispatch_main_queue_drain + 928
6 libdispatch.dylib 0x11b98 _dispatch_main_queue_callback_4CF + 44
7 CoreFoundation 0x51800 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
8 CoreFoundation 0xb704 __CFRunLoopRun + 2532
9 CoreFoundation 0x1ebc8 CFRunLoopRunSpecific + 600
10 GraphicsServices 0x1374 GSEventRunModal + 164
11 UIKitCore 0x514b58 -[UIApplication _run] + 1100
12 UIKitCore 0x296090 UIApplicationMain + 364
13 0x14ad4 main + 47 (AppDelegate.swift:47)
14 ??? 0x10129dda4 (Missing)

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

How can I interpret this stacktrace

I am seeing some crashes that I cannot properly read.
Background: The app has a react native part. Below the regular react native objc code with some additional modules. The there is lot of custom objc and swift code. And on the very bottom we have a c/c++ engine doing their voodoo.
Note: Those stack traces are taken from Firebase / Crashlytics. Are these logs looking like DSYM files are missing? Or am I just not able to read them?
First stacktrace
Crashed: com.apple.main-thread
0 Objc/C++Part 0x104052a6c Engine::setTask(Task const*) + 408
1 SwiftPart 0x102dc14a8 __swift_memcpy2_1 + 3268
2 SwiftPart 0x102d89c2c globalinit_33_D059BB15480DF7E417659EA3E0158837_func83 + 2880
3 SwiftPart 0x102dc6a28 globalinit_33_164233930FF8443B67F99609B74287FF_func109 + 496
4 SwiftPart 0x102dc2ff4 globalinit_33_F9D0611596767A886B653DD36AB555FE_func108 + 2208
5 Foundation 0x196131050 __NSFireTimer + 64
6 CoreFoundation 0x195cc5e00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
7 CoreFoundation 0x195cc5b3c __CFRunLoopDoTimer + 880
8 CoreFoundation 0x195cc520c __CFRunLoopDoTimers + 276
9 CoreFoundation 0x195cc0348 __CFRunLoopRun + 1920
10 CoreFoundation 0x195cbf8a0 CFRunLoopRunSpecific + 464
11 GraphicsServices 0x19fc17328 GSEventRunModal + 104
12 UIKitCore 0x199db0740 UIApplicationMain + 1936
13 MainApplication 0x1023390e4 main + 16 (main.m:16)
14 libdyld.dylib 0x195b4a360 start + 4
What does the line 2 SwiftPart 0x102d89c2c globalinit_33_D059BB15480DF7E417659EA3E0158837_func83 + 2880 mean for example? How can I find out what line Engine::setTask(Task const*) + 408 exactly means?
Second stacktrace
Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x1aba7b440 swift_isUniquelyReferenced_nonNull_native + 34
1 MainApplication 0x100bb6f60 thunk for #escaping #callee_guaranteed () -> () + 4309315424 (<compiler-generated>:4309315424)
2 libdispatch.dylib 0x19e18b7dc _dispatch_block_async_invoke2 + 104
3 libdispatch.dylib 0x19e1d9184 _dispatch_client_callout + 16
4 libdispatch.dylib 0x19e18b190 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1044
5 CoreFoundation 0x19e48a5e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
6 CoreFoundation 0x19e4855d8 __CFRunLoopRun + 2004
7 CoreFoundation 0x19e484adc CFRunLoopRunSpecific + 464
8 GraphicsServices 0x1a840a328 GSEventRunModal + 104
9 UIKitCore 0x1a257fae0 UIApplicationMain + 1936
10 MainApplication 0x100b310e4 main + 16 (main.m:16)
11 libdyld.dylib 0x19e30e360 start + 4
Same here. How to read this?

NSInvalidArgumentException: -[MKMapItem encodeWithCoder:]: unrecognized selector sent to instance 0x17034bfd0

I got a crash report, which is about unrecognized selector sent to instance when saving MKMapItem into Data Store. According to MKMapItem documents(MKMapItem Document), it conforms to NSSecureCoding, which means that it should have no problem to save it into an NSManagedObject instance. it looks fine on ios 11 version, as i didn't receive crash report from the device with this version. Also, I walkthrough the feature that possibly saving MKMapItem on my phone. the context does save the NKMapItem into data store and the feature is working. Since my phone is running IOS 11, so I am thinking it could be about the version system??
Please correct me if misunderstand something.
Here is the crash report.
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x181646fe0 __exceptionPreprocess + 124 (NSException.m:165)
1 libobjc.A.dylib 0x1800a8538 objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x18164def4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140 (NSObject.m:328)
3 CoreFoundation 0x18164af54 ___forwarding___ + 916 (NSForwarding.m:3126)
4 CoreFoundation 0x181546d4c _CF_forwarding_prep_0 + 92
5 Foundation 0x18209afd4 _encodeObject + 1176 (NSKeyedArchiver.m:873)
6 Foundation 0x1820a1e9c +[NSKeyedArchiver archivedDataWithRootObject:] + 168 (NSKeyedArchiver.m:421)
7 CoreData 0x18391ae28 -[NSSQLiteConnection execute] + 1952 (NSSQLiteConnection.m:4165)
8 CoreData 0x1839520e4 -[NSSQLiteConnection insertRow:] + 456 (NSSQLiteConnection.m:2966)
9 CoreData 0x183ae3df8 _writeChangesForSaveRequest + 824 (NSSQLCore_Functions.m:1561)
10 CoreData 0x183ae5584 _executeSaveChangesRequest + 388 (NSSQLCore_Functions.m:1622)
11 CoreData 0x183adb5f0 -[NSSQLSaveChangesRequestContext executeRequestUsingConnection:] + 44 (NSSQLSaveChangesRequestContext.m:103)
12 CoreData 0x1839f30c4 __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke + 256 (NSSQLConnectionManager.m:305)
13 libdispatch.dylib 0x1804fe9a0 _dispatch_client_callout + 16 (object.m:473)
14 libdispatch.dylib 0x18050bee0 _dispatch_barrier_sync_f_invoke + 84 (queue.c:3446)
15 CoreData 0x1839f2f64 -[NSSQLDefaultConnectionManager handleStoreRequest:] + 208 (NSSQLConnectionManager.m:290)
16 CoreData 0x183ab5824 -[NSSQLCoreDispatchManager routeStoreRequest:] + 272 (NSSQLCoreDispatchManager.m:56)
17 CoreData 0x183a2075c -[NSSQLCore dispatchRequest:withRetries:] + 236 (NSSQLCore.m:2726)
18 CoreData 0x183a1c578 -[NSSQLCore processSaveChanges:forContext:] + 200 (NSSQLCore.m:1569)
19 CoreData 0x183920f10 -[NSSQLCore executeRequest:withContext:error:] + 724 (NSSQLCore.m:1923)
20 CoreData 0x1839ff84c __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke + 3492 (NSPersistentStoreCoordinator.m:2820)
21 CoreData 0x1839f80f0 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 276 (NSPersistentStoreCoordinator.m:586)
22 CoreData 0x183920adc -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 408 (NSPersistentStoreCoordinator.m:2706)
23 CoreData 0x18394197c -[NSManagedObjectContext save:] + 2548 (NSManagedObjectContext.m:1419)
24 myappName 0x10009421c coreDataManager.saveContext() + 92 (coreDataManager.swift:514)
25 myappName 0x1000b5970 closure #1 in eventUpdateManager.observeValue(forKeyPath:of:change:context:) + 64 (eventUpdateManager.swift:138)
26 myappName 0x100124924 thunk for #escaping #callee_guaranteed () -> () + 36 (customAnimationController.swift:0)
27 libdispatch.dylib 0x1804fe9e0 _dispatch_call_block_and_release + 24 (init.c:963)
28 libdispatch.dylib 0x1804fe9a0 _dispatch_client_callout + 16 (object.m:473)
29 libdispatch.dylib 0x1805035e8 _dispatch_main_queue_callback_4CF + 996 (inline_internal.h:2431)
30 CoreFoundation 0x1815f50c8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1793)
31 CoreFoundation 0x1815f2ce4 __CFRunLoopRun + 1572 (CFRunLoop.c:3004)
32 CoreFoundation 0x181522da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
33 GraphicsServices 0x182f8d074 GSEventRunModal + 100 (GSEvent.c:2245)
34 UIKit 0x1877ddc9c UIApplicationMain + 208 (UIApplication.m:4089)
35 myappName 0x10005da1c main + 56 (receiptCollectionViewCell.swift:18)
36 libdyld.dylib 0x18053159c start + 4
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000180641014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018070b264 pthread_kill + 112 (pthread.c:1366)
2 libsystem_c.dylib 0x00000001805b59c4 abort + 140 (abort.c:91)
3 myappName 0x0000000100170ac8 uncaught_exception_handler + 72
4 CoreFoundation 0x0000000181647354 __handleUncaughtException + 628 (NSException.m:218)
5 libobjc.A.dylib 0x00000001800a8814 _objc_terminate() + 112 (objc-exception.mm:656)
6 myappName 0x0000000100155408 MSCrashesUncaughtCXXTerminateHandler() + 732 (MSCrashesCXXExceptionHandler.mm:171)
7 libc++abi.dylib 0x00000001800975d4 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:68)
8 libc++abi.dylib 0x00000001800971a8 __cxa_rethrow + 144 (cxa_exception.cpp:584)
9 libobjc.A.dylib 0x00000001800a86f8 objc_exception_rethrow + 44 (objc-exception.mm:559)
10 CoreData 0x0000000183941cb0 -[NSManagedObjectContext save:] + 3368 (NSManagedObjectContext.m:1548)
11 myappName 0x000000010009421c coreDataManager.saveContext() + 92 (coreDataManager.swift:514)
12 myappName 0x00000001000b5970 closure #1 in eventUpdateManager.observeValue(forKeyPath:of:change:context:) + 64 (eventUpdateManager.swift:138)
13 myappName 0x0000000100124924 thunk for #escaping #callee_guaranteed () -> () + 36 (customAnimationController.swift:0)
14 libdispatch.dylib 0x00000001804fe9e0 _dispatch_call_block_and_release + 24 (init.c:963)
15 libdispatch.dylib 0x00000001804fe9a0 _dispatch_client_callout + 16 (object.m:473)
16 libdispatch.dylib 0x00000001805035e8 _dispatch_main_queue_callback_4CF + 996 (inline_internal.h:2431)
17 CoreFoundation 0x00000001815f50c8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12 (CFRunLoop.c:1793)
18 CoreFoundation 0x00000001815f2ce4 __CFRunLoopRun + 1572 (CFRunLoop.c:3004)
19 CoreFoundation 0x0000000181522da4 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3113)
20 GraphicsServices 0x0000000182f8d074 GSEventRunModal + 100 (GSEvent.c:2245)
21 UIKit 0x00000001877ddc9c UIApplicationMain + 208 (UIApplication.m:4089)
22 myappName 0x000000010005da1c main + 56 (receiptCollectionViewCell.swift:18)
23 libdyld.dylib 0x000000018053159c start + 4

Random crash in iOS at AFQueryStringPairsFromKeyAndValue

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

Resources