Description
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2020.3.16f1
- Firebase Unity SDK version: 8.6.2
- Source you installed the SDK: .unitypackage
- Problematic Firebase Component: Storage
- Other Firebase Components in use: Auth, Functions, FireStore, Analytics, Crashlytics, Installations
- Additional SDKs you are using: Facebook, AdMob
- Platform you are using the Unity editor on: Mac(M1)
- Platform you are targeting: Android
- Scripting Runtime: IL2CPP
[REQUIRED] Please describe the issue here:
I am analyzing the logs by accumulating them in Firebase storage.
I don't know exactly how to reproduce it. Occurs intermittently when sending logs to storage.
Previously I was using StorageReference.PutBytesAsync , and I saw someone answer that PutFileAsync is better than PutFileAsync . So I've changed it now and it's still crashing intermittently.
Attempts to send logs to storage are being made only once at a time. The logic to start the transfer by reading the file starts in the created thread, but the response is always executed in the Unity main thread.
I also saw an article stating that the progress monitor problem in this GitHub issue was supposed to be corrected, but it didn't work.
I create and attach a sample project in the same process as I send logs. However, I couldn't find a way to reproduce the original project or the sample project.
My test Android device crashed once on a weak network. It occurred when I continued the app after turning on the phone for a long time. But I'm still not sure if the crash is the same as this crash.
When using Firebase 8.2.0, the log sender crash came out as follows.
Currently, I have updated to Firebase 8.6.2, and the crashes below are occurring more often than the crashes seen before.
(Physics from the crash stack are not used.)
Steps to reproduce:
There is no clear way to reproduce it.
There are cases where the gzip file was sent as a log several times from a weak network and crashed.
Relevant Code:
// TODO(you): code here to reproduce the problem
SampleProject
https://github.com/dream-o/FirebaseCrashSample
I created a sample Firebase project and a sample Unity project and configured it with my current project version, 8.6.2.
The log sending method is configured in the same way as the one I currently send.