-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
[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.