firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.41k stars 1.42k forks source link

Crash at FPRTraceBackgroundActivityTracker #13174

Open ValentineVV opened 4 days ago

ValentineVV commented 4 days ago

Description

Looks like there is something wrong happens on init of FPRTraceBackgroundActivityTracker

Here is the crash stacktrace

          Crashed: org.alamofire.session.rootQueue
0  libobjc.A.dylib                0x9748 objc_moveWeak + 196
1  CoreFoundation                 0x50a94 _CFXNotificationRegistrarAddObserver + 392
2  CoreFoundation                 0x4f864 CFXNotificationRegistrarAdd + 580
3  CoreFoundation                 0x4f040 _CFXNotificationRegisterObserver + 248
4  FirebasePerformance            0x1fe1c -[FPRTraceBackgroundActivityTracker init] + 44 (FPRTraceBackgroundActivityTracker.m:44)
5  FirebasePerformance            0x159f8 -[FPRNetworkTrace start] + 199 (FPRNetworkTrace.m:199)
6  FirebasePerformance            0x1b86c __InstrumentDataTaskWithRequest_block_invoke + 277 (FPRNSURLSessionInstrument.m:277)
7  Alamofire                      0x2dc90 DataRequest.task(for:using:) + 122 (DataRequest.swift:122)
8  Alamofire                      0xbf114 Session.didCreateURLRequest(_:for:) + 1188 (Session.swift:1188)
9  Alamofire                      0xcc778 partial apply for closure #3 in Session.performSetupOperations(for:convertible:shouldCreateTask:) + 72
10 Alamofire                      0x89e18 thunk for @escaping @callee_guaranteed @Sendable () -> () + 28 (<compiler-generated>:28)
11 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
12 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
13 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
14 libdispatch.dylib              0xbf64 _dispatch_lane_invoke + 432
15 libdispatch.dylib              0xb284 _dispatch_lane_serial_drain + 368
16 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
17 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
18 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
19 libsystem_pthread.dylib        0x4934 _pthread_wqthread + 288
20 libsystem_pthread.dylib        0x10cc start_wqthread + 8

Reproducing the issue

No response

Firebase SDK Version

10.28.0

Xcode Version

15.4

Installation Method

CocoaPods

Firebase Product(s)

Analytics, Crashlytics, Performance, Remote Config

Targeted Platforms

iOS

Relevant Log Output

No response

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

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

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 4 days ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

paulb777 commented 3 days ago

Some related previously reported unresolved issues https://github.com/firebase/firebase-ios-sdk/issues?q=is%3Aissue+FPRTraceBackgroundActivityTracker