Firebase-ios-sdk: Crashed: com.google.FPRScreenTraceTracker

Created on 11 Jun 2018  路  9Comments  路  Source: firebase/firebase-ios-sdk

Describe your environment

  • Xcode version: 9.4
  • Firebase SDK version: 5.1.0
  • Firebase Component: Core/Analytics
  • Component version: FirebaseCore 5.0.2 / FirebaseAnalytics 5.0.1

The problem:

App is crashing when tracking screens.

Steps to reproduce:

It just happens randomly navigating through the app. So I've created _FirebaseScreenReportingEnabled_ flag and set it to _false_ on my _Info.plist_

Stacktrace

It crashed in .3

Crashed: com.google.FPRScreenTraceTracker
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000b0000010

0 libobjc.A.dylib objc_retain + 3
1 CoreFoundation +[__NSDictionaryI __new:::::] + 460
2 CoreFoundation -[__NSDictionaryM copyWithZone:] + 256 arrow_right 
3 ios-myapp -[FPRCounterList counters] + 46
4 ios-myapp -[FIRTrace counters] + 46
5 ios-myapp -[FPRScreenTraceTracker stopScreenTraceForViewController:currentTotalFrames:currentFrozenFrames:currentSlowFrames:] + 418
6 ios-myapp __52-[FPRScreenTraceTracker viewControllerDidDisappear:]_block_invoke + 56
7 libdispatch.dylib _dispatch_call_block_and_release + 10
8 libdispatch.dylib _dispatch_queue_serial_drain + 242
9 libdispatch.dylib _dispatch_queue_invoke + 886
10 libdispatch.dylib _dispatch_queue_override_invoke + 282
11 libdispatch.dylib _dispatch_root_queue_drain + 326
12 libdispatch.dylib _dispatch_worker_thread3 + 106
13 libsystem_pthread.dylib _pthread_wqthread + 1040
14 libsystem_pthread.dylib start_wqthread + 8
performance

Most helpful comment

A similar crash resurface in iOS 12.

  • Xcode version: 9.4
  • Firebase SDK version: 5.4.1
  • Firebase Component: Core/Analytics/Messaging/RemoteConfig/Performance
  • Component version: FirebaseCore 5.4.1 / FirebaseAnalytics 5.4.1 / Messaging 5.4.1 / RemoteConfig 5.4.1 / Performance 5.4.1
Crashed: com.google.FPRScreenTraceTracker
0  UIKitCore                      0x20abc08bc -[UIViewController(UIKitManual) release] + 164
1  libobjc.A.dylib                0x1dcce738c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676
2  libdispatch.dylib              0x1dd538464 _dispatch_last_resort_autorelease_pool_pop + 40
3  libdispatch.dylib              0x1dd4e07c0 _dispatch_lane_invoke$VARIANT$mp + 528
4  libdispatch.dylib              0x1dd4e8f00 _dispatch_workloop_worker_thread + 600
5  libsystem_pthread.dylib        0x1dd71a0f0 _pthread_wqthread + 312
6  libsystem_pthread.dylib        0x1dd71cd00 start_wqthread + 4

All 9 comments

This is a crash in -[NSMutableDictionary copy], which will be very difficult for us to debug without a repro case.

Possibly related - Let me know if I should rather create a new ticket for this.

Describe your environment

  • Xcode version: 9.3.1
  • Firebase SDK version: 5.0.1
  • Firebase Component: Performance
  • Component version: FirebasePerformance (2.0.0)

Describe the problem

The app crashes when navigating it (not been able to reproduce yet)
The crash only seems to be affecting iOS 10 users.

Stacktrace:

EXC_BREAKPOINT 0x000000000000defe

Crashed: com.google.FPRScreenTraceTracker
0  CoreFoundation                 0x1b0998c8 _CFRelease + 1369
1  CoreFoundation                 0x1aff3b61 -[__NSDictionaryI dealloc] + 112
2  CoreFoundation                 0x1aff3b61 -[__NSDictionaryI dealloc] + 112
3  libobjc.A.dylib                0x1a37d259 objc_object::sidetable_release(bool) + 238
4  my_ios_app                    0xabae9b -[FPRScreenTraceTracker stopScreenTraceForViewController:currentTotalFrames:currentFrozenFrames:currentSlowFrames:] + 787462
5  my_ios_app                    0xabb385 __52-[FPRScreenTraceTracker viewControllerDidDisappear:]_block_invoke + 788720
6  libdispatch.dylib              0x1a7a9797 _dispatch_call_block_and_release + 10
7  libdispatch.dylib              0x1a7b6339 _dispatch_queue_serial_drain + 242
8  libdispatch.dylib              0x1a7acb71 _dispatch_queue_invoke + 886
9  libdispatch.dylib              0x1a7b6a1f _dispatch_queue_override_invoke + 282
10 libdispatch.dylib              0x1a7b81b5 _dispatch_root_queue_drain + 326
11 libdispatch.dylib              0x1a7b800f _dispatch_worker_thread3 + 106
12 libsystem_pthread.dylib        0x1a95e87d _pthread_wqthread + 1040
13 libsystem_pthread.dylib        0x1a95e45c start_wqthread + 8

We're aware of the issue and a fix will be available in the next release. Thanks for filing!

Lately I see only crashes of 5.X.X. This bug is present also in 5.2.0.

YES,This bug is present also in 5.2.0. why?

@zeqinjie - this bug should have been resolved in 5.3.0 according to the release notes.

Right @alihen - And according to the milestone marked on this issue. See the right column. 馃憤

A similar crash resurface in iOS 12.

  • Xcode version: 9.4
  • Firebase SDK version: 5.4.1
  • Firebase Component: Core/Analytics/Messaging/RemoteConfig/Performance
  • Component version: FirebaseCore 5.4.1 / FirebaseAnalytics 5.4.1 / Messaging 5.4.1 / RemoteConfig 5.4.1 / Performance 5.4.1
Crashed: com.google.FPRScreenTraceTracker
0  UIKitCore                      0x20abc08bc -[UIViewController(UIKitManual) release] + 164
1  libobjc.A.dylib                0x1dcce738c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676
2  libdispatch.dylib              0x1dd538464 _dispatch_last_resort_autorelease_pool_pop + 40
3  libdispatch.dylib              0x1dd4e07c0 _dispatch_lane_invoke$VARIANT$mp + 528
4  libdispatch.dylib              0x1dd4e8f00 _dispatch_workloop_worker_thread + 600
5  libsystem_pthread.dylib        0x1dd71a0f0 _pthread_wqthread + 312
6  libsystem_pthread.dylib        0x1dd71cd00 start_wqthread + 4

@youweit can you file a new issue for this?

Was this page helpful?
0 / 5 - 0 ratings