-
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
Some Activity leaks are not found #8
Comments
If you used However, we sometimes ignore some leaks if they are known Android problems. Can you open logcat and see if a heap dump gets triggered? If yes, then you should at some point see a log indicating the result of the analysis. Please paste it here. Another explanation could be that something else is leaking, ie not an activity but another set of objects that's using all the memory. Do you have a sample project that reproduces that systematically? |
Thank you for your explain. Does GC get triggered only if memory is needed, or one per time? |
LeakCanary triggers the GC if an object that should be gone isn't gone yet. |
Because when I trigger gc it free something like 40mb, but GC isn't triggered normally on my app. |
Well then you might not have a memory leak :) . The GC is triggered when there's a need for memory. Because doing a GC is costly, Android tries to limit the number of GC. |
I've got a an activity with barcode scanner. When I exit with finish(), the memory usage stay the same.
So it is probably a memory leak with the context.
The text was updated successfully, but these errors were encountered: