firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Crashed: com.google.perf.FPREventsQueue EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000001000000d0

Open thanhnhan111093 opened this issue 2 years ago • 5 comments

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 13.1
  • Firebase SDK version: 8.9.0
  • Installation method: CocoaPods
  • Firebase Component: (Core, Analytics, Crashlytics, Database, DynamicLinks, InAppMessaging, Messaging, Performance)
  • Target platform(s): iOS

Here is the snapshot for all firebase related versions:

  - Firebase/Analytics (8.9.0):
    - Firebase/Core
  - Firebase/Core (8.9.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (~> 8.9.0)
  - Firebase/CoreOnly (8.9.0):
    - FirebaseCore (= 8.9.0)
  - Firebase/Crashlytics (8.9.0):
    - Firebase/CoreOnly
    - FirebaseCrashlytics (~> 8.9.0)
  - Firebase/Database (8.9.0):
    - Firebase/CoreOnly
    - FirebaseDatabase (~> 8.9.0)
  - Firebase/DynamicLinks (8.9.0):
    - Firebase/CoreOnly
    - FirebaseDynamicLinks (~> 8.9.0)
  - Firebase/InAppMessaging (8.9.0):
    - Firebase/CoreOnly
    - FirebaseInAppMessaging (~> 8.9.0-beta)
  - Firebase/Messaging (8.9.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 8.9.0)
  - Firebase/Performance (8.9.0):
    - Firebase/CoreOnly
    - FirebasePerformance (~> 8.9.0)
  - firebase_analytics (8.3.4):
    - Firebase/Analytics (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_core (1.10.0):
    - Firebase/CoreOnly (= 8.9.0)
    - Flutter
  - firebase_crashlytics (2.3.0):
    - Firebase/Crashlytics (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_database (7.0.0):
    - Firebase/Database (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_dynamic_links (2.0.4):
    - Firebase/DynamicLinks (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_in_app_messaging (0.5.0-4):
    - Firebase/InAppMessaging (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_messaging (10.0.0):
    - Firebase/Messaging (= 8.9.0)
    - firebase_core
    - Flutter
  - firebase_performance (0.7.0-3):
    - Firebase/Performance (= 8.9.0)
    - firebase_core
    - Flutter
  - FirebaseABTesting (8.9.0):
    - FirebaseCore (~> 8.0)
  - FirebaseAnalytics (8.9.1):
    - FirebaseAnalytics/AdIdSupport (= 8.9.1)
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.6)
    - GoogleUtilities/MethodSwizzler (~> 7.6)
    - GoogleUtilities/Network (~> 7.6)
    - "GoogleUtilities/NSData+zlib (~> 7.6)"
    - nanopb (~> 2.30908.0)
  - FirebaseAnalytics/AdIdSupport (8.9.1):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleAppMeasurement (= 8.9.1)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.6)
    - GoogleUtilities/MethodSwizzler (~> 7.6)
    - GoogleUtilities/Network (~> 7.6)
    - "GoogleUtilities/NSData+zlib (~> 7.6)"
    - nanopb (~> 2.30908.0)
  - FirebaseCore (8.9.0):
    - FirebaseCoreDiagnostics (~> 8.0)
    - GoogleUtilities/Environment (~> 7.6)
    - GoogleUtilities/Logger (~> 7.6)
  - FirebaseCoreDiagnostics (8.9.0):
    - GoogleDataTransport (~> 9.1)
    - GoogleUtilities/Environment (~> 7.6)
    - GoogleUtilities/Logger (~> 7.6)
    - nanopb (~> 2.30908.0)
  - FirebaseCrashlytics (8.9.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleDataTransport (~> 9.1)
    - GoogleUtilities/Environment (~> 7.6)
    - nanopb (~> 2.30908.0)
    - PromisesObjC (< 3.0, >= 1.2)
  - FirebaseDatabase (8.9.0):
    - FirebaseCore (~> 8.0)
    - leveldb-library (~> 1.22)
  - FirebaseDynamicLinks (8.9.0):
    - FirebaseCore (~> 8.0)
  - FirebaseInAppMessaging (8.9.0-beta):
    - FirebaseABTesting (~> 8.0)
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleUtilities/Environment (~> 7.6)
    - nanopb (~> 2.30908.0)
  - FirebaseInstallations (8.9.0):
    - FirebaseCore (~> 8.0)
    - GoogleUtilities/Environment (~> 7.6)
    - GoogleUtilities/UserDefaults (~> 7.6)
    - PromisesObjC (< 3.0, >= 1.2)
  - FirebaseMessaging (8.9.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleDataTransport (~> 9.1)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.6)
    - GoogleUtilities/Environment (~> 7.6)
    - GoogleUtilities/Reachability (~> 7.6)
    - GoogleUtilities/UserDefaults (~> 7.6)
    - nanopb (~> 2.30908.0)
  - FirebasePerformance (8.9.0):
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - FirebaseRemoteConfig (~> 8.0)
    - GoogleDataTransport (~> 9.1)
    - GoogleUtilities/Environment (~> 7.6)
    - GoogleUtilities/ISASwizzler (~> 7.6)
    - GoogleUtilities/MethodSwizzler (~> 7.6)
    - nanopb (~> 2.30908.0)
  - FirebaseRemoteConfig (8.9.0):
    - FirebaseABTesting (~> 8.0)
    - FirebaseCore (~> 8.0)
    - FirebaseInstallations (~> 8.0)
    - GoogleUtilities/Environment (~> 7.6)
    - "GoogleUtilities/NSData+zlib (~> 7.6)"

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

I can't reproduce the crash but I am getting a lot of crashes for my app on Crashlytics and the crash appears in iOS versions 14.8+.

Crashed: com.google.perf.FPREventsQueue

Crashed: com.google.perf.FPREventsQueue
0  libobjc.A.dylib                0x3490 objc_retain + 16
1  FirebasePerformance            0xcea4 -[FPRConfigurations sdkEnabled] + 222 (FPRConfigurations.m:222)
2  FirebasePerformance            0xba10 -[FPRClient processAndLogEvent:] + 259 (FPRClient.m:259)
3  FirebasePerformance            0xb6a8 __29-[FPRClient logNetworkTrace:]_block_invoke + 229 (FPRClient.m:229)
4  libdispatch.dylib              0x2914 _dispatch_call_block_and_release + 32
5  libdispatch.dylib              0x4660 _dispatch_client_callout + 20
6  libdispatch.dylib              0xbec4 _dispatch_lane_serial_drain + 896
7  libdispatch.dylib              0xc958 _dispatch_lane_invoke + 392
8  libdispatch.dylib              0x171a8 _dispatch_workloop_worker_thread + 656
9  libsystem_pthread.dylib        0x10f4 _pthread_wqthread + 288
10 libsystem_pthread.dylib        0xe94 start_wqthread + 8

Device

iPhone 12 Pro: 14%
iPhone 11 Pro Max: 14%
iPhone 12 Pro Max: 10%
Other (11): 62%

OS version

iOS 14: 52%
iOS 15: 48%

thanhnhan111093 avatar Dec 03 '21 03:12 thanhnhan111093

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Dec 03 '21 03:12 google-oss-bot

@thanhnhan111093 Based on the stack trace, I have a possible cause of this issue. But I need a couple of information to see if my assumption is right. From the stack trace, do you know if crash occurred during the launch of an application or if this happens much later after a cold start of the application?

visumickey avatar Dec 09 '21 02:12 visumickey

@thanhnhan111093 Based on the stack trace, I have a possible cause of this issue. But I need a couple of information to see if my assumption is right. From the stack trace, do you know if crash occurred during the launch of an application or if this happens much later after a cold start of the application?

hi @visumickey I just checked the firebase event, and I noticed that the app is open for a while then crashes

thanhnhan111093 avatar Dec 09 '21 03:12 thanhnhan111093

Hi @visumickey , It randomly crashes when the user is from 1 minute to 3 hours

thanhnhan111093 avatar Dec 20 '21 10:12 thanhnhan111093

Hi @thanhnhan111093, sorry for not getting back to you in this issue. I'm just want to confirm if you're still encountering the issue using the latest SDK version?

rizafran avatar Nov 22 '22 17:11 rizafran

hi @rizafran, I just checked again, and there are no errors in the last 30 days, I will close this ticket

thanhnhan111093 avatar Nov 23 '22 02:11 thanhnhan111093