Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIRRemoteConfig Crashing on iOS 13 #3929

Closed
md-griddy opened this issue Sep 25, 2019 · 35 comments
Closed

FIRRemoteConfig Crashing on iOS 13 #3929

md-griddy opened this issue Sep 25, 2019 · 35 comments

Comments

@md-griddy
Copy link

We are getting roughly 255 crashes in production with 97% of users on iOS 13, the remaining 3% are on iOS 12. Utilizing all the latest Firebase pods versions.

  • Xcode version: 11.0
  • Firebase SDK version: 6.9.0
  • Firebase Component: Core
  • Component version: Core (6.9.0), RemoteConfig (4.4.1)

Crash log & relevant backtrace:

Crashed: com.google.GoogleConfigService.FIRRemoteConfig
0 (Missing) 0x1bd61ff34 (Missing)
1 (Missing) 0x1bd61fad8 (Missing)
2 (Missing) 0x1bd61fad8 (Missing)
3 Griddy 0x104971b38 -[FIRRemoteConfig configValueForKey:namespace:] + 378 (FIRRemoteConfig.m:378)
4 Griddy 0x104912354 -[FPRRemoteConfigFlags sessionSamplingRate] + 4301972308
5 Griddy 0x1049119b4 -[FPRConfigurations sessionsSamplingPercentage] + 4301969844
6 Griddy 0x10490c8b4 -[FPRSessionManager isGaugeCollectionEnabledForSessionId:] + 4301949108
7 Griddy 0x10490c764 -[FPRSessionManager updateSessionId:] + 4301948772
8 Griddy 0x10490c4cc -[FPRSessionManager initWithNotificationCenter:] + 4301948108
9 Griddy 0x10490c428 __35+[FPRSessionManager sharedInstance]_block_invoke + 4301947944
10 (Missing) 0x1bd6717d4 (Missing)
11 (Missing) 0x1bd614eb8 (Missing)
12 Griddy 0x10490c3cc +[FPRSessionManager sharedInstance] + 4301947852
13 Griddy 0x10491ce20 -[FPRNetworkTrace start] + 4302016032
14 Griddy 0x104923e50 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 4302044752
15 Griddy 0x104923dcc __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 4302044620
16 Griddy 0x1048fc7c4 -[FIRInstanceIDCheckinService checkinWithExistingCheckin:completion:] + 189 (FIRInstanceIDCheckinService.m:189)
17 Griddy 0x1048f9f30 -[FIRInstanceIDAuthService fetchCheckinInfoWithHandler:] + 188 (FIRInstanceIDAuthService.m:188)
18 Griddy 0x1048f329c -[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler:] + 368 (FIRInstanceID.m:368)
19 Griddy 0x10497fc64 -[RCNConfigFetch refreshInstanceIDTokenAndFetchCheckInInfoWithCompletionHandler:] + 230 (RCNFetch.m:230)
20 Griddy 0x10497f8c8 __74-[RCNConfigFetch fetchAllConfigsWithExpirationDuration:completionHandler:]_block_invoke + 190 (RCNFetch.m:190)
21 (Missing) 0x1bd670a38 (Missing)
22 (Missing) 0x1bd6717d4 (Missing)
23 (Missing) 0x1bd61a324 (Missing)
24 (Missing) 0x1bd61ae40 (Missing)
25 (Missing) 0x1bd6234ac (Missing)
26 (Missing) 0x1bd852114 (Missing)
27 (Missing) 0x1bd854cd4 (Missing)

@ryanwilson
Copy link
Member

Thanks for the report - is there any way you could share a fully symbolicated crash log? It's tough to tell the actual crash here.

This looks very similar to #3270 as well. Is it iOS 13.0 that is crashing, 13.1, or both?

@md-griddy
Copy link
Author

Haven't been able to trigger/replicate this crash that a lot of the users are experiencing in order to get over the crash dump logs. Crashlytics is saying 78% iOS 13.0, 21% iOS 13.1.

I had a look at #3270, it does look very similar. Our users are also reporting uninstalling and reinstalling does not fix the problem.

@leandromperez
Copy link

Hi,

We're experiencing the same issue. It appears to be happening when the app launches, the main thread is dealing with code in: func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {}

App: -[FIRRemoteConfig configValueForKey:namespace:] + 220

