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

Crashes not Showing in Firebase console After Removing Fabric #1944

Closed
bmirshafiee opened this issue Sep 7, 2020 · 78 comments
Closed

Crashes not Showing in Firebase console After Removing Fabric #1944

bmirshafiee opened this issue Sep 7, 2020 · 78 comments
Assignees

Comments

@bmirshafiee
Copy link

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 4.0.1
  • Firebase Component: Crashlytics
  • Component version: 17.2.1

[REQUIRED] Step 3:

I have seen this message in my Firebase Crashlytics:
"Please upgrade to the generally available Firebase Crashlytics SDK to continue receiving crash reports in the Firebase console after 15 November 2020."
so I understand that I should remove fabric SDK as soon as possible from my app and publish it.

I saw in my code that I am still using this line :
Fabric.with(this, Crashlytics())
for reporting my crashes.
I completely removed fabric SDK, and checked the documentation for setting up firebase and all is Done.
after creating crash in my app I didn't see any crashes in my firebase console.(have checked on several devices and nothing reported)
but the strange thing is that when I run the app on an emulator 'Pixel 2 API 29', crashes are reporting immediately to firebase console, but no report on crashes on real devices.
What could be the problem?
I have debug the crashes that are not being reported and here is the log :

here when I start the app:

 13:42:57.309 16836 16836 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:42:57.311 16836 16836 D FirebaseCrashlytics: Firebase Analytics is available.
09-07 13:42:57.311 16836 16836 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
09-07 13:42:57.317 16836 16836 D FirebaseCrashlytics: Reading cached settings...
09-07 13:42:57.320 16836 16836 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false},"app":{"status":"activated","update_required":true,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"57943d135680c0485500000f","bundle_id":"org.companyr.appname.app"},"expires_at":1599555557818}
09-07 13:42:57.320 16836 16836 D FirebaseCrashlytics: Returning cached settings.
09-07 13:42:57.321 16836 16836 D FirebaseCrashlytics: Mapping file ID is: 5088e6741e0c4e23ad5f5a0d80366cc0
09-07 13:42:57.321 16836 16836 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
09-07 13:42:57.322 16836 16836 D FirebaseCrashlytics: Installer package name is: null
09-07 13:42:57.330 16836 16836 D FirebaseCrashlytics: Exception handling initialization successful
09-07 13:42:57.338 16836 16869 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 366bbb7ef2064c7d9255a965a8228eb6
09-07 13:42:57.338 16836 16869 D FirebaseCrashlytics: Opening a new session with ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:42:57.345 16836 16869 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-07 13:42:57.369 16836 16836 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:42:57.369 16836 16836 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:42:57.370 16836 16869 D FirebaseCrashlytics: Initialization marker file created.
09-07 13:42:57.370 16836 16869 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
09-07 13:42:57.370 16836 16869 D FirebaseCrashlytics: Finalizing previously open sessions.
09-07 13:42:57.373 16836 16869 D FirebaseCrashlytics: Closing open sessions.
09-07 13:42:57.373 16836 16869 D FirebaseCrashlytics: Closing session: 5F55F66B00FD-0001-3700-AEAF7349CA60
09-07 13:42:57.373 16836 16869 D FirebaseCrashlytics: Collecting session parts for ID 5F55F66B00FD-0001-3700-AEAF7349CA60
09-07 13:42:57.373 16836 16869 D FirebaseCrashlytics: Session 5F55F66B00FD-0001-3700-AEAF7349CA60 has fatal exception: false
09-07 13:42:57.374 16836 16869 D FirebaseCrashlytics: Session 5F55F66B00FD-0001-3700-AEAF7349CA60 has non-fatal exceptions: false
09-07 13:42:57.374 16836 16869 D FirebaseCrashlytics: No events present for session ID 5F55F66B00FD-0001-3700-AEAF7349CA60
09-07 13:42:57.374 16836 16869 D FirebaseCrashlytics: Removing session part files for ID 5F55F66B00FD-0001-3700-AEAF7349CA60
09-07 13:42:57.378 16836 16869 D FirebaseCrashlytics: Closed all previously open sessions
09-07 13:42:57.379 16836 16869 D FirebaseCrashlytics: No reports are available.
09-07 13:42:57.380 16836 16869 D FirebaseCrashlytics: Initialization marker file removed: true
09-07 13:42:57.609 16836 16870 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
09-07 13:42:57.632 16836 16870 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/org.company.appname.app
09-07 13:42:57.648 16836 16866 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sc=ActSplash, _si=5132660799126090707}], name=_vs, timestampInMillis=1599469977581}]
09-07 13:42:58.857 16836 16870 D FirebaseCrashlytics: Update app request ID: efb42ed2d95075a95caae5ee02d5c5b2
09-07 13:42:58.857 16836 16870 D FirebaseCrashlytics: Result was 204
09-07 13:42:59.514 16836 16866 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _et=1929, _sc=ActSplash, _si=5132660799126090707}], name=_e, timestampInMillis=1599469979462}]
09-07 13:42:59.639 16836 16866 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _pc=ActSplash, _pi=5132660799126090707, _sc=ActMain, _si=5132660799126090708}], name=_vs, timestampInMillis=1599469979608}]

and here when a crash happens:

45:00.700 16836 16836 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash3" from thread main
09-07 13:45:00.811 16836 16869 D FirebaseCrashlytics: Closing open sessions.
09-07 13:45:00.812 16836 16869 D FirebaseCrashlytics: Closing session: 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.812 16836 16869 D FirebaseCrashlytics: Collecting session parts for ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.812 16836 16869 D FirebaseCrashlytics: Session 5F55F999014A-0001-41C4-AEAF7349CA60 has fatal exception: true
09-07 13:45:00.813 16836 16869 D FirebaseCrashlytics: Session 5F55F999014A-0001-41C4-AEAF7349CA60 has non-fatal exceptions: false
09-07 13:45:00.814 16836 16869 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.821 16836 16869 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.822 16836 16869 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.823 16836 16869 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.824 16836 16869 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.825 16836 16869 D FirebaseCrashlytics: Removing session part files for ID 5F55F999014A-0001-41C4-AEAF7349CA60
09-07 13:45:00.868 16836 16869 D FirebaseCrashlytics: Opening a new session with ID 5F55FA140364-0002-41C4-AEAF7349CA60
09-07 13:45:00.870 16836 16869 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-07 13:45:00.884 16836 16869 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:45:00.889 16836 18108 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
09-07 13:45:00.890 16836 18108 D FirebaseCrashlytics: Awaiting app exception callback from FA...
09-07 13:45:00.941 16836 16869 D FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F55F999014A000141C4AEAF7349CA60
09-07 13:45:00.948 16836 18110 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=121338, _sc=ActMain, _si=5132660799126090708, timestamp=1599470100700, fatal=1}], name=_ae, timestampInMillis=1599470100889}]
09-07 13:45:00.948 16836 18108 D FirebaseCrashlytics: App exception callback received from FA listener.
09-07 13:45:00.949 16836 16836 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
09-07 13:45:00.950 16836 16869 D FirebaseCrashlytics: Attempting to send crash report at time of crash...
09-07 13:45:00.950 16836 16869 D FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
09-07 13:45:00.950 16836 16869 D FirebaseCrashlytics: Removing report at /data/user/0/org.company.appname.app/files/.com.google.firebase.crashlytics/fatal-sessions/5F55F999014A-0001-41C4-AEAF7349CA60.cls
09-07 13:45:00.986 16836 18110 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _et=121375, _fr=1, _sc=ActMain, _si=5132660799126090708}], name=_e, timestampInMillis=1599470100957}]
09-07 13:45:02.178 18163 18163 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:45:02.178 18163 18163 D FirebaseCrashlytics: Firebase Analytics is available.
09-07 13:45:02.178 18163 18163 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
09-07 13:45:02.188 18163 18163 D FirebaseCrashlytics: Reading cached settings...
09-07 13:45:02.190 18163 18163 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false},"app":{"status":"activated","update_required":true,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"57943d135680c0485500000f","bundle_id":"org.company.appname.app"},"expires_at":1599555557818}
09-07 13:45:02.190 18163 18163 D FirebaseCrashlytics: Returning cached settings.
09-07 13:45:02.192 18163 18163 D FirebaseCrashlytics: Mapping file ID is: 5088e6741e0c4e23ad5f5a0d80366cc0
09-07 13:45:02.192 18163 18163 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
09-07 13:45:02.194 18163 18163 D FirebaseCrashlytics: Installer package name is: null
09-07 13:45:02.202 18163 18192 D FirebaseCrashlytics: Found previous crash marker.
09-07 13:45:02.205 18163 18163 D FirebaseCrashlytics: Exception handling initialization successful
09-07 13:45:02.212 18163 18192 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 366bbb7ef2064c7d9255a965a8228eb6
09-07 13:45:02.213 18163 18192 D FirebaseCrashlytics: Opening a new session with ID 5F55FA1600CD-0001-46F3-AEAF7349CA60
09-07 13:45:02.224 18163 18192 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-07 13:45:02.242 18163 18163 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:45:02.243 18163 18163 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-07 13:45:02.257 18163 18192 D FirebaseCrashlytics: Initialization marker file created.
09-07 13:45:02.258 18163 18192 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
09-07 13:45:02.258 18163 18192 D FirebaseCrashlytics: Finalizing previously open sessions.
09-07 13:45:02.262 18163 18192 D FirebaseCrashlytics: Closing open sessions.
09-07 13:45:02.262 18163 18192 D FirebaseCrashlytics: Closing session: 5F55FA140364-0002-41C4-AEAF7349CA60
09-07 13:45:02.262 18163 18192 D FirebaseCrashlytics: Collecting session parts for ID 5F55FA140364-0002-41C4-AEAF7349CA60
09-07 13:45:02.263 18163 18192 D FirebaseCrashlytics: Session 5F55FA140364-0002-41C4-AEAF7349CA60 has fatal exception: false
09-07 13:45:02.263 18163 18192 D FirebaseCrashlytics: Session 5F55FA140364-0002-41C4-AEAF7349CA60 has non-fatal exceptions: false
09-07 13:45:02.263 18163 18192 D FirebaseCrashlytics: No events present for session ID 5F55FA140364-0002-41C4-AEAF7349CA60
09-07 13:45:02.263 18163 18192 D FirebaseCrashlytics: Removing session part files for ID 5F55FA140364-0002-41C4-AEAF7349CA60
09-07 13:45:02.266 18163 18192 D FirebaseCrashlytics: Closed all previously open sessions
09-07 13:45:02.267 18163 18192 D FirebaseCrashlytics: No reports are available.
09-07 13:45:02.268 18163 18192 D FirebaseCrashlytics: Initialization marker file removed: true
09-07 13:45:02.295 18163 18193 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
09-07 13:45:02.302 18163 18193 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/org.company.appname.app
09-07 13:45:03.641 18163 18193 D FirebaseCrashlytics: Update app request ID: f6f2da80b0aaf1e2949147ce03d3e5fc
09-07 13:45:03.641 18163 18193 D FirebaseCrashlytics: Result was 204
@nihp
Copy link

