Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x2d5ec __exceptionPreprocess 1 libobjc.A.dylib 0x31244 objc_exception_throw 2 Foundation 0x8b58b8 -[NSUndoManager endUndoGrouping] 3 Foundation 0x279154 __NSFirePerformWithOrder 4 CoreFoundation 0x21894 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION 5 CoreFoundation 0x213e8 __CFRunLoopDoObservers 6 CoreFoundation 0x75cf8 __CFRunLoopRun 7 CoreFoundation 0xc8274 CFRunLoopRunSpecific 8 GraphicsServices 0x14c0 GSEventRunModal 9 UIKitCore 0x3ee77c -[UIApplication _run] 10 UIKitCore 0x14e64 UIApplicationMain 11 Glip 0x70398 main + 13 (main.swift:13) 12 ??? 0x1c060cde8 (Missing)
Textview/textfield crash by undoManager
Would you mind to provide more context about the issue, for example, what Apple APIs you use and how you trigger the crash? If you have a reproducible case, please attach as well for folks to take a closer look.
See tips on writing forums posts, if necessary.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.
The undoManager API we're calling only 'textView.undoManager? .removeAllActions()’
Thanks, but the above comment doesn't seem to provide any context. A minimal project, with detailed steps, that reproduces the issue, will be very helpful.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.