CRASHED THREAD (#3695 :
#0	(null) in __DISPATCH_WAIT_FOR_QUEUE__ ()
#1	(null) in _dispatch_sync_f_slow ()
#2	(null) in _dispatch_sync_f_slow ()
#3	0x0000000100b59304 in -[FIRRemoteConfig configValueForKey:namespace:] at /MyApp/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/FIRRemoteConfig.m:360
#4	(null) in -[FPRRemoteConfigFlags sessionSamplingRate] ()
#5	(null) in -[FPRConfigurations sessionsSamplingPercentage] ()
#6	(null) in -[FPRSessionManager isGaugeCollectionEnabledForSessionId:] ()
#7	(null) in -[FPRSessionManager updateSessionId:] ()
#8	(null) in -[FPRSessionManager initWithNotificationCenter:] ()
#9	(null) in __35+[FPRSessionManager sharedInstance]_block_invoke ()
#10	(null) in _dispatch_client_callout ()
#11	(null) in _dispatch_once_callout ()
#12	(null) in +[FPRSessionManager sharedInstance] ()
#13	(null) in -[FPRNetworkTrace start] ()
#14	(null) in __InstrumentDataTaskWithRequestCompletionHandler_block_invoke ()
#15	(null) in __InstrumentDataTaskWithRequestCompletionHandler_block_invoke ()
#16	0x0000000100ae5e98 in -[FIRInstanceIDCheckinService checkinWithExistingCheckin:completion:] at /MyApp/Pods/FirebaseInstanceID/Firebase/InstanceID/FIRInstanceIDCheckinService.m:189
#17	0x0000000100ae37c4 in -[FIRInstanceIDAuthService fetchCheckinInfoWithHandler:] at /MyApp/Pods/FirebaseInstanceID/Firebase/InstanceID/FIRInstanceIDAuthService.m:188
#18	0x0000000100adcd38 in -[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler:] at /MyApp/Pods/FirebaseInstanceID/Firebase/InstanceID/FIRInstanceID.m:324
#19	0x0000000100b66a10 in -[RCNConfigFetch refreshInstanceIDTokenAndFetchCheckInInfoWithCompletionHandler:] at /MyApp/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/RCNFetch.m:230
#20	0x0000000100b66680 in __74-[RCNConfigFetch fetchAllConfigsWithExpirationDuration:completionHandler:]_block_invoke at /MyApp/Pods/FirebaseRemoteConfig/FirebaseRemoteConfig/Sources/RCNFetch.m:190
#21	(null) in _dispatch_call_block_and_release ()
#22	(null) in _dispatch_client_callout ()
#23	(null) in _dispatch_lane_serial_drain ()
#24	(null) in _dispatch_lane_invoke ()
#25	(null) in _dispatch_workloop_worker_thread ()
#26	(null) in _pthread_wqthread ()
#27	(null) in start_wqthread ()

ANOTHER BACKGROUND THREAD:
#0	(null) in mach_msg_trap ()
#1	(null) in mach_msg ()
#2	(null) in _dispatch_mach_msg_send ()
#3	(null) in _dispatch_mach_send_drain ()
#4	(null) in _dispatch_mach_send_msg ()
#5	(null) in _dispatch_mach_send_and_wait_for_reply ()
#6	(null) in dispatch_mach_send_with_result_and_wait_for_reply ()
#7	(null) in xpc_connection_send_message_with_reply_sync ()
#8	(null) in __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ ()
#9	(null) in -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] ()
#10	(null) in -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:] ()
#11	(null) in _NSXPCDistantObjectSimpleMessageSend2 ()
#12	(null) in -[CoreTelephonyClient(Subscriber) copyMobileSubscriberCountryCode:error:] ()
#13	(null) in -[CTTelephonyNetworkInfo getMobileCountryCode:andIsoCountryCode:forContext:withError:] ()
#14	(null) in -[CTTelephonyNetworkInfo updateNetworkInfoAndShouldNotifyClient:forContext:] ()
#15	(null) in -[CTTelephonyNetworkInfo initWithClient:] ()
#16	(null) in -[CTTelephonyNetworkInfo init] ()
#17	(null) in __FPRNetworkInfo_block_invoke ()
#18	(null) in _dispatch_client_callout ()
#19	(null) in _dispatch_once_callout ()
#20	(null) in FPRNetworkInfo ()
#21	(null) in __42-[FPRClient startWithConfiguration:error:]_block_invoke ()
#22	(null) in _dispatch_call_block_and_release ()
#23	(null) in _dispatch_client_callout ()
#24	(null) in _dispatch_lane_serial_drain ()
#25	(null) in _dispatch_lane_invoke ()
#26	(null) in _dispatch_workloop_worker_thread ()
#27	(null) in _pthread_wqthread ()
#28	(null) in start_wqthread ()

The app is crashing in a background thread.

iOS: 13.0 (17A577)

Podfile.lock info:

  • Firebase/Core (6.8.1):
    • Firebase/CoreOnly
    • FirebaseAnalytics (= 6.1.1)
    • Firebase/CoreOnly (6.8.1):
      • FirebaseCore (= 6.2.3)
    • Firebase/Performance (6.8.1):
      • Firebase/CoreOnly
      • FirebasePerformance (~> 3.1.4)
    • Firebase/RemoteConfig (6.8.1):
      • Firebase/CoreOnly
      • FirebaseRemoteConfig (~> 4.4.0)
    • FirebaseABTesting (3.1.1):
      • FirebaseAnalyticsInterop (~> 1.3)
      • FirebaseCore (~> 6.1)
      • Protobuf (~> 3.8)
    • FirebaseAnalytics (6.1.1):
      • FirebaseCore (~> 6.2)
      • FirebaseInstanceID (~> 4.2)
      • GoogleAppMeasurement (= 6.1.1)
      • GoogleUtilities/AppDelegateSwizzler (~> 6.0)
      • GoogleUtilities/MethodSwizzler (~> 6.0)
      • GoogleUtilities/Network (~> 6.0)
      • "GoogleUtilities/NSData+zlib (~> 6.0)"
      • nanopb (~> 0.3)
    • FirebaseAnalyticsInterop (1.4.0)
    • FirebaseCore (6.2.3):
      • FirebaseCoreDiagnostics (~> 1.0)
      • FirebaseCoreDiagnosticsInterop (~> 1.0)
      • GoogleUtilities/Environment (~> 6.2)
      • GoogleUtilities/Logger (~> 6.2)
    • FirebaseCoreDiagnostics (1.0.1):
      • FirebaseCoreDiagnosticsInterop (~> 1.0)
      • GoogleDataTransportCCTSupport (~> 1.0)
      • GoogleUtilities/Environment (~> 6.2)
      • GoogleUtilities/Logger (~> 6.2)
    • FirebaseCoreDiagnosticsInterop (1.0.0)
    • FirebaseInstanceID (4.2.5):
      • FirebaseCore (~> 6.0)
      • GoogleUtilities/Environment (~> 6.0)
      • GoogleUtilities/UserDefaults (~> 6.0)
    • FirebasePerformance (3.1.4):
      • FirebaseCore (~> 6.2)
      • FirebaseInstanceID (~> 4.2)
      • FirebaseRemoteConfig (~> 4.4)
      • GoogleToolboxForMac/Logger (~> 2.1)
      • "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
      • GoogleUtilities/Environment (~> 6.2)
      • GoogleUtilities/ISASwizzler (~> 6.2)
      • GoogleUtilities/MethodSwizzler (~> 6.2)
      • GTMSessionFetcher/Core (~> 1.1)
      • Protobuf (~> 3.9)
    • FirebaseRemoteConfig (4.4.0):
      • FirebaseABTesting (~> 3.1)
      • FirebaseAnalyticsInterop (~> 1.4)
      • FirebaseCore (~> 6.2)
      • FirebaseInstanceID (~> 4.2)
      • GoogleUtilities/Environment (~> 6.2)
      • "GoogleUtilities/NSData+zlib (~> 6.2)"
      • Protobuf (~> 3.9)
@ryanwilson
Copy link
Member

Apologies for the issues folks. We're working on getting this resolved as soon as possible. In the meantime, temporarily removing Firebase Performance from the project should resolve the issue if you need to ship an update. We'll keep this thread up to date with information on when a fix is found and ready.

@dmandar
Copy link
Contributor

dmandar commented Sep 27, 2019

Is this happening all the time at startup? (We are not able to repro). This issue was known to be fixed in the Perf SDK. Some folks had lingering pods that were again showing the issue. Can you confirm this is not the case for you? E.g. #3842

@md-griddy
Copy link
Author

We deploy builds from TravisCI which compile and ship builds from a clean VM slate which install the pods during that time so it doesn't look like there could be lingering pods that were removed but not completely "removed"

@visumickey
Copy link
Contributor

visumickey commented Sep 27, 2019

@md-griddy @leandromperez Can you confirm this crash is happening on the version of your app that is using the latest version of the Perf SDK? Ideally the latest version should not face this crash.

@md-griddy
Copy link
Author

md-griddy commented Sep 27, 2019

Yes, for sure our last two releases were on 3.1.4 and 3.1.2 Perf SDKs

Users are experiencing immediate crash upon app startup

@visumickey
Copy link
Contributor

@md-griddy After some debugging, we might have figured out the root cause of this issue and we will be rolling out a fix to the SDK in the upcoming release. ETA: October 8 2019.

@md-griddy
Copy link
Author

@md-griddy After some debugging, we might have figured out the root cause of this issue and we will be rolling out a fix to the SDK in the upcoming release. ETA: October 8 2019.

Awesome, thank you!

@paulb777 paulb777 added this to the M57 milestone Oct 1, 2019
@ryanwilson
Copy link
Member

Firebase 6.10.0 was released a few moments ago that should contain a fix for this issue. Please update and re-open the issue if it still persists.

@tomerciucran
Copy link

We're having the same crash even after updating to 6.10.0.

@paulb777
Copy link
Member

paulb777 commented Oct 9, 2019

@tomerciucran Is it the same backtrace as above?

@paulb777 paulb777 reopened this Oct 9, 2019
@tomerciucran
Copy link

@paulb777 Yes.

@visumickey
Copy link
Contributor

@tomerciucran Were you able to get this crash during development time or in production?

If in production, is the volume of crash similar to earlier?

@tomerciucran
Copy link

@visumickey In development. We have Firebase version 5.20.2 currently in production.

@visumickey
Copy link
Contributor

@tomerciucran That is nice you were able to catch in development. Few more questions:

  1. Is this happening during app start up or later?
  2. Is this consistent?
  3. Can you provide us a sample app where this is happening?
@tomerciucran
Copy link

@visumickey Sorry for the late response.

  1. It is happening on app launch.
  2. It is consistent.
  3. Unfortunately no resources at the moment to provide a sample app for this.
@mikehardy
Copy link
Contributor

This is only tangentially related, but as a react-native-firebase maintainer, releasing a crash fix in the same semver as releasing breaking changes to MLKit makes it difficult to message to users what the compatibility matrix of versions is. This should be in 6.xx and the MLKit breaking stuff should have gone in a 7.0. This adds downstream support and documentation burden.

@paulb777
Copy link
Member

@mikehardy MLKit is still in beta and I would recommend expectations be set for ongoing breaking changes.

@mikehardy
Copy link
Contributor

Developing for react-native makes one quite prepared for ongoing breaking changes :-), but the semver signaling helps sort them out and maintain coherent compatibility matrices is all. Failure to use that signal results in sleeper issues sometimes a couple dependencies downstream that waste troubleshooting time until someone bisects and discovers a hidden semver break like this expo/expo#5242

I don't intend to debate relative merit of semver or freedom to break in beta cycles - I empathize and I'm pragmatic. My point was just to note the consequence as things are built on these APIs already - beta or not

@paulb777
Copy link
Member

@mikehardy I completely agree with the merits of semver and that's exactly why FirebaseMLKit is still at major version 0 to set the proper expectations. See bullet 4 at https://semver.org/

@mikehardy
Copy link
Contributor

Hmm - this may be more of a style / transitive issue then. I think of the firebase ios SDK as a version-locked monorepo based on all the versions moving in step (eg 6.10) but under the covers that could be connecting with a differently-versioned FirebaseMLKit 0.x ? I'm not sure how to manage that.

Also, apologies to participants here - didn't mean to rabbit hole on versioning in an active crash issue - I'll desist and open something separate if I have other questions.

@visumickey
Copy link
Contributor

@tomerciucran Thanks for the details.

We have been trying to reproduce the issue or find the scenario where this can happen. Will make sure to update this thread with findings and fixes.

@visumickey
Copy link
Contributor

@tomerciucran Few of more information could be useful.

  1. Can you share the stack trace for the crash happening on 6.10.0?
  2. Can you also share your podfile.lock after the update to 6.10.0?
  3. Can you enable Debug mode and share the console logs when the crash is happening (https://firebase.google.com/docs/reference/ios/firebasecore/api/reference/Classes)

Sorry for requesting more information. These would be very helpful us to narrow down this issue. Appreciate your help in providing such useful information.

@tomerciucran
Copy link

tomerciucran commented Oct 11, 2019

@visumickey

Stack trace:

0   ???                                 0x000000010d7b4ae8 0x0 + 4521151208,
1   App                         0x00000001007fd924 main + 0,
2   libdispatch.dylib                   0x0000000106fb9dc0 _dispatch_sync_f_slow + 180,
3   App                         0x00000001010cf354 -[FIRRemoteConfig configValueForKey:namespace:] + 536,
4   App                         0x00000001010cf110 -[FIRRemoteConfig configValueForKey:] + 92,
5   App                         0x000000010106a9d4 -[FPRRemoteConfigFlags getFloatValueForFlag:defaultValue:] + 88,
6   App                         0x0000000101069c54 -[FPRConfigurations sessionsSamplingPercentage] + 232,
7   App                         0x0000000101064188 -[FPRSessionManager isGaugeCollectionEnabledForSessionId:] + 60,
8   App                         0x0000000101064038 -[FPRSessionManager updateSessionId:] + 220,
9   App                         0x0000000101063da0 -[FPRSessionManager initWithNotificationCenter:] + 128,
10  App                         0x0000000101063cfc __35+[FPRSessionManager sharedInstance]_block_invoke + 84,
11  libdispatch.dylib                   0x0000000106fab2a8 _dispatch_client_callout + 20,
12  libdispatch.dylib                   0x0000000106faccb4 _dispatch_once_callout + 132,
13  App                         0x0000000101063ca0 +[FPRSessionManager sharedInstance] + 56,
14  App                         0x0000000101075098 -[FPRNetworkTrace dealloc] + 44,
15  libobjc.A.dylib                     0x000000019a3fe408 objc_release + 136,
16  App                         0x0000000101074fdc -[FPRNetworkTrace initWithURLRequest:] + 1068,
17  App                         0x000000010107c890 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 340,
18  App                         0x000000010107c828 __InstrumentDataTaskWithRequestCompletionHandler_block_invoke + 236,
19  App                         0x000000010104a284 -[FIRInstanceIDCheckinService checkinWithExistingCheckin:completion:] + 1020,
20  App                         0x00000001010458c4 -[FIRInstanceIDAuthService fetchCheckinInfoWithHandler:] + 876,
21  App                         0x00000001010394fc -[FIRInstanceID tokenWithAuthorizedEntity:scope:options:handler:] + 2172,
22  App                         0x00000001010e7d6c -[RCNConfigFetch refreshInstanceIDTokenAndFetchCheckInInfoWithCompletionHandler:] + 536,
23  App                         0x00000001010e7afc __74-[RCNConfigFetch fetchAllConfigsWithExpirationDuration:completionHandler:]_block_invoke + 1404,
24  libdispatch.dylib                   0x0000000106fa9e48 _dispatch_call_block_and_release + 32,
25  libdispatch.dylib                   0x0000000106fab2a8 _dispatch_client_callout + 20,
26  libdispatch.dylib                   0x0000000106fb2938 _dispatch_lane_serial_drain + 720,
27  libdispatch.dylib                   0x0000000106fb3528 _dispatch_lane_invoke + 408,
28  libdispatch.dylib                   0x0000000106fbe4e8 _dispatch_workloop_worker_thread + 1344,
29  libsystem_pthread.dylib             0x000000019a3d6aa0 _pthread_wqthread + 280,
30  libsystem_pthread.dylib             0x000000019a3dcc78 start_wqthread + 8

Podfile.lock:

PODS:
  - Adjust (4.18.2):
    - Adjust/Core (= 4.18.2)
  - Adjust/Core (4.18.2)
  - AFNetworking (3.2.1):
    - AFNetworking/NSURLSession (= 3.2.1)
    - AFNetworking/Reachability (= 3.2.1)
    - AFNetworking/Security (= 3.2.1)
    - AFNetworking/Serialization (= 3.2.1)
    - AFNetworking/UIKit (= 3.2.1)
  - AFNetworking/NSURLSession (3.2.1):
    - AFNetworking/Reachability
    - AFNetworking/Security
    - AFNetworking/Serialization
  - AFNetworking/Reachability (3.2.1)
  - AFNetworking/Security (3.2.1)
  - AFNetworking/Serialization (3.2.1)
  - AFNetworking/UIKit (3.2.1):
    - AFNetworking/NSURLSession
  - Bolts (1.9.0):
    - Bolts/AppLinks (= 1.9.0)
    - Bolts/Tasks (= 1.9.0)
  - Bolts/AppLinks (1.9.0):
    - Bolts/Tasks
  - Bolts/Tasks (1.9.0)
  - Branch (0.28.1):
    - Branch/Core (= 0.28.1)
  - Branch/Core (0.28.1)
  - Crashlytics (3.13.4):
    - Fabric (~> 1.10.2)
  - Fabric (1.10.2)
  - FBAudienceNetwork (5.4.0):
    - FBSDKCoreKit/Basics
  - FBSDKCoreKit (5.3.0):
    - FBSDKCoreKit/Basics (= 5.3.0)
    - FBSDKCoreKit/Core (= 5.3.0)
  - FBSDKCoreKit/Basics (5.3.0)
  - FBSDKCoreKit/Core (5.3.0):
    - FBSDKCoreKit/Basics
  - FBSDKLoginKit (5.3.0):
    - FBSDKCoreKit (~> 5.0)
  - FBSDKMessengerShareKit (1.3.2)
  - FBSDKShareKit (5.3.0):
    - FBSDKCoreKit (~> 5.0)
  - Firebase/AdMob (6.10.0):
    - Firebase/CoreOnly
    - Google-Mobile-Ads-SDK (~> 7.50)
  - Firebase/Core (6.10.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.1.3)
  - Firebase/CoreOnly (6.10.0):
    - FirebaseCore (= 6.3.1)
  - Firebase/Performance (6.10.0):
    - Firebase/CoreOnly
    - FirebasePerformance (~> 3.1.5)
  - Firebase/RemoteConfig (6.10.0):
    - Firebase/CoreOnly
    - FirebaseRemoteConfig (~> 4.4.2)
  - FirebaseABTesting (3.1.2):
    - FirebaseAnalyticsInterop (~> 1.3)
    - FirebaseCore (~> 6.1)
    - Protobuf (>= 3.9.2, ~> 3.9)
  - FirebaseAnalytics (6.1.3):
    - FirebaseCore (~> 6.3)
    - FirebaseInstanceID (~> 4.2)
    - GoogleAppMeasurement (= 6.1.3)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 0.3.901)
  - FirebaseAnalyticsInterop (1.4.0)
  - FirebaseCore (6.3.1):
    - FirebaseCoreDiagnostics (~> 1.0)
    - FirebaseCoreDiagnosticsInterop (~> 1.0)
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/Logger (~> 6.2)
  - FirebaseCoreDiagnostics (1.1.1):
    - FirebaseCoreDiagnosticsInterop (~> 1.0)
    - GoogleDataTransportCCTSupport (~> 1.0)
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/Logger (~> 6.2)
    - nanopb (~> 0.3.901)
  - FirebaseCoreDiagnosticsInterop (1.0.0)
  - FirebaseInstanceID (4.2.5):
    - FirebaseCore (~> 6.0)
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/UserDefaults (~> 6.0)
  - FirebasePerformance (3.1.5):
    - FirebaseCore (~> 6.3)
    - FirebaseInstanceID (~> 4.2)
    - FirebaseRemoteConfig (~> 4.4)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/ISASwizzler (~> 6.2)
    - GoogleUtilities/MethodSwizzler (~> 6.2)
    - GTMSessionFetcher/Core (~> 1.1)
    - Protobuf (~> 3.9)
  - FirebaseRemoteConfig (4.4.2):
    - FirebaseABTesting (~> 3.1)
    - FirebaseAnalyticsInterop (~> 1.4)
    - FirebaseCore (~> 6.2)
    - FirebaseInstanceID (~> 4.2)
    - GoogleUtilities/Environment (~> 6.2)
    - "GoogleUtilities/NSData+zlib (~> 6.2)"
    - Protobuf (>= 3.9.2, ~> 3.9)
  - FLEX (3.0.0)
  - Google-Mobile-Ads-SDK (7.50.0):
    - GoogleAppMeasurement (~> 6.0)
  - GoogleAds-IMA-iOS-SDK (3.8.1)
  - GoogleAppMeasurement (6.1.3):
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 0.3.901)
  - GoogleDataTransport (3.0.0)
  - GoogleDataTransportCCTSupport (1.2.0):
    - GoogleDataTransport (~> 3.0)
    - nanopb (~> 0.3.901)
  - GoogleToolboxForMac/Defines (2.2.1)
  - GoogleToolboxForMac/Logger (2.2.1):
    - GoogleToolboxForMac/Defines (= 2.2.1)
  - "GoogleToolboxForMac/NSData+zlib (2.2.1)":
    - GoogleToolboxForMac/Defines (= 2.2.1)
  - GoogleUtilities/AppDelegateSwizzler (6.3.1):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.3.1)
  - GoogleUtilities/ISASwizzler (6.3.1)
  - GoogleUtilities/Logger (6.3.1):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (6.3.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (6.3.1):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.3.1)"
  - GoogleUtilities/Reachability (6.3.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (6.3.1):
    - GoogleUtilities/Logger
  - GTMSessionFetcher/Core (1.2.2)
  - HockeySDK/AllFeaturesLib (5.1.4)
  - iOSSnapshotTestCase (6.1.0):
    - iOSSnapshotTestCase/SwiftSupport (= 6.1.0)
  - iOSSnapshotTestCase/Core (6.1.0)
  - iOSSnapshotTestCase/SwiftSupport (6.1.0):
    - iOSSnapshotTestCase/Core
  - JFMinimalNotifications (0.0.8)
  - JWPlayer-SDK (3.6.2)
  - KeychainAccess (3.2.0)
  - Localytics (5.5.0)
  - mopub-ios-sdk (5.8.0):
    - mopub-ios-sdk/MoPubSDK (= 5.8.0)
  - mopub-ios-sdk/Avid (5.8.0):
    - mopub-ios-sdk/Core
  - mopub-ios-sdk/Core (5.8.0)
  - mopub-ios-sdk/Moat (5.8.0):
    - mopub-ios-sdk/Core
  - mopub-ios-sdk/MoPubSDK (5.8.0):
    - mopub-ios-sdk/Avid
    - mopub-ios-sdk/Core
    - mopub-ios-sdk/Moat
  - nanopb (0.3.901):
    - nanopb/decode (= 0.3.901)
    - nanopb/encode (= 0.3.901)
  - nanopb/decode (0.3.901)
  - nanopb/encode (0.3.901)
  - NewRelicAgent (6.8.0)
  - Nimble (8.0.4)
  - Nimble-Snapshots (8.0.0):
    - Nimble-Snapshots/Core (= 8.0.0)
  - Nimble-Snapshots/Core (8.0.0):
    - iOSSnapshotTestCase (~> 6.0)
    - Nimble (~> 8.0)
  - Protobuf (3.10.0)
  - SDWebImage (5.1.1):
    - SDWebImage/Core (= 5.1.1)
  - SDWebImage/Core (5.1.1)
  - SimulatorStatusMagic (2.4.1)
  - SwiftLint (0.35.0)
  - TaboolaSDK (2.3.3)
  - TTTAttributedLabel (2.0.0)
  - twitter-text (1.14.7)
  - TYBlurImage (1.2.1)
  - UIDevice-Hardware (0.1.13)
  - UrbanAirship-iOS-AppExtensions (10.2.2)
  - UrbanAirship-iOS-SDK (10.2.2)
  - YoutubePlayer-in-WKWebView (0.2.3)

DEPENDENCIES:
  - Adjust (~> 4.18)
  - AFNetworking (~> 3.0)
  - Bolts (= 1.9)
  - Branch (~> 0.27)
  - Crashlytics (~> 3.13.4)
  - Fabric (~> 1.10.2)
  - FBAudienceNetwork (~> 5.4)
  - FBSDKCoreKit (~> 5.3)
  - FBSDKLoginKit (~> 5.3)
  - FBSDKMessengerShareKit (~> 1.3.2)
  - FBSDKShareKit (~> 5.3)
  - Firebase/AdMob (< 7)
  - Firebase/Core (< 7)
  - Firebase/Performance (< 7)
  - Firebase/RemoteConfig (< 7)
  - FLEX (~> 3.0)
  - GoogleAds-IMA-iOS-SDK (~> 3.8.1)
  - HockeySDK/AllFeaturesLib
  - JFMinimalNotifications (from `https://github.com/Onefootball/JFMinimalNotifications`, commit `30902b510e3728998af66364601ffe15c5f41ce6`)
  - JWPlayer-SDK (~> 3.6.2)
  - KeychainAccess (~> 3.2)
  - Localytics (~> 5.4)
  - mopub-ios-sdk (~> 5.8)
  - NewRelicAgent (~> 6.8)
  - Nimble (~> 8.0)
  - Nimble-Snapshots (~> 8.0)
  - SDWebImage (~> 5.1)
  - SimulatorStatusMagic
  - SwiftLint (~> 0.35)
  - TaboolaSDK (= 2.3.3)
  - TTTAttributedLabel (~> 2.0)
  - twitter-text (~> 1.14)
  - TYBlurImage
  - UIDevice-Hardware (~> 0.1)
  - UrbanAirship-iOS-AppExtensions (~> 10.2)
  - UrbanAirship-iOS-SDK (~> 10.2)
  - YoutubePlayer-in-WKWebView (from `https://github.com/motain/youtube-ios-player-helper.git`, commit `323b00d08890ba2b4244699cbc86b6ec3286f243`)

SPEC REPOS:
  https://github.com/cocoapods/specs.git:
    - Adjust
    - AFNetworking
    - Bolts
    - Branch
    - Crashlytics
    - Fabric
    - FBAudienceNetwork
    - FBSDKCoreKit
    - FBSDKLoginKit
    - FBSDKMessengerShareKit
    - FBSDKShareKit
    - Firebase
    - FirebaseABTesting
    - FirebaseAnalytics
    - FirebaseAnalyticsInterop
    - FirebaseCore
    - FirebaseCoreDiagnostics
    - FirebaseCoreDiagnosticsInterop
    - FirebaseInstanceID
    - FirebasePerformance
    - FirebaseRemoteConfig
    - FLEX
    - Google-Mobile-Ads-SDK
    - GoogleAds-IMA-iOS-SDK
    - GoogleAppMeasurement
    - GoogleDataTransport
    - GoogleDataTransportCCTSupport
    - GoogleToolboxForMac
    - GoogleUtilities
    - GTMSessionFetcher
    - HockeySDK
    - iOSSnapshotTestCase
    - JWPlayer-SDK
    - KeychainAccess
    - Localytics
    - mopub-ios-sdk
    - nanopb
    - NewRelicAgent
    - Nimble
    - Nimble-Snapshots
    - Protobuf
    - SDWebImage
    - SimulatorStatusMagic
    - SwiftLint
    - TaboolaSDK
    - TTTAttributedLabel
    - twitter-text
    - TYBlurImage
    - UIDevice-Hardware
    - UrbanAirship-iOS-AppExtensions
    - UrbanAirship-iOS-SDK

EXTERNAL SOURCES:
  JFMinimalNotifications:
    :commit: 30902b510e3728998af66364601ffe15c5f41ce6
    :git: https://github.com/Onefootball/JFMinimalNotifications
  YoutubePlayer-in-WKWebView:
    :commit: 323b00d08890ba2b4244699cbc86b6ec3286f243
    :git: https://github.com/motain/youtube-ios-player-helper.git

CHECKOUT OPTIONS:
  JFMinimalNotifications:
    :commit: 30902b510e3728998af66364601ffe15c5f41ce6
    :git: https://github.com/Onefootball/JFMinimalNotifications
  YoutubePlayer-in-WKWebView:
    :commit: 323b00d08890ba2b4244699cbc86b6ec3286f243
    :git: https://github.com/motain/youtube-ios-player-helper.git

SPEC CHECKSUMS:
  Adjust: 1fda924c9a84d738301c20cf147db0ad58c50f4e
  AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
  Bolts: ac6567323eac61e203f6a9763667d0f711be34c8
  Branch: edf6cab0cecb437d6a6abba3a25d0a0fa6f277ec
  Crashlytics: 2dfd686bcb918dc10ee0e76f7f853fe42c7bd552
  Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
  FBAudienceNetwork: c1514860ed6d9ba9f97350f3fbb3ac49556f5e43
  FBSDKCoreKit: 39748deefe37a005f983722e433be2ddcdd83ae7
  FBSDKLoginKit: bc0329e10045789e8d40b12d4f15ddbd07a898e2
  FBSDKMessengerShareKit: bdd14265f5845e6d1c95a128ab33705a68ca1c21
  FBSDKShareKit: f61d03f36ce4f1b379c7de7dbfe173662e68be44
  Firebase: 5e6b7b12bf9adb90986688edc06b156c37e109cd
  FirebaseABTesting: 0d10f3cdc3fa00f3f175b5b56c1003c8e888299f
  FirebaseAnalytics: 0e3ecff2c5d86070f7d4325e21f1edabfbd558dc
  FirebaseAnalyticsInterop: d48b6ab67bcf016a05e55b71fc39c61c0cb6b7f3
  FirebaseCore: 064c2dd92a8ca5974bbdcb080df9921e46bd34cd
  FirebaseCoreDiagnostics: af29e43048607588c050889d19204f4d7b758c9f
  FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb
  FirebaseInstanceID: 550df9be1f99f751d8fcde3ac342a1e21a0e6c42
  FirebasePerformance: f34a8250a9ff3c969e18bf89990486962354d9a2
  FirebaseRemoteConfig: 03efa57106f9b6f7afe36658de4a9c67c803d3a8
  FLEX: d66c759bce0f6ebbbf472c742380874d846f2883
  Google-Mobile-Ads-SDK: d48dbaf5bae1ab7a94a9786f493c26c454bc6f16
  GoogleAds-IMA-iOS-SDK: 9659b8999443366d2d159413c189e55d88734b78
  GoogleAppMeasurement: 434cc7be25e71dc04b8d0e3079125127b330e84a
  GoogleDataTransport: f6fe28f43e3a300736854260961ad485b473edc5
  GoogleDataTransportCCTSupport: 862418a8cdda520c4dd4af83a756d04efe4a6990
  GoogleToolboxForMac: b3553629623a3b1bff17f555e736cd5a6d95ad55
  GoogleUtilities: f895fde57977df4e0233edda0dbeac490e3703b6
  GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
  HockeySDK: 15afe6bc0a5bfe3a531fd73dbf082095f37dac3b
  iOSSnapshotTestCase: 30d540b0c8feb9d7f8ff97acc25a3804b48ee264
  JFMinimalNotifications: 6178a493b503c9af365aa1d4258019da4f31efa2
  JWPlayer-SDK: c99b17eb4bda08626569ff91c82caa30bc077e58
  KeychainAccess: 3b1bf8a77eb4c6ea1ce9404c292e48f948954c6b
  Localytics: 5f287ee7647038fff9d0890ea638fa6a928003aa
  mopub-ios-sdk: b63e15803e70b92d0b51c3e1c49bbcd78cd3d1d5
  nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
  NewRelicAgent: 47395bb5c51e3fbf9895ca97dd4971628e5e69d7
  Nimble: 18d5360282923225d62b09d781f63abc1a0111fc
  Nimble-Snapshots: 8ec63f41ce6c7229a17be9a64edbc123b181f75b
  Protobuf: a4dc852ad69c027ca2166ed287b856697814375b
  SDWebImage: 96d7f03415ccb28d299d765f93557ff8a617abd8
  SimulatorStatusMagic: 28d4a9d1a500ac7cea0b2b5a43c1c6ddb40ba56c
  SwiftLint: 5553187048b900c91aa03552807681bb6b027846
  TaboolaSDK: 11d7e268fb7e6f66f4c60432bfef9d11b1b9b6c3
  TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
  twitter-text: 77056d112e05609842272a61cde78850bf1d2854
  TYBlurImage: a931704cfbfb31aa00a5b658063e0742b34e4043
  UIDevice-Hardware: c10ce5703fa8de762079b84236c548cf31223531
  UrbanAirship-iOS-AppExtensions: 1f0a3fab8dcda54d20d7e4221685846e3f4f1786
  UrbanAirship-iOS-SDK: a5ff86dcdb2582590aec635299931278cfeb53c4
  YoutubePlayer-in-WKWebView: 9cfe2a1208c91f82d5cc5eaff1f0dfc8552dd3f1

PODFILE CHECKSUM: b733e558cb0bfb54954f6e38c05bdfebf0c7c2d2

COCOAPODS: 1.7.5

Console logs:

[Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    acct = "com.google.iid.checkin-account";
    class = genp;
    gena = "com.google.iid";
    "m_Limit" = "m_LimitAll";
    "r_Attributes" = 1;
    "r_Data" = 1;
    svce = "com.google.iid.checkin-service";
}
2019-10-11 15:48:47.732289+0200 (AppName)[4627:1206304] 6.10.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    acct = "(bundle identifier)";
    class = genp;
    gena = "com.google.iid";
    "m_Limit" = "m_LimitAll";
    "r_Attributes" = 1;
    "r_Data" = 1;
    svce = "com.google.iid.checkin";
}
2019-10-11 15:48:47.733358+0200 (AppName)[4627:1206304] 6.10.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    atag = {length = 18, bytes = 0x636f6d2e676f6f676c652e6969642d7c4b7c};
    class = keys;
    "r_Ref" = 1;
    type = 42;
}
@paulb777 paulb777 removed this from the 6.10.0 milestone Oct 12, 2019
@visumickey
Copy link
Contributor

Thanks @tomerciucran. We are investigating this to make sure we iron this out completely.

@levantAJ
Copy link

I think we got the same issue!

Fatal Exception: NSGenericException
Task created in a session that has been invalidated
__InstrumentDataTaskWithRequestCompletionHandler_block_invoke

Fatal Exception: NSGenericException
0  CoreFoundation                 0x216a2a98c __exceptionPreprocess
1  libobjc.A.dylib                0x215c039f8 objc_exception_throw
2  CFNetwork                      0x216fd3600 -[__NSCFURLLocalSessionConnection _tick_initialize]
3  MyApp                       0x1013360bc __InstrumentDataTaskWithRequestCompletionHandler_block_invoke
4  MyApp                       0x1013360bc __InstrumentDataTaskWithRequestCompletionHandler_block_invoke
5  MyApp                       0x101391bec -[RCNConfigFetch URLSessionDataTaskWithContent:completionHandler:] + 551 (RCNFetch.m:551)
6  MyApp                       0x1013908e8 -[RCNConfigFetch fetchWithUserProperties:completionHandler:] + 474 (RCNFetch.m:474)
7  libdispatch.dylib              0x216468a38 _dispatch_call_block_and_release
8  libdispatch.dylib              0x2164697d4 _dispatch_client_callout
9  libdispatch.dylib              0x216412324 _dispatch_lane_serial_drain$VARIANT$mp
10 libdispatch.dylib              0x216412e40 _dispatch_lane_invoke$VARIANT$mp
11 libdispatch.dylib              0x21641b4ac _dispatch_workloop_worker_thread
12 libsystem_pthread.dylib        0x21664a114 _pthread_wqthread
13 libsystem_pthread.dylib        0x21664ccd4 start_wqthread

Versions:

Using Firebase (6.8.1)
Using FirebaseABTesting (3.1.1)
Using FirebaseAnalytics (6.1.1)
Using FirebaseAnalyticsInterop (1.4.0)
Using FirebaseCore (6.2.3)
Using FirebaseCoreDiagnostics (1.0.1)
Using FirebaseCoreDiagnosticsInterop (1.0.0)
Using FirebaseInstanceID (4.2.5)
Using FirebasePerformance (3.1.4)
Using FirebaseRemoteConfig (4.4.0)
@visumickey
Copy link
Contributor

Thanks a lot for these inputs. We are on this and hoping to have a fix rolled out in the upcoming release. Will keep this thread posted.

@JohnnyTseng
Copy link

@visumickey @paulb777

Will removing performance SDK temporarily fix this issue? Since the change log mentioned this is related to performance SDK

Screen Shot 2019-11-04 at 17 22 56

@visumickey
Copy link
Contributor

@JohnnyTseng Sure. Removing performance SDK would mitigate the crashes for now. A permanent fix for this is being built and will rollout in the next few days to mitigate this issue.

@JohnnyTseng
Copy link

JohnnyTseng commented Nov 5, 2019

Thanks @visumickey , we can confirm that removing performance SDK does fixed this issue for our users temporarily. Still expecting a fix for this issue, Thanks for hard working!

@JohnnyTseng
Copy link

Hi @visumickey
Does version 6.12.0 fixes this issue? The latest change log of performance section didn't mentioned about this issue. Wondering if it is deployed in this version, Thanks!

Screen Shot 2019-11-06 at 21 59 51

@visumickey
Copy link
Contributor

This issue is fixed and will be rolled out in the upcoming release of Firebase Performance.

@ryanwilson
Copy link
Member

Firebase 6.13.0 was just released and should address this issue. Please update and re-open if you're still seeing the issue, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.