nihp commented Sep 7, 2020

I am also unable to receive crash in release app. When I run the app in debug mode, I can able to receive fatal errors. But I can't able to receive any crashes in debug or release.

Shall I need to change anything here?

I made the crash using the throw new RuntimeException("Test Crash");

  buildTypes {
        debug {
            signingConfig signingConfigs.release
            versionNameSuffix ".7"

            debuggable true
        }
        release {
            signingConfig signingConfigs.release
//            versionNameSuffix new Date().format('.MMdd-HH+')

            debuggable false
            minifyEnabled false
            shrinkResources false
            zipAlignEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

        }
    }

@kevinkokomani
Copy link

Hi all, if you attempted to upgrade to the Firebase Crashlytics SDK from the Fabric SDK and you didn't use this particular guide to do so, could you go through all of the instructions there, and then see if you're able to get crashes through? It looks like you may have used the Get Started documentation to replace the Fabric SDK, and we've seen this result in some setups that haven't fully removed the old Fabric implementation.

@bmirshafiee
Copy link
Author

bmirshafiee commented Sep 9, 2020

Hi all, if you attempted to upgrade to the Firebase Crashlytics SDK from the Fabric SDK and you didn't use this particular guide to do so, could you go through all of the instructions there, and then see if you're able to get crashes through? It looks like you may have used the Get Started documentation to replace the Fabric SDK, and we've seen this result in some setups that haven't fully removed the old Fabric implementation.

Hi Dear Kevin
Yes actually before I open this issue I gone through this Documentation too and have read all the other issues that has been reported here related to not getting crash in firebase.

1.my app is migrated to androidx
2.I have downloaded google-services.json again and replace it in my module app.(no 2 at the end of google-services.json)
3.I have removed all fabric related lines in app's root-level (project-level) build.gradle and have added "google-services" and "firebase-crashlytics-gradle"
4.in app-level build.gradle I have the two needed plugins. and fabric plugin is removed
and I have the these exact dependencies here :

implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
implementation 'com.google.firebase:firebase-analytics:17.5.0'

and this is Removed:
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1

  1. and at last I have removed:
    Fabric.with(this, Crashlytics())
    and I have changed all
    Crashlytics.someAction()
    to
    FirebaseCrashlytics.getInstance()

and I have removed the fabric api key in manifest too.

but unfortunately still no result in firebase CrashLytics.

again I am sharing my logs with you :

09-09 09:20:58.706 26912 26912 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:20:58.706 26912 26912 D FirebaseCrashlytics: Firebase Analytics is available.
09-09 09:20:58.707 26912 26912 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
09-09 09:20:58.714 26912 26912 D FirebaseCrashlytics: Reading cached settings...
09-09 09:20:58.717 26912 26912 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false},"app":{"status":"activated","update_required":true,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"57943d135680c0485500000f","bundle_id":"org.company.app"},"expires_at":1599711990130}
09-09 09:20:58.717 26912 26912 D FirebaseCrashlytics: Returning cached settings.
09-09 09:20:58.718 26912 26912 D FirebaseCrashlytics: Mapping file ID is: 271eb7be38c94a5c9e5ef71f8c6847d5
09-09 09:20:58.719 26912 26912 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
09-09 09:20:58.720 26912 26912 D FirebaseCrashlytics: Installer package name is: null
09-09 09:20:58.734 26912 26912 D FirebaseCrashlytics: Exception handling initialization successful
09-09 09:20:58.754 26912 26962 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 366bbb7ef2064c7d9255a965a8228eb6
09-09 09:20:58.755 26912 26962 D FirebaseCrashlytics: Opening a new session with ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:20:58.765 26912 26962 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-09 09:20:58.780 26912 26912 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:20:58.780 26912 26912 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:20:58.787 26912 26962 D FirebaseCrashlytics: Initialization marker file created.
09-09 09:20:58.787 26912 26962 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
09-09 09:20:58.787 26912 26962 D FirebaseCrashlytics: Finalizing previously open sessions.
09-09 09:20:58.796 26912 26962 D FirebaseCrashlytics: Closing open sessions.
09-09 09:20:58.796 26912 26962 D FirebaseCrashlytics: Closing session: 5F5859C802DC-0001-5392-AEAF7349CA60
09-09 09:20:58.796 26912 26962 D FirebaseCrashlytics: Collecting session parts for ID 5F5859C802DC-0001-5392-AEAF7349CA60
09-09 09:20:58.797 26912 26962 D FirebaseCrashlytics: Session 5F5859C802DC-0001-5392-AEAF7349CA60 has fatal exception: false
09-09 09:20:58.797 26912 26962 D FirebaseCrashlytics: Session 5F5859C802DC-0001-5392-AEAF7349CA60 has non-fatal exceptions: false
09-09 09:20:58.797 26912 26962 D FirebaseCrashlytics: No events present for session ID 5F5859C802DC-0001-5392-AEAF7349CA60
09-09 09:20:58.797 26912 26962 D FirebaseCrashlytics: Removing session part files for ID 5F5859C802DC-0001-5392-AEAF7349CA60
09-09 09:20:58.799 26912 26962 D FirebaseCrashlytics: Closed all previously open sessions
09-09 09:20:58.800 26912 26962 D FirebaseCrashlytics: No reports are available.
09-09 09:20:58.801 26912 26962 D FirebaseCrashlytics: Initialization marker file removed: true
09-09 09:20:58.968 26912 26958 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sc=ActSplash, _si=-2020819337397583197}], name=_vs, timestampInMillis=1599627058934}]
09-09 09:20:58.981 26912 26963 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
09-09 09:20:58.983 26912 26963 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/org.company.app
09-09 09:21:00.303 26912 26963 D FirebaseCrashlytics: Update app request ID: 786384ab52aee9eff76252ec38f08714
09-09 09:21:00.303 26912 26963 D FirebaseCrashlytics: Result was 204
09-09 09:21:00.889 26912 26958 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _et=1885, _sc=ActSplash, _si=-2020819337397583197}], name=_e, timestampInMillis=1599627060817}]
09-09 09:21:00.983 26912 26958 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _pc=ActSplash, _pi=-2020819337397583197, _sc=ActMain, _si=-2020819337397583196}], name=_vs, timestampInMillis=1599627060937}]
09-09 09:21:03.676 26912 26912 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash3" from thread main
09-09 09:21:03.783 26912 26962 D FirebaseCrashlytics: Closing open sessions.
09-09 09:21:03.783 26912 26962 D FirebaseCrashlytics: Closing session: 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.783 26912 26962 D FirebaseCrashlytics: Collecting session parts for ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.783 26912 26962 D FirebaseCrashlytics: Session 5F585F3202DE-0001-6920-AEAF7349CA60 has fatal exception: true
09-09 09:21:03.784 26912 26962 D FirebaseCrashlytics: Session 5F585F3202DE-0001-6920-AEAF7349CA60 has non-fatal exceptions: false
09-09 09:21:03.784 26912 26962 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.785 26912 26962 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.786 26912 26962 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.786 26912 26962 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.787 26912 26962 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.788 26912 26962 D FirebaseCrashlytics: Removing session part files for ID 5F585F3202DE-0001-6920-AEAF7349CA60
09-09 09:21:03.824 26912 26962 D FirebaseCrashlytics: Opening a new session with ID 5F585F370338-0002-6920-AEAF7349CA60
09-09 09:21:03.825 26912 26962 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-09 09:21:03.833 26912 26962 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:21:03.837 26912 27233 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
09-09 09:21:03.837 26912 27233 D FirebaseCrashlytics: Awaiting app exception callback from FA...
09-09 09:21:03.887 26912 26962 D FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F585F3202DE00016920AEAF7349CA60
09-09 09:21:03.888 26912 26958 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=2942, _sc=ActMain, _si=-2020819337397583196, timestamp=1599627063676, fatal=1}], name=_ae, timestampInMillis=1599627063837}]
09-09 09:21:03.888 26912 27233 D FirebaseCrashlytics: App exception callback received from FA listener.
09-09 09:21:03.889 26912 26912 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
09-09 09:21:03.892 26912 26962 D FirebaseCrashlytics: Attempting to send crash report at time of crash...
09-09 09:21:03.892 26912 26962 D FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
09-09 09:21:03.893 26912 26962 D FirebaseCrashlytics: Removing report at /data/user/0/org.company.app/files/.com.google.firebase.crashlytics/fatal-sessions/5F585F3202DE-0001-6920-AEAF7349CA60.cls
09-09 09:21:05.096 27287 27287 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:21:05.096 27287 27287 D FirebaseCrashlytics: Firebase Analytics is available.
09-09 09:21:05.097 27287 27287 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
09-09 09:21:05.110 27287 27287 D FirebaseCrashlytics: Reading cached settings...
09-09 09:21:05.112 27287 27287 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false},"app":{"status":"activated","update_required":true,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"57943d135680c0485500000f","bundle_id":"org.company.app"},"expires_at":1599711990130}
09-09 09:21:05.112 27287 27287 D FirebaseCrashlytics: Returning cached settings.
09-09 09:21:05.114 27287 27287 D FirebaseCrashlytics: Mapping file ID is: 271eb7be38c94a5c9e5ef71f8c6847d5
09-09 09:21:05.114 27287 27287 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
09-09 09:21:05.116 27287 27287 D FirebaseCrashlytics: Installer package name is: null
09-09 09:21:05.127 27287 27317 D FirebaseCrashlytics: Found previous crash marker.
09-09 09:21:05.134 27287 27287 D FirebaseCrashlytics: Exception handling initialization successful
09-09 09:21:05.171 27287 27317 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 366bbb7ef2064c7d9255a965a8228eb6
09-09 09:21:05.172 27287 27317 D FirebaseCrashlytics: Opening a new session with ID 5F585F390086-0001-6A97-AEAF7349CA60
09-09 09:21:05.198 27287 27287 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:21:05.198 27287 27287 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
09-09 09:21:05.199 27287 27317 I FirebaseCrashlytics: Crashlytics NDK initialization successful
09-09 09:21:05.218 27287 27317 D FirebaseCrashlytics: Initialization marker file created.
09-09 09:21:05.219 27287 27317 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
09-09 09:21:05.219 27287 27317 D FirebaseCrashlytics: Finalizing previously open sessions.
09-09 09:21:05.230 27287 27318 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
09-09 09:21:05.254 27287 27317 D FirebaseCrashlytics: Closing open sessions.
09-09 09:21:05.267 27287 27317 D FirebaseCrashlytics: Closing session: 5F585F370338-0002-6920-AEAF7349CA60
09-09 09:21:05.267 27287 27317 D FirebaseCrashlytics: Collecting session parts for ID 5F585F370338-0002-6920-AEAF7349CA60
09-09 09:21:05.271 27287 27317 D FirebaseCrashlytics: Session 5F585F370338-0002-6920-AEAF7349CA60 has fatal exception: false
09-09 09:21:05.272 27287 27317 D FirebaseCrashlytics: Session 5F585F370338-0002-6920-AEAF7349CA60 has non-fatal exceptions: false
09-09 09:21:05.272 27287 27317 D FirebaseCrashlytics: No events present for session ID 5F585F370338-0002-6920-AEAF7349CA60
09-09 09:21:05.272 27287 27317 D FirebaseCrashlytics: Removing session part files for ID 5F585F370338-0002-6920-AEAF7349CA60
09-09 09:21:05.298 27287 27318 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/org.company.app
09-09 09:21:05.336 27287 27317 D FirebaseCrashlytics: Closed all previously open sessions
09-09 09:21:05.339 27287 27317 D FirebaseCrashlytics: No reports are available.
09-09 09:21:05.342 27287 27317 D FirebaseCrashlytics: Initialization marker file removed: true
09-09 09:21:06.639 27287 27318 D FirebaseCrashlytics: Update app request ID: 6146b93d2b5e5755c2a71fbea70e530b
09-09 09:21:06.639 27287 27318 D FirebaseCrashlytics: Result was 204

@nihp
Copy link

nihp commented Sep 14, 2020

@kevinkokomani I can able to get the crashes now. Works fine

@bmirshafiee
Copy link
Author

@nihp
could you please share your firebase versions here, I still have no crash in crashlytics.

@nihp
Copy link

nihp commented Sep 15, 2020

I am using 'com.google.firebase:firebase-crashlytics:17.2.1' and com.google.firebase:firebase-analytics:17.5.0

@bmirshafiee
Copy link
Author

@nihp funny I am using the exact same versions but still no results in Crashlytics

@nihp
Copy link

nihp commented Sep 15, 2020

@bmirshafiee Did you make any force crash the app.

Then you need to open the app to see the crashes in crashlytics

@AllwinJohnson
Copy link

AllwinJohnson commented Sep 22, 2020

Any updates? I'm not getting crashes in the Crashlytics
*Upgraded from fabric

project build.gradle

        // Add the Firebase Crashlytics Gradle plugin.
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'

app build.gradle

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

    // Add the Firebase Crashlytics SDK.
    implementation 'com.google.firebase:firebase-crashlytics:17.2.1'

    // Recommended: Add the Google Analytics SDK.
    implementation 'com.google.firebase:firebase-analytics:17.5.0'

Firebase initialized in application class
FirebaseCrashlytics.getInstance();

Logcat
image

Test Crash
throw new RuntimeException("Test Crash");

App is crashing but the crash not reporting in Crashlytics

Replaced google-services.json with the latest one

@pablopatarca
Copy link

pablopatarca commented Sep 22, 2020

Hi @AllwinJohnson could you please to check if you don't get any log about datatransfer cct like this:

D/FirebaseCrashlytics: Checking for crash reports...
D/FirebaseCrashlytics: Found crash report /data/user/0/com.xxxxxxx/files/.com.google.firebase.crashlytics/nonfatal-sessions/5F64E11E01BD-0001-6C5D-32B9DF9F8C8E.cls
D/FirebaseCrashlytics: Reports are being sent.
D/FirebaseCrashlytics: Starting report processing in 1.0 second(s)...
D/FirebaseCrashlytics: No log data to include with this event.
D/FirebaseCrashlytics: Update app request ID: aca879994130dcc6ab3f551k2j4bjj23
D/FirebaseCrashlytics: No log data to include with this event.
D/FirebaseCrashlytics: Result was 204
D/FirebaseCrashlytics: Crashlytics report could not be enqueued to DataTransport
    java.lang.IllegalArgumentException: Transport backend 'cct' is not registered
        at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(:1077)
        at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(:47)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)

I found that this issue happens only when my app is built with DexGuard (in release).

My gradle config looks like this:

apply plugin: 'com.android.application'
apply plugin: 'dexguard'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.firebase-perf'

In my dexguard-rules.pro I also added:

-keepattributes SourceFile,LineNumberTable        # Keep file names and line numbers.
-keep public class * extends java.lang.Exception  # Optional: Keep custom exceptions.

@AllwinJohnson
Copy link

AllwinJohnson commented Sep 22, 2020

Hi @pablopatarca, I checked my log again but couldn't find anything related to FirebaseCrashlytics and I'm using proguard

@pablopatarca
Copy link

@AllwinJohnson that error is for the 17.1.0 version of Crashlytics but after upgrading to 17.2.1 version didn't you get any exception like the previous one?

@AllwinJohnson
Copy link

AllwinJohnson commented Sep 22, 2020

@pablopatarca I changed the version of crashlytics to implementation 'com.google.firebase:firebase-crashlytics:17.1.0' and the log is
image

again upgraded to implementation 'com.google.firebase:firebase-crashlytics:17.2.1' log is (No Filters)

I/FirebaseInitProvider: FirebaseApp initialization unsuccessful 
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
I/FirebaseCrashlytics: Initializing Crashlytics 17.2.1
I/FirebaseInitProvider: FirebaseApp initialization successful
I/FirebaseInitProvider: FirebaseApp initialization successful
W/FirebaseMessaging: Format /topics/topic-name is deprecated. Only 'topic-name' should be used in S.
I/ActivityManager: Start proc 20762:com.whatsapp/u0a140 for broadcast com.whatsapp/com.google.firebase.iid.FirebaseInstanceIdReceiver
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
D/FirebaseApp: com.google.android.gms.measurement.AppMeasurement is not linked. Skipping initialization.
I/FirebaseInitProvider: FirebaseApp initialization successful
E/FirebaseMessaging: Topic operation failed: SERVICE_NOT_AVAILABLE. Will retry Topic operation.
W/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval

And I'm not getting any exception after upgrading the sdk.

@mrj48
Copy link

mrj48 commented Sep 27, 2020

Facing same issue after upgrading from Fabric to FirebaseCrashlytics.

D/FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F706A7603CC00010F23719A69B5416A
D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
D/FirebaseCrashlytics: Removing report at /data/data/***/.com.google.firebase.crashlytics/fatal-sessions/5F706A7603CC-0001-0F23-719A69B5416A.cls

Problem solved after downgrading firebase-crashlytics version to 17.1.0 and now the crashes are reporting:

D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Adding single file 5F7065420212-0001-0CD2-B2680B3A00E2.cls to report 5F7065420212-0001-0CD2-B2680B3A00E2
D/FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/***/reports
D/FirebaseCrashlytics: Create report request ID: null
D/FirebaseCrashlytics: Result was: 202
I/FirebaseCrashlytics: Crashlytics Reports Endpoint upload complete: 5F7065420212-0001-0CD2-B2680B3A00E2

current build.gradle:

 implementation 'com.google.firebase:firebase-analytics:17.5.0'
 implementation 'com.google.firebase:firebase-crashlytics:17.1.0'

@pablopatarca
Copy link

Facing same issue after upgrading from Fabric to FirebaseCrashlytics.

D/FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F706A7603CC00010F23719A69B5416A
D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
D/FirebaseCrashlytics: Removing report at /data/data/***/.com.google.firebase.crashlytics/fatal-sessions/5F706A7603CC-0001-0F23-719A69B5416A.cls

Problem solved after downgrading firebase-crashlytics version to 17.1.0 and now the crashes are reporting:

D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Adding single file 5F7065420212-0001-0CD2-B2680B3A00E2.cls to report 5F7065420212-0001-0CD2-B2680B3A00E2
D/FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/***/reports
D/FirebaseCrashlytics: Create report request ID: null
D/FirebaseCrashlytics: Result was: 202
I/FirebaseCrashlytics: Crashlytics Reports Endpoint upload complete: 5F7065420212-0001-0CD2-B2680B3A00E2

current build.gradle:

 implementation 'com.google.firebase:firebase-analytics:17.5.0'
 implementation 'com.google.firebase:firebase-crashlytics:17.1.0'

You are right @mrj48
I confirm, changing downgrading the firebase-crashlytics version to 17.1.0 the issue is solved.
so:

implementation 'com.google.firebase:firebase-crashlytics:17.1.0'

Thanks guys!

@bmirshafiee
Copy link
Author

@bmirshafiee Did you make any force crash the app.

Then you need to open the app to see the crashes in crashlytics

Yes I tried restarting it but still no crashes.

@bmirshafiee
Copy link
Author

Downgrading to 17.1.0 still not working.I have posted my logs in first comments, anyone see anything wrong with that?
@kevinkokomani
This is really an important issue for my team because of my potential app release and unfortunately still no accurate response from firebase team.

@nihp
Copy link

nihp commented Oct 1, 2020

You can get crash with the 17.1.0 version. Did you removed all as per this doc and check the firebase initialization is done in your MainActivity.java file.

Note: You need to force crash the app in any of your screen. Then you need to launch the app successfully. (i.e) if you make the app crash while launching the app itself it not give you the crash report. You need to launch the app successfully after you make a force crash.

import must be like import com.google.firebase.crashlytics.FirebaseCrashlytics;

super.onCreate(b);
 FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();

@cagdasc
Copy link

cagdasc commented Oct 2, 2020

We have same issue and find this block. The state always comes DataTransportState.ALL

CreateReportRequest requestData = new CreateReportRequest(this.organizationId, this.googleAppId, report);
boolean shouldDeleteReport = true;
if (this.dataTransportState == DataTransportState.ALL) {
    Logger.getLogger().d("Send to Reports Endpoint disabled. Removing Reports Endpoint report.");
} else if (this.dataTransportState == DataTransportState.JAVA_ONLY && report.getType() == Type.JAVA) {
    Logger.getLogger().d("Send to Reports Endpoint for non-native reports disabled. Removing Reports Uploader report.");
} else {
    boolean sent = this.createReportCall.invoke(requestData, dataCollectionToken);
    Logger.getLogger().i("Crashlytics Reports Endpoint upload " + (sent ? "complete: " : "FAILED: ") + report.getIdentifier());
    shouldDeleteReport = sent;
}

@bbarrue
Copy link

bbarrue commented Oct 7, 2020

@bmirshafiee
I believe we are having the same problem. I see the line...
Send to Reports Endpoint disabled. Removing Reports Endpoint report.
Within your logs and I see the same thing and not seeing any reports in Crashlytics. Have you been able to find out why this is disabled?

@sabergeek
Copy link

sabergeek commented Oct 8, 2020

The number of times I crashed the app while still receiving the same message ended up being reported on Firebase after hours. Either we still don't properly understand how long it takes for logs to show up, we don't know WHEN the logs are sent OR may be upgrading Android Studio to 4.1 helped. The console message Send to Reports Endpoint disabled. Removing Reports Endpoint report is definitely not helping - A documentation/ link with more details would be helpful.

@cagdasc
Copy link

cagdasc commented Oct 8, 2020

I reported the problem to consultants and they are investigating. When If solutions was came, I will inform to you.

@sirknigget
Copy link

sirknigget commented Oct 8, 2020

Experiencing exactly the same issue and same log message.
I don't get my crashes reported since migrating to Firebase Crashlytics and following the migration docs step by step.

@bmirshafiee
Copy link
Author

@bmirshafiee
I believe we are having the same problem. I see the line...
Send to Reports Endpoint disabled. Removing Reports Endpoint report.
Within your logs and I see the same thing and not seeing any reports in Crashlytics. Have you been able to find out why this is disabled?

No still not working, I saw that by using in application class :
if (FirebaseCrashlytics.getInstance().didCrashOnPreviousExecution())
Firebase could understand that a crash has happened in the previous execution and gives me a log in android studio, but no report in firebase console Crashlytics.
What I concluded is that the connection between the app and the console for crash is disabled.
Even we create a simple new project and add firebase, then we add Crashlytics from scratch with the last versions and we saw that after creating a crash the CrashLytics is still in progress and no report has been registered.

@bmirshafiee
Copy link
Author

You can get crash with the 17.1.0 version. Did you removed all as per this doc and check the firebase initialization is done in your MainActivity.java file.

Note: You need to force crash the app in any of your screen. Then you need to launch the app successfully. (i.e) if you make the app crash while launching the app itself it not give you the crash report. You need to launch the app successfully after you make a force crash.

import must be like import com.google.firebase.crashlytics.FirebaseCrashlytics;

super.onCreate(b);
 FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();

Yes I've done all, but still no result.

@Inoy1st
Copy link

Inoy1st commented Oct 9, 2020

Hi guys!
I had a somewhat similar issue and got fixed it. I'm using latest platform BoM libs.
I was using emulator Android 8.1 (Play Store) - API 27 - Pixel 3a with Crashlytics Debug and Analytics Debug enabled.
It got fixed when I tried my code on a new emulator - Android 10.0 (Play Store) - API 29 - Pixel 3a. Crashlytics Debug was never enabled on it.
Same for a real device on Android 9 - Crashlytics Debug was never enabled - test crash is sent to the web dashboard.

@mrwillis21
Copy link
Contributor

mrwillis21 commented Oct 9, 2020

Hi everyone! Sounds like a lot of questions here around DataTransport and crashes being uploaded. Allow me to demystify some things about the logs you're seeing.

First of all, as I'd posted on another thread, we have switched the SDK to a different code path for uploading crash reports, which is why you've started seeing:

D/FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F706A7603CC00010F23719A69B5416A
D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
D/FirebaseCrashlytics: Removing report at /data/data/***/.com.google.firebase.crashlytics/fatal-sessions/5F706A7603CC-0001-0F23-719A69B5416A.cls

Crashlytics report successfully enqueued to DataTransport confirms that the report was captured and enqueued for submission through our new code path, and is then the cached version for the old code path is being deleted. This is the expected behavior.

Downgrading to 17.1.0 "fixes" this issue only because that version was not yet included in the SDK versions being switched over, so it was engaging the old code path. We're currently rolling out support for that version on the new code path, so it will very soon start sending through the new code path as well.

All that said, it doesn't help much if you're not seeing your crashes in the dashboard! So, to that end, I want to provide a few more tags (in addition to FirebaseCrashlytics) to watch in the logs to see what's going on. If you also include these tags in your logcat output:

TransportRuntime.SQLiteEventStore, TransportRuntime.JobInfoScheduler, TransportRuntime.CctTransportBackend, and TransportRuntime.DefaultScheduler...

...you'll be able to see the specifics of how the crashes are being uploaded through the new code path.

Specifically, you'll want to watch for this:

D TransportRuntime.CctTransportBackend: Making request to: ...
I TransportRuntime.CctTransportBackend: Status Code: 200
I TransportRuntime.CctTransportBackend: Content-Type: application/json; charset=UTF-8
I TransportRuntime.CctTransportBackend: Content-Encoding: gzip

If you see that, your report is being uploaded successfully, and should show up on your dashboard fairly soon afterward.

One thing to note here is that the new upload mechanism no longer sends the report from the crashing process, but enqueues an upload using JobScheduler (on Android 21+) to be sent ~1s after the crash occurs, so generally, the app will close, and the report will be sent soon after.

With all this in mind, if there are crashes that you're trying to upload and the logs suggest they're being uploaded but you're still not seeing them, please post some recent logs and I'll work with our team to see if there are issues on our backend that may be causing reports not to show up.

Let me know if you have further questions, but I hope that will at least help demystify what you're seeing. :)

@sirknigget
Copy link

sirknigget commented Oct 10, 2020

Hi everyone! Sounds like a lot of questions here around DataTransport and crashes being uploaded. Allow me to demystify some things about the logs you're seeing.

First of all, as I'd posted on another thread, we have switched the SDK to a different code path for uploading crash reports, which is why you've started seeing:

D/FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 5F706A7603CC00010F23719A69B5416A
D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
D/FirebaseCrashlytics: Attempting to send crash report at time of crash...
D/FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
D/FirebaseCrashlytics: Removing report at /data/data/***/.com.google.firebase.crashlytics/fatal-sessions/5F706A7603CC-0001-0F23-719A69B5416A.cls

Crashlytics report successfully enqueued to DataTransport confirms that the report was captured and enqueued for submission through our new code path, and is then the cached version for the old code path is being deleted. This is the expected behavior.

Downgrading to 17.1.0 "fixes" this issue only because that version was not yet included in the SDK versions being switched over, so it was engaging the old code path. We're currently rolling out support for that version on the new code path, so it will very soon start sending through the new code path as well.

All that said, it doesn't help much if you're not seeing your crashes in the dashboard! So, to that end, I want to provide a few more tags (in addition to FirebaseCrashlytics) to watch in the logs to see what's going on. If you also include these tags in your logcat output:

TransportRuntime.SQLiteEventStore, TransportRuntime.JobInfoScheduler, TransportRuntime.CctTransportBackend, and TransportRuntime.DefaultScheduler...

...you'll be able to see the specifics of how the crashes are being uploaded through the new code path.

Specifically, you'll want to watch for this:

D TransportRuntime.CctTransportBackend: Making request to: ...
I TransportRuntime.CctTransportBackend: Status Code: 200
I TransportRuntime.CctTransportBackend: Content-Type: application/json; charset=UTF-8
I TransportRuntime.CctTransportBackend: Content-Encoding: gzip

If you see that, your report is being uploaded successfully, and should show up on your dashboard fairly soon afterward.

One thing to note here is that the new upload mechanism no longer sends the report from the crashing process, but enqueues an upload using JobScheduler (on Android 21+) to be sent ~1s after the crash occurs, so generally, the app will close, and the report will be sent soon after.

With all this in mind, if there are crashes that you're trying to upload and the logs suggest they're being uploaded but you're still not seeing them, please post some recent logs and I'll work with our team to see if there are issues on our backend that may be causing reports not to show up.

Let me know if you have further questions, but I hope that will at least help demystify what you're seeing. :)

The fact that you needed to share this huge explanation shows a lot about the current state of the SDK.

From the point of view of a developer who simply attempts to integrate your SDK according to your guidelines, it doesn't work. Crashes are not reported.
I would advise you to design your SDK so that no one ever has to know anything about how and why it works inside, and add clear, descriptive, plain-english logging of what's actually going on - so countless people won't have to waste their time knocking their heads against the wall.

With that said - sorry for the ranting but it's just being asked for - here are my logs, crashes are not reported:
https://www.dropbox.com/s/3h02k4jbzzjx9d8/firebase-crashlytics.txt?dl=0

firebaseBomVersion = '25.12.0'
RuntimeException throws on app startup after Application.onCreate ends

LogCat filter with regex: (FirebaseCrashlytics|TransportRuntime.SQLiteEventStore|TransportRuntime.JobInfoScheduler|TransportRuntime.CctTransportBackend|TransportRuntime.DefaultScheduler)

UPDATE:
Also no reports with 17.1.0... Just lots of log messages that say the crash is being reported.

@337240552
Copy link

337240552 commented Nov 24, 2020

pay more attention to your custom exception handlers!!

    //当UncaughtException发生时会转入该函数来处理
    override fun uncaughtException(t: Thread?, e: Throwable?) {
        TLog.d(TAG, "uncaughtException $mDefaultHandler $e")
        if (!handleException(e) && mDefaultHandler != null) {
            //如果用户没有处理则让系统默认的异常处理器来处理
            mDefaultHandler?.uncaughtException(t, e)
  
        }

    }

@Vinod217
Copy link

Vinod217 commented Nov 26, 2020

Hi All,
After following all the steps given on the firebase official link, still, I am not able to see crashes on the console, Can anyone please help what's I am missing or doing wrong.
Link followed:-
https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android#java

In (project-level) build.gradle:-

repositories {
// Removed Fabric's Maven repository.
maven { url 'https://maven.fabric.io/public' }

// Add Google's Maven repository (if it's not there already).
google()

}
// Removed the Fabric Gradle plugin.
classpath 'io.fabric.tools:gradle:1.31.2'

// Add
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'

In your app-level build.Gradle
/ Removed
apply plugin: 'io.fabric'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
// Added
apply plugin: 'com.google.firebase.crashlytics'

Added
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
implementation 'com.google.firebase:firebase-analytics:18.0.0'

Manifest -
Removed metadata for fabric ApiKey

Application Class -
Added
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true);

Logs:-
2020-11-26 11:25:46.821 2333-2333/com.netgear.netgearup.alpha I/FirebaseCrashlytics: Initializing Crashlytics 17.1.0
2020-11-26 11:25:46.856 2333-2333/com.netgear.netgearup.alpha I/FirebaseInitProvider: FirebaseApp initialization successful

@truongluuxuan
Copy link

Up until today, is there a way to fix this. It's been a month and I can't track my bug report on firebase crashlytic

@siddharthashankar
Copy link

siddharthashankar commented Dec 18, 2020

Crashes not Showing in Firebase console : I have tried many ways

  1. Follow the crashlytics latest instruction. Always showing :- Add the Firebase Android SDK (17.1.1 or higher) or Unity Plugin (6.15.0 or higher), then build, run and crash your app

  2. Added firebase-crashlytics:17.1.0
    implementation 'com.google.firebase:firebase-analytics:17.5.0'
    implementation 'com.google.firebase:firebase-crashlytics:17.1.0'

Issue no 1: In 2 sample app I can see few report but when i purposily crash same app then I can't see report.
Issue no 2: Created new app but this time Always showing :- Add the Firebase Android SDK (17.1.1 or higher) or Unity Plugin (6.15.0 or higher), then build, run and crash your app

Any Solution Please :)

@sumiranp
Copy link

sumiranp commented Jan 6, 2021

I am tired of trying to fix problems with this so reaching out. This occurred when I am trying to move to Gradle6.7.

  1. I've made sure enough times that I have removed all fabric related stuff from gradle as well as any remnants in libraries.
  2. I've made sure to follow the migration document posted above. https://firebase.google.com/docs/crashlytics/upgrade-sdk?platform=android
  3. No, I cannot use BOM so I've had to hardcode specific versions here
  • com.google.gms:google-services - 4.3.4
  • com.google.firebase:firebase-crashlytics-gradle - 2.4.1
  • com.google.firebase:firebase-crashlytics - 17.2.1
  • com.google.firebase:firebase-analytics - 17.3.0

When I start the application up

01-05 16:23:32.224 15575 15575 D FirebaseCrashlytics: Firebase Analytics is available.
01-05 16:23:32.227 15575 15575 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
01-05 16:23:32.239 15575 15575 D FirebaseCrashlytics: Reading cached settings...
01-05 16:23:32.244 15575 15575 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"4f0b54fbd9479e35c5000357","bundle_id":"com.zillow.android.zillowmap"},"expires_at":1609978148681}
01-05 16:23:32.244 15575 15575 D FirebaseCrashlytics: Returning cached settings.
01-05 16:23:32.245 15575 15575 D FirebaseCrashlytics: Mapping file ID is: 25280e7089ad4b69b60a6887fc7f6c11
01-05 16:23:32.245 15575 15575 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
01-05 16:23:32.247 15575 15575 D FirebaseCrashlytics: Installer package name is: null
01-05 16:23:32.362 15575 15575 D FirebaseCrashlytics: Exception handling initialization successful
01-05 16:23:32.380 15575 15628 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 0ef68f08e6934a89900fd10df8baa0c1
01-05 16:23:32.383 15575 15628 D FirebaseCrashlytics: Opening a new session with ID 5FF50304016A-0001-3CD7-88D90A3A6E5B
01-05 16:23:32.457 15575 15628 D FirebaseCrashlytics: Initialization marker file created.
01-05 16:23:32.457 15575 15628 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
01-05 16:23:32.457 15575 15628 D FirebaseCrashlytics: Finalizing previously open sessions.
01-05 16:23:32.482 15575 15628 D FirebaseCrashlytics: Closing open sessions.
01-05 16:23:32.482 15575 15628 D FirebaseCrashlytics: Closing session: 5FF500260125-0001-275A-88D90A3A6E5B
01-05 16:23:32.485 15575 15628 D FirebaseCrashlytics: Collecting session parts for ID 5FF500260125-0001-275A-88D90A3A6E5B
01-05 16:23:32.494 15575 15628 D FirebaseCrashlytics: Session 5FF500260125-0001-275A-88D90A3A6E5B has fatal exception: false
01-05 16:23:32.495 15575 15628 D FirebaseCrashlytics: Session 5FF500260125-0001-275A-88D90A3A6E5B has non-fatal exceptions: false
01-05 16:23:32.496 15575 15628 D FirebaseCrashlytics: No events present for session ID 5FF500260125-0001-275A-88D90A3A6E5B
01-05 16:23:32.499 15575 15628 D FirebaseCrashlytics: Removing session part files for ID 5FF500260125-0001-275A-88D90A3A6E5B
01-05 16:23:32.514 15575 15628 D FirebaseCrashlytics: Closed all previously open sessions
01-05 16:23:32.515 15575 15628 D FirebaseCrashlytics: No reports are available.
01-05 16:23:32.516 15575 15628 D FirebaseCrashlytics: Initialization marker file removed: true
01-05 16:23:32.526 15575 15575 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
01-05 16:23:34.051 15575 15626 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sc=SplashScreenActivity, _si=3780119062676125590}], name=_vs, timestampInMillis=1609892613951}]
01-05 16:23:36.034 15575 15626 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _pc=TestActivity, _pi=3780119062676125590, _sc=MainActivity, _si=3780119062676125591}], name=_vs, timestampInMillis=1609892615947}]

Notice - firebase_crashlytics_enabled":false and then through the api call FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); which in turn I am guessing points to Crashlytics automatic data collection ENABLED by API.
When it crashes. nothing. Its all a blank. When I open up the application again the above repeats. Any hints, thoughts, ideas?

Some more digging, going down to 17.1.0 -- the fatals are being logged but no crashes so far.

@smiljkov-pero
Copy link

Hallo all,
We are experiencing the same issue with crashes not being reported on production if the crash is happening early somewhere in Application onCreate() method for example.

firebaseBomVersion = '25.12.0' - however we tried with latest one and still the same experience.

All of the crashes will be reported later with all correct data if the app on the same device starts to works well or if another crash is being triggered later in some of the activities of the application.
However if the crash is not fixed most of the users will be blocked on the app startup and we don't have any visibility on the issues on production.

@mrwillis21
Here is what we see in the logs:

Executing adb logcat -s FirebaseCrashlytics TransportRuntime.SQLiteEventStore TransportRuntime.JobInfoScheduler TransportRuntime.CctTransportBackend TransportRuntime.DefaultScheduler
It contains this part: Crashlytics report successfully enqueued to DataTransport

Executing adb shell dumpsys jobscheduler:

QuotaController:
  Is charging: false
  Current elapsed time: 117131047

  Foreground UIDs: {1000=true, 1001=true, 1002=true, 1027=true, 1037=true, 1068=true, 1073=true, 10111=true, 10114=true, 10119=true, 10145=true, 10150=true, 10155=true, 10156=true, 10169=true, 10429=true, 10430=true, 10443=true, 10445=true, 10453=true, 10495=true, 10508=true, 10671=true, 99028=true, 1010114=true, 1010453=true}

  Cached UID->package map:
  	...
  	10671: {com.app.name}

  	...

  	Timer{<0>com.app.name} NOT active, 0 running bg jobs

  Saved sessions:
      116991810 -> 116999811 (8001), 1 bg jobs.
      114903551 -> 114921504 (17953), 1 bg jobs.
      62588110 -> 62606058 (17948), 1 bg jobs.
      62546339 -> 62564301 (17962), 1 bg jobs.

   	...

  <0>com.app.name
      ACTIVE: expirationTime=117591810, windowSizeMs=600000, jobCountLimit=75, sessionCountLimit=75, executionTimeInWindow=8001, bgJobCountInWindow=1, executionTimeInMaxPeriod=61864, bgJobCountInMaxPeriod=4, sessionCountInWindow=1, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1
      WORKING_SET: expirationTime=116999811, windowSizeMs=0, jobCountLimit=0, sessionCountLimit=0, executionTimeInWindow=0, bgJobCountInWindow=0, executionTimeInMaxPeriod=0, bgJobCountInMaxPeriod=0, sessionCountInWindow=0, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1
      FREQUENT: expirationTime=116999811, windowSizeMs=0, jobCountLimit=0, sessionCountLimit=0, executionTimeInWindow=0, bgJobCountInWindow=0, executionTimeInMaxPeriod=0, bgJobCountInMaxPeriod=0, sessionCountInWindow=0, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1
      RARE: expirationTime=116999811, windowSizeMs=0, jobCountLimit=0, sessionCountLimit=0, executionTimeInWindow=0, bgJobCountInWindow=0, executionTimeInMaxPeriod=0, bgJobCountInMaxPeriod=0, sessionCountInWindow=0, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1
      NEVER: expirationTime=116999811, windowSizeMs=0, jobCountLimit=0, sessionCountLimit=0, executionTimeInWindow=0, bgJobCountInWindow=0, executionTimeInMaxPeriod=0, bgJobCountInMaxPeriod=0, sessionCountInWindow=0, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1
      RESTRICTED: expirationTime=116999811, windowSizeMs=0, jobCountLimit=0, sessionCountLimit=0, executionTimeInWindow=0, bgJobCountInWindow=0, executionTimeInMaxPeriod=0, bgJobCountInMaxPeriod=0, sessionCountInWindow=0, inQuotaTime=0, rateLimitJobCountExpirationTime=117051810, rateLimitJobCountWindow=1, rateLimitSessionCountExpirationTime=117059811, rateLimitSessionCountWindow=1

      ...

     u0a671 / com.app.name:
	    2x pending 1% 2x active
	    2x canceled
	...

      -24s687ms   START: #u0a671/1808414270 com.app.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
		...

       Active jobs:
		  Slot #0: be8a887 #u0a671/1808414270 com.app.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
		    Running for: +3s767ms, timeout at: +14s233ms
		    u0a671 tag=*job*/com.app.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
		    Source: uid=u0a671 user=0 pkg=com.app.name
		    Required constraints: TIMING_DELAY CONNECTIVITY [0x90000000]
		    Dynamic constraints:
		    Tracking: CONNECTIVITY TIME QUOTA
		    Implicit constraints:
		      readyNotDozing: true
		      readyNotRestrictedInBg: true
		      readyDynamicSatisfied: false
		    Network: 107
		    Standby bucket: ACTIVE
		    Enqueue time: -4s854ms
		    Run time: earliest=-3s854ms, latest=none, original latest=none
		    Evaluated priority: 0 [DEFAULT]
		    Active at -3s764ms, pending for +4ms

	    ...	
	    
	-6s681ms  STOP-P: #u0a671/1808414270 com.app.name/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService timed out while binding

It looks like that the jobscheduler times out for 100% of the cases when the crash is happening in the early start of the app.
It was tested on Google Pixel 4XL with Android 11.

Please let me know if more detailed information is needed.

@mrwillis21
Copy link
Contributor

Thanks very much @smiljkov-pero! This is really helpful. We're looking into this now. Anyone else that's seeing this issue, please post output of your adb shell dumpsys jobscheduler command.

@fllaryora
Copy link

Thank you @AllwinJohnson , you got it !

@smiljkov-pero
Copy link

Hello @mrwillis21, do you have any updates on this issue?
Will there be a fix in future releases of the SDK or it can be fixed remotely?
Please let us know if more details are needed.

Thank you

@mrwillis21
Copy link
Contributor

@smiljkov-pero We're currently investigating this issue and trying to determine potential solutions; however, it's quite difficult to reproduce. Can you describe exactly how/when you're crashing your app such that this reproduces 100% of the time?

@mrwillis21
Copy link
Contributor

Also, to be clear, this issue should not result in losing crashes, @smiljkov-pero, it's only the upload that's getting stuck. Crash reports are still cached, and should be uploaded later, if the app opens successfully. Is this the case for your app?

@smiljkov-pero
Copy link

Hello @mrwillis21
Correct the crashes will not be lost however they will be reported only in case the app crashes next time in some later stage of the app journey and then all crashes together will be reported, at least experience that we observed.

I think I managed to reproduce the issue of crash not being reported on the early stage of the application like in the Application class onCreate method.

Here is example project: https://github.com/smiljkov-pero/CrashExampleApp

  1. When crash is happening in SecondFragment then the crash will be reported.
  2. When crash is happening in ExampleApplication then the crash will not be reported and I can see this logs when executing adb shell dumpsys jobscheduler
-1m27s891ms   START: #u0a679/-638045287 com.pero.crashexampleapp/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService
-1m26s440ms   START: #u10a187/44014 DownloadManager:com.android.providers.downloads
-1m25s394ms   START: #u10a187/2000014 com.google.android.gm/.job.DownloadCompleteJob$DownloadCompleteJobService
-1m25s381ms  STOP-P: #u10a187/44014 DownloadManager:com.android.providers.downloads app called jobFinished
-1m25s298ms  STOP-P: #u10a187/2000014 com.google.android.gm/.job.DownloadCompleteJob$DownloadCompleteJobService last work dequeued
-1m09s892ms  STOP-P: #u0a679/-638045287 com.pero.crashexampleapp/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService timed out while binding

when the crash later is moved later in the app journey then I was able to see both crashes with correct number of occurences.
Again I'm using Google Pixel 4XL, however not sure if JobScheduler scheduling will be impacted by other apps installed on the deivce but I can confirm that the device I tested it had quite big number of apps installed.
On the same note I used emulator as well and again I couldn't see the crash.

Please let me know if any additional information is needed.
Thank you

@charleston10
Copy link

charleston10 commented Jan 29, 2021

Using KTS

...

plugins {
    id("com.android.application")
    kotlin("android")
    kotlin("android.extensions")
    id("androidx.navigation.safeargs")
    id("com.google.gms.google-services")
    id("com.google.firebase.crashlytics")  
}
...
 buildTypes {
        getByName("release") {
        ...
            (this as ExtensionAware).configure<com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsExtension> {
              mappingFile = "build/outputs/mapping/release/mapping.txt"
              mappingFileUploadEnabled = true
            }
       }
 }

@NaqiControl
Copy link

NaqiControl commented Feb 14, 2021

Same issue here :
logcat:
V/FA: onActivityCreated V/FA: Activity resumed, time: 2832762626 I/FA: Tag Manager is not found and thus will not be used V/FA: Connecting to remote service V/FA: Connection attempt already in progress D/FA: Connected to remote service V/FA: Processing queued up service tasks: 2

V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{ga_event_origin(_o)=auto, ga_screen_class(_sc)=SplashScreenActivity, ga_screen_id(_si)=2779429038458201335}] V/FA-SVC: Upload scheduled in approximately ms: 2726540 V/FA-SVC: Unscheduling upload V/FA-SVC: Scheduling upload, millis: 2726540

V/FA: Inactivity, disconnecting from the service W/ConnectionTracker: Exception thrown while unbinding com.google.android.gms.measurement.internal.zzja@3eabef6 at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1870) at android.app.ContextImpl.unbindService(ContextImpl.java:1847) at android.content.ContextWrapper.unbindService(ContextWrapper.java:755) at com.google.android.gms.common.stats.ConnectionTracker.zza(com.google.android.gms:play-services-basement@@17.3.0:55) at com.google.android.gms.common.stats.ConnectionTracker.unbindService(com.google.android.gms:play-services-basement@@17.3.0:50) at com.google.android.gms.measurement.internal.zzjb.zzF(com.google.android.gms:play-services-measurement-impl@@18.0.2:6) at com.google.android.gms.measurement.internal.zzil.zza(com.google.android.gms:play-services-measurement-impl@@18.0.2:5) at com.google.android.gms.measurement.internal.zzak.run(com.google.android.gms:play-services-measurement-impl@@18.0.2:5) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.google.android.gms.measurement.internal.zzfh.run(com.google.android.gms:play-services-measurement-impl@@18.0.2:6)

V/FA: Recording user engagement, ms: 9003 V/FA: Connecting to remote service V/FA: Activity paused, time: 2832771639 V/FA: onActivityCreated V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 2832771974 V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress D/FA: Connected to remote service V/FA: Processing queued up service tasks: 4

@NaqiControl
Copy link

NaqiControl commented Feb 14, 2021

@mrwillis21
This is command output :
https://drive.google.com/file/d/1W0Q5HK74LuQZ8ZuUcY20tyTP4zxBkhFd/view

implementation platform('com.google.firebase:firebase-bom:26.5.0')
// When using the BoM, you don't specify versions in Firebase library dependencies
implementation 'com.google.firebase:firebase-database'
// Firebase Phone Auth
implementation 'com.google.firebase:firebase-auth'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'

gradle - project

    classpath 'com.android.tools.build:gradle:4.1.2'
    classpath 'com.google.gms:google-services:4.3.5'
    classpath "com.android.tools.build:gradle-experimental:0.11.1"
    classpath 'com.novoda:bintray-release:0.4.0'
    classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
    classpath 'com.google.firebase:perf-plugin:1.3.4'

@smiljkov-pero
Copy link

Hello @mrwillis21
Just would like to follow up if you were able to reproduce the issue with the example project I shared above and if you have any updates on this issue resolution?

Thank you

@tannerhallman
Copy link

@mrwillis21 Looking for some progress... 4 months later. Push notifications AND firebase crash analytics aren't working for me currently

@truongluuxuan
Copy link

Dear all bro, this way working for me: create new app on firebase and add to my project.

@AmmarTheNPE
Copy link

I had the same issue,
06-27 13:11:22.905 16653 16653 D FirebaseCrashlytics: Returning cached settings.
06-27 13:11:22.931 16653 16653 D FirebaseCrashlytics: Exception handling initialization successful
06-27 13:11:22.941 16653 16690 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: a20feb3245574fb4abacd0f5b5cb8b3f
06-27 13:11:22.943 16653 16690 D FirebaseCrashlytics: Opening a new session with ID 60D832AA03A30001410DB05C1DDFFF97
06-27 13:11:22.967 16653 16690 D FirebaseCrashlytics: Initialization marker file created.
06-27 13:11:22.967 16653 16690 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
06-27 13:11:22.968 16653 16690 D FirebaseCrashlytics: Finalizing previously open sessions.
06-27 13:11:22.969 16653 16690 D FirebaseCrashlytics: Finalizing report for session 60D832A30157000140BEB05C1DDFFF97
06-27 13:11:22.970 16653 16690 D FirebaseCrashlytics: Session 60D832A30157000140BEB05C1DDFFF97 has no events.
06-27 13:11:22.971 16653 16690 D FirebaseCrashlytics: Closed all previously open sessions
06-27 13:11:22.972 16653 16690 D FirebaseCrashlytics: No reports are available.
06-27 13:11:22.974 16653 16690 D FirebaseCrashlytics: Initialization marker file removed: true

