firebase / firebase-ios-sdk

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

[Crashlytics] [tvOS][iOS] Crash report not visible in Firebase #5542

Closed gangadharbonda closed 4 years ago

gangadharbonda commented 4 years ago

Step 0: Are you in the right place?

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

As part of migration from Fabric to Firebase we integrated the source files corresponding to Firebase Crashlytics and its dependence frameworks source files into our application. This is done to support both iOS/tvOS as we do not have the SDK support for tvOS or Carthage integration.

So, when the crash occurs in the application and trying to upload in next launch, I see uploaded information in the logs but data is not available in Firebase. In some cases it is showing succeed. In few other cases it do not succceed at all.

Please find below the logs

2020-05-07 05:33:02.939164-0700 MetroNet-iOS[9704:3335667] [DYMTLInitPlatform] platform initialization successful Automtation-Debug ["/var/containers/Bundle/Application/F04B234F-D77E-4AE8-9936-10EAB4655174/MetroNet-iOS.app/MetroNet-iOS", "-FIRDebugEnabled"] Automtation-Debug : notifyOpenUrl nil 2020-05-07 05:33:03.392001-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::55 :: Utilities :: bundleShortVersion 0.0.18 2020-05-07 05:33:03.392553-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::62 :: Utilities :: buildIteration 14 2020-05-07 05:33:03.392683-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::68 :: Utilities :: getFullAppVersion 0.0.18.14 2020-05-07 05:33:03.447779-0700 MetroNet-iOS[9704:3335505] [Firebase/Crashlytics] Version DISPLAY_VERSION 2020-05-07 05:33:03.450730-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Core][I-COR000001] Configuring the default app. 2020-05-07 05:33:03.451173-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Core][I-COR000033] Data Collection flag is not set. 2020-05-07 05:33:03.451556-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT 2020-05-07 05:33:03.451726-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT 2020-05-07 05:33:03.454541-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics] Running on iPad4,1, 12.4.5 (16G161) 2020-05-07 05:33:03.456635-0700 MetroNet-iOS[9704:3335683] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Root: /var/mobile/Containers/Data/Application/613489BF-31E3-4D90-B554-6B6D0B61C17A/Library/Caches/com.crashlytics.data/com.mobi.xxx.yyy 2020-05-07 05:33:03.477571-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Automatic data collection is enabled. 2020-05-07 05:33:03.509087-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Unsent reports will be uploaded at startup 2020-05-07 05:33:03.509842-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: { acct = "com.mobi.xxx.yyy"; class = genp; gena = "com.google.iid"; "m_Limit" = "m_LimitAll"; "r_Attributes" = 1; "r_Data" = 1; svce = "com.google.iid.checkin"; } 2020-05-07 05:33:03.511972-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/InstanceID][I-IID023000] Info is not found in Keychain. OSStatus: -25300. Keychain query: { acct = "com.mobi.xxx.yyy"; class = genp; gena = "com.google.iid-tokens"; "m_Limit" = "m_LimitAll"; "r_Attributes" = 1; "r_Data" = 1; svce = "761962768517:*"; } 2020-05-07 05:33:03.613399-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::55 :: Utilities :: bundleShortVersion 0.0.18 2020-05-07 05:33:03.613898-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::62 :: Utilities :: buildIteration 14 2020-05-07 05:33:03.613998-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::68 :: Utilities :: getFullAppVersion 0.0.18.14 2020-05-07 05:33:03.624478-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::55 :: Utilities :: bundleShortVersion 0.0.18 2020-05-07 05:33:03.625007-0700 MetroNet-iOS[9704:3335505] DEBUG:: InfoPlistUtils.swift::62 :: Utilities :: buildIteration 14 2020-05-07 05:33:03.783153-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.783233-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.871785-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.871931-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.872058-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.872262-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.872394-0700 MetroNet-iOS[9704:3335656] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.965171-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.965913-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.966207-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.966451-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.985529-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.987230-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.988882-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.990579-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:03.992877-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:04.004384-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:04.005962-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:04.007842-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:04.010464-0700 MetroNet-iOS[9704:3335704] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Image not found 2020-05-07 05:33:04.042166-0700 MetroNet-iOS[9704:3335703] [WC] WCSession has not been activated 2020-05-07 05:33:04.083222-0700 MetroNet-iOS[9704:3335662] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Preparing the report for the new endpoint: 1 2020-05-07 05:33:04.084454-0700 MetroNet-iOS[9704:3335701] [Firebase/Crashlytics] Packaged report with id '6c1532788ce244ee9bc6aebf69fef38c' for submission 2020-05-07 05:33:04.084902-0700 MetroNet-iOS[9704:3335662] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports] Submitting report 2020-05-07 05:33:04.114341-0700 MetroNet-iOS[9704:3335701] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Unable to read identifier at path /var/mobile/Containers/Data/Application/613489BF-31E3-4D90-B554-6B6D0B61C17A/Library/Caches/com.crashlytics.data/com.mobi.xxx.yyy/v5/reports/processing/6c1532788ce244ee9bc6aebf69fef38c 2020-05-07 05:33:04.133406-0700 MetroNet-iOS[9704:3335701] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Preparing the report for the new endpoint: 1 2020-05-07 05:33:04.134017-0700 MetroNet-iOS[9704:3335701] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Failed to move file, inputs invalid 2020-05-07 05:33:04.134476-0700 MetroNet-iOS[9704:3335701] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] Unable to move report to prepared 2020-05-07 05:33:04.134892-0700 MetroNet-iOS[9704:3335701] 6.24.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports] Completed report submission with id: 6c1532788ce244ee9bc6aebf69fef38c

Steps to reproduce:

Log:

google-oss-bot commented 4 years ago

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

gangadharbonda commented 4 years ago

I have seen a particular issue when using on tvOS where it uploaded Crash reports successfully twice when I generated crashes initially and then onwards it keeps trying but never successful. Attached the log and let me know for more information (This is continuation to above)

FirebaseCrashlytics.rtf.zip

TKBurner commented 4 years ago

Thanks can you let me know if your TVos and iOS app are in the same project with the same bundle ID? That would cause a weird behavior.

gangadharbonda commented 4 years ago

To be more detailed we have an tvOS and iOS app with same bundle identifier under different projects. So, we follow the same logic across all the flavors for our master application

TKBurner commented 4 years ago

Thanks. Usually the issue would be an app activation issue in Crashlytics. To resolve that, you'll need to email support so they can manually active your bundle ID. I'm sorry for the inconvenience.

morganchen12 commented 4 years ago

You can contact support via this link.