Skip to content

Crash in [FPRMemoryGaugeCollector collectMetric] when executing a network call #15501

@ouachman

Description

@ouachman

Description

Hello
I am using Firebase 12.3.0. My app update just went into production with Performance Monitoring and I received 2 crashes so far. This is a very small amount of crashes given the total number of network calls made, but still I though I would share the stack trace.

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000012f9e413c

0 libsystem_malloc.dylib 0xf8c0 _xzm_do_lock_action + 28
1 libsystem_malloc.dylib 0xfae4 xzm_statistics_self + 92
2 libsystem_malloc.dylib 0xfbdc malloc_zone_statistics + 192
3 libsystem_malloc.dylib 0x2dff4 mstats + 44
4 FirebasePerformance 0xe174 fprCollectMemoryMetric + 44
5 FirebasePerformance 0xe578 -[FPRMemoryGaugeCollector collectMetric] + 24
6 FirebasePerformance 0xc3e4 -[FPRGaugeManager collectAllGauges] + 108
7 FirebasePerformance 0x1a03c -[FPRSessionManager collectAllGaugesOnce] + 28
8 FirebasePerformance 0x10818 -[FPRNetworkTrace start] + 92
9 FirebasePerformance 0x15f8c __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 332
10 FirebasePerformance 0x15f18 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 216

Let me know if anything is needed to investigate this further. Thank you.

Reproducing the issue

This is hard to reproduce, happening randomly in production.

Firebase SDK Version

12.3.0

Xcode Version

16.1, 26.1.1

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics, Performance

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