i fixed it by adding this line of code FirebaseCrashlytics.getInstance().recordException(new Exception()); now it sends reports to my firebase dashboard. I hope it also works for you guys!

@mrichards
Copy link
Contributor

Hi folks, the previous Firebase team member left the team a few months ago. I apologize that this issue got lost in the shuffle. We're digging into it now. The good news is: 1) I was able to reproduce the problem using @smiljkov-pero's example; and 2) there's been some recent improvements to Crashlytics' data transport layer (as well as improved debugging output) that should make this easier to solve than it would have been a few months ago.

The issue appears to be a race condition for very early launch crashes originating in the Application class. The workaround described by @syedaliammar512 did not work in my test case, though catching any exception thrown by the Application class's onCreate() method and using the recordException() will work correctly from the Application class. This obviously isn't a viable workaround for everyone so we'll try to get the issue fixed ASAP.

@gauravbansal-cpi
Copy link

@mrichards @mrwillis21 I am facing an issue with crash log uploads on firebase with our Instant apps. Crash uploads works fine with full version of the app. Also I have noticed that with Instant apps firebase sdk still saves the crash logs but doesn't upload them. Once we upgrade from instant apps to full version it uploads the crash logs which were saved earlier for instant app.
As per my understanding for uploading crash logs firebase crashlytics sdk uses JobSchedulers and as per https://issuetracker.google.com/issues/124267857#comment6 job schedulers don't work with Instant apps. Is this the reason crash logs are not getting uploaded for instant apps?

For your reference PFB logs for adb logcat -s FirebaseCrashlytics TransportRuntime.SQLiteEventStore TransportRuntime.JobInfoScheduler TransportRuntime.CctTransportBackend TransportRuntime.DefaultScheduler

`08-12 20:23:33.514 8676 9766 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _et=1242518, _sc=MapActivity, _si=-6399843971024424288}], name=_e, timestampInMillis=1628780013008}]

08-12 20:26:34.036 9848 9848 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by global Firebase setting.
08-12 20:26:34.043 9848 9848 D FirebaseCrashlytics: Firebase Analytics is available.
08-12 20:26:34.048 9848 9848 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
08-12 20:26:34.073 9848 9848 D FirebaseCrashlytics: Reading cached settings...
08-12 20:26:34.074 9848 9848 D FirebaseCrashlytics: No cached settings found.
08-12 20:26:34.075 9848 9848 D FirebaseCrashlytics: No cached settings data found.
08-12 20:26:34.079 9848 9848 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
08-12 20:26:34.079 9848 9848 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
08-12 20:26:34.081 9848 9848 D FirebaseCrashlytics: Installer package name is: null
08-12 20:26:34.126 9848 9848 D FirebaseCrashlytics: Exception handling initialization successful
08-12 20:26:34.134 9848 9887 D FirebaseCrashlytics: No cached FID; legacy id is null
08-12 20:26:34.134 9848 9887 D FirebaseCrashlytics: Created new Crashlytics IID: 2196d372ed83412ab56602013cff2675
08-12 20:26:34.135 9848 9887 D FirebaseCrashlytics: Opening a new session with ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:34.183 9848 9887 D FirebaseCrashlytics: Initialization marker file created.
08-12 20:26:34.184 9848 9887 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
08-12 20:26:34.184 9848 9887 D FirebaseCrashlytics: Finalizing previously open sessions.
08-12 20:26:34.188 9848 9887 D FirebaseCrashlytics: No open sessions to be closed.
08-12 20:26:34.188 9848 9887 D FirebaseCrashlytics: Closed all previously open sessions
08-12 20:26:34.191 9848 9887 D FirebaseCrashlytics: No reports are available.
08-12 20:26:34.191 9848 9887 D FirebaseCrashlytics: Initialization marker file removed: true
08-12 20:26:34.300 9848 9848 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
08-12 20:26:34.614 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sid=1628780194}], name=_s, timestampInMillis=1628780194505}]
08-12 20:26:35.644 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{Analytics_Reporting_App=ChargePointInstant, _o=app, Maintenance_Mode=false, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Cached=false, Launch_Source=Google Play}], name=Global_Config_Fetch, timestampInMillis=1628780195574}]
08-12 20:26:35.774 9848 9890 D FirebaseCrashlytics: Requesting settings from https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/1:53103838140:android:43d04b9beb9c48eb/settings
08-12 20:26:35.775 9848 9890 D FirebaseCrashlytics: Settings query params were: {instance=878f334b3911482b79887416dd7ff9b3dc9ef4fc, build_version=513, display_version=1.0.0-InstantCP-513-0.debug_20210812_18:09, source=1}
08-12 20:26:35.790 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sc=MapActivity, _si=1315616320171567843}], name=_vs, timestampInMillis=1628780195750}]
08-12 20:26:36.605 9848 9890 D FirebaseCrashlytics: Settings request ID: null
08-12 20:26:36.605 9848 9890 D FirebaseCrashlytics: Settings result was: 200
08-12 20:26:36.607 9848 9890 D FirebaseCrashlytics: Writing settings to cache file...
08-12 20:26:36.608 9848 9890 D FirebaseCrashlytics: Loaded settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":false},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"54e6b5d34dd4468000000328","bundle_id":"com.coulombtech.debug"},"expires_at":1628866596607}
08-12 20:26:37.430 9848 9848 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
08-12 20:26:37.505 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1794.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=1315616320171567843, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Get_Global_Config, timestampInMillis=1628780197373}]
08-12 20:26:39.066 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1180.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=1315616320171567843, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_View_Station_Detail, timestampInMillis=1628780199008}]
08-12 20:26:39.497 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1467.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=1315616320171567843, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Retrieve_Map_Data, timestampInMillis=1628780199395}]
08-12 20:26:40.950 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1164.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=1315616320171567843, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Station_List, timestampInMillis=1628780200794}]
08-12 20:26:43.050 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1252.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=1315616320171567843, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Station_List, timestampInMillis=1628780202844}]

08-12 20:26:50.594 9848 9848 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash" from thread main
08-12 20:26:50.722 9848 9887 D FirebaseCrashlytics: Closing open sessions.
08-12 20:26:50.722 9848 9887 D FirebaseCrashlytics: Closing session: 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.722 9848 9887 D FirebaseCrashlytics: Collecting session parts for ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.722 9848 9887 D FirebaseCrashlytics: Session 611536A2007F-0001-2678-4433F083327D has fatal exception: true
08-12 20:26:50.722 9848 9887 D FirebaseCrashlytics: Session 611536A2007F-0001-2678-4433F083327D has non-fatal exceptions: false
08-12 20:26:50.725 9848 9887 D FirebaseCrashlytics: Collecting SessionStart data for session ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.726 9848 9887 D FirebaseCrashlytics: Collecting SessionUser data for session ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.726 9848 9887 D FirebaseCrashlytics: Collecting SessionApp data for session ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.726 9848 9887 D FirebaseCrashlytics: Collecting SessionOS data for session ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.727 9848 9887 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.729 9848 9887 D FirebaseCrashlytics: Removing session part files for ID 611536A2007F-0001-2678-4433F083327D
08-12 20:26:50.779 9848 9887 D FirebaseCrashlytics: Opening a new session with ID 611536B2030B-0002-2678-4433F083327D
08-12 20:26:50.782 9848 9887 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
08-12 20:26:50.788 9848 10007 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
08-12 20:26:50.789 9848 10007 D FirebaseCrashlytics: Awaiting app exception callback from FA...
08-12 20:26:50.827 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=15052, _sc=MapActivity, _si=1315616320171567843, timestamp=1628780210594, fatal=1}], name=_ae, timestampInMillis=1628780210788}]
08-12 20:26:50.828 9848 10007 D FirebaseCrashlytics: App exception callback received from FA listener.
08-12 20:26:50.840 9848 9880 D TransportRuntime.SQLiteEventStore: Storing event with priority=HIGHEST, name=FIREBASE_CRASHLYTICS_REPORT for destination cct
08-12 20:26:50.851 9848 9880 D TransportRuntime.JobInfoScheduler: Scheduling upload for context TransportContext(cct, HIGHEST, MSRodHRwczovL2NyYXNobHl0aWNzcmVwb3J0cy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lCcnBTWVQ0RkZMMDlyZUhKaTZIOUZZZGVpU25VVE92Mk0=) with jobId=511521345 in 1000ms(Backend next call timestamp 0). Attempt 1
08-12 20:26:50.853 9848 9888 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _et=15086, _fr=1, _sc=MapActivity, _si=1315616320171567843}], name=_e, timestampInMillis=1628780210830}]
08-12 20:26:50.869 9848 9887 D FirebaseCrashlytics: Crashlytics report successfully enqueued to DataTransport: 611536A2007F000126784433F083327D
08-12 20:26:50.870 9848 9848 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
08-12 20:26:50.872 9848 9887 D FirebaseCrashlytics: Attempting to send crash report at time of crash...
08-12 20:26:50.872 9848 9887 D FirebaseCrashlytics: Send to Reports Endpoint disabled. Removing Reports Endpoint report.
08-12 20:26:50.872 9848 9887 D FirebaseCrashlytics: Removing report at /data/user/0/com.coulombtech.debug/files/.com.google.firebase.crashlytics/fatal-sessions/611536A2007F-0001-2678-4433F083327D.cls

08-12 20:27:53.051 10019 10019 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
08-12 20:27:53.057 10019 10019 D FirebaseCrashlytics: Firebase Analytics is available.
08-12 20:27:53.060 10019 10051 D TransportRuntime.JobInfoScheduler: Scheduling upload for context TransportContext(cct, HIGHEST, MSRodHRwczovL2NyYXNobHl0aWNzcmVwb3J0cy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lCcnBTWVQ0RkZMMDlyZUhKaTZIOUZZZGVpU25VVE92Mk0=) with jobId=511521345 in 1000ms(Backend next call timestamp 0). Attempt 1
08-12 20:27:53.062 10019 10019 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
08-12 20:27:53.085 10019 10019 D FirebaseCrashlytics: Reading cached settings...
08-12 20:27:53.096 10019 10019 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":false},"app":{"status":"activated","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"54e6b5d34dd4468000000328","bundle_id":"com.coulombtech.debug"},"expires_at":1628866596607}
08-12 20:27:53.097 10019 10019 D FirebaseCrashlytics: Returning cached settings.
08-12 20:27:53.100 10019 10019 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
08-12 20:27:53.100 10019 10019 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
08-12 20:27:53.101 10019 10019 D FirebaseCrashlytics: Installer package name is: null
08-12 20:27:53.143 10019 10055 D FirebaseCrashlytics: Found previous crash marker.
08-12 20:27:53.146 10019 10019 D FirebaseCrashlytics: Exception handling initialization successful
08-12 20:27:53.158 10019 10055 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 2196d372ed83412ab56602013cff2675
08-12 20:27:53.160 10019 10055 D FirebaseCrashlytics: Opening a new session with ID 611536F10092-0001-2723-4433F083327D
08-12 20:27:53.200 10019 10055 D FirebaseCrashlytics: Initialization marker file created.
08-12 20:27:53.201 10019 10055 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
08-12 20:27:53.201 10019 10055 D FirebaseCrashlytics: Finalizing previously open sessions.
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: Closing open sessions.
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: Closing session: 611536B2030B-0002-2678-4433F083327D
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: Collecting session parts for ID 611536B2030B-0002-2678-4433F083327D
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: Session 611536B2030B-0002-2678-4433F083327D has fatal exception: false
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: Session 611536B2030B-0002-2678-4433F083327D has non-fatal exceptions: false
08-12 20:27:53.209 10019 10055 D FirebaseCrashlytics: No events present for session ID 611536B2030B-0002-2678-4433F083327D
08-12 20:27:53.210 10019 10055 D FirebaseCrashlytics: Removing session part files for ID 611536B2030B-0002-2678-4433F083327D
08-12 20:27:53.211 10019 10055 D FirebaseCrashlytics: Closed all previously open sessions
08-12 20:27:53.212 10019 10055 D FirebaseCrashlytics: No reports are available.
08-12 20:27:53.213 10019 10055 D FirebaseCrashlytics: Initialization marker file removed: true
08-12 20:27:53.308 10019 10019 D FirebaseCrashlytics: Crashlytics automatic data collection ENABLED by API.
08-12 20:27:54.744 10019 10057 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{_o=auto, _sc=MapActivity, _si=2944307044656855024}], name=_vs, timestampInMillis=1628780274705}]
08-12 20:27:56.545 10019 10057 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1212.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=2944307044656855024, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_View_Station_Detail, timestampInMillis=1628780276487}]
08-12 20:27:56.676 10019 10057 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1232.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=2944307044656855024, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Retrieve_Map_Data, timestampInMillis=1628780276587}]
08-12 20:27:58.322 10019 10057 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1311.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=2944307044656855024, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Station_List, timestampInMillis=1628780278217}]
08-12 20:28:00.389 10019 10057 D FirebaseCrashlytics: Received Analytics message: 3 Bundle[{params=Bundle[{User_Type=InstantAppUser, Duration=1213.0, Status=SUCCESS, HTTP_Status_Code=200, Analytics_Reporting_App=ChargePointInstant, _o=app, _sc=MapActivity, _si=2944307044656855024, Global_Config_Region=NA-US, Analytics_Reporting_Version=15, Launch_Source=Google Play}], name=API_Station_List, timestampInMillis=1628780280160}]

`

