I'm facing a crash. There's no accurate code show me which line crashed.
I have used a webview in my app. But i'm not sure why it crash.
0 CoreFoundation __exceptionPreprocess
1 libobjc.A.dylib objc_exception_throw
2 CoreFoundation _CFArgv
3 CoreFoundation -[__NSPlaceholderSet initWithObjects:count:]
4 CoreFoundation -[__NSSetM copyWithZone:]
5 UIKitCore -[UIView _dispatchTintColorVisitorWithReasons:]
6 UIKitCore -[UIView setTintAdjustmentMode:]
7 UIKitCore -[_UIButtonBarButtonVisualProviderIOS updateButton:forEnabledState:]
8 UIKitCore -[_UIButtonBarButton setEnabled:]
9 UIKitCore -[UIPrintPanelTableViewController setShowContactingPrinter:]
10 libdispatch.dylib _dispatch_call_block_and_release
11 libdispatch.dylib _dispatch_client_callout
12 libdispatch.dylib _dispatch_main_queue_callback_4CF$VARIANT$mp
13 CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14 CoreFoundation
__CFRunLoopRun
15 CoreFoundation CFRunLoopRunSpecific
16 GraphicsServices GSEventRunModal
17 UIKitCore UIApplicationMain
18 ChopeDashboard main.m line 14 main + 14
19 libdyld.dylib start
Is there some faced the same problem, and how to fix it?
Related
I am getting crash in iOS(react native app) : [_UISnapshotWindow actualSceneBounds]: unrecognized selector
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x12a654 __exceptionPreprocess
1 libobjc.A.dylib 0x5bcc objc_exception_throw
2 CoreFoundation 0x2edd8 -[NSOrderedSet
initWithSet:copyItems:]
3 UIKitCore 0xa5cb24 -[UIResponder
doesNotRecognizeSelector:]
4 CoreFoundation 0x12e7f8 forwarding
5 CoreFoundation 0x13071c _CF_forwarding_prep_0
6 UIKitCore 0x91b5f8 -[UIUndoGestureInteraction
didMoveToView:]
7 UIKitCore 0xee0960 _setInteractionView
8 UIKitCore 0xee083c -[UIView(Dragging)
addInteraction:]
9 UIKitCore 0xcb2dcc
-[UIEditingOverlayViewController _addInteractions]
10 UIKitCore 0x3f0814 -[UIViewController
_setViewAppearState:isAnimating:]
11 UIKitCore 0x3f0c34 __52-[UIViewController
_setViewAppearState:isAnimating:]_block_invoke
12 CoreFoundation 0xfdce0
NSARRAY_IS_CALLING_OUT_TO_A_BLOCK
13 CoreFoundation 0x270c -[__NSArrayI
enumerateObjectsWithOptions:usingBlock:]
14 UIKitCore 0x3f09c0 -[UIViewController
_setViewAppearState:isAnimating:]
15 UIKitCore 0x3f2a8c __64-[UIViewController
viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke
16 UIKitCore 0x3f1854 -[UIViewController
_executeAfterAppearanceBlock]
17 UIKitCore 0xa37c10
_runAfterCACommitDeferredBlocks
18 UIKitCore 0xa274ac
_cleanUpAfterCAFlushAndRunDeferredBlocks
19 UIKitCore 0xa57990 _afterCACommitHandler
20 CoreFoundation 0xa7f2c
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
21 CoreFoundation 0xa2e20 __CFRunLoopDoObservers
22 CoreFoundation 0xa329c __CFRunLoopRun
23 CoreFoundation 0xa2ba8 CFRunLoopRunSpecific
24 GraphicsServices 0x3344 GSEventRunModal
25 UIKitCore 0xa2e3e4 UIApplicationMain
Can anyone please help me to fix this issue.
This crash maybe cased by copy and paste. Only iOS 15 has this problem.
CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos
Thread 0 Crashed:
0 CoreFoundation 0x00000001814a50fc __exceptionPreprocess
1 libobjc.A.dylib 0x0000000199ce0d64 objc_exception_throw
2 Foundation 0x0000000182d5f3ac _userInfoForFileAndLine
3 UIKitCore 0x0000000184a4da50 -[_UITextKitTextPosition compare:]
4 UIKitCore 0x00000001838d4d68 -[UITextInputController comparePosition:toPosition:]
5 UIKitCore 0x0000000184a59328 -[UITextView comparePosition:toPosition:]
6 UIKitCore 0x0000000184a21658 -[UITextPasteController _clampRange:]
7 UIKitCore 0x0000000184a21e4c __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke
8 UIKitCore 0x0000000184a22064 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.177
9 UIKitCore 0x0000000184a49b9c -[UITextInputController _pasteAttributedString:toRange:completion:]
10 UIKitCore 0x0000000184a21d94 -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]
11 UIKitCore 0x0000000184a21030 __49-[UITextPasteController _executePasteForSession:]_block_invoke
12 libdispatch.dylib 0x0000000181115924 _dispatch_call_block_and_release
13 libdispatch.dylib 0x0000000181117670 _dispatch_client_callout
14 libdispatch.dylib 0x0000000181125b70 _dispatch_main_queue_callback_4CF
15 CoreFoundation 0x000000018145dd84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation 0x0000000181417f5c __CFRunLoopRun
17 CoreFoundation 0x000000018142b468 CFRunLoopRunSpecific
18 GraphicsServices 0x000000019cfb738c GSEventRunModal
19 UIKitCore 0x0000000183dcd088 -[UIApplication _run]
20 UIKitCore 0x0000000183b4b958 UIApplicationMain
21 GalaxyX 0x0000000102f2d67c main + [main.m : 19]
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!
Since iOS 13.0 was released, I've been seeing a lot of occurrencies of this crash in our app:
Fatal Exception: NSRangeException
0 CoreFoundation 0x1846cf278 __exceptionPreprocess
1 libobjc.A.dylib 0x1843f80a4 objc_exception_throw
2 Foundation 0x184998480 -[NSConcretePointerArray dealloc]
3 UIKitCore 0x1888da3b8 -[UIWindowScene _enumerateWindowsIncludingInternalWindows:onlyVisibleWindows:asCopy:stopped:withBlock:]
4 UIKitCore 0x1888d9f74 -[UIWindowScene _topVisibleWindowPassingTest:]
5 UIKitCore 0x1886fc4c4 +[UIWindow _hitTestToPoint:forEvent:windowServerHitTestWindow:]
6 UIKitCore 0x1886fc854 -[UIWindow _targetWindowForPathIndex:atPoint:forEvent:windowServerHitTestWindow:]
7 UIKitCore 0x18873c080 ____updateTouchesWithDigitizerEventAndDetermineIfShouldSend_block_invoke.52
8 UIKitCore 0x18874b738 _UIEventHIDEnumerateChildren
9 UIKitCore 0x18873f8d0 __dispatchPreprocessedEventFromEventQueue
10 UIKitCore 0x188742dc4 __handleEventQueueInternal
11 UIKitCore 0x18873bc38 __handleHIDEventFetcherDrain
12 CoreFoundation 0x18464d090 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
13 CoreFoundation 0x18464cfe8 __CFRunLoopDoSource0
14 CoreFoundation 0x18464c780 __CFRunLoopDoSources0
15 CoreFoundation 0x1846478cc __CFRunLoopRun
16 CoreFoundation 0x18464716c CFRunLoopRunSpecific
17 GraphicsServices 0x18e47f328 GSEventRunModal
18 UIKitCore 0x1886b1d0c UIApplicationMain
19 MyApp 0x100d3ba64 main + 18 (main.swift:18)
20 libdyld.dylib 0x1844d2424 start
It only happens in iOS 13.0.0 (17A577)
We don't have much context on what steps are causing this, all we have at the moment is that stack trace.
Is anybody else experiencing something similar?
Any ideas on what might be causing this?
Have strong reference to UIWindow which you created
Use makeKeyAndVisible instead of setting window.hidden = false
My app is experiencing a weird error which I cannot reproduce. I know the existence of this error because some users have reported it to me and I could catch it using the Fabric SDK.
Apparently it happens at any location, at any given time. It doesn't not happen a lot though, it seems to happen once in a while. I have no idea where to start looking for this, because I tried to catch the error running on multiple devices connected to my xcode project, but it just doesn't happen to me, or at least when I am looking for it. Can someone give me a light where to begin to look for it?
The stack trace:
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x18730afe0 __exceptionPreprocess
1 libobjc.A.dylib 0x185d6c538 objc_exception_throw
2 CoreFoundation 0x187311ef4 __methodDescriptionForSelector
3 CoreFoundation 0x18730ef54 ___forwarding___
4 CoreFoundation 0x18720ad4c _CF_forwarding_prep_0
5 Foundation 0x187dff50c __NSThreadPerformPerform
6 CoreFoundation 0x1872b942c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
7 CoreFoundation 0x1872b8d04 __CFRunLoopDoSources0
8 CoreFoundation 0x1872b69a8 __CFRunLoopRun
9 CoreFoundation 0x1871e6da4 CFRunLoopRunSpecific
10 GraphicsServices 0x188c51074 GSEventRunModal
11 UIKit 0x18d49ac9c UIApplicationMain
12 Otelo 0x100230fc4 main (AppDelegate.swift:23)
13 libdyld.dylib 0x1861f559c start
Crashed: com.twitter.crashlytics.ios.exception
0 Otelo 0x1005bb308 CLSProcessRecordAllThreads + 1572
1 Otelo 0x1005bb308 CLSProcessRecordAllThreads + 1572
2 Otelo 0x1005bb1c4 CLSProcessRecordAllThreads + 1248
3 Otelo 0x1005aaa6c CLSHandler + 48
4 Otelo 0x1005b9110 __CLSExceptionRecord_block_invoke + 92
5 libdispatch.dylib 0x1861c29a0 _dispatch_client_callout + 16
6 libdispatch.dylib 0x1861cfee0 _dispatch_barrier_sync_f_invoke + 84
7 Otelo 0x1005b8ba4 CLSExceptionRecord + 212
8 Otelo 0x1005b89cc CLSExceptionRecordNSException + 548
9 Otelo 0x1005b85e0 CLSTerminateHandler() + 396
10 libc++abi.dylib 0x185d5b5d4 std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x185d5b1a8 __cxa_rethrow + 144
12 libobjc.A.dylib 0x185d6c6f8 objc_exception_rethrow + 44
13 CoreFoundation 0x1871e6e10 CFRunLoopRunSpecific + 532
14 GraphicsServices 0x188c51074 GSEventRunModal + 100
15 UIKit 0x18d49ac9c UIApplicationMain + 208
16 Otelo 0x100230fc4 main (AppDelegate.swift:23)
17 libdyld.dylib 0x1861f559c start + 4