这是indexloc提供的服务,不要输入任何密码
Skip to content

FPRSessionDetails: Attempted to dereference garbage pointer #8691

@azouts

Description

@azouts

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.3
  • Firebase SDK version: 8.2
  • Installation method: CocoaPods
  • Firebase Component: Performance

[REQUIRED] Step 2: Describe the problem

A random crash of the app that uses the firebase SDK.

Steps to reproduce:

EXC_BAD_ACCESS: remoteConfigFlags > sessionCreationTime > sessionLengthInMinutes >
Attempted to dereference garbage pointer 0x43b8c8b79110.
File "FirebasePerformance/FirebasePerformance/Sources/AppActivity/FPRSessionDetails.m", line 43, in -[FPRSessionDetails sessionLengthInMinutes]
File "FirebasePerformance/FirebasePerformance/Sources/AppActivity/FPRSessionManager.m", line 78, in -[FPRSessionManager renewSessionIdIfRunningTooLong]
File "FirebasePerformance/FirebasePerformance/Sources/FPRClient.m", line 246, in -[FPRClient logGaugeMetric:forSessionId:]
File "FirebasePerformance/FirebasePerformance/Sources/Gauges/FPRGaugeManager.m", line 184, in __69-[FPRGaugeManager prepareAndDispatchCollectedGaugeDataWithSessionId:]_block_invoke_2
...

Relevant Code:

  • (NSUInteger)sessionLengthInMinutes {
    NSTimeInterval sessionLengthInSeconds = ABS([self.sessionCreationTime timeIntervalSinceNow]);
    return (sessionLengthInSeconds / 60);
    }

Don't know how to reproduce.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions