Crash report: Fatal Exception: NSInvalidArgumentException

Hi! I have no clue how to handle it. Can anyone help me? Or anyone has encountered the same crash.


Stack Trace:



Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x1ab27ea48 __exceptionPreprocess
1  libobjc.A.dylib                0x1aafa5fa4 objc_exception_throw
2  CoreFoundation                 0x1ab1825a8 -[NSOrderedSet initWithSet:copyItems:]
3  CoreFoundation                 0x1ab282af4 ___forwarding___
4  CoreFoundation                 0x1ab284a7c _CF_forwarding_prep_0
5  UIKitCore                      0x1af55aca8 -[UITextInteraction didMoveToView:]
6  UIKitCore                      0x1af56323c -[UITextPhraseBoundaryInteraction didMoveToView:]
7  UIKitCore                      0x1af7982d0 _setInteractionView
8  UIKitCore                      0x1af7981ac -[UIView(Dragging) addInteraction:]
9  UIKitCore                      0x1af1cf0d0 -[DOMNode(UITextInput_Internal) _setGestureRecognizers]
10 UIKitCore                      0x1af1cf2b4 -[DOMNode(UITextInput_Internal) _setAttributedMarkedText:selectedRange:]
11 CoreFoundation                 0x1ab284c20 __invoking___
12 CoreFoundation                 0x1ab154d30 -[NSInvocation invoke]
13 CoreFoundation                 0x1ab155908 -[NSInvocation invokeWithTarget:]
14 UIKitCore                      0x1af7e2594 -[UIThreadSafeNode forwardInvocation:]
15 CoreFoundation                 0x1ab28286c ___forwarding___
16 CoreFoundation                 0x1ab284a7c _CF_forwarding_prep_0
17 UIKitCore                      0x1af127e78 -[UIKeyboardImpl _setAttributedMarkedText:selectedRange:inputString:searchString:compareAttributes:]
18 UIKitCore                      0x1af13aa18 -[UIKeyboardImpl updateCandidateDisplayAsyncWithCandidateSet:]
19 UIKitCore                      0x1af12ca64 -[UIKeyboardImpl inputManagerDidGenerateCandidatesForRequest:resultSet:]
20 UIKitCore                      0x1af12c4bc __78-[UIKeyboardImpl generateCandidatesAsynchronouslyWithRange:selectedCandidate:]_block_invoke_3
21 UIKitCore                      0x1af1581d0 -[UIKeyboardTaskExecutionContext returnExecutionToParentWithInfo:]
22 UIKitCore                      0x1af12c458 __78-[UIKeyboardImpl generateCandidatesAsynchronouslyWithRange:selectedCandidate:]_block_invoke_2
23 UIKitCore                      0x1af159d88 -[UIKeyboardTaskEntry execute:]
24 UIKitCore                      0x1af1587b8 -[UIKeyboardTaskQueue continueExecutionOnMainThread]
25 UIKitCore                      0x1af158f3c -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished]
26 UIKitCore                      0x1af1166a4 -[UIKeyboardImpl generateAutofillCandidateByAddingTask:]
27 UIKitCore                      0x1af129d18 -[UIKeyboardImpl selectionDidChange:]
28 UIKitCore                      0x1af1cf420 -[DOMNode(UITextInput_Internal) _unmarkText]
29 CoreFoundation                 0x1ab284c20 __invoking___
30 CoreFoundation                 0x1ab154d30 -[NSInvocation invoke]
31 CoreFoundation                 0x1ab155908 -[NSInvocation invokeWithTarget:]
32 UIKitCore                      0x1af7e2594 -[UIThreadSafeNode forwardInvocation:]
33 CoreFoundation                 0x1ab28286c ___forwarding___
34 CoreFoundation                 0x1ab284a7c _CF_forwarding_prep_0
35 UIKitCore                      0x1af128014 -[UIKeyboardImpl unmarkText]
36 UIKitCore                      0x1af11dcac -[UIKeyboardImpl setDelegate:force:]
37 UIKitCore                      0x1aee1f370 -[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:]
38 UIKitCore                      0x1aee1ef74 -[UIInputResponderController _reloadInputViewsForResponder:]
39 UIKitCore                      0x1af336268 -[UIResponder(UIResponderInputViewAdditions) reloadInputViews]
40 UIKitCore                      0x1af7e4988 -[UIWebBrowserView _reloadInputViewsAfterPotentialFocusRedirect]
41 UIKitCore                      0x1af7e4824 -[UIWebBrowserView _endAllowingFocusRedirects]
42 libdispatch.dylib              0x1aaf4b184 _dispatch_client_callout
43 libdispatch.dylib              0x1aaf2eea0 _dispatch_async_and_wait_invoke
44 libdispatch.dylib              0x1aaf4b184 _dispatch_client_callout
45 libdispatch.dylib              0x1aaf2e34c _dispatch_main_queue_callback_4CF$VARIANT$armv81
46 CoreFoundation                 0x1ab1fc5e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
47 CoreFoundation                 0x1ab1f75d8 __CFRunLoopRun
48 CoreFoundation                 0x1ab1f6adc CFRunLoopRunSpecific
49 GraphicsServices               0x1b5197328 GSEventRunModal
50 UIKitCore                      0x1af30463c UIApplicationMain
51 Digitalmembercard              0x100dd7340 main + 38 (AppDelegate.swift:38)
52 libdyld.dylib                  0x1ab080360 start
Crashed: com.twitter.crashlytics.ios.exception
0  Digitalmembercard              0x1010f0464 CLSProcessRecordAllThreads + 4302849124
1  Digitalmembercard              0x1010f084c CLSProcessRecordAllThreads + 4302850124
2  Digitalmembercard              0x1010e00c8 CLSHandler + 4302782664
3  Digitalmembercard              0x1010eea5c __CLSExceptionRecord_block_invoke + 4302842460
4  libdispatch.dylib              0x1aaf4b184 _dispatch_client_callout + 16
5  libdispatch.dylib              0x1aaf2edc8 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6  Digitalmembercard              0x1010ee4c8 CLSExceptionRecord + 4302841032
7  Digitalmembercard              0x1010ee2f4 CLSExceptionRecordNSException + 4302840564
8  Digitalmembercard              0x1010edee8 CLSTerminateHandler() + 4302839528
9  libc++abi.dylib                0x1ab04b304 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x1ab04b29c std::terminate() + 44
11 libobjc.A.dylib                0x1aafa61dc _objc_terminate() + 10
12 libdispatch.dylib              0x1aaf4b198 _dispatch_client_callout + 36
13 libdispatch.dylib              0x1aaf2eea0 _dispatch_async_and_wait_invoke + 92
14 libdispatch.dylib              0x1aaf4b184 _dispatch_client_callout + 16
15 libdispatch.dylib              0x1aaf2e34c _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 996
16 CoreFoundation                 0x1ab1fc5e4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
17 CoreFoundation                 0x1ab1f75d8 __CFRunLoopRun + 2004
18 CoreFoundation                 0x1ab1f6adc CFRunLoopRunSpecific + 464
19 GraphicsServices               0x1b5197328 GSEventRunModal + 104
20 UIKitCore                      0x1af30463c UIApplicationMain + 1936
21 Digitalmembercard              0x100dd7340 main + 38 (AppDelegate.swift:38)
22 libdyld.dylib                  0x1ab080360 start + 4


Tôi đã gặp phải sự cố như thế này trong các thiết bị iOS 13

Accepted Reply

Problems like this can have a variety of causes and it’s hard to narrow this down without a proper crash report. Do you have an Apple crash for this? If so, please post the full thing here.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

Problems like this can have a variety of causes and it’s hard to narrow this down without a proper crash report. Do you have an Apple crash for this? If so, please post the full thing here.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank for your attention, but it's hard to show my project code. Is there any other way to handle this?

but it's hard to show my project code.

I didn’t ask for your project code, I asked for a crash report. Can you generate one?

Can you reproduce the problem at will? If so, running your app from outside of Xcode will generate a crash report.

See Technote 2151 Understanding and Analyzing iOS Application Crash Reports for more info about crash reports.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
hi, my app has the same crash,all crash at ios 13 system. Below is crash stack: