Skip to content

Crash while fetching the auth token #14962

Open
@saurabh-iOS2

Description

@saurabh-iOS2

Description

We are getting crashes when firebase internally triggers Auth.getToken(forcingRefresh:completion:) pointing to Crashed: com.google.firebase.auth.globalWorkQueue EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000002d041d090

Reproducing the issue

This is happening for our production users across app versions, we are using 11.9.0 version of firebase via cocoa pods

Firebase SDK Version

11.9.0

Xcode Version

16.1

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics, Firestore, AB Testing, Analytics, App Distribution, Performance, Remote Config

Targeted Platforms

iOS

Relevant Log Output

Crashed: com.google.firebase.auth.globalWorkQueue
0  libobjc.A.dylib                0x1b50 objc_release_x0 + 16
1  libobjc.A.dylib                0x1b50 objc_release + 16
2  Porter                         0xd61c2c closure #1 in Auth.getToken(forcingRefresh:completion:) + 1594 (User.swift:1594)
3  Porter                         0x14880 thunk for @escaping @callee_guaranteed @Sendable () -> () + 4306913408 (<compiler-generated>:4306913408)
4  libdispatch.dylib              0x1aac _dispatch_call_block_and_release + 32
5  libdispatch.dylib              0x1b584 _dispatch_client_callout + 16
6  libdispatch.dylib              0xa2d0 _dispatch_lane_serial_drain + 740
7  libdispatch.dylib              0xadac _dispatch_lane_invoke + 388
8  libdispatch.dylib              0x151dc _dispatch_root_queue_drain_deferred_wlh + 292
9  libdispatch.dylib              0x14a60 _dispatch_workloop_worker_thread + 540
10 libsystem_pthread.dylib        0x4660 _pthread_wqthread + 292
11 libsystem_pthread.dylib        0x19f8 start_wqthread + 8

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
  - Firebase/Analytics (11.9.0):
    - Firebase/Core
  - Firebase/Auth (11.9.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 11.9.0)
  - Firebase/Core (11.9.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (~> 11.9.0)
  - Firebase/CoreOnly (11.9.0):
    - FirebaseCore (~> 11.9.0)
  - Firebase/Crashlytics (11.9.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 11.9.0)
  - Firebase/Firestore (11.9.0):
    - Firebase/CoreOnly
    - FirebaseFirestore (~> 11.9.0)
  - FirebaseABTesting (11.9.0):
    - FirebaseCore (~> 11.9.0)
  - FirebaseAnalytics (11.9.0):
    - FirebaseAnalytics/AdIdSupport (= 11.9.0)
    - FirebaseCore (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 8.0)
    - GoogleUtilities/MethodSwizzler (~> 8.0)
    - GoogleUtilities/Network (~> 8.0)
    - "GoogleUtilities/NSData+zlib (~> 8.0)"
    - nanopb (~> 3.30910.0)
  - FirebaseAnalytics/AdIdSupport (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - GoogleAppMeasurement (= 11.9.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 8.0)
    - GoogleUtilities/MethodSwizzler (~> 8.0)
    - GoogleUtilities/Network (~> 8.0)
    - "GoogleUtilities/NSData+zlib (~> 8.0)"
    - nanopb (~> 3.30910.0)
  - FirebaseAppCheckInterop (11.9.0)
  - FirebaseAuth (11.9.0):
    - FirebaseAppCheckInterop (~> 11.0)
    - FirebaseAuthInterop (~> 11.0)
    - FirebaseCore (~> 11.9.0)
    - FirebaseCoreExtension (~> 11.9.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 8.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GTMSessionFetcher/Core (< 5.0, >= 3.4)
    - RecaptchaInterop (~> 101.0)
  - FirebaseAuthInterop (11.9.0)
  - FirebaseCore (11.9.0):
    - FirebaseCoreInternal (~> 11.9.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/Logger (~> 8.0)
  - FirebaseCoreExtension (11.9.0):
    - FirebaseCore (~> 11.9.0)
  - FirebaseCoreInternal (11.9.0):
    - "GoogleUtilities/NSData+zlib (~> 8.0)"
  - FirebaseCrashlytics (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - FirebaseRemoteConfigInterop (~> 11.0)
    - FirebaseSessions (~> 11.0)
    - GoogleDataTransport (~> 10.0)
    - GoogleUtilities/Environment (~> 8.0)
    - nanopb (~> 3.30910.0)
    - PromisesObjC (~> 2.4)
  - FirebaseFirestore (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - FirebaseCoreExtension (~> 11.9.0)
    - FirebaseFirestoreInternal (= 11.9.0)
    - FirebaseSharedSwift (~> 11.0)
  - FirebaseFirestoreInternal (11.9.0):
    - abseil/algorithm (~> 1.20240722.0)
    - abseil/base (~> 1.20240722.0)
    - abseil/container/flat_hash_map (~> 1.20240722.0)
    - abseil/memory (~> 1.20240722.0)
    - abseil/meta (~> 1.20240722.0)
    - abseil/strings/strings (~> 1.20240722.0)
    - abseil/time (~> 1.20240722.0)
    - abseil/types (~> 1.20240722.0)
    - FirebaseAppCheckInterop (~> 11.0)
    - FirebaseCore (~> 11.9.0)
    - "gRPC-C++ (~> 1.69.0)"
    - gRPC-Core (~> 1.69.0)
    - leveldb-library (~> 1.22)
    - nanopb (~> 3.30910.0)
  - FirebaseInstallations (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/UserDefaults (~> 8.0)
    - PromisesObjC (~> 2.4)
  - FirebasePerformance (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - FirebaseRemoteConfig (~> 11.0)
    - FirebaseSessions (~> 11.0)
    - GoogleDataTransport (~> 10.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/MethodSwizzler (~> 8.0)
    - GoogleUtilities/UserDefaults (~> 8.0)
    - nanopb (~> 3.30910.0)
  - FirebaseRemoteConfig (11.9.0):
    - FirebaseABTesting (~> 11.0)
    - FirebaseCore (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - FirebaseRemoteConfigInterop (~> 11.0)
    - FirebaseSharedSwift (~> 11.0)
    - GoogleUtilities/Environment (~> 8.0)
    - "GoogleUtilities/NSData+zlib (~> 8.0)"
  - FirebaseRemoteConfigInterop (11.9.0)
  - FirebaseSessions (11.9.0):
    - FirebaseCore (~> 11.9.0)
    - FirebaseCoreExtension (~> 11.9.0)
    - FirebaseInstallations (~> 11.0)
    - GoogleDataTransport (~> 10.0)
    - GoogleUtilities/Environment (~> 8.0)
    - GoogleUtilities/UserDefaults (~> 8.0)
    - nanopb (~> 3.30910.0)
    - PromisesSwift (~> 2.1)
  - FirebaseSharedSwift (11.9.0)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions