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

Firebase crashlytics not able to read crash reports #1559

Closed
moetouban opened this issue May 14, 2020 · 41 comments
Closed

Firebase crashlytics not able to read crash reports #1559

moetouban opened this issue May 14, 2020 · 41 comments
Assignees

Comments

@moetouban
Copy link

moetouban commented May 14, 2020

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

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category using one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.6.3_
  • Firebase Component: crashlytics___ (Database, Firestore, Storage, Functions, etc)
  • Component version: 17.0.0_

[REQUIRED] Step 3: Describe the problem

Just integrated firebase crashlytics into our app. Other services, like analytics and remote config are working fine. Invoking a crash from the app doesn't show on the firebase console. After investigation I found that there is an issue with writing/reading the log files.

Steps to reproduce:

--------- beginning of main
--------- beginning of system
--------- beginning of crash
05-13 14:24:54.353 26520 26520 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash" from thread main
05-13 14:24:54.358 26520 26716 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
05-13 14:24:54.364 26520 26716 D FirebaseCrashlytics: Background thread awaiting app exception callback from FA...
05-13 14:24:54.403 26520 26571 D FirebaseCrashlytics: No log data to include with this event.
05-13 14:24:54.431 26520 26718 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=158031, _sc=LoginActivity, _si=-1937657330150563214, timestamp=1589397894353, fatal=1}], name=_ae, timestampInMillis=1589397894358}]
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics: Could not persist event for session 5EBC48E70257000167989D7960C5AFF3
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/com.freshbooks.andromeda.debug/files/.com.google.firebase.crashlytics/report-persistence/sessions/5EBC48E70257000167989D7960C5AFF3/event0000000000_: open failed: ENOENT (No such file or directory)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:496)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at java.io.FileOutputStream.<init>(FileOutputStream.java:235)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.writeTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:461)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:152)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:249)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistFatalEvent(com.google.firebase:firebase-crashlytics@@17.0.0:121)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:400)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at java.lang.Thread.run(Thread.java:919)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.Linux.open(Native Method)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:482)
05-13 14:24:54.431 26520 26571 D FirebaseCrashlytics:   ... 15 more
05-13 14:24:54.431 26520 26716 D FirebaseCrashlytics: App exception callback received from FA listener.
05-13 14:24:54.432 26520 26571 E FirebaseCrashlytics: Tried to write a fatal exception while no session was open.
05-13 14:24:54.438 26520 26571 D FirebaseCrashlytics: No open sessions to be closed.
05-13 14:24:54.439 26520 26571 D FirebaseCrashlytics: Opening a new session with ID 5EBC498601B6-0002-6798-9D7960C5AFF3
05-13 14:24:54.455 26520 26571 D FirebaseCrashlytics: Send via DataTransport disabled. Removing DataTransport reports.
05-13 14:24:54.457 26520 26520 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.

Relevant Code:

Just integrate the SDK

@google-oss-bot
Copy link
Contributor

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

@moetouban
Copy link
Author

Any updates on this issue @TKBurner ? it currently prevents us from integrating firebase crashlytics into our app. Is there a workaround for that matter? maybe using an older version for the time being?

@WillCalderwood
Copy link

I'm also seeing this stack trace. Android 10, same Firebase version.

2020-05-27 22:20:13.694 27988-28075/com.wrc.wordstorm.android D/FirebaseCrashlytics: Could not read user ID file in 5ECED97B03D000016D54ED6486A946DA
    java.io.FileNotFoundException: /data/user/0/com.wrc.wordstorm.android/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ECED97B03D000016D54ED6486A946DA/user: open failed: ENOENT (No such file or directory)
        at libcore.io.IoBridge.open(IoBridge.java:496)
        at java.io.FileInputStream.<init>(FileInputStream.java:159)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:470)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:309)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:197)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:159)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:867)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:827)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:407)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106)
        at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Linux.open(Native Method)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
        at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
        at libcore.io.IoBridge.open(IoBridge.java:482)
        at java.io.FileInputStream.<init>(FileInputStream.java:159) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:470) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:309) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:197) 
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:159) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:867) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:827) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:407) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106) 
        at com.google.android.gms.tasks.zzf.run(Unknown Source:2) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60) 
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27) 
        at java.lang.Thread.run(Thread.java:919) 

@TKBurner
Copy link

Thanks. Are you doing any cleanup on app shutdown or relaunch that would delete this file? Are you seeing this on all devices?

@WillCalderwood
Copy link

I'm doing no cleanup of files on startup or shutdown. I currently only have 1 test device, but the reason I found the problem is because 3 users have emailed me saying they're experiencing crashes and none of those crashes have been reported. I have had 1 crash reported, so it's obviously working on some devices, but the ratio of crash emails to crash reports would suggest it's not working on more devices that it is working on.

@mrwillis21
Copy link
Contributor

Hey folks - just wanted to chime in here and thank everyone for reporting this! Definitely seems strange. For those of you seeing it, are you able to reproduce it 100% of the time or does it seem to be transient?

@WillCalderwood
Copy link

It's 100% of the time on my device. Pixel 3a. Unfortunately all my still working old devices have been adopted by the kids with Family Link accounts that Google wont let me run debug mode on, so I can't test on another device without inducing a meltdown.

Would having an APK help you? Happy to link to one with a forced crash in.

@mrwillis21
Copy link
Contributor

@WillCalderwood appreciate the offer! I think I have a sense of what might be happening here, so any corroborating evidence would be helpful. If you could - please enable debug logging on your device by running adb shell setprop log.tag.FirebaseCrashlytics VERBOSE, start up your app, crash it, then grab the logs from logcat. If you're comfortable posting them here, that's fine, or feel free to send them (and the APK if you'd like) through https://firebase.google.com/support/troubleshooter/contact. Just reference this Github issue, and let them know I requested the information. :)

Thanks again!

@WillCalderwood
Copy link

@mrwillis21 Sorry for the slow reply. I seem to have a test crash that's appeared on Crashlytics now. I've been trying to work out what's changed/what's going on. That said, I'm still getting the error. Here are the logcat files.

One file with everything and one with just Firebase. Do you still want the APK after looking at this? If so, I'll send it over shortly.

@mrwillis21
Copy link
Contributor

@WillCalderwood I'll take a look at those files - thanks! And if you're open to sending across the APK, I'm happy to try it out locally.

@WillCalderwood
Copy link

@mrwillis21 I've sent a link to an apk via the contact form. Start it up and click "Play" to trigger a crash.

@tshegomasilo21
Copy link

Hi guys, I'm also having the same issue. Will highly appreciate a solution for that, thanks in advance.

@MaxBuster
Copy link

MaxBuster commented May 29, 2020

I was having a similar issue, I think what was happening for me was we were deleting all files in our app's file dir on logout which includes the firebase session file so next time there was a crash it was still looking for that file but couldn't find it.

05-29 08:54:22.127 20607 20668 D FirebaseCrashlytics: Could not persist event for session 5ED12F87026C0001507F24553B7DC95 05-29 08:54:22.127 20607 20668 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/<app name>/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED12F87026C0001507F24553B7DC95/event0000000000_ (No such file or directory)

Is that expected behavior or should it still retain crashes even if the session file is removed?

@WillCalderwood
Copy link

I've managed to get another device - still Android 10 though. I get the same error.

@mirokolodii
Copy link

I have similar issue. It's persistent 100% of the cases (Nokia 5, Android 9, AS 4.0), I'm crashing app on startup, so don't delete any files. From logs I can see that Firebase Crashlytics is initializing OK:

I/FirebaseCrashlytics: Initializing Crashlytics 17.0.0
D/FirebaseCrashlytics: Installer package name is: null
D/FirebaseCrashlytics: Found previous crash marker.
D/FirebaseCrashlytics: Exception handling initialization successful
D/FirebaseCrashlytics: Found matching FID, using Crashlytics IID: b12542144c594c1aa62739d4a5d3600d
I/FirebaseInitProvider: FirebaseApp initialization successful

but then right after crash:

D/FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Unable to create application io.piesystems.pie.PieApp: java.lang.RuntimeException: Test Crash" from thread main
D/FirebaseCrashlytics: Skipping logging Crashlytics event to Firebase, no Firebase Analytics
D/FirebaseCrashlytics: No log data to include with this event.
D/FirebaseCrashlytics: No log data to include with this event.
D/FirebaseCrashlytics: Closing open sessions.
D/FirebaseCrashlytics: Closing session: 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Collecting session parts for ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Session 5ED7AF4A0304-0001-7C23-96579946F755 has fatal exception: true
D/FirebaseCrashlytics: Session 5ED7AF4A0304-0001-7C23-96579946F755 has non-fatal exceptions: false
D/FirebaseCrashlytics: Collecting SessionStart data for session ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Collecting SessionUser data for session ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Collecting SessionApp data for session ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Collecting SessionOS data for session ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Collecting SessionDevice data for session ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Removing session part files for ID 5ED7AF4A0304-0001-7C23-96579946F755
D/FirebaseCrashlytics: Could not read user ID file in 5ED7AF4A030400017C2396579946F755
java.io.FileNotFoundException: /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED7AF4A030400017C2396579946F755/user (No such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:231)
        at java.io.FileInputStream.<init>(FileInputStream.java:165)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:470)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:309)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:197)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:159)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:867)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:827)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:407)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106)
        at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27)
        at java.lang.Thread.run(Thread.java:764)
2020-06-03 16:10:19.688 31779-31829/io.piesystems.pie.qa D/FirebaseCrashlytics: Opening a new session with ID 5ED7AF4B02AE-0002-7C23-96579946F755
2020-06-03 16:10:22.984 31779-31779/io.piesystems.pie.qa D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
2020-06-03 16:10:48.652 31779-31821/io.piesystems.pie.qa W/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval
2020-06-03 16:11:48.660 31779-31821/io.piesystems.pie.qa W/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval
2020-06-03 16:13:18.670 31779-31821/io.piesystems.pie.qa W/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval

@mirokolodii
Copy link

For now I've rolled back to Fabric Crashlytics and it's reporting fine to Firebase console.

@mrwillis21
Copy link
Contributor

@mirokolodii Thanks for the report - is this in your full app or in a test project?

@mirokolodii
Copy link

@mrwillis21 it's a production app, which I've tried to migrate from Fabric Crashlytics to Firebase.

@mrwillis21
Copy link
Contributor

mrwillis21 commented Jun 3, 2020

Hey everyone, it looks like there are a few different issues here, so I wanted to comment on the one that appears most commonly:

If you're seeing a log entry for FileNotFoundException that ends in /user -- that is benign. It's an optional file, and if it's missing, you should still get a crash report. Further down in your logs (just below this) you should see logs saying Sending report to: [endpoint] and Result was: 202. @WillCalderwood, this does appear in your logs, right at the bottom, so I believe your reports are being uploaded successfully. @mirokolodii this appears to be what you're experiencing as well.

We'll patch this up for the next release so that optional file does not end up polluting the logs this way.

For the other files that are missing (including the one from the original post in this thread), that still strikes me as strange, and I'm going to continue investigating.

@mrwillis21
Copy link
Contributor

@moetouban Can I get a little more information about your app, and the context in which you're seeing this error? Is it a test crash? On startup? As @TKBurner had mentioned, are you clearing any app files at any point in your app lifecycle?

@WillCalderwood
Copy link

WillCalderwood commented Jun 3, 2020

@mrwillis21 Yes, exceptions are now being reported, so it wasn't the error in the logcat that was causing the problem, that was a red herring. I stumbled across a base class that was calling setDefaultUncaughtExceptionHandler() which I guess might have been messing things up.

@mirokolodii
Copy link

Hey everyone, it looks like there are a few different issues here, so I wanted to comment on the one that appears most commonly:

If you're seeing a log entry for FileNotFoundException that ends in /user -- that is benign. It's an optional file, and if it's missing, you should still get a crash report. Further down in your logs (just below this) you should see logs saying Sending report to: [endpoint] and Result was: 202. @WillCalderwood, this does appear in your logs, right at the bottom, so I believe your reports are being uploaded successfully. @mirokolodii this appears to be what you're experiencing as well.

We'll patch this up for the next release so that optional file does not end up polluting the logs this way.

For the other files that are missing (including the one from the original post in this thread), that still strikes me as strange, and I'm going to continue investigating.

In my case reports are not sent though.

@mrwillis21
Copy link
Contributor

mrwillis21 commented Jun 3, 2020

@mirokolodii Would you be willing to post your logcat so I could take a look?

Edit: That is, a full run of the app from startup through app crash.

@mirokolodii
Copy link

@mrwillis21 sure, I just need to revert back to Firebase lib first.

@moetouban
Copy link
Author

@mrwillis21 Our application has a base module and a library module. I have added the dependency for firebase crashlytics in both modules. The crash is being triggered manually by me on a button press on login screen. There aren't any files being deleted. The logs are from running the app on emulator Pixel XL.

    --------- beginning of crash
2020-06-03 15:31:06.655 19256-19256/com.freshbooks.andromeda.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.freshbooks.andromeda.debug, PID: 19256
    java.lang.RuntimeException: Test Crash
        at com.freshbooks.andromeda.ui.login.LoginFragment$setupClickListeners$3.invoke(LoginFragment.kt:333)
        at com.freshbooks.andromeda.ui.login.LoginFragment$setupClickListeners$3.invoke(LoginFragment.kt:41)
        at com.freshbooks.andromeda.util.extensions.ViewExtensionsKt$onClickSafe$safeClickListener$1.invoke(ViewExtensions.kt:12)
        at com.freshbooks.andromeda.util.extensions.ViewExtensionsKt$onClickSafe$safeClickListener$1.invoke(Unknown Source:6)
        at com.freshbooks.andromeda.util.SafeClickListener.onClick(SafeClickListener.kt:20)
        at android.view.View.performClick(View.java:7125)
        at android.view.View.performClickInternal(View.java:7102)
        at android.view.View.access$3500(View.java:801)
        at android.view.View$PerformClick.run(View.java:27336)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-06-03 15:31:06.655 19256-19256/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash" from thread main
2020-06-03 15:31:06.659 19256-19389/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Logging Crashlytics event to Firebase
2020-06-03 15:31:06.659 19256-19389/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Background thread awaiting app exception callback from FA...
2020-06-03 15:31:06.696 19256-19300/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: No log data to include with this event.
2020-06-03 15:31:06.696 19256-19301/com.freshbooks.andromeda.debug V/FA: Connecting to remote service
2020-06-03 15:31:06.703 19256-19301/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=36401, _sc=LoginActivity, _si=-9170343045925265577, timestamp=1591212666656, fatal=1}], name=_ae, timestampInMillis=1591212666659}]
2020-06-03 15:31:06.704 19256-19389/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: App exception callback received from FA listener.
2020-06-03 15:31:06.710 19256-19301/com.freshbooks.andromeda.debug V/FA: Recording user engagement, ms: 36437
2020-06-03 15:31:06.732 19256-19300/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Could not persist event for session 5ED7FA55025F00014B38B82D355DFF41
    java.io.FileNotFoundException: /data/user/0/com.freshbooks.andromeda.debug/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED7FA55025F00014B38B82D355DFF41/event0000000000_: open failed: ENOENT (No such file or directory)
        at libcore.io.IoBridge.open(IoBridge.java:496)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:235)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.writeTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:461)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:152)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:249)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistFatalEvent(com.google.firebase:firebase-crashlytics@@17.0.0:121)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:400)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106)
        at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27)
        at java.lang.Thread.run(Thread.java:919)
     Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Linux.open(Native Method)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
        at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
        at libcore.io.IoBridge.open(IoBridge.java:482)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:235) 
        at java.io.FileOutputStream.<init>(FileOutputStream.java:186) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.writeTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:461) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:152) 
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:249) 
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistFatalEvent(com.google.firebase:firebase-crashlytics@@17.0.0:121) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:400) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106) 
        at com.google.android.gms.tasks.zzf.run(Unknown Source:2) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60) 
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27) 
        at java.lang.Thread.run(Thread.java:919) 
2020-06-03 15:31:06.733 19256-19300/com.freshbooks.andromeda.debug E/FirebaseCrashlytics: Tried to write a fatal exception while no session was open.
2020-06-03 15:31:06.734 19256-19300/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: No open sessions to be closed.
2020-06-03 15:31:06.736 19256-19300/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Opening a new session with ID 5ED7FA7A02DF-0002-4B38-B82D355DFF41
2020-06-03 15:31:06.744 19256-19301/com.freshbooks.andromeda.debug V/FA: Connection attempt already in progress
2020-06-03 15:31:06.744 19256-19301/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _et=36437, _fr=1, _sc=LoginActivity, _si=-9170343045925265577}], name=_e, timestampInMillis=1591212666713}]
2020-06-03 15:31:10.661 19256-19256/com.freshbooks.andromeda.debug D/FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
2020-06-03 15:31:10.681 19256-19256/com.freshbooks.andromeda.debug I/Process: Sending signal. PID: 19256 SIG: 9
06-03 15:31:06.659 19256 19389 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
06-03 15:31:06.659 19256 19389 D FirebaseCrashlytics: Background thread awaiting app exception callback from FA...
06-03 15:31:06.696 19256 19300 D FirebaseCrashlytics: No log data to include with this event.
06-03 15:31:06.703 19256 19301 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=36401, _sc=LoginActivity, _si=-9170343045925265577, timestamp=1591212666656, fatal=1}], name=_ae, timestampInMillis=1591212666659}]
06-03 15:31:06.704 19256 19389 D FirebaseCrashlytics: App exception callback received from FA listener.
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics: Could not persist event for session 5ED7FA55025F00014B38B82D355DFF41
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/com.freshbooks.andromeda.debug/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED7FA55025F00014B38B82D355DFF41/event0000000000_: open failed: ENOENT (No such file or directory)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:496)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at java.io.FileOutputStream.<init>(FileOutputStream.java:235)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at java.io.FileOutputStream.<init>(FileOutputStream.java:186)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.writeTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:461)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:152)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistEvent(com.google.firebase:firebase-crashlytics@@17.0.0:249)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.persistFatalEvent(com.google.firebase:firebase-crashlytics@@17.0.0:121)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:400)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:393)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:106)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:60)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:27)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at java.lang.Thread.run(Thread.java:919)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.Linux.open(Native Method)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:482)
06-03 15:31:06.732 19256 19300 D FirebaseCrashlytics:   ... 15 more
06-03 15:31:06.733 19256 19300 E FirebaseCrashlytics: Tried to write a fatal exception while no session was open.
06-03 15:31:06.734 19256 19300 D FirebaseCrashlytics: No open sessions to be closed.
06-03 15:31:06.736 19256 19300 D FirebaseCrashlytics: Opening a new session with ID 5ED7FA7A02DF-0002-4B38-B82D355DFF41
06-03 15:31:06.744 19256 19301 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _et=36437, _fr=1, _sc=LoginActivity, _si=-9170343045925265577}], name=_e, timestampInMillis=1591212666713}]
06-03 15:31:10.661 19256 19256 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.

@mirokolodii
Copy link

@mirokolodii Would you be willing to post your logcat so I could take a look?

Edit: That is, a full run of the app from startup through app crash.

06-03 22:02:42.967 4661-4661/io.piesystems.pie.qa I/MultiDex: VM with version 2.1.0 has multidex support
06-03 22:02:42.968 4661-4661/io.piesystems.pie.qa I/MultiDex: Installing application
06-03 22:02:42.968 4661-4661/io.piesystems.pie.qa I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-03 22:02:43.367 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: Reading cached settings...
06-03 22:02:43.369 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: No cached settings found.
06-03 22:02:43.369 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: No cached settings data found.
06-03 22:02:43.370 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: Mapping file ID is: c00305b7717447809b59053852f5ab69
06-03 22:02:43.370 4661-4661/io.piesystems.pie.qa I/FirebaseCrashlytics: Initializing Crashlytics 17.0.0
06-03 22:02:43.380 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: Installer package name is: null
06-03 22:02:43.435 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: Exception handling initialization successful
06-03 22:02:43.439 4661-4661/io.piesystems.pie.qa I/FirebaseInitProvider: FirebaseApp initialization successful
06-03 22:02:43.439 4661-4661/io.piesystems.pie.qa D/Camera2Initializer: CameraX initializing with Camera2 ...
06-03 22:02:43.464 4661-4661/io.piesystems.pie.qa I/CameraManagerGlobal: Connecting to camera service
06-03 22:02:43.464 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: No cached FID; legacy id is null
06-03 22:02:43.464 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Created new Crashlytics IID: e52c457b1a6648c4bbac816c218a4080
06-03 22:02:43.465 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Opening a new session with ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.498 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Initialization marker file created.
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Firebase Analytics is not present; you will not see automatic logging of events before a crash occurs.
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: false
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Finalizing previously open sessions.
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: No open sessions to be closed.
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Closed all previously open sessions
06-03 22:02:43.499 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: No reports are available.
06-03 22:02:43.500 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Initialization marker file removed: true
06-03 22:02:43.649 4661-4661/io.piesystems.pie.qa D/CameraRepository: Added camera: 0
06-03 22:02:43.668 4661-4693/io.piesystems.pie.qa D/UseCaseAttachState: Active and online use case: [] for camera: 0
06-03 22:02:43.670 4661-4661/io.piesystems.pie.qa D/CameraRepository: Added camera: 1
06-03 22:02:43.675 4661-4693/io.piesystems.pie.qa D/UseCaseAttachState: Active and online use case: [] for camera: 1
06-03 22:02:43.747 4661-4661/io.piesystems.pie.qa I/MultiDex: Installing application
06-03 22:02:43.747 4661-4661/io.piesystems.pie.qa I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-03 22:02:43.750 4661-4661/io.piesystems.pie.qa D/AndroidRuntime: Shutting down VM
06-03 22:02:43.750 4661-4661/io.piesystems.pie.qa D/FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Unable to create application io.piesystems.pie.PieApp: java.lang.RuntimeException: Test Crash" from thread main
06-03 22:02:43.756 4661-4699/io.piesystems.pie.qa D/FirebaseCrashlytics: Skipping logging Crashlytics event to Firebase, no Firebase Analytics
06-03 22:02:43.788 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: No log data to include with this event.
06-03 22:02:43.838 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: No log data to include with this event.
06-03 22:02:43.868 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Closing open sessions.
06-03 22:02:43.868 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Closing session: 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.868 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting session parts for ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.868 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Session 5ED801E301B3-0001-1235-E08FF294A811 has fatal exception: true
06-03 22:02:43.869 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Session 5ED801E301B3-0001-1235-E08FF294A811 has non-fatal exceptions: false
06-03 22:02:43.870 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionStart data for session ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.870 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionUser data for session ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.870 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionApp data for session ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.871 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionOS data for session ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.871 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionDevice data for session ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.872 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Removing session part files for ID 5ED801E301B3-0001-1235-E08FF294A811
06-03 22:02:43.884 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Could not read user ID file in 5ED801E301B300011235E08FF294A811
    java.io.FileNotFoundException: /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED801E301B300011235E08FF294A811/user: open failed: ENOENT (No such file or directory)
        at libcore.io.IoBridge.open(IoBridge.java:452)
        at java.io.FileInputStream.<init>(FileInputStream.java:76)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:9)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:3)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:15)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:9)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.android.gms.tasks.n.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Posix.open(Native Method)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
        at libcore.io.IoBridge.open(IoBridge.java:438)
        at java.io.FileInputStream.<init>(FileInputStream.java:76) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:9) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:3) 
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:15) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:9) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.android.gms.tasks.n.run(Unknown Source) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at java.lang.Thread.run(Thread.java:818) 
06-03 22:02:43.899 4661-4687/io.piesystems.pie.qa D/FirebaseCrashlytics: Opening a new session with ID 5ED801E30383-0002-1235-E08FF294A811
06-03 22:02:47.753 4661-4661/io.piesystems.pie.qa E/AndroidRuntime: FATAL EXCEPTION: main
    Process: io.piesystems.pie.qa, PID: 4661
    java.lang.RuntimeException: Unable to create application io.piesystems.pie.PieApp: java.lang.RuntimeException: Test Crash
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4710)
        at android.app.ActivityThread.-wrap1(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     Caused by: java.lang.RuntimeException: Test Crash
        at io.piesystems.pie.PieApp.onCreate(PieApp.kt:6)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
        at android.app.ActivityThread.-wrap1(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:148) 
        at android.app.ActivityThread.main(ActivityThread.java:5417) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
06-03 22:03:13.358 4661-4685/io.piesystems.pie.qa W/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval

@mirokolodii
Copy link

mirokolodii commented Jun 3, 2020

For test purposes I've created another Firebase project and enabled the Crashlytics SDK there. Then configured the library in the app. Now reports are comming for crashes, but not when I report throwable manually. I have both ways working in the same setup with Fabric lib.
Here is a log:

06-03 22:33:41.502 6997-6997/io.piesystems.pie.qa I/MultiDex: Installing application
06-03 22:33:41.502 6997-6997/io.piesystems.pie.qa I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-03 22:33:41.709 6997-6997/io.piesystems.pie.qa D/FirebaseCrashlytics: Reading cached settings...
06-03 22:33:41.730 6997-6997/io.piesystems.pie.qa 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":1,"native_report_upload_variant":2},"fabric":{"org_id":"5ed7f9020c68714f5a000001","bundle_id":"io.piesystems.pie.qa"},"expires_at":1591302587630}
06-03 22:33:41.731 6997-6997/io.piesystems.pie.qa D/FirebaseCrashlytics: Returning cached settings.
06-03 22:33:41.738 6997-6997/io.piesystems.pie.qa D/FirebaseCrashlytics: Mapping file ID is: 2e75564f4be14d70b2134b921c8daa23
06-03 22:33:41.738 6997-6997/io.piesystems.pie.qa I/FirebaseCrashlytics: Initializing Crashlytics 17.0.0
06-03 22:33:41.746 6997-6997/io.piesystems.pie.qa D/FirebaseCrashlytics: Installer package name is: null
06-03 22:33:41.826 6997-7007/io.piesystems.pie.qa I/art: Background sticky concurrent mark sweep GC freed 11940(587KB) AllocSpace objects, 4(80KB) LOS objects, 57% free, 1563KB/3MB, paused 5.705ms total 236.262ms
06-03 22:33:41.844 6997-6997/io.piesystems.pie.qa D/FirebaseCrashlytics: Exception handling initialization successful
06-03 22:33:41.848 6997-6997/io.piesystems.pie.qa I/FirebaseInitProvider: FirebaseApp initialization successful
06-03 22:33:41.859 6997-6997/io.piesystems.pie.qa D/Camera2Initializer: CameraX initializing with Camera2 ...
06-03 22:33:41.899 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Found matching FID, using Crashlytics IID: e52c457b1a6648c4bbac816c218a4080
06-03 22:33:41.900 6997-6997/io.piesystems.pie.qa I/CameraManagerGlobal: Connecting to camera service
06-03 22:33:41.901 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Opening a new session with ID 5ED809250350-0001-1B55-E08FF294A811
06-03 22:33:41.958 6997-6997/io.piesystems.pie.qa D/CameraRepository: Added camera: 0
06-03 22:33:41.971 6997-7024/io.piesystems.pie.qa D/UseCaseAttachState: Active and online use case: [] for camera: 0
06-03 22:33:41.973 6997-6997/io.piesystems.pie.qa D/CameraRepository: Added camera: 1
06-03 22:33:41.976 6997-7024/io.piesystems.pie.qa D/UseCaseAttachState: Active and online use case: [] for camera: 1
06-03 22:33:41.986 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Initialization marker file created.
06-03 22:33:41.987 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Firebase Analytics is not present; you will not see automatic logging of events before a crash occurs.
06-03 22:33:41.987 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: false
06-03 22:33:41.987 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Finalizing previously open sessions.
06-03 22:33:41.993 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Closing open sessions.
06-03 22:33:41.993 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Closing session: 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.993 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting session parts for ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.993 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Session 5ED80839022B-0001-1A3C-E08FF294A811 has fatal exception: false
06-03 22:33:41.993 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Session 5ED80839022B-0001-1A3C-E08FF294A811 has non-fatal exceptions: true
06-03 22:33:41.994 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionStart data for session ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.994 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionUser data for session ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.995 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionApp data for session ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.995 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionOS data for session ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.995 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Collecting SessionDevice data for session ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:41.995 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Found Non Fatal for session ID 5ED80839022B-0001-1A3C-E08FF294A811 in 5ED80839022B-0001-1A3C-E08FF294A811SessionEvent0000000000.cls 
06-03 22:33:41.995 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Removing session part files for ID 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:42.011 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Could not read user ID file in 5ED80839022B00011A3CE08FF294A811
    java.io.FileNotFoundException: /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/report-persistence/sessions/5ED80839022B00011A3CE08FF294A811/user: open failed: ENOENT (No such file or directory)
        at libcore.io.IoBridge.open(IoBridge.java:452)
        at java.io.FileInputStream.<init>(FileInputStream.java:76)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:9)
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:3)
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:15)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:5)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.doBackgroundInitialization(com.google.firebase:firebase-crashlytics@@17.0.0:9)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.access$000(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.Utils$3.run(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
        at libcore.io.Posix.open(Native Method)
        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
        at libcore.io.IoBridge.open(IoBridge.java:438)
        at java.io.FileInputStream.<init>(FileInputStream.java:76) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(com.google.firebase:firebase-crashlytics@@17.0.0:9) 
        at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(com.google.firebase:firebase-crashlytics@@17.0.0:3) 
        at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(com.google.firebase:firebase-crashlytics@@17.0.0:15) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.finalizeSessions(com.google.firebase:firebase-crashlytics@@17.0.0:5) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.doBackgroundInitialization(com.google.firebase:firebase-crashlytics@@17.0.0:9) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.access$000(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.Utils$3.run(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at java.lang.Thread.run(Thread.java:818) 
06-03 22:33:42.016 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Closed all previously open sessions
06-03 22:33:42.016 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Unsent reports are available.
06-03 22:33:42.016 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Automatic data collection is enabled. Allowing upload.
06-03 22:33:42.017 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Initialization marker file removed: true
06-03 22:33:42.067 6997-6997/io.piesystems.pie.qa I/MultiDex: Installing application
06-03 22:33:42.067 6997-6997/io.piesystems.pie.qa I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-03 22:33:42.269 6997-7038/io.piesystems.pie.qa E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found
06-03 22:33:42.286 6997-6997/io.piesystems.pie.qa W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
06-03 22:33:42.295 6997-7042/io.piesystems.pie.qa I/OMXClient: Using client-side OMX mux.
06-03 22:33:42.563 6997-6997/io.piesystems.pie.qa D/line:110: --- Implementation #2 with key 0x6b
06-03 22:33:42.564 6997-6997/io.piesystems.pie.qa D/line:37: Unlocking BlinkID native library version 4.7.0
06-03 22:33:42.612 6997-7053/io.piesystems.pie.qa I/OMXClient: Using client-side OMX mux.
06-03 22:33:42.780 6997-6997/io.piesystems.pie.qa W/Intercom realtime: No realtime endpoints present so we can't connect
06-03 22:33:42.793 6997-6997/io.piesystems.pie.qa I/BranchSDK: Warning: You are using your test app's Branch Key. Remember to change it to live Branch Key during deployment.
06-03 22:33:42.899 6997-7060/io.piesystems.pie.qa I/OMXClient: Using client-side OMX mux.
06-03 22:33:43.014 6997-7065/io.piesystems.pie.qa D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
06-03 22:33:43.098 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Checking for crash reports...
06-03 22:33:43.099 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Found crash report /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5ED80839022B-0001-1A3C-E08FF294A811.cls
06-03 22:33:43.100 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Reports are being sent.
06-03 22:33:43.101 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Requesting settings from https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/1:816575240496:android:cc6274b626e12f04/settings
06-03 22:33:43.101 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Settings query params were: {instance=8bcf26cfa744b38bb7b5f25f717127a3c5c7765a, build_version=118, display_version=2.0.11-qa, source=1}
06-03 22:33:43.104 6997-7020/io.piesystems.pie.qa D/FirebaseCrashlytics: Send via DataTransport disabled. Removing DataTransport reports.
06-03 22:33:43.116 6997-7067/io.piesystems.pie.qa I/OMXClient: Using client-side OMX mux.
06-03 22:33:43.119 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Starting report processing in 1.0 second(s)...
06-03 22:33:43.151 6997-7070/io.piesystems.pie.qa I/BranchSDK: posting to https://api2.branch.io/v1/open
06-03 22:33:43.152 6997-7070/io.piesystems.pie.qa I/BranchSDK: Post value = {"device_fingerprint_id":"796819705318230253","identity_id":"796819705344624178","hardware_id":"5792ab83-8801-461a-8af9-1f38ceaf44e7","is_hardware_id_real":false,"brand":"unknown","model":"Android SDK built for x86","screen_dpi":560,"screen_height":2392,"screen_width":1440,"wifi":false,"ui_mode":"UI_MODE_TYPE_NORMAL","os":"Android","os_version":23,"country":"US","language":"en","local_ip":"10.0.2.15","app_version":"2.0.11-qa","facebook_app_link_checked":false,"is_referrable":1,"debug":true,"update":1,"latest_install_time":1591214561044,"latest_update_time":1591216420253,"first_install_time":1591214561044,"previous_update_time":1591216184497,"environment":"FULL_APP","cd":{"mv":"-1","pn":"io.piesystems.pie.qa"},"metadata":{},"instrumentation":{"v1\/open-qwt":"0"},"sdk":"android3.2.0","branch_key":"key_test_hkx5bWoWbanRMB7Suw2CgibbxqiXIDMO"}
06-03 22:33:43.204 6997-7065/io.piesystems.pie.qa I/OpenGLRenderer: Initialized EGL, version 1.4
06-03 22:33:43.204 6997-7065/io.piesystems.pie.qa W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
06-03 22:33:43.206 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglCreateContext: 0xae4d59a0: maj 3 min 0 rcv 3
06-03 22:33:43.208 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:43.209 6997-7065/io.piesystems.pie.qa E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf
06-03 22:33:43.210 6997-7065/io.piesystems.pie.qa E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824
06-03 22:33:43.226 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:43.452 6997-6997/io.piesystems.pie.qa I/u: Making Creator dynamically
06-03 22:33:43.459 6997-6997/io.piesystems.pie.qa I/DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:222
06-03 22:33:43.459 6997-6997/io.piesystems.pie.qa I/DynamiteModule: Selected remote version of com.google.android.gms.maps_dynamite, version >= 222
06-03 22:33:43.474 6997-6997/io.piesystems.pie.qa W/System: ClassLoader referenced unknown path: /data/data/com.google.android.gms/app_chimera/m/00000006/n/x86
06-03 22:33:43.491 6997-6997/io.piesystems.pie.qa I/Google Maps Android API: Google Play services client version: 12451000
06-03 22:33:43.494 6997-6997/io.piesystems.pie.qa I/Google Maps Android API: Google Play services package version: 200414022
06-03 22:33:43.848 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:43.990 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:44.013 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:44.018 6997-7105/io.piesystems.pie.qa D/EGL_emulation: eglCreateContext: 0x9e818a40: maj 1 min 0 rcv 1
06-03 22:33:44.037 6997-7105/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0x9e818a40: ver 1 0 (tinfo 0xaa97fe80)
06-03 22:33:44.163 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Attempting to send 1 report(s)
06-03 22:33:44.166 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Adding single file 5ED80839022B-0001-1A3C-E08FF294A811.cls to report 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:44.167 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa/reports
06-03 22:33:44.270 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:44.301 6997-7065/io.piesystems.pie.qa D/EGL_emulation: eglMakeCurrent: 0xae4d59a0: ver 3 0 (tinfo 0xa9cfd130)
06-03 22:33:44.326 6997-7065/io.piesystems.pie.qa E/Surface: getSlotFromBufferLocked: unknown buffer: 0xae5df860
06-03 22:33:45.723 6997-7106/io.piesystems.pie.qa W/DynamiteModule: Local module descriptor class for com.google.android.gms.googlecertificates not found.
06-03 22:33:45.726 6997-7106/io.piesystems.pie.qa I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
06-03 22:33:45.726 6997-7106/io.piesystems.pie.qa I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 4
06-03 22:33:45.727 6997-7106/io.piesystems.pie.qa W/System: ClassLoader referenced unknown path: /data/data/com.google.android.gms/app_chimera/m/00000005/n/x86
06-03 22:33:49.688 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Create report request ID: null
06-03 22:33:49.688 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Result was: 202
06-03 22:33:49.688 6997-7068/io.piesystems.pie.qa I/FirebaseCrashlytics: Crashlytics Reports Endpoint upload complete: 5ED80839022B-0001-1A3C-E08FF294A811
06-03 22:33:49.688 6997-7068/io.piesystems.pie.qa D/FirebaseCrashlytics: Removing report at /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5ED80839022B-0001-1A3C-E08FF294A811.cls
06-03 22:33:51.750 6997-7110/io.piesystems.pie.qa E/Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
06-03 22:33:51.750 6997-7110/io.piesystems.pie.qa E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
    Ensure that the "Google Maps Android API v2" is enabled.
    Ensure that the following Android Key exists:
    	API Key: AIzaSyC2GBTStvhXKXXmzHOK67KZuOL4cswjVn0
    	Android Application (<cert_fingerprint>;<package_name>): 4C:AA:E6:6F:94:3E:E6:6B:D1:07:10:38:17:23:1D:46:FA:51:A6:E7;io.piesystems.pie.qa
06-03 22:33:53.173 6997-7023/io.piesystems.pie.qa E/FirebaseCrashlytics: Settings request failed.
    java.io.InterruptedIOException: timeout
        at k.z.g(RealCall.java:2)
        at k.z.execute(RealCall.java:12)
        at com.google.firebase.crashlytics.internal.network.HttpRequest.execute(com.google.firebase:firebase-crashlytics@@17.0.0:3)
        at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(com.google.firebase:firebase-crashlytics@@17.0.0:6)
        at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(com.google.firebase:firebase-crashlytics@@17.0.0:3)
        at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.android.gms.tasks.x.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2)
        at java.lang.Thread.run(Thread.java:818)
     Caused by: java.io.IOException: Canceled
        at k.g0.f.j.a(RetryAndFollowUpInterceptor.java:38)
        at k.g0.f.g.e(RealInterceptorChain.java:9)
        at k.g0.f.g.a(RealInterceptorChain.java:1)
        at k.z.d(RealCall.java:13)
        at k.z.execute(RealCall.java:9)
        at com.google.firebase.crashlytics.internal.network.HttpRequest.execute(com.google.firebase:firebase-crashlytics@@17.0.0:3) 
        at com.google.firebase.crashlytics.internal.settings.network.DefaultSettingsSpiCall.invoke(com.google.firebase:firebase-crashlytics@@17.0.0:6) 
        at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(com.google.firebase:firebase-crashlytics@@17.0.0:3) 
        at com.google.firebase.crashlytics.internal.settings.SettingsController$1.then(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.android.gms.tasks.x.run(Unknown Source) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
        at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(com.google.firebase:firebase-crashlytics@@17.0.0:1) 
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(com.google.firebase:firebase-crashlytics@@17.0.0:2) 
        at java.lang.Thread.run(Thread.java:818) 
06-03 22:33:53.173 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Server says an update is required - forcing a full App update.
06-03 22:33:53.176 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa
06-03 22:33:53.912 6997-7070/io.piesystems.pie.qa I/BranchSDK: returned {"session_id":"796826354938881174","identity_id":"796819705344624178","link":"https://7yzi.test-app.link?%24identity_id=796819705344624178","data":"{\"+clicked_branch_link\":false,\"+is_first_session\":false}","device_fingerprint_id":"796819705318230253"}
06-03 22:33:54.043 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Update app request ID: ec8d79106d02b3a903c934d31f4eab26
06-03 22:33:54.043 6997-7023/io.piesystems.pie.qa D/FirebaseCrashlytics: Result was 204

Don't bother with Google Maps error in logs.

@mirokolodii
Copy link

@mrwillis21 what are your thoughts on this? Are posted logs useful? Right now I've removed the application from Firebase project, which has been migrated from Fabric, as well as migrated API in the app from Fabric to Firebase. So currently have fresh project with Crashlytics SDK enabled. I have two buttons - one crashes the app and another records exceptions. Unfortunately reports are not comming to the console.

@mrwillis21
Copy link
Contributor

mrwillis21 commented Jun 5, 2020

@mirokolodii If you've got a test project set up that reproduces this issue, and can either publish it here on Github or send it through to https://firebase.google.com/support/troubleshooter/contact, that would be very helpful!

@mirokolodii
Copy link

@mrwillis21 it's a Play Store application, so can't really share the code. But is it possible that report is sent to wrong endpoint? I mean, the project was connected to two Firebase projects - one created by migrating from Fabric and where Crashlytics are used, another one created as a new one with other Firebase services enabled. I've removed the migrated one, so only one Firebase project exists now, which is connected to the application.
From logs I can see that crash events are logged and on fresh app launch there is attempt to send those reports, but they don't land on Firebase console for some reason. Not sure also, what result codes 202 and 204 mean.

06-09 11:10:59.473  5408  5408 D FirebaseCrashlytics: Reading cached settings...
06-09 11:10:59.492  5408  5408 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":1,"native_report_upload_variant":2},"fabric":{"org_id":"5ed7f9020c68714f5a000001","bundle_id":"io.piesystems.pie.qa"},"expires_at":1591772382590}
06-09 11:10:59.492  5408  5408 D FirebaseCrashlytics: Returning cached settings.
06-09 11:10:59.495  5408  5408 D FirebaseCrashlytics: Mapping file ID is: f0e4ee257be8410ab7ac80da2aa61074
06-09 11:10:59.496  5408  5408 I FirebaseCrashlytics: Initializing Crashlytics 17.0.1
06-09 11:10:59.512  5408  5408 D FirebaseCrashlytics: Installer package name is: null
06-09 11:10:59.554  5408  5408 D FirebaseCrashlytics: Exception handling initialization successful
06-09 11:10:59.563  5408  5457 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 4b4ea42fe03a46a0a9db53db0316d7fe
06-09 11:10:59.567  5408  5457 D FirebaseCrashlytics: Opening a new session with ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:10:59.627  5408  5457 D FirebaseCrashlytics: Initialization marker file created.
06-09 11:10:59.697  5408  5457 D FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: true
06-09 11:10:59.697  5408  5457 D FirebaseCrashlytics: Finalizing previously open sessions.
06-09 11:10:59.712  5408  5457 D FirebaseCrashlytics: Closing open sessions.
06-09 11:10:59.713  5408  5457 D FirebaseCrashlytics: Closing session: 5EDF47DB012C-0001-7DE3-D1340B2D9CC6
06-09 11:10:59.713  5408  5457 D FirebaseCrashlytics: Collecting session parts for ID 5EDF47DB012C-0001-7DE3-D1340B2D9CC6
06-09 11:10:59.713  5408  5457 D FirebaseCrashlytics: Session 5EDF47DB012C-0001-7DE3-D1340B2D9CC6 has fatal exception: false
06-09 11:10:59.718  5408  5457 D FirebaseCrashlytics: Session 5EDF47DB012C-0001-7DE3-D1340B2D9CC6 has non-fatal exceptions: false
06-09 11:10:59.718  5408  5457 D FirebaseCrashlytics: No events present for session ID 5EDF47DB012C-0001-7DE3-D1340B2D9CC6
06-09 11:10:59.718  5408  5457 D FirebaseCrashlytics: Removing session part files for ID 5EDF47DB012C-0001-7DE3-D1340B2D9CC6
06-09 11:10:59.722  5408  5457 D FirebaseCrashlytics: Closed all previously open sessions
06-09 11:10:59.724  5408  5457 D FirebaseCrashlytics: No reports are available.
06-09 11:10:59.728  5408  5457 D FirebaseCrashlytics: Initialization marker file removed: true
06-09 11:11:00.272  5408  5462 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _sid=1591693859}], name=_s, timestampInMillis=1591693859996}]
06-09 11:11:00.804  5408  5467 D FirebaseCrashlytics: Requesting settings from https://firebase-settings.crashlytics.com/spi/v2/platforms/android/gmp/1:816575240496:android:cc6274b626e12f04/settings
06-09 11:11:00.805  5408  5467 D FirebaseCrashlytics: Settings query params were: {instance=76f7b8df01226d02c8eaf706aae0c13cbe6d66bb, build_version=119, display_version=2.0.12-qa, source=1}
06-09 11:11:01.012  5408  5462 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _sc=SplashScreenActivity, _si=-2241105165519576655}], name=_vs, timestampInMillis=1591693860725}]
06-09 11:11:01.251 30849  5400 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto}], name=_ab, timestampInMillis=1591693858962}]
06-09 11:11:01.766  5408  5467 D FirebaseCrashlytics: Settings request ID: null
06-09 11:11:01.766  5408  5467 D FirebaseCrashlytics: Settings result was: 200
06-09 11:11:01.768  5408  5467 D FirebaseCrashlytics: Writing settings to cache file...
06-09 11:11:01.770  5408  5467 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},"app":{"status":"activated","update_required":true,"report_upload_variant":1,"native_report_upload_variant":2},"fabric":{"org_id":"5ed7f9020c68714f5a000001","bundle_id":"io.piesystems.pie.qa"},"expires_at":1591780261768}
06-09 11:11:01.771  5408  5467 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
06-09 11:11:01.859  5408  5467 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa
06-09 11:11:03.811  5408  5467 D FirebaseCrashlytics: Update app request ID: 79c4f3c4e7b9b3eaee447c8baef5a8a0
06-09 11:11:03.811  5408  5467 D FirebaseCrashlytics: Result was 204
06-09 11:11:07.194  5408  5462 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _et=6343, _sc=SplashScreenActivity, _si=-2241105165519576655}], name=_e, timestampInMillis=1591693867083}]
06-09 11:11:08.494  5408  5462 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _pc=SplashScreenActivity, _pi=-2241105165519576655, _sc=MainActivity, _si=-2241105165519576654}], name=_vs, timestampInMillis=1591693868347}]
06-09 11:16:49.540  5408  5457 D FirebaseCrashlytics: Crashlytics is logging non-fatal exception "java.lang.RuntimeException: test record 9/06" from thread main
06-09 11:16:55.213  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:16:55.225  5408  5457 D FirebaseCrashlytics: Crashlytics is logging non-fatal exception "java.lang.RuntimeException: test record 9/06" from thread main
06-09 11:16:55.233  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:16:55.900  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:16:55.911  5408  5457 D FirebaseCrashlytics: Crashlytics is logging non-fatal exception "java.lang.RuntimeException: test record 9/06" from thread main
06-09 11:16:55.920  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:17:01.973  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:17:01.985  5408  5457 D FirebaseCrashlytics: Crashlytics is logging non-fatal exception "java.lang.RuntimeException: test 9/06" from thread main
06-09 11:17:01.993  5408  5457 D FirebaseCrashlytics: No log data to include with this event.
06-09 11:19:23.037  6607  6607 D FirebaseCrashlytics: Reading cached settings...
06-09 11:19:23.040  6607  6607 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":1,"native_report_upload_variant":2},"fabric":{"org_id":"5ed7f9020c68714f5a000001","bundle_id":"io.piesystems.pie.qa"},"expires_at":1591780261768}
06-09 11:19:23.040  6607  6607 D FirebaseCrashlytics: Returning cached settings.
06-09 11:19:23.042  6607  6607 D FirebaseCrashlytics: Mapping file ID is: f0e4ee257be8410ab7ac80da2aa61074
06-09 11:19:23.044  6607  6607 I FirebaseCrashlytics: Initializing Crashlytics 17.0.1
06-09 11:19:23.046  6607  6607 D FirebaseCrashlytics: Installer package name is: null
06-09 11:19:23.070  6607  6607 D FirebaseCrashlytics: Exception handling initialization successful
06-09 11:19:23.077  6607  6632 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 4b4ea42fe03a46a0a9db53db0316d7fe
06-09 11:19:23.080  6607  6632 D FirebaseCrashlytics: Opening a new session with ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:19:23.103  6607  6632 D FirebaseCrashlytics: Initialization marker file created.
06-09 11:19:23.107  6607  6632 D FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: true
06-09 11:19:23.107  6607  6632 D FirebaseCrashlytics: Finalizing previously open sessions.
06-09 11:19:23.112  6607  6632 D FirebaseCrashlytics: Closing open sessions.
06-09 11:19:23.112  6607  6632 D FirebaseCrashlytics: Closing session: 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.112  6607  6632 D FirebaseCrashlytics: Collecting session parts for ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.113  6607  6632 D FirebaseCrashlytics: Session 5EDF5223022D-0001-1520-D1340B2D9CC6 has fatal exception: false
06-09 11:19:23.113  6607  6632 D FirebaseCrashlytics: Session 5EDF5223022D-0001-1520-D1340B2D9CC6 has non-fatal exceptions: true
06-09 11:19:23.114  6607  6632 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.116  6607  6632 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.117  6607  6632 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.119  6607  6632 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.121  6607  6632 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.122  6607  6632 D FirebaseCrashlytics: Found Non Fatal for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6 in 5EDF5223022D-0001-1520-D1340B2D9CC6SessionEvent0000000000.cls 
06-09 11:19:23.123  6607  6632 D FirebaseCrashlytics: Found Non Fatal for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6 in 5EDF5223022D-0001-1520-D1340B2D9CC6SessionEvent0000000001.cls 
06-09 11:19:23.123  6607  6632 D FirebaseCrashlytics: Found Non Fatal for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6 in 5EDF5223022D-0001-1520-D1340B2D9CC6SessionEvent0000000002.cls 
06-09 11:19:23.123  6607  6632 D FirebaseCrashlytics: Found Non Fatal for session ID 5EDF5223022D-0001-1520-D1340B2D9CC6 in 5EDF5223022D-0001-1520-D1340B2D9CC6SessionEvent0000000003.cls 
06-09 11:19:23.124  6607  6632 D FirebaseCrashlytics: Removing session part files for ID 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics: Could not read user ID file in 5EDF5223022D00011520D1340B2D9CC6
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/report-persistence/sessions/5EDF5223022D00011520D1340B2D9CC6/user (No such file or directory)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.io.FileInputStream.open0(Native Method)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.io.FileInputStream.open(FileInputStream.java:231)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.io.FileInputStream.<init>(FileInputStream.java:165)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(CrashlyticsReportPersistence.java:2)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(CrashlyticsReportPersistence.java:9)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(CrashlyticsReportPersistence.java:3)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(SessionReportingCoordinator.java:1)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:15)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.finalizeSessions(CrashlyticsController.java:5)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.doBackgroundInitialization(CrashlyticsCore.java:9)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.access$000(CrashlyticsCore.java:1)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(CrashlyticsCore.java:2)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(CrashlyticsCore.java:1)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.Utils$3.run(Utils.java:2)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:1)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:2)
06-09 11:19:23.151  6607  6632 D FirebaseCrashlytics:   at java.lang.Thread.run(Thread.java:764)
06-09 11:19:23.186  6607  6632 D FirebaseCrashlytics: Closed all previously open sessions
06-09 11:19:23.188  6607  6632 D FirebaseCrashlytics: Unsent reports are available.
06-09 11:19:23.188  6607  6632 D FirebaseCrashlytics: Automatic data collection is enabled. Allowing upload.
06-09 11:19:23.191  6607  6632 D FirebaseCrashlytics: Initialization marker file removed: true
06-09 11:19:23.522  6607  6634 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
06-09 11:19:23.526  6607  6632 D FirebaseCrashlytics: Checking for crash reports...
06-09 11:19:23.528  6607  6632 D FirebaseCrashlytics: Found crash report /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5EDF5223022D-0001-1520-D1340B2D9CC6.cls
06-09 11:19:23.528  6607  6632 D FirebaseCrashlytics: Reports are being sent.
06-09 11:19:23.532  6607  6634 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa
06-09 11:19:23.533  6607  6632 D FirebaseCrashlytics: Send via DataTransport disabled. Removing DataTransport reports.
06-09 11:19:23.535  6607  6720 D FirebaseCrashlytics: Starting report processing in 1.0 second(s)...
06-09 11:19:23.574  6607  6633 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _sc=SplashScreenActivity, _si=-4721160643178267315}], name=_vs, timestampInMillis=1591694363498}]
06-09 11:19:24.357  6607  6634 D FirebaseCrashlytics: Update app request ID: f25de71a7a80652c868b5471eb5b3982
06-09 11:19:24.357  6607  6634 D FirebaseCrashlytics: Result was 204
06-09 11:19:24.546  6607  6720 D FirebaseCrashlytics: Attempting to send 1 report(s)
06-09 11:19:24.547  6607  6720 D FirebaseCrashlytics: Adding single file 5EDF5223022D-0001-1520-D1340B2D9CC6.cls to report 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:24.548  6607  6720 D FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa/reports
06-09 11:19:24.997  6607  6633 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _pc=SplashScreenActivity, _pi=-4721160643178267315, _sc=MainActivity, _si=-4721160643178267314}], name=_vs, timestampInMillis=1591694364880}]
06-09 11:19:25.296  6607  6720 D FirebaseCrashlytics: Create report request ID: null
06-09 11:19:25.296  6607  6720 D FirebaseCrashlytics: Result was: 202
06-09 11:19:25.296  6607  6720 I FirebaseCrashlytics: Crashlytics Reports Endpoint upload complete: 5EDF5223022D-0001-1520-D1340B2D9CC6
06-09 11:19:25.296  6607  6720 D FirebaseCrashlytics: Removing report at /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5EDF5223022D-0001-1520-D1340B2D9CC6.cls
06-09 11:22:07.122  6607  6632 D FirebaseCrashlytics: Crashlytics is logging non-fatal exception "java.lang.RuntimeException: test 9/06" from thread main
06-09 11:34:53.225  8383  8383 D FirebaseCrashlytics: Reading cached settings...
06-09 11:34:53.228  8383  8383 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":1,"native_report_upload_variant":2},"fabric":{"org_id":"5ed7f9020c68714f5a000001","bundle_id":"io.piesystems.pie.qa"},"expires_at":1591780261768}
06-09 11:34:53.228  8383  8383 D FirebaseCrashlytics: Returning cached settings.
06-09 11:34:53.230  8383  8383 D FirebaseCrashlytics: Mapping file ID is: f0e4ee257be8410ab7ac80da2aa61074
06-09 11:34:53.232  8383  8383 I FirebaseCrashlytics: Initializing Crashlytics 17.0.1
06-09 11:34:53.234  8383  8383 D FirebaseCrashlytics: Installer package name is: null
06-09 11:34:53.268  8383  8383 D FirebaseCrashlytics: Exception handling initialization successful
06-09 11:34:53.291  8383  8409 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 4b4ea42fe03a46a0a9db53db0316d7fe
06-09 11:34:53.293  8383  8409 D FirebaseCrashlytics: Opening a new session with ID 5EDF57BD010F-0001-20BF-D1340B2D9CC6
06-09 11:34:53.328  8383  8409 D FirebaseCrashlytics: Initialization marker file created.
06-09 11:34:53.334  8383  8409 D FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: true
06-09 11:34:53.334  8383  8409 D FirebaseCrashlytics: Finalizing previously open sessions.
06-09 11:34:53.342  8383  8409 D FirebaseCrashlytics: Closing open sessions.
06-09 11:34:53.343  8383  8409 D FirebaseCrashlytics: Closing session: 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.343  8383  8409 D FirebaseCrashlytics: Collecting session parts for ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.344  8383  8409 D FirebaseCrashlytics: Session 5EDF541B0045-0001-19CF-D1340B2D9CC6 has fatal exception: false
06-09 11:34:53.345  8383  8409 D FirebaseCrashlytics: Session 5EDF541B0045-0001-19CF-D1340B2D9CC6 has non-fatal exceptions: true
06-09 11:34:53.346  8383  8409 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.347  8383  8409 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.349  8383  8409 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.350  8383  8409 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.352  8383  8409 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.353  8383  8409 D FirebaseCrashlytics: Found Non Fatal for session ID 5EDF541B0045-0001-19CF-D1340B2D9CC6 in 5EDF541B0045-0001-19CF-D1340B2D9CC6SessionEvent0000000000.cls 
06-09 11:34:53.354  8383  8409 D FirebaseCrashlytics: Removing session part files for ID 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics: Could not read user ID file in 5EDF541B0045000119CFD1340B2D9CC6
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/report-persistence/sessions/5EDF541B0045000119CFD1340B2D9CC6/user (No such file or directory)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.io.FileInputStream.open0(Native Method)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.io.FileInputStream.open(FileInputStream.java:231)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.io.FileInputStream.<init>(FileInputStream.java:165)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(CrashlyticsReportPersistence.java:2)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(CrashlyticsReportPersistence.java:9)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(CrashlyticsReportPersistence.java:3)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(SessionReportingCoordinator.java:1)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:15)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.finalizeSessions(CrashlyticsController.java:5)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.doBackgroundInitialization(CrashlyticsCore.java:9)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.access$000(CrashlyticsCore.java:1)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(CrashlyticsCore.java:2)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$2.call(CrashlyticsCore.java:1)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.Utils$3.run(Utils.java:2)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:1)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:2)
06-09 11:34:53.369  8383  8409 D FirebaseCrashlytics:   at java.lang.Thread.run(Thread.java:764)
06-09 11:34:53.380  8383  8409 D FirebaseCrashlytics: Closed all previously open sessions
06-09 11:34:53.381  8383  8409 D FirebaseCrashlytics: Unsent reports are available.
06-09 11:34:53.381  8383  8409 D FirebaseCrashlytics: Automatic data collection is enabled. Allowing upload.
06-09 11:34:53.383  8383  8409 D FirebaseCrashlytics: Initialization marker file removed: true
06-09 11:34:53.608  8383  8410 D FirebaseCrashlytics: Server says an update is required - forcing a full App update.
06-09 11:34:53.614  8383  8409 D FirebaseCrashlytics: Checking for crash reports...
06-09 11:34:53.615  8383  8409 D FirebaseCrashlytics: Found crash report /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5EDF541B0045-0001-19CF-D1340B2D9CC6.cls
06-09 11:34:53.615  8383  8409 D FirebaseCrashlytics: Reports are being sent.
06-09 11:34:53.620  8383  8409 D FirebaseCrashlytics: Send via DataTransport disabled. Removing DataTransport reports.
06-09 11:34:53.629  8383  8472 D FirebaseCrashlytics: Starting report processing in 1.0 second(s)...
06-09 11:34:53.629  8383  8410 D FirebaseCrashlytics: Sending app info to https://update.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa
06-09 11:34:54.670  8383  8472 D FirebaseCrashlytics: Attempting to send 1 report(s)
06-09 11:34:54.672  8383  8472 D FirebaseCrashlytics: Adding single file 5EDF541B0045-0001-19CF-D1340B2D9CC6.cls to report 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:54.673  8383  8472 D FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/io.piesystems.pie.qa/reports
06-09 11:34:56.591  8383  8472 D FirebaseCrashlytics: Create report request ID: null
06-09 11:34:56.591  8383  8472 D FirebaseCrashlytics: Result was: 202
06-09 11:34:56.591  8383  8472 I FirebaseCrashlytics: Crashlytics Reports Endpoint upload complete: 5EDF541B0045-0001-19CF-D1340B2D9CC6
06-09 11:34:56.591  8383  8472 D FirebaseCrashlytics: Removing report at /data/user/0/io.piesystems.pie.qa/files/.com.google.firebase.crashlytics/nonfatal-sessions/5EDF541B0045-0001-19CF-D1340B2D9CC6.cls
06-09 11:34:56.753  8383  8410 D FirebaseCrashlytics: Update app request ID: 97adee47a622042caa95cd1b9ebdfdeb
06-09 11:34:56.753  8383  8410 D FirebaseCrashlytics: Result was 204
06-09 11:41:00.086  8383  8867 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _sc=SplashScreenActivity, _si=-7865390370983874135}], name=_vs, timestampInMillis=1591695659957}]
06-09 11:41:01.436  8383  8867 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _pc=SplashScreenActivity, _pi=-7865390370983874135, _sc=MainActivity, _si=-7865390370983874134}], name=_vs, timestampInMillis=1591695661331}]

@mirokolodii
Copy link

@mrwillis21 is it possible to say from above logs, whether reports are uploaded correctly to the endpoint? If so, I'll then play with the Firebase project configuration, maybe adding SHA1 certificate fingerprint will help.

mrwillis21 added a commit that referenced this issue Jun 9, 2020
The user ID file will be missing if no user ID was set, so check
if it exists before trying to read from it to avoid unnecessary
error logging.

Fixes one of the prevalent issues in
#1559
mrwillis21 added a commit that referenced this issue Jun 10, 2020
The user ID file will be missing if no user ID was set, so check
if it exists before trying to read from it to avoid unnecessary
error logging.

Fixes one of the prevalent issues in
#1559
@Manu-Jindal
Copy link

Manu-Jindal commented Jun 10, 2020

Hi, even I facing the above issue.
I was enabling Crashlytics into my android app and seem to get the same error when I throw a custom error to test the implementation (as per https://firebase.google.com/docs/crashlytics/test-implementation?authuser=0&platform=android), but I am unable to see any crash errors on the console. Kindly help as soon as possible.
@mrwillis21
Log trace:

06-11 02:16:28.333 9519 9519 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Crash" from thread main 06-11 02:16:28.338 9519 9825 D FirebaseCrashlytics: Logging Crashlytics event to Firebase 06-11 02:16:28.340 9519 9825 D FirebaseCrashlytics: Background thread awaiting app exception callback from FA... 06-11 02:16:28.538 9519 9721 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=9215, _sc=MainActivity, _si=-3517090853644185912, timestamp=1591821988333, fatal=1}], name=_ae, timestampInMillis=1591821988339}] 06-11 02:16:28.539 9519 9825 D FirebaseCrashlytics: App exception callback received from FA listener. 06-11 02:16:28.731 9519 9721 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _et=9299, _fr=1, _sc=MainActivity, _si=-3517090853644185912}], name=_e, timestampInMillis=1591821988591}] 06-11 02:16:28.939 9519 9722 D FirebaseCrashlytics: Closing open sessions. 06-11 02:16:28.940 9519 9722 D FirebaseCrashlytics: Closing session: 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.940 9519 9722 D FirebaseCrashlytics: Collecting session parts for ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.941 9519 9722 D FirebaseCrashlytics: Session 5EE1469902AB-0001-252F-4725AF2CF9D6 has fatal exception: true 06-11 02:16:28.942 9519 9722 D FirebaseCrashlytics: Session 5EE1469902AB-0001-252F-4725AF2CF9D6 has non-fatal exceptions: false 06-11 02:16:28.943 9519 9722 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.944 9519 9722 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.945 9519 9722 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.946 9519 9722 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.947 9519 9722 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:28.948 9519 9722 D FirebaseCrashlytics: Removing session part files for ID 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: Could not read user ID file in 5EE1469902AB0001252F4725AF2CF9D6 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/com.manujindal.modcreteashtech/files/.com.google.firebase.crashlytics/report-persistence/sessions/5EE1469902AB0001252F4725AF2CF9D6/user (No such file or directory) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.io.FileInputStream.open0(Native Method) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.io.FileInputStream.open(FileInputStream.java:231) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.io.FileInputStream.<init>(FileInputStream.java:165) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(CrashlyticsReportPersistence.java:470) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(CrashlyticsReportPersistence.java:309) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(CrashlyticsReportPersistence.java:197) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(SessionReportingCoordinator.java:160) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:868) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:828) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(CrashlyticsController.java:407) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(CrashlyticsController.java:393) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(CrashlyticsBackgroundWorker.java:106) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.android.gms.tasks.zzf.run(Unknown Source:2) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:60) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27) 06-11 02:16:29.365 9519 9722 D FirebaseCrashlytics: at java.lang.Thread.run(Thread.java:764) 06-11 02:16:29.429 9519 9722 D FirebaseCrashlytics: Opening a new session with ID 5EE146A501AA-0002-252F-4725AF2CF9D6 06-11 02:16:29.443 9519 9722 D FirebaseCrashlytics: Send via DataTransport disabled. Removing DataTransport reports. 06-11 02:16:29.447 9519 9519 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler. 06-11 02:16:29.450 9519 9722 D FirebaseCrashlytics: Attempting to send crash report at time of crash... 06-11 02:16:29.452 9519 9722 D FirebaseCrashlytics: Adding single file 5EE1469902AB-0001-252F-4725AF2CF9D6.cls to report 5EE1469902AB-0001-252F-4725AF2CF9D6 06-11 02:16:29.453 9519 9722 D FirebaseCrashlytics: Sending report to: https://reports.crashlytics.com/spi/v1/platforms/android/apps/com.manujindal.modcrete/reports

@rd7773
Copy link

rd7773 commented Jun 11, 2020

Facing same issue

06-11 16:39:34.513 25487 25487 D FirebaseCrashlytics: Crashlytics is handling uncaught exception "java.lang.RuntimeException: Test Exception" from thread main
06-11 16:39:34.518 25487 25733 D FirebaseCrashlytics: Logging Crashlytics event to Firebase
06-11 16:39:34.519 25487 25733 D FirebaseCrashlytics: Background thread awaiting app exception callback from FA...
06-11 16:39:34.602 25487 25735 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=clx, _r=1, _et=451716, _sc=TabbedMainActivity, _si=3528082120400838882, timestamp=1591873774513, fatal=1}], name=_ae, timestampInMillis=1591873774518}]
06-11 16:39:34.602 25487 25733 D FirebaseCrashlytics: App exception callback received from FA listener.
06-11 16:39:34.672 25487 25735 D FirebaseCrashlytics: AnalyticsConnectorReceiver received message: 3 Bundle[{params=Bundle[{_o=auto, _et=451776, _fr=1, _sc=TabbedMainActivity, _si=3528082120400838882}], name=_e, timestampInMillis=1591873774615}]
06-11 16:39:34.698 25487 25550 D FirebaseCrashlytics: Closing open sessions.
06-11 16:39:34.698 25487 25550 D FirebaseCrashlytics: Closing session: 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.698 25487 25550 D FirebaseCrashlytics: Collecting session parts for ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.699 25487 25550 D FirebaseCrashlytics: Session 5EE20F2800D7-0001-638F-A6B794C51925 has fatal exception: true
06-11 16:39:34.699 25487 25550 D FirebaseCrashlytics: Session 5EE20F2800D7-0001-638F-A6B794C51925 has non-fatal exceptions: false
06-11 16:39:34.699 25487 25550 D FirebaseCrashlytics: Collecting SessionStart data for session ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.699 25487 25550 D FirebaseCrashlytics: Collecting SessionUser data for session ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.700 25487 25550 D FirebaseCrashlytics: Collecting SessionApp data for session ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.700 25487 25550 D FirebaseCrashlytics: Collecting SessionOS data for session ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.701 25487 25550 D FirebaseCrashlytics: Collecting SessionDevice data for session ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.701 25487 25550 D FirebaseCrashlytics: Removing session part files for ID 5EE20F2800D7-0001-638F-A6B794C51925
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics: Could not read user ID file in 5EE20F2800D70001638FA6B794C51925
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics: java.io.FileNotFoundException: /data/user/0/com.application.services.partner/files/.com.google.firebase.crashlytics/report-persistence/sessions/5EE20F2800D70001638FA6B794C51925/user: open failed: ENOENT (No such file or directory)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:496)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at java.io.FileInputStream.<init>(FileInputStream.java:159)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.readTextFile(CrashlyticsReportPersistence.java:470)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport(CrashlyticsReportPersistence.java:309)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports(CrashlyticsReportPersistence.java:197)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions(SessionReportingCoordinator.java:160)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:868)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions(CrashlyticsController.java:828)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(CrashlyticsController.java:407)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsController$6.call(CrashlyticsController.java:393)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.CrashlyticsBackgroundWorker$3.then(CrashlyticsBackgroundWorker.java:106)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.android.gms.tasks.zzg.run(com.google.android.gms:play-services-tasks@@17.0.2:2)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun(ExecutorUtils.java:60)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at java.lang.Thread.run(Thread.java:919)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.Linux.open(Native Method)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.ForwardingOs.open(ForwardingOs.java:167)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7255)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   at libcore.io.IoBridge.open(IoBridge.java:482)
06-11 16:39:34.733 25487 25550 D FirebaseCrashlytics:   ... 16 more
06-11 16:39:34.770 25487 25550 D FirebaseCrashlytics: Opening a new session with ID 5EE210EE0302-0002-638F-A6B794C51925
06-11 16:39:34.773 25487 25487 D FirebaseCrashlytics: Crashlytics completed exception processing. Invoking default exception handler.
06-11 16:39:36.962 25761 25761 D FirebaseCrashlytics: Reading cached settings...
06-11 16:39:36.962 25761 25761 D FirebaseCrashlytics: No cached settings found.
06-11 16:39:36.962 25761 25761 D FirebaseCrashlytics: No cached settings data found.
06-11 16:39:36.966 25761 25761 D FirebaseCrashlytics: Mapping file ID is: 00000000000000000000000000000000
06-11 16:39:36.967 25761 25761 I FirebaseCrashlytics: Initializing Crashlytics 17.0.1
06-11 16:39:36.970 25761 25761 D FirebaseCrashlytics: Installer package name is: null
06-11 16:39:37.000 25761 25825 D FirebaseCrashlytics: Found previous crash marker.
06-11 16:39:37.003 25761 25761 D FirebaseCrashlytics: Exception handling initialization successful
06-11 16:39:37.007 25761 25825 D FirebaseCrashlytics: Found matching FID, using Crashlytics IID: 9f8d622755dc433585b75832606d3b84
06-11 16:39:37.007 25761 25825 D FirebaseCrashlytics: Opening a new session with ID 5EE210F10004-0001-64A1-A6B794C51925
06-11 16:39:37.046 25761 25825 D FirebaseCrashlytics: Initialization marker file created.
06-11 16:39:37.047 25761 25825 D FirebaseCrashlytics: Registered Firebase Analytics event listener for breadcrumbs: true
06-11 16:39:37.047 25761 25825 D FirebaseCrashlytics: Finalizing previously open sessions.
06-11 16:39:37.050 25761 25825 D FirebaseCrashlytics: Closing open sessions.
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: Closing session: 5EE210EE0302-0002-638F-A6B794C51925
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: Collecting session parts for ID 5EE210EE0302-0002-638F-A6B794C51925
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: Session 5EE210EE0302-0002-638F-A6B794C51925 has fatal exception: false
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: Session 5EE210EE0302-0002-638F-A6B794C51925 has non-fatal exceptions: false
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: No events present for session ID 5EE210EE0302-0002-638F-A6B794C51925
06-11 16:39:37.051 25761 25825 D FirebaseCrashlytics: Removing session part files for ID 5EE210EE0302-0002-638F-A6B794C51925
06-11 16:39:37.055 25761 25825 D FirebaseCrashlytics: Closed all previously open sessions
06-11 16:39:37.056 25761 25825 D FirebaseCrashlytics: Unsent reports are available.
06-11 16:39:37.056 25761 25825 D FirebaseCrashlytics: Automatic data collection is disabled.
06-11 16:39:37.056 25761 25825 D FirebaseCrashlytics: Notifying that unsent reports are available.
06-11 16:39:37.057 25761 25825 D FirebaseCrashlytics: Waiting for send/deleteUnsentReports to be called.
06-11 16:39:37.058 25761 25825 D FirebaseCrashlytics: Initialization marker file removed: true
```
`

@mrwillis21
Copy link
Contributor

@mrwillis21 is it possible to say from above logs, whether reports are uploaded correctly to the endpoint? If so, I'll then play with the Firebase project configuration, maybe adding SHA1 certificate fingerprint will help.

@mirokolodii It is. As I'd mentioned before, you should see logs saying Sending report to: [endpoint] and Result was: 202. I looked up one of the reports that appeared in your logs, and it looks like it was processed properly, so I'm actually not sure why things aren't appearing in your dashboard. :(

@mrwillis21
Copy link
Contributor

@Manu-Jindal based on your logs, it looks like your reports were uploaded, and you're experiencing the noisy log I'd mentioned earlier: #1559 (comment)

@rd7773 based on your logs, you appear to also be seeing the noisy log: #1559 (comment), however, it looks like you may have data collection disabled for your app, which could be causing your crash reports not to be sent. Check this doc for how to configure that: https://firebase.google.com/docs/crashlytics/customize-crash-reports?platform=android

@mirokolodii
Copy link

@mrwillis21 is it possible to say from above logs, whether reports are uploaded correctly to the endpoint? If so, I'll then play with the Firebase project configuration, maybe adding SHA1 certificate fingerprint will help.

@mirokolodii It is. As I'd mentioned before, you should see logs saying Sending report to: [endpoint] and Result was: 202. I looked up one of the reports that appeared in your logs, and it looks like it was processed properly, so I'm actually not sure why things aren't appearing in your dashboard. :(

Thanks @mrwillis21. Looks like removing one of the Firebase projects (the one migrated from Fabric, where Crashlytics was originally enabled) did the trick. Reports are coming now to the console, so issue is resolved. Thanks again.

@mcaap
Copy link

mcaap commented Jun 12, 2020

Tip: I struggled with this issue when migrating from Fabric Crashlytics to Firebase Crashlytics. Even I could not see my manual Test crash reports in the console.

I believe this is what happens:
Earlier Fabric used to always enable the crash collection every time the app opens and had to be explicitly disabled (CrashlyticsCore..Builder..disabled ) when not collecting crashes (say in Debug mode).

While with Firebase Crashlytics, if I disable the crash collection setCrashlyticsCollectionEnabled(false) and then if later I want to enable it, just commenting out the above line DOES NOT automatically start the collection process if the app has already been installed with 'false' flag before.

setCrashlyticsCollectionEnabled(true) needs to be explicitly called again!

@mrwillis21
Copy link
Contributor

While with Firebase Crashlytics, if I disable the crash collection setCrashlyticsCollectionEnabled(false) and then if later I want to enable it, just commenting out the above line DOES NOT automatically start the collection process if the app has already been installed with 'false' flag before.

This is correct, because the value is stored once set so that it persists across app launches. I'll take the feedback to the team that we should make sure this is clarified in the documentation. :)

@mrwillis21
Copy link
Contributor

mrwillis21 commented Jun 22, 2020

Hi folks, wanted to follow up on my previous comment and let you know that the latest release of Crashlytics (version 17.1.0) fixes the issue I mentioned here: #1559 (comment) (the FileNotFoundException stemming from the user file).

Please try it out and let me know what you find. :)

@mirokolodii
Copy link

@mrwillis21 with the latest Crashlytics version I don't observe FileNotFoundException any longer, crash report is sent immediately after app restart.

@mrwillis21
Copy link
Contributor

@mirokolodii Very good! I'm going to close this for now. If anyone else is still experiencing this error with the latest version, please feel free to open a new issue.

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