Reputation: 939
Please help with this issue
Issue Summary
We identified a critical crash pattern in Firebase Crashlytics reports: a small subset of users experienced an unusually high repeated crash rate. All crashes occur during application creation.
Those crashes happen because of device-specific issues (incompatible Google Play Service or corruption), which are impossible to fix. We would like to resolve the relaunching loop.
Observations
Reproduction Steps
To investigate the issue, we:
Root Cause
The investigation revealed that:
While the app crashes during app launch, it is scheduled to re-launch the JobInfoSchedulerService after a period, and Firebase used it. (Application launch -> crash -> schedule JobInfoSchedulerService -> Application launch)
ActivityManager Scheduling restart of crashed service com.example.background/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService in 1000ms for connection
I understand that JobInfoSchedulerService is a JobService, which is expected to behave as a JobService. If a JobService hasn't completed its work (returns false from onStopJob()), the system will automatically reschedule the job for later.
Since crashes happen during Application creation, any scheduled jobs, broadcast receivers, or push notifications might trigger this crash loop.
Do you have any suggestions on how to prevent the re-launching loop?
Upvotes: 1
Views: 22