I'm getting this issue in Crashlytics and, I really don't know what is causing it. It show me that the error is in my AppDelegate, 15 line, but there is where the class beginning:
class AppDelegate: UIResponder, UIApplicationDelegate {
This is the issue:
Fatal Exception: NSInvalidArgumentException Application tried to
present modally an active controller RN.ViewController: 0x1509e200.
Crashed: com.twitter.crashlytics.ios.exception
SIGABRT ABORT 0x00000000206e6c5c
0 RN CLSProcessRecordAllThreads + 986
1 RN CLSProcessRecordAllThreads + 986
2 RN CLSProcessRecordAllThreads + 722
3 RN CLSHandler + 30
4 RN __CLSExceptionRecord_block_invoke + 66
5 libdispatch.dylib_dispatch_client_callout + 22
6 libdispatch.dylib_dispatch_barrier_sync_f_invoke + 56
7 RN CLSExceptionRecord + 250
8 RN CLSExceptionRecordNSException + 614
9 RN CLSTerminateHandler() + 544
10 libc++abi.dylib std::__terminate(void (*)()) + 78
11
libc++abi.dylib__cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code,
_Unwind_Exception*) + 110
12 libobjc.A.dylib objc_exception_throw + 250
13 UIKit-[UIViewController _presentViewController:withAnimationController:completion:] + 4640
14 UIKit__62-[UIViewController presentViewController:animated:completion:]_block_invoke + 336
15 UIKit-[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 204
16 UIKit-[_UIViewControllerTransitionContext _runAlongsideCompletions] + 128
17 UIKit-[_UIViewControllerTransitionContext completeTransition:] + 108
18 UIKit-[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 540
19 UIKit-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 204
20 UIKit-[UIViewAnimationState animationDidStop:finished:] + 78
21 QuartzCore CA::Layer::run_animation_callbacks(void*) + 252
22 libdispatch.dylib_dispatch_client_callout + 22
23 libdispatch.dylib_dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
24 CoreFoundation CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
25 CoreFoundation __CFRunLoopRun + 1574
26 CoreFoundation CFRunLoopRunSpecific + 520
27 CoreFoundation CFRunLoopRunInMode + 108
28 GraphicsServices GSEventRunModal + 160
29 UIKit UIApplicationMain + 144
30 RN AppDelegate.swift line 15
Thank you for your help.
I had a similar issue with iOS 13. I ended up upgrading the Crashlytics library, since the Crashlytics team fixed a few crashes for iOS 13.
Anyone who has these crashes on iOS 13 devices should upgrade Crashlytics to at least version 3.14.0.
Related
Firebase Crashlytics shows a weird crash on iOS app, I can't understand what causing it:
Crashed: com.apple.main-thread
0 LogoQuizAC 0x10047f6a0 _hidden#18_ + 135 (__hidden#957_:135)
1 LogoQuizAC 0x1004771f4 _hidden#17_ + 96 (__hidden#454_:96)
2 LogoQuizAC 0x100477328 _hidden#20_ + 4304712488 (__hidden#456_:4304712488)
3 Foundation 0x19b094b20 __NSFireTimer + 68
4 CoreFoundation 0x199c79fa0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5 CoreFoundation 0x199c79ba0 __CFRunLoopDoTimer + 1064
6 CoreFoundation 0x199c78ffc __CFRunLoopDoTimers + 328
7 CoreFoundation 0x199c72ee4 __CFRunLoopRun + 1936
8 CoreFoundation 0x199c7221c CFRunLoopRunSpecific + 600
9 GraphicsServices 0x1b183e784 GSEventRunModal + 164
10 UIKitCore 0x19c6b2ee8 -[UIApplication _run] + 1072
11 UIKitCore 0x19c6b875c UIApplicationMain + 168
12 LogoQuizAC 0x1002b503c main + 20 (RLockedCell.swift:20)
13 libdyld.dylib 0x1999326b0 start + 4
How can I figure it out? any strategy of solving this issue?
Does anyone know what this crash is? I looked it up online and some results seemed to be similar but not the exact same. Here are the traces in Crashlytics:
Fatal Exception: NSInvalidArgumentException -[__NSCFString substringWithRange:]: Range {19, 9223372036854775788} out of bounds; string length 0
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x1b3d19344 __exceptionPreprocess
1 libobjc.A.dylib 0x1b3a2ecc0 objc_exception_throw
2 CoreFoundation 0x1b3d72550 -[__NSCFString characterAtIndex:].cold.1
3 CoreFoundation 0x1b3d72650 -[__NSCFString hasPrefix:].cold.1
4 CoreFoundation 0x1b3bf7c0c -[_CFXNotificationNameRegistration find:observer:matching:]
5 UIKitCore 0x1b7cfece8 -[UIResponder(UITextInput_Internal) _rangeOfText:endingAtPosition:]
6 UIKitCore 0x1b7c68ab0 -[UIKeyboardImpl applyAutocorrection:]
7 UIKitCore 0x1b7c5c9c0 -[UIKeyboardImpl acceptAutocorrection:executionContextPassingTIKeyboardCandidate:]
8 UIKitCore 0x1b7c5bd58 -[UIKeyboardImpl acceptAutocorrectionForWordTerminator:executionContextPassingTIKeyboardCandidate:]
9 UIKitCore 0x1b7c5bc10 __56-[UIKeyboardImpl acceptAutocorrectionForWordTerminator:]_block_invoke
10 UIKitCore 0x1b7c84188 -[UIKeyboardTaskEntry execute:]
11 UIKitCore 0x1b7c82af0 -[UIKeyboardTaskQueue continueExecutionOnMainThread]
12 UIKitCore 0x1b7c8317c -[UIKeyboardTaskQueue addAndReturnTask:]
13 UIKitCore 0x1b7c8366c -[UIKeyboardTaskQueue performSingleTask:]
14 UIKitCore 0x1b7c5bb1c -[UIKeyboardImpl acceptAutocorrectionForWordTerminator:]
15 UIKitCore 0x1b7c5eddc -[UIKeyboardImpl acceptAutocorrection]
16 UIKitCore 0x1b7c43bf0 -[UIKeyboardImpl setDelegate:force:]
17 UIKitCore 0x1b791bfa0 -[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:]
18 UIKitCore 0x1b791b7b8 -[UIInputResponderController _reloadInputViewsForResponder:]
19 UIKitCore 0x1b7e7037c -[UIResponder _finishResignFirstResponder]
20 UIKitCore 0x1b7e70470 -[UIResponder resignFirstResponder]
21 UIKitCore 0x1b82fb058 -[UIView(Hierarchy) _removeFirstResponderFromSubtree]
22 UIKitCore 0x1b82fb564 __UIViewWillBeRemovedFromSuperview
23 UIKitCore 0x1b82fb3ac -[UIView(Hierarchy) removeFromSuperview]
24 Flutter 0x100555898 (Missing)
25 Flutter 0x1005550cc (Missing)
26 Flutter 0x100554e40 (Missing)
27 Flutter 0x100a97e20 (Missing)
28 Flutter 0x1005675bc (Missing)
29 Flutter 0x10083a108 (Missing)
30 Flutter 0x100570af4 (Missing)
31 Flutter 0x1005727b0 (Missing)
32 CoreFoundation 0x1b3c953a8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
33 CoreFoundation 0x1b3c950c0 __CFRunLoopDoTimer
34 CoreFoundation 0x1b3c94740 __CFRunLoopDoTimers
35 CoreFoundation 0x1b3c8f538 __CFRunLoopRun
36 CoreFoundation 0x1b3c8ebc8 CFRunLoopRunSpecific
37 GraphicsServices 0x1be0705cc GSEventRunModal
38 UIKitCore 0x1b7e41744 UIApplicationMain
39 Runner 0x1000c9804 main + 6 (AppDelegate.swift:6)
40 libdyld.dylib 0x1b3b0b384 start
and Crashed: com.twitter.crashlytics.ios.exception
SIGABRT ABORT 0x00000001b3b00df0
Crashed: com.twitter.crashlytics.ios.exception
0 Runner 0x1000e2fec CLSProcessRecordAllThreads + 4303040492
1 Runner 0x1000e33d4 CLSProcessRecordAllThreads + 4303041492
2 Runner 0x1000d2c4c CLSHandler + 4302974028
3 Runner 0x1000e15f0 __CLSExceptionRecord_block_invoke + 4303033840
4 libdispatch.dylib 0x1b39bb5ac _dispatch_client_callout + 20
5 libdispatch.dylib 0x1b39c8360 _dispatch_lane_barrier_sync_invoke_and_complete + 60
6 Runner 0x1000e105c CLSExceptionRecord + 4303032412
7 Runner 0x1000e0e88 CLSExceptionRecordNSException + 4303031944
8 Runner 0x1000e0a7c CLSTerminateHandler() + 4303030908
9 libc++abi.dylib 0x1b3ad340c std::__terminate(void (*)()) + 20
10 libc++abi.dylib 0x1b3ad6160 __cxa_rethrow + 148
11 libobjc.A.dylib 0x1b3a2ee84 objc_exception_rethrow + 44
12 CoreFoundation 0x1b3c8ec38 CFRunLoopRunSpecific + 592
13 GraphicsServices 0x1be0705cc GSEventRunModal + 164
14 UIKitCore 0x1b7e41744 UIApplicationMain + 1936
15 Runner 0x1000c9804 main + 6 (AppDelegate.swift:6)
16 libdyld.dylib 0x1b3b0b384 start + 4
It seems to be something to do with an EditText (this crash happens on my login screen), but I can't figure out what. Only 1 device is affected - an XS Max on 13.6.1. No other XS Max devices or other devices on 13.6.1 are affected, just this one, maybe its due to a device configuration or something? Any ideas would be helpful.
On a side note, is there a way to get more readable logs from Crashlytics? Like maybe get the exact error Flutter would throw on a Debug app? I have no experience with Swift so the logs from iOS make no sense to me. Thanks!
Here is the crash report and the crash is only happening on iOS 13 beta version :-
Crashed: com.apple.main-thread
0 libsystem_pthread.dylib 0x1ae056484 pthread_get_qos_class_np + 8
1 Foundation 0x1ae664340 -[NSThread qualityOfService] + 80
2 Foundation 0x1ae626ebc -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 280
3 Foundation 0x1ae628df8 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:] + 116
4 libAXSpeechManager.dylib 0x1d0176884 -[AXSpeechManager isSpeaking] + 112
5 libAXSpeechManager.dylib 0x1d0171b60 -[AXSpeechManager _didBeginInterruption] + 52
6 libAXSpeechManager.dylib 0x1d0171f1c -[AXSpeechManager _handleAudioInterruption:] + 504
7 CoreFoundation 0x1ae2929ac __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
8 CoreFoundation 0x1ae2929f4 ___CFXRegistrationPost1_block_invoke + 64
9 CoreFoundation 0x1ae291d54 _CFXRegistrationPost1 + 368
10 CoreFoundation 0x1ae291a20 ___CFXNotificationPost_block_invoke + 104
11 CoreFoundation 0x1ae20dd38 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1416
12 CoreFoundation 0x1ae291370 _CFXNotificationPost + 1244
13 Foundation 0x1ae5edcf8 -[NSNotificationCenter postNotificationName:object:userInfo:] + 60
14 AVFAudio 0x1bac4603c -[AVAudioSession privateInterruptionWithInfo:] + 988
15 AVFAudio 0x1bac4880c (anonymous namespace)::HandlePropertyListenerCallback(unsigned int, objc_selector*, NSObject*) + 68
16 libdispatch.dylib 0x1ae004658 _dispatch_call_block_and_release + 24
17 libdispatch.dylib 0x1ae0051cc _dispatch_client_callout + 16
18 libdispatch.dylib 0x1adfe83e0 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996
19 CoreFoundation 0x1ae2b4c74 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
20 CoreFoundation 0x1ae2afc68 __CFRunLoopRun + 2004
21 CoreFoundation 0x1ae2af16c CFRunLoopRunSpecific + 464
22 GraphicsServices 0x1b80d9328 GSEventRunModal + 104
23 UIKitCore 0x1b2317f6c UIApplicationMain + 1936
24 Quickride 0x10086803c main + 37 (AppDelegate.swift:37)
25 libdyld.dylib 0x1ae13a424 start + 4
I have checked on various platforms for this issue. But have not found any solution related to it.Please provide any solution related to it.
It is crashing on app launch itself and this is the report it shows on fabric
I've the same issue on iOS 13 and it's my most serious crash on Crashlytics.
It occurs only in iOS 13 and above. Unfortunately also in the latest 13.1.2.
Starting by the iOS 13 release I've detected a strange warning when I put my app in background the debug console print Can't end BackgroundTask: no background task exists with identifier x, or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
Maybe the issues are related.
I have crash in Google Cast SDK.
Crashlytics logs:
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x189bd7014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x189c9f450 pthread_kill + 112
2 libsystem_c.dylib 0x189b4b400 abort + 140
3 libsystem_malloc.dylib 0x189c0d944 szone_size + 658
4 Security 0x18b019cdc SSLRecordServiceWriteQueueInternal + 132
5 Security 0x18b01cbf8 SSLServiceWriteQueue + 20
6 Security 0x18b01cd80 SSLWrite + 212
7 GoogleCast 0x1007c269c __46-[GCKNSSLSocket sslPrivateInitWithBufferSize:]_block_invoke.24 + 88
8 GoogleCast 0x1007ccf70 -[GCKBCircularByteBuffer drainWithBlock:] + 96
9 GoogleCast 0x1007c2f44 -[GCKNSSLSocket performCrypto] + 436
10 GoogleCast 0x1007c2944 -[GCKNSSLSocket sendBytes:length:partialOK:] + 64
11 GoogleCast 0x10070711c -[GCKCastSocket sendMessage:] + 200
12 GoogleCast 0x1006edd84 -[GCKCastDeviceConnector sendMessageWithNamespace:toDestinationID:stringPayload:binaryPayload:] + 516
13 GoogleCast 0x1006eee04 -[GCKCastDeviceConnector sendBinaryMessage:withNamespace:toDestinationID:] + 84
14 GoogleCast 0x1006e7cec -[GCKCastChannel sendBinaryMessage:toDestinationID:error:] + 144
15 GoogleCast 0x100711280 -[GCKDeviceAuthChannel sendChallengeWithPeerSecTrust:error:] + 376
16 GoogleCast 0x1006ef1d4 -[GCKCastDeviceConnector castSocket:didConnectWithPeerSecTrust:] + 532
17 GoogleCast 0x100707dc4 __50-[GCKCastSocket notifyDidConnectWithPeerSecTrust:]_block_invoke + 84
18 libdispatch.dylib 0x189a921fc _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x189a921bc _dispatch_client_callout + 16
20 libdispatch.dylib 0x189a96d68 _dispatch_main_queue_callback_4CF + 1000
21 CoreFoundation 0x18abb6810 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
22 CoreFoundation 0x18abb43fc __CFRunLoopRun + 1660
23 CoreFoundation 0x18aae22b8 CFRunLoopRunSpecific + 444
24 GraphicsServices 0x18c596198 GSEventRunModal + 180
25 UIKit 0x190b297fc -[UIApplication _run] + 684
26 UIKit 0x190b24534 UIApplicationMain + 208
27 Kanopy PROD 0x100079860 main (AppDelegate.swift:19)
28 libdispatch.dylib 0x189ac55b8 (Missing)
Why does this crash occur? Is this crash in the SDK or is it possibly due to incorrect integration of the Chrome Cast SDK?
Security
SSLRecordServiceWriteQueueInternal
Crashlytics logs (image):
enter image description here
Code in another thread:
enter image description here
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