@IndthuDev
Copy link

IndthuDev commented Sep 20, 2021

@mrwillis21 Hi, Im having the same problem. Crashes are not showing up on dashboard. I tried so many thing from upgrading to downgrading the version. Currently im on '17.1.0' and crashlytics gradle '2.2.0'.

FirebaseApp.initializeApp(getApplicationContext()); FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(true);

I added these on the Application.class.

When I insert FirebaseCrashlytics.getInstance().recordException(new Exception()); it reports crash to console but wherever a crash happens it reports as its from Application.class.

Im trying to solve this for long. Below ill add the logs

09-20 21:06:40.875 18853 18853 D FirebaseCrashlytics: Firebase Analytics is available.
09-20 21:06:40.925 18853 18853 D FirebaseCrashlytics: Firebase Analytics listener registered successfully.
09-20 21:06:40.990 18853 18853 D FirebaseCrashlytics: Reading cached settings...
09-20 21:06:41.104 18853 18853 D FirebaseCrashlytics: Loaded cached settings: {"settings_version":3,"cache_duration":86400,"features":{"collect_logged_exceptions":true,"collect_reports":
true,"collect_analytics":false,"prompt_enabled":false,"push_enabled":false,"firebase_crashlytics_enabled":false,"collect_anrs":false,"collect_metric_kit":false},"app":{"status":"activate
d","update_required":false,"report_upload_variant":2,"native_report_upload_variant":2},"fabric":{"org_id":"5bcd6357bc7fde6729000103","bundle_id":"lk.mobilevisions.kiki"},"expires_at":163
2220302437}
09-20 21:06:41.105 18853 18853 D FirebaseCrashlytics: Returning cached settings.
09-20 21:06:41.132 18853 18853 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
09-20 21:06:41.141 18853 18853 I FirebaseCrashlytics: Initializing Crashlytics 17.1.0
09-20 21:06:41.172 18853 18853 D FirebaseCrashlytics: Installer package name is: null
09-20 21:06:41.330 18853 18853 D FirebaseCrashlytics: Exception handling initialization successful
09-20 21:06:41.486 18853 18902 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: f5381d43415d4b4d92cdf7dedf97be89
09-20 21:06:41.536 18853 18902 D FirebaseCrashlytics: Opening a new session with ID 6148AA890159-0001-49A5-2FF401AA03FA
09-20 21:06:41.758 18853 18902 D FirebaseCrashlytics: Initialization marker file created.
09-20 21:06:41.808 18853 18902 D FirebaseCrashlytics: Registered Firebase Analytics event receiver for breadcrumbs
09-20 21:06:41.808 18853 18902 D FirebaseCrashlytics: Finalizing previously open sessions.
09-20 21:06:41.845 18853 18902 D FirebaseCrashlytics: Closing open sessions.
09-20 21:06:41.845 18853 18902 D FirebaseCrashlytics: Closing session: 614883330048-0001-46F5-2FF401AA03FA
09-20 21:06:41.845 18853 18902 D FirebaseCrashlytics: Collecting session parts for ID 614883330048-0001-46F5-2FF401AA03FA
09-20 21:06:41.847 18853 18902 D FirebaseCrashlytics: Session 614883330048-0001-46F5-2FF401AA03FA has fatal exception: false
09-20 21:06:41.848 18853 18902 D FirebaseCrashlytics: Session 614883330048-0001-46F5-2FF401AA03FA has non-fatal exceptions: false
09-20 21:06:41.849 18853 18902 D FirebaseCrashlytics: No events present for session ID 614883330048-0001-46F5-2FF401AA03FA
09-20 21:06:41.849 18853 18902 D FirebaseCrashlytics: Removing session part files for ID 614883330048-0001-46F5-2FF401AA03FA
09-20 21:06:41.874 18853 18902 D FirebaseCrashlytics: Closed all previously open sessions
09-20 21:06:41.875 18853 18902 D FirebaseCrashlytics: No reports are available.
09-20 21:06:41.886 18853 18902 D FirebaseCrashlytics: Initialization marker file removed: true

@petenathan42
Copy link

crashlytics 18.2.3 is out:
https://mvnrepository.com/artifact/com.google.firebase/firebase-crashlytics?repo=google

along with analytics 19.0.2
https://mvnrepository.com/artifact/com.google.firebase/firebase-analytics?repo=google

If you want to give it a shot. Still not a lot of luck from my end, but wanted to share just in case the update fixes the issue for someone else

@petenathan42
Copy link

petenathan42 commented Oct 6, 2021

I am getting the:
10-06 17:03:17.538 19155 19193 V FirebaseCrashlytics: Persisting non-fatal event for session 615E1CC3033500014AD34B023E324821
log when running:
FirebaseCrashlytics.getInstance().recordException(new RuntimeException("test crash"));
In my test crash function.

the "Persisting non-fatal event for session" occurrence, on android, creates an event file in:
/data/user/0/<app-name>/files/.com.google.firebase.crashlytics/report-persistence/sessions/<session>/
the file name in my case was "event0000000000"

So after you restart the application, a report is created based on that event and then that report is sent to the firebase console.

However,

When I run my test crash function in the same place, but instead with a fatal crash:
throw new RuntimeException("test crash");
I just get silence in the log. Why isn't an event being created in this situation? An event is never created, so a report is never created, and so I never get anything in the firebase console.

I'm using
Crashlytics 18.2.1 (also tried 18.2.3)
Analytics 19.0.1 (also tried 19.0.2)
Firebase Crashlytics Gradle 2.7.1

FYI, to get the verbose logs, run the command:
adb shell setprop log.tag.FirebaseCrashlytics VERBOSE
Then, run the
adb logcat -s FirebaseCrashlytics TransportRuntime.SQLiteEventStore TransportRuntime.JobInfoScheduler TransportRuntime.CctTransportBackend TransportRuntime.DefaultScheduler

to see the file system, run
adb shell
as root, and navigate to /data/user/0/<app name>/files/.com.google.firebase.crashlytics/report-persistence/

Can anyone confirm that an event is created with a test crash? (throw new RuntimeException("test crash");)

@mrichards mrichards self-assigned this Nov 8, 2021
@mrichards
Copy link
Contributor

Hi all,

The Application crash race condition was fixed in Crashlytics 18.2.3, released in early October.

Crashlytics crash reporting from Instant apps has never been officially supported. Crashes will be reported for full apps that have been upgraded from Instant apps, but we do not report crashes from Instant apps. Better Instant app support is a known feature request, but it is unprioritized at this time.

I'm going to close this issue because I believe those two points cover the vast majority of the customer cases mentioned here.

@petenathan42 If the problem you described a few weeks ago is persisting, can you open a new issue? I suspect your problem is unrelated to other customer problems in this ticket.

@firebase firebase locked and limited conversation to collaborators Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests