+[_CFXNotificationTokenRegistration keyCallbacks] (CoreFoundation)

I have received this report through firebase analytics and I have no idea what it is. Would you help me?

I tried to reproduce but to no avail.


Fatal Exception: NSInternalInconsistencyException

Trying to complete an interactive gesture but the animation coordinator is nil! (gesture=<_UIBarPanGestureRecognizer: 0x100cb82e0; state = Ended; view = <UILayoutContainerView 0x100c25000>; target= <(action=_gestureRecognizedInteractiveHide:, target=<UINavigationController 0x10100f400>)>> action=Hide)

----------------------------------------------------------------------------------------------------

Fatal Exception: NSInternalInconsistencyException

0 CoreFoundation 0x18ae5927c __exceptionPreprocess

1 libobjc.A.dylib 0x18a0339f8 objc_exception_throw

2 CoreFoundation 0x18ad72988 +[_CFXNotificationTokenRegistration keyCallbacks]

3 Foundation 0x18b836188 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]

4 UIKitCore 0x1b6fecaac -[UINavigationController _gestureRecognizedInteractiveHide:]

5 UIKitCore 0x1b7244868 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]

6 UIKitCore 0x1b724ca70 _UIGestureRecognizerSendTargetActions

7 UIKitCore 0x1b724a414 _UIGestureRecognizerSendActions

8 UIKitCore 0x1b7249940 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:]

9 UIKitCore 0x1b723da1c _UIGestureEnvironmentUpdate

10 UIKitCore 0x1b723d14c -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]

11 UIKitCore 0x1b723cf2c -[UIGestureEnvironment _updateForEvent:window:]

12 UIKitCore 0x1b7655510 -[UIWindow sendEvent:]

13 UIKitCore 0x1b763559c -[UIApplication sendEvent:]

14 UIKitCore 0x1b76fb714 __dispatchPreprocessedEventFromEventQueue

15 UIKitCore 0x1b76fde40 __handleEventQueueInternal

16 UIKitCore 0x1b76f7070 __handleHIDEventFetcherDrain

17 CoreFoundation 0x18adeb018 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__

18 CoreFoundation 0x18adeaf98 __CFRunLoopDoSource0

19 CoreFoundation 0x18adea880 __CFRunLoopDoSources0

20 CoreFoundation 0x18ade57bc __CFRunLoopRun

21 CoreFoundation 0x18ade50b0 CFRunLoopRunSpecific

22 GraphicsServices 0x18cfe579c GSEventRunModal

23 UIKitCore 0x1b761b978 UIApplicationMain

24 Candeias 0x1002e1ca4 main + 19 (CustomView.swift:19)

25 libdyld.dylib 0x18a8aa8e0 start


Falha: com.twitter.crashlytics.ios.exception

SIGABRT ABORT 0x000000018a9f60dc

----------------------------------------------------------------------------------------------------

Crashed: com.twitter.crashlytics.ios.exception

0 Candeias 0x1005320dc CLSProcessRecordAllThreads + 376 (CLSProcess.c:376)

1 Candeias 0x1005324c4 CLSProcessRecordAllThreads + 407 (CLSProcess.c:407)

2 Candeias 0x100521ef4 CLSHandler + 26 (CLSHandler.m:26)

3 Candeias 0x1005306f0 __CLSExceptionRecord_block_invoke + 199 (CLSException.mm:199)

4 libdispatch.dylib 0x18a8997d4 _dispatch_client_callout + 16

5 libdispatch.dylib 0x18a847c18 _dispatch_lane_barrier_sync_invoke_and_complete + 56

6 Candeias 0x10053018c CLSExceptionRecord + 206 (CLSException.mm:206)

7 Candeias 0x10052ffc0 CLSExceptionRecordNSException + 102 (CLSException.mm:102)

8 Candeias 0x10052fbdc CLSTerminateHandler() + 259 (CLSException.mm:259)

9 libc++abi.dylib 0x18a028838 std::__terminate(void (*)()) + 16

10 libc++abi.dylib 0x18a028434 __cxa_rethrow + 144

11 libobjc.A.dylib 0x18a033bc8 objc_exception_rethrow + 44

12 CoreFoundation 0x18ade511c CFRunLoopRunSpecific + 544

13 GraphicsServices 0x18cfe579c GSEventRunModal + 104

14 UIKitCore 0x1b761b978 UIApplicationMain + 212

15 Candeias 0x1002e1ca4 main + 19 (CustomView.swift:19)

16 libdyld.dylib 0x18a8aa8e0 start + 4

hello,


I'm having the same issue but I still cannot find out why. My guess is that the callback from a background task is called twice but I am not sure about that. Or Maybe Firebase swizzling method for registering the push notification token causes the error.

I got the same crash, and the majority happened on iOS 12 and 13!

0  CoreFoundation  … __exceptionPreprocess
1  libobjc.A.dylib … objc_exception_throw
2  CoreFoundation  … +[_CFXNotificationTokenRegistration keyCallbacks]
3  Foundation      … -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKitCore       … -[UINavigationController _gestureRecognizedInteractiveHide:]

There’s two things in play here:

  • Why did

    -[UINavigationController _gestureRecognizedInteractiveHide:]
    (frame 4) trip over an assertion? (A)
  • Why is

    +[_CFXNotificationTokenRegistration keyCallbacks]
    in the backtrace at frame 2? (B)

With regards B, I suspect that this is a result of symbolication failure. It’s very unlikely that

-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
would end up in
+[_CFXNotificationTokenRegistration keyCallbacks]
and then end back in
objc_exception_throw
. Good symbolication is hard, so issues like this are not uncommon in third-party crash reporters.

With regards A, I believe the answer to that lies in the exception description:

Fatal Exception: NSInternalInconsistencyException
Trying to complete an interactive gesture but the animation coordinator is nil! (gesture=<_UIBarPanGestureRecognizer: 0x100cb82e0; state = Ended; view = <UILayoutContainerView 0x100c25000>; target= <(action=_gestureRecognizedInteractiveHide:, target=<UINavigationController 0x10100f400>)>> action=Hide)

If you need more help with that, I recommend that you post over in App Frameworks > Cocoa Touch because that’s more likely to connect you up with UIKit experts.

Share and Enjoy

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

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

Same here, does anyone know the root cause?

Same issue i am facing. Does anyone know the root cause of this?

Same issue i am facing.

This is a pretty generic crash signature, so it’s possible that you’re looking at a completely different issue. Does your crash report include the text Trying to complete an interactive gesture but the animation coordinator is nil? If so, that’s likely to be the same issue and I’m happy to continue discussing it here.

If not, it’s probably some other issue. In that case I recommend that you start a new thread for your issue. Please tag it with Debugging, so that I see it, and add a complete Apple crash report, per the instructions in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

+[_CFXNotificationTokenRegistration keyCallbacks] (CoreFoundation)
 
 
Q