Skip to content

Crash On Auth related to notification in version 11.9.0 #14577

Open
@jesus-mg-ios

Description

@jesus-mg-ios

Description

          Crashed: com.apple.main-thread
0  APP                            0x31b10 closure #1 in Observe() + 79 
1  APP                         	  0x2ee7cc closure #1 in Auth.addStateDidChangeListener(_:) + 1361 (Auth.swift:1361)
2  APP                            0x2eee18 closure #1 in Auth.addIDTokenDidChangeListener(_:) + 1398 (Auth.swift:1398)
3  APP                            0x2df668 thunk for @escaping @callee_guaranteed @Sendable (@in_guaranteed Notification) -> () + 4344755816 (<compiler-generated>:4344755816)
4  CoreFoundation                 0x512e0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 128
5  CoreFoundation                 0x51210 ___CFXRegistrationPost_block_invoke + 88
6  CoreFoundation                 0x51158 _CFXRegistrationPost + 436
7  CoreFoundation                 0x4f70c _CFXNotificationPost + 728
8  Foundation                     0x2fea4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
9  APP                         0xeba78 thunk for @escaping @callee_guaranteed () -> () + 4342708856 (<compiler-generated>:4342708856)
10 libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
11 libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
12 libdispatch.dylib              0x129e0 _dispatch_main_queue_drain + 980
13 libdispatch.dylib              0x125fc _dispatch_main_queue_callback_4CF + 44
14 CoreFoundation                 0x56204 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
15 CoreFoundation                 0x53440 __CFRunLoopRun + 1996
16 CoreFoundation                 0x52830 CFRunLoopRunSpecific + 588
17 GraphicsServices               0x11c4 GSEventRunModal + 164
18 UIKitCore                      0x3d2eb0 -[UIApplication _run] + 816
19 UIKitCore                      0x4815b4 UIApplicationMain + 340
20 SwiftUI                        0x101f98 closure #1 in KitRendererCommon(_:) + 168
21 SwiftUI                        0xe2664 runApp<A>(_:) + 100
22 SwiftUI                        0xe5490 static App.main() + 180
23 APP                         	  0x82e4 main + 52
24 ???                            0x1bec92ec8 (Missing)
        

Reproducing the issue

Crash on real devices, not reproducible.

It happens randomly.
Seems like auth is trying to notify someone that does not exists CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER

Firebase SDK Version

11.9.0

Xcode Version

16.1

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions