firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

Crash in FIRInstanceIDCheckinService checkinWithExistingCheckin #3290

Closed 1amageek closed 5 years ago

1amageek commented 5 years ago

[READ] Step 1: Are you in the right place?

[REQUIRED] Step 2: Describe your environment

Podfile

  pod 'Firebase'
  pod 'Firebase/Analytics'
  pod 'Firebase/Auth'
  pod 'Firebase/Messaging'
  pod 'Firebase/Functions'
  pod 'Firebase/Performance'
  pod 'Firebase/DynamicLinks'

  pod 'FirebaseUI/Auth'
  pod 'FirebaseUI/Phone'

Podfile.lock

PODS:
  - Ballcap (0.8.1):
    - Firebase
    - Firebase/Firestore
    - Firebase/Storage
  - BoringSSL-GRPC (0.0.3):
    - BoringSSL-GRPC/Implementation (= 0.0.3)
    - BoringSSL-GRPC/Interface (= 0.0.3)
  - BoringSSL-GRPC/Implementation (0.0.3):
    - BoringSSL-GRPC/Interface (= 0.0.3)
  - BoringSSL-GRPC/Interface (0.0.3)
  - Firebase (6.3.0):
    - Firebase/Core (= 6.3.0)
  - Firebase/Analytics (6.3.0):
    - Firebase/Core
  - Firebase/Auth (6.3.0):
    - Firebase/CoreOnly
    - FirebaseAuth (~> 6.1.2)
  - Firebase/Core (6.3.0):
    - Firebase/CoreOnly
    - FirebaseAnalytics (= 6.0.2)
  - Firebase/CoreOnly (6.3.0):
    - FirebaseCore (= 6.0.3)
  - Firebase/DynamicLinks (6.3.0):
    - Firebase/CoreOnly
    - FirebaseDynamicLinks (~> 4.0.0)
  - Firebase/Firestore (6.3.0):
    - Firebase/CoreOnly
    - FirebaseFirestore (~> 1.4.0)
  - Firebase/Functions (6.3.0):
    - Firebase/CoreOnly
    - FirebaseFunctions (~> 2.5.1)
  - Firebase/Messaging (6.3.0):
    - Firebase/CoreOnly
    - FirebaseMessaging (~> 4.1.0)
  - Firebase/Performance (6.3.0):
    - Firebase/CoreOnly
    - FirebasePerformance (~> 3.1.0)
  - Firebase/Storage (6.3.0):
    - Firebase/CoreOnly
    - FirebaseStorage (~> 3.2.1)
  - FirebaseABTesting (3.0.0):
    - FirebaseCore (~> 6.0)
    - Protobuf (~> 3.5)
  - FirebaseAnalytics (6.0.2):
    - FirebaseCore (~> 6.0)
    - FirebaseInstanceID (~> 4.2)
    - GoogleAppMeasurement (= 6.0.2)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 0.3)
  - FirebaseAnalyticsInterop (1.2.0)
  - FirebaseAuth (6.1.2):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.2)
    - GoogleUtilities/Environment (~> 6.2)
    - GTMSessionFetcher/Core (~> 1.1)
  - FirebaseAuthInterop (1.0.0)
  - FirebaseCore (6.0.3):
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/Logger (~> 6.0)
  - FirebaseDynamicLinks (4.0.0):
    - FirebaseAnalyticsInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
  - FirebaseFirestore (1.4.0):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - FirebaseFirestore/abseil-cpp (= 1.4.0)
    - "gRPC-C++ (= 0.0.9)"
    - leveldb-library (~> 1.20)
    - nanopb (~> 0.3.901)
    - Protobuf (~> 3.1)
  - FirebaseFirestore/abseil-cpp (1.4.0):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - "gRPC-C++ (= 0.0.9)"
    - leveldb-library (~> 1.20)
    - nanopb (~> 0.3.901)
    - Protobuf (~> 3.1)
  - FirebaseFunctions (2.5.1):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - GTMSessionFetcher/Core (~> 1.1)
  - FirebaseInstanceID (4.2.0):
    - FirebaseCore (~> 6.0)
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/UserDefaults (~> 6.0)
  - FirebaseMessaging (4.1.0):
    - FirebaseAnalyticsInterop (~> 1.1)
    - FirebaseCore (~> 6.0)
    - FirebaseInstanceID (~> 4.1)
    - GoogleUtilities/AppDelegateSwizzler (~> 6.2)
    - GoogleUtilities/Environment (~> 6.2)
    - GoogleUtilities/Reachability (~> 6.2)
    - GoogleUtilities/UserDefaults (~> 6.2)
    - Protobuf (~> 3.1)
  - FirebasePerformance (3.1.0):
    - FirebaseCore (~> 6.0)
    - FirebaseInstanceID (~> 4.2)
    - FirebaseRemoteConfig (~> 4.1)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
    - GoogleUtilities/Environment (~> 6.0)
    - GoogleUtilities/ISASwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GTMSessionFetcher/Core (~> 1.1)
    - Protobuf (~> 3.5)
  - FirebaseRemoteConfig (4.1.0):
    - FirebaseABTesting (~> 3.0)
    - FirebaseCore (~> 6.0)
    - FirebaseInstanceID (~> 4.2)
    - GoogleUtilities/Environment (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - Protobuf (~> 3.5)
  - FirebaseStorage (3.2.1):
    - FirebaseAuthInterop (~> 1.0)
    - FirebaseCore (~> 6.0)
    - GTMSessionFetcher/Core (~> 1.1)
  - FirebaseUI/Auth (8.0.2):
    - Firebase/Auth (~> 6.0)
    - GoogleUtilities/UserDefaults
  - FirebaseUI/Phone (8.0.2):
    - FirebaseUI/Auth
  - GoogleAppMeasurement (6.0.2):
    - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
    - GoogleUtilities/MethodSwizzler (~> 6.0)
    - GoogleUtilities/Network (~> 6.0)
    - "GoogleUtilities/NSData+zlib (~> 6.0)"
    - nanopb (~> 0.3)
  - 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.2.1):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (6.2.1)
  - GoogleUtilities/ISASwizzler (6.2.1)
  - GoogleUtilities/Logger (6.2.1):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (6.2.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (6.2.1):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (6.2.1)"
  - GoogleUtilities/Reachability (6.2.1):
    - GoogleUtilities/Logger
  - GoogleUtilities/UserDefaults (6.2.1):
    - GoogleUtilities/Logger
  - "gRPC-C++ (0.0.9)":
    - "gRPC-C++/Implementation (= 0.0.9)"
    - "gRPC-C++/Interface (= 0.0.9)"
  - "gRPC-C++/Implementation (0.0.9)":
    - "gRPC-C++/Interface (= 0.0.9)"
    - gRPC-Core (= 1.21.0)
    - nanopb (~> 0.3)
  - "gRPC-C++/Interface (0.0.9)"
  - gRPC-Core (1.21.0):
    - gRPC-Core/Implementation (= 1.21.0)
    - gRPC-Core/Interface (= 1.21.0)
  - gRPC-Core/Implementation (1.21.0):
    - BoringSSL-GRPC (= 0.0.3)
    - gRPC-Core/Interface (= 1.21.0)
    - nanopb (~> 0.3)
  - gRPC-Core/Interface (1.21.0)
  - GTMSessionFetcher/Core (1.2.2)
  - leveldb-library (1.20)
  - nanopb (0.3.901):
    - nanopb/decode (= 0.3.901)
    - nanopb/encode (= 0.3.901)
  - nanopb/decode (0.3.901)
  - nanopb/encode (0.3.901)
  - Protobuf (3.8.0)

DEPENDENCIES:
  - Ballcap
  - Firebase
  - Firebase/Analytics
  - Firebase/Auth
  - Firebase/DynamicLinks
  - Firebase/Functions
  - Firebase/Messaging
  - Firebase/Performance
  - FirebaseUI/Auth
  - FirebaseUI/Phone

SPEC REPOS:
  https://github.com/cocoapods/specs.git:
    - Ballcap
    - BoringSSL-GRPC
    - Firebase
    - FirebaseABTesting
    - FirebaseAnalytics
    - FirebaseAnalyticsInterop
    - FirebaseAuth
    - FirebaseAuthInterop
    - FirebaseCore
    - FirebaseDynamicLinks
    - FirebaseFirestore
    - FirebaseFunctions
    - FirebaseInstanceID
    - FirebaseMessaging
    - FirebasePerformance
    - FirebaseRemoteConfig
    - FirebaseStorage
    - FirebaseUI
    - GoogleAppMeasurement
    - GoogleToolboxForMac
    - GoogleUtilities
    - "gRPC-C++"
    - gRPC-Core
    - GTMSessionFetcher
    - leveldb-library
    - nanopb
    - Protobuf

SPEC CHECKSUMS:
  Ballcap: 541ae3a464ace98ac5720b65314cb55b81ec6e9b
  BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318
  Firebase: 8432d732974498afd5987e9001a05f90f1a3d625
  FirebaseABTesting: a32c488eb75089a61eb3d86db061dfb909d765db
  FirebaseAnalytics: 470ddab7253b21ad5a40bebd4a9903d7ae19386a
  FirebaseAnalyticsInterop: efbe45c8385ec626e29f9525e5ebd38520dfb6c1
  FirebaseAuth: 7fa2cc010b93770831a4e7a60651b52c3b8d111a
  FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
  FirebaseCore: 68f8a7f50cdae542715d4e86afa37c4067217dcb
  FirebaseDynamicLinks: 25fc45fdf2557ee2ee630999c301245d8911792e
  FirebaseFirestore: 75768d91aad491eccdc02202b8161cff9872300e
  FirebaseFunctions: 5af7c35d1c5e41608fecbb667eb6c4e672e318d0
  FirebaseInstanceID: f20243a1d828e0e9a3798b995174dedc16f1b32a
  FirebaseMessaging: 0ac5310133e6ada4cdd44d42e92038855214a5e9
  FirebasePerformance: 1cf814c294cb0f6e0d36cde0760d09835b13c9ce
  FirebaseRemoteConfig: 7c64ecec5ca63d7c6b304509c3a6f9a036d403d4
  FirebaseStorage: 926d41552072b9fee67aa645760f05f87b7ce604
  FirebaseUI: 8734527e38959ba31b433b8115c21941d1b67ec8
  GoogleAppMeasurement: a35a645835bae31b6bdc0576396bc23908f12a22
  GoogleToolboxForMac: b3553629623a3b1bff17f555e736cd5a6d95ad55
  GoogleUtilities: c7a0b08bda3bf808be823ed151f0e28ac6866e71
  "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83
  gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947
  GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
  leveldb-library: 08cba283675b7ed2d99629a4bc5fd052cd2bb6a5
  nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
  Protobuf: 3f617b9a6e73605565086864c9bc26b2bf2dd5a3

PODFILE CHECKSUM: 69a6554ea00ca2e484134a0a9991eec49627dbdb

COCOAPODS: 1.7.2

[REQUIRED] Step 3: Describe the problem

スクリーンショット 2019-07-02 15 07 20

Steps to reproduce:

  1. pod install
  2. build

Relevant Code:

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        FirebaseApp.configure()
        return true
    }
google-oss-bot commented 5 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

dmandar commented 5 years ago

Thanks for reporting. Is it possible to get a stack trace? Also, please enable verbose logging https://firebase.google.com/docs/reference/ios/firebasecore/api/reference/Classes/FIRConfiguration before retrying for a repro. Thanks.

1amageek commented 5 years ago

@dmandar

2019-07-02 19:17:30.303487+0900 CrashSample[4712:98641] 6.3.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set.
2019-07-02 19:17:30.454239+0900 CrashSample[4712:98640] 6.3.0 - [GULReachability][I-REA902003] Monitoring the network status
2019-07-02 19:17:30.547625+0900 CrashSample[4712:98665] 6.3.0 - [Firebase/RemoteConfig][I-RCN000062] Loading database at path /Users/1amageek/Library/Developer/CoreSimulator/Devices/1BA62A40-6D34-4138-B328-8DE177018EEA/data/Containers/Data/Application/2F4CEF14-CAAB-4602-AF7A-453B58CD352B/Library/Application Support/Google/RemoteConfig/RemoteConfig.sqlite3
2019-07-02 19:17:30.550291+0900 CrashSample[4712:98665] 6.3.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: {
    acct = "team.stamp.CrashSample";
    class = genp;
    gena = "com.google.iid";
    "m_Limit" = "m_LimitAll";
    "r_Attributes" = 1;
    "r_Data" = 1;
    svce = "com.google.iid.checkin";
}
ryanwilson commented 5 years ago

Thanks for the report @1amageek - this is the same issue we're seeing in #3283. I'll close this as a duplicate, please follow along for progress updates there.