Comments (5)
Cool!
While this fixes the leak, I assume it also prevents from receiving the user selection. So I'm guessing you're calling that code once the activity is destroyed?
It would be nice if you could:
- File an issue on http://b.android.com , with the API version, an explanation, the leak trace, and a simple repro case, and cross link the issue here with that issue there.
- Do a PR to update
AndroidExcludedRefs
(and maybe write the hack as a gist and link to it from there)
from leakcanary.
I'm actually calling that code in onDetachedFromView, although on activity death would work. I'll make a PR and a fix a proper bugreport.
from leakcanary.
Bug report : https://code.google.com/p/android/issues/detail?id=172659&thanks=172659&ts=1431419348
from leakcanary.
@andaag the sample you wrote in the bug report demonstrate the bug in support v7. That's not the original one you had, which was in AOSP. You should probably update the sample, otherwise you risk being dismissed.
Also, what version of the Android API are you using? This should be included in the bug report as well. And if it's not 22, please reproduce with 22.
from leakcanary.
If possible, the bug report should also explain what is causing the bug (what assumptions are wrong), and what they can do to fix it.
from leakcanary.
Related Issues (20)
- Doc issue with fundamentals-how-leakcanary-works/ page
- Is it correct to mark fragment leaks when mFragmentManager is null? HOT 2
- [Library Leak] Navigation component 2.7.1 HOT 3
- IllegalArgumentException: Object id {id} not found in heap dump. HOT 2
- Android 14 One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED HOT 4
- Leak Canary Crash HOT 2
- Add `AwContents.f` to known library leaks HOT 7
- Couldn't open dumped heap - due to missing read/write permissions HOT 1
- shark-cli not working HOT 2
- Documentation - Link to AndroidReferenceMatchers path in github is outdated
- This is a strange question HOT 1
- v2.12 tag accidentally on wrong branch? HOT 1
- leakcary of this HOT 4
- Memory leak detected in ViewDataBinding.sReferenceQueue HOT 3
- targetSdkVersion 34 cause missingForegroundServiceTypeException HOT 1
- InputMethodManager.mImeInsetsConsumer leaking in API 30
- ANR in com.xxx.xxx:leakcanary HOT 1
- Memory leak in HeapAnalyzerService HOT 1
- AndroidObjectInspectors should read FragmentManagerImpl.mDestroyed to surface FragmentManagerImpl reachability
- Add imports to examples in docs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leakcanary.