-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on app process restart #1529
Comments
The code that is causing it is
|
Here is sample project https://github.com/emartynov/LeakCanaryProcessRestart You have to use 3.5 AS to build it. Check App class to uncomment lines to reproduce the crash. |
Thanks for the sample project, that definitely helps! |
Fixes #1529 I wish I could write a test for this unfortunately that seems tricky without creating an entirely new and separate test module.
Fixes #1529 I wish I could write a test for this unfortunately that seems tricky without creating an entirely new and separate test module.
I am still seeing this crash on 2.2 when restarting the app using Process Phoenix. Any ideas? |
What do you see in the log? |
Here's the stacktrace:
|
Do you disable LeakCanary providers in the manifest? Probably not otherwise it would not start at all. |
In our app when a certain compile time feature flag is enabled, we manually disable leakcanary like so:
From the stacktrace it would seem that calling |
Generally should not interact with LeakCanary APIs when it hasn't been installed. |
Description
I think we had something similar already. Here is crash reported after update from alpha to beta:
Steps to Reproduce
Unfortunately no sample project yet.
Expected behaviour:
Obvious - don't crash.
Version Information
Additional Information
Looks like it is crashing after process reboot.
The text was updated successfully, but these errors were encountered: