Application threw exception NSInternalInconsistencyException: Invalid parameter not satisfying: pos - ios

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]

Related

[_UISnapshotWindow actualSceneBounds]: unrecognized selector

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.

-[WKSyntheticTapGestureRecognizer setState:] crash

We have encountered the crash : -[WKSyntheticTapGestureRecognizer setState:] in our app.I am also attaching crash report for the reference:
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1540 objc_msgSend + 32
1 WebKit 0x4a6bd8 -[WKSyntheticTapGestureRecognizer setState:] + 100
2 UIKitCore 0x2bb320 -[UITapRecognizer tooSlow:] + 76
3 Foundation 0x365fc __NSFireDelayedPerform + 460
4 CoreFoundation 0xae318 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
5 CoreFoundation 0x32cf0 __CFRunLoopDoTimer + 1076
6 CoreFoundation 0x2d4ec __CFRunLoopDoTimers + 328
7 CoreFoundation 0xbd08 __CFRunLoopRun + 1944
8 CoreFoundation 0x1f468 CFRunLoopRunSpecific + 600
9 GraphicsServices 0x138c GSEventRunModal + 164
10 UIKitCore 0x51a088 -[UIApplication _run] + 1100
11 UIKitCore 0x298958 UIApplicationMain + 2092
12 Adoddle Field Plus 0x1238f0 main + 17 (main.mm:17)
13 ??? 0x10817daa4 (Missing)
KERN_INVALID_ADDRESS at 0x0000000000000010
Like WKSyntheticTapGesturestabilizer has been released and is still accessing its member variables

Flutter crash iOS - NSInvalidArgumentException

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!

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 to fix crash 'Fatal Exception: NSInvalidArgumentException'

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?

Resources