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

Crash report not uploading after updating firebase crashlytics to 19.2.0 and bom to 33.4.0 #6363

Open
Dudi111 opened this issue Oct 10, 2024 · 9 comments

Comments

@Dudi111
Copy link

Dudi111 commented Oct 10, 2024

Not able to upload Crash report after updating firebase crashlytics to 19.2.0 and bom to 33.4.0. Working fine in firebase crashlytics version 19.1.0 and bom version 33.3.0

@google-oss-bot
Copy link
Contributor

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

@lehcar09
Copy link
Contributor

Hi @Dudi111, thank you for reaching out. I tried reproducing the issue by installing an app with Firebase Crashlytics v19.1.0 then update to 19.2.0, however, the crashes after the updating the version were uploaded without any issue.

Does the issue occur on certain devices and/or android versions? By any chance can you share the debug logs from your app? You can check this documentation on how to enable the debug logging in Firebase Crashlytics.

@Dudi111
Copy link
Author

Dudi111 commented Oct 11, 2024

Hi @lehcar09, I have crashed application 3 times but did not find any log stating :"Crashlytics report upload complete"
I am using POCO x4 and x5 devices.
Logs are only getting printed at time of firebase initialization and on crash no logs getting printed. Below are the logs details:

10-11 11:17:52.954 2899 3038 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:18:54.476 3319 3319 I FirebaseCrashlytics: Initializing Firebase Crashlytics 19.2.0 for quipment.qristal.qds
10-11 11:18:54.483 3319 3319 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:18:54.489 3319 3349 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:18:54.489 3319 3319 D FirebaseCrashlytics: Could not find resources: 0 0 0
10-11 11:18:54.489 3319 3319 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
10-11 11:18:54.493 3319 3319 D FirebaseCrashlytics: Checking for cached settings...
10-11 11:18:54.500 3319 3319 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":176961,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":true,"collect_metric_kit":false,"collect_build_ids":true},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"63e5f71c3bfaf198dad2f8de","bundle_id":"quipment.qristal.qds"},"on_demand_upload_rate_per_minute":10,"on_demand_backoff_base":1.2,"on_demand_backoff_step_duration_seconds":60,"app_quality":{"sessions_enabled":true,"sampling_rate":1,"session_timeout_seconds":1800},"expires_at":1728728451293}
10-11 11:18:54.530 3319 3319 D FirebaseCrashlytics: Successfully configured exception handler.
10-11 11:18:54.531 3319 3319 D FirebaseCrashlytics: Initializing Crashlytics blocked main for 56 ms
10-11 11:18:54.531 3319 3345 D FirebaseCrashlytics: Opening a new session with ID 6708BC4601F600010CF7A8A731F5308B
10-11 11:18:54.532 3319 3345 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:18:54.570 3319 3349 D FirebaseCrashlytics: Could not register handler for breadcrumbs events.
10-11 11:18:54.570 3319 3349 I FirebaseCrashlytics: No version control information found
10-11 11:18:54.581 3319 3349 D FirebaseCrashlytics: Loaded userId 861380061727487 for session 6708BC08012B00010B5368358864C368
10-11 11:18:55.079 3319 3346 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:19:56.595 3505 3505 I FirebaseCrashlytics: Initializing Firebase Crashlytics 19.2.0 for quipment.qristal.qds
10-11 11:19:56.602 3505 3505 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:19:56.607 3505 3536 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:19:56.607 3505 3505 D FirebaseCrashlytics: Could not find resources: 0 0 0
10-11 11:19:56.608 3505 3505 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
10-11 11:19:56.611 3505 3505 D FirebaseCrashlytics: Checking for cached settings...
10-11 11:19:56.619 3505 3505 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":176961,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":true,"collect_metric_kit":false,"collect_build_ids":true},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"63e5f71c3bfaf198dad2f8de","bundle_id":"quipment.qristal.qds"},"on_demand_upload_rate_per_minute":10,"on_demand_backoff_base":1.2,"on_demand_backoff_step_duration_seconds":60,"app_quality":{"sessions_enabled":true,"sampling_rate":1,"session_timeout_seconds":1800},"expires_at":1728728451293}
10-11 11:19:56.647 3505 3505 D FirebaseCrashlytics: Successfully configured exception handler.
10-11 11:19:56.647 3505 3505 D FirebaseCrashlytics: Initializing Crashlytics blocked main for 54 ms
10-11 11:19:56.648 3505 3532 D FirebaseCrashlytics: Opening a new session with ID 6708BC84026C00010DB1C69070181034
10-11 11:19:56.651 3505 3532 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:19:56.678 3505 3532 D FirebaseCrashlytics: Could not register handler for breadcrumbs events.
10-11 11:19:56.678 3505 3532 I FirebaseCrashlytics: No version control information found
10-11 11:19:56.693 3505 3532 D FirebaseCrashlytics: Loaded userId 861380061727487 for session 6708BC4601F600010CF7A8A731F5308B
10-11 11:19:57.189 3505 3533 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:20:58.694 3901 3901 I FirebaseCrashlytics: Initializing Firebase Crashlytics 19.2.0 for quipment.qristal.qds
10-11 11:20:58.701 3901 3901 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:20:58.706 3901 3978 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:20:58.706 3901 3901 D FirebaseCrashlytics: Could not find resources: 0 0 0
10-11 11:20:58.706 3901 3901 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
10-11 11:20:58.710 3901 3901 D FirebaseCrashlytics: Checking for cached settings...
10-11 11:20:58.717 3901 3901 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":176961,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":true,"collect_metric_kit":false,"collect_build_ids":true},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"63e5f71c3bfaf198dad2f8de","bundle_id":"quipment.qristal.qds"},"on_demand_upload_rate_per_minute":10,"on_demand_backoff_base":1.2,"on_demand_backoff_step_duration_seconds":60,"app_quality":{"sessions_enabled":true,"sampling_rate":1,"session_timeout_seconds":1800},"expires_at":1728728451293}
10-11 11:20:58.745 3901 3901 D FirebaseCrashlytics: Successfully configured exception handler.
10-11 11:20:58.745 3901 3901 D FirebaseCrashlytics: Initializing Crashlytics blocked main for 53 ms
10-11 11:20:58.745 3901 3971 D FirebaseCrashlytics: Opening a new session with ID 6708BCC202CE00010F3D608876CC080E
10-11 11:20:58.750 3901 3971 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
10-11 11:20:58.770 3901 3972 D FirebaseCrashlytics: Could not register handler for breadcrumbs events.
10-11 11:20:58.770 3901 3972 I FirebaseCrashlytics: No version control information found
10-11 11:20:58.778 3901 3972 D FirebaseCrashlytics: Loaded userId 861380061727487 for session 6708BC84026C00010DB1C69070181034
10-11 11:20:59.297 3901 3971 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.

@lehcar09
Copy link
Contributor

Thank you for sharing the logs @Dudi111. I tried running on similar API version 32, 33, and 34 but still unable to reproduce the issue. The crash reports was uploaded. Below are the dependencies I used.

app/build.gradle.kts

dependencies {
   ...
   implementation("com.google.firebase:firebase-crashlytics:19.2.0")
   ...
}

build.gradle.kts

plugins {
    id("com.android.application") version "8.7.0" apply false
    id("com.android.library") version "8.7.0" apply false
    id("org.jetbrains.kotlin.android") version "2.0.20" apply false
    id("com.google.gms.google-services") version "4.4.2" apply false
    id("com.google.firebase.crashlytics") version "3.0.2" apply false
}

By any chance, can you share an MCVE to help us investigate the issue? If you're unable to provide one, can you try our quickstart app and see if you can reproduce the issue?

@Dudi111
Copy link
Author

Dudi111 commented Oct 14, 2024

Hello @lehcar09, Let me share MCVE for this. My application is just a foreground service with no UI.
In my application class onCreate method i have initialised firebase as below:
FirebaseApp.initializeApp(this)
Firebase.crashlytics.setCustomKey("Key", boolean value) //can not provide key and values details
Firebase.crashlytics.setCustomKey("Key", boolean value) //can not provide key and values details
Firebase.crashlytics.setUserId(My number) //can not provide my number details
FirebaseDatabase.getInstance().setPersistenceEnabled(false)

In my foreground service, I am crashing app using below code:
CoroutineScope(Dispatchers.IO).launch {
delay(60000)
throw IllegalStateException("Test error2") //This is of type java. lang. IllegalStateException
}
I am receiving uncaught exception in below var :
var unCaughtExceptionHandler =
Thread.UncaughtExceptionHandler { _, ex ->
Firebase.crashlytics.recordException(ex)
restartService()
}
Below are my plugin info.:
plugins {
id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "2.0.20" apply false
id("com.google.gms.google-services") version "4.4.2" apply false
id("com.google.firebase.crashlytics") version "3.0.2" apply false
}
app/build.gradle
dependencies {
implementation("com.google.firebase:firebase-auth-ktx:23.0.0")
implementation("com.google.firebase:firebase-common-ktx:21.0.0")
implementation("com.google.firebase:firebase-crashlytics:19.2.0")
}

In my application if i user firebase crashlytics v19.1.0 it is working fine (no code changes) but not with v19.2.0. Apart from crashlytics i am using storage, realtime database and those things are working as per expected.
NOTE: For dependency i am using lib.versions.toml file and my app is a system app

@lehcar09
Copy link
Contributor

I have created an MCVE while trying to reproduce the issue. Could you check and update the related files to replicate the issue? Thanks!

@Dudi111
Copy link
Author

Dudi111 commented Oct 17, 2024

Hi @lehcar09 I have updated code to reproduce issue but i am not able to push code to this repository : https://github.com/lehcar09/Issue6363
Please provide necessary permission so that i can push the code.

@lehcar09
Copy link
Contributor

I've added you as the collaborator in the MCVE. Let me know if you encounter another blocker.

@Dudi111
Copy link
Author

Dudi111 commented Oct 18, 2024

Hi @lehcar09 I have pushed the updated code. Please add a google services file and check for crash upload. Crashes will not get uploaded with firebase version 19.2.0 but working fine with 19.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants