380 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Score of 0
1 answer
91 views
How to log memory leaks using a custom logger? [closed]
I started using LeakCanary in my app.
Based on various sources, I found that with this dependency:
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
LeakCanary watches the ...
- reputation score 138
Score of 1
0 answers
70 views
Fragment leaked by androidx.fragment.app.SpecialEffectsController$FragmentStateManagerOperation
I have Navigation Component (version 2.9.0) with androidx Fragments (version 1.8.6) and Predictive Back and androidx.transitions (version 1.6.0) with gesture navigation enabled. I'm seeing this leak ...
- reputation score 732
Score of 1
0 answers
147 views
Memory leak WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper in InputMethodService onDestroy() Android 14 (34 Api)
I implemented a custom software keyboard using Compose to build the UI part and InputMethodService() for IME function interaction.
It works as expected. However, memory leak ...
- reputation score 178
Score of 0
0 answers
281 views
AutofillClientController leaking activity: system leak or is it my implementation?
When rotating the emulator the memory leak below pops up. I'm not able to figure out exactly where it comes from. To me it looks like the systems AutofillClientController is leaking my ExampleActivity....
- reputation score 164
Score of 3
0 answers
115 views
Detecting multiple instances of a custom object via LeakCanary
As per the docs, looks like LeakCanary only provides information about leaked object.
But, I am also interested in finding multiple instances of certain custom HeavyWeightObject objects. Can ...
- reputation score 2325
Score of 1
2 answers
3715 views
I'm getting a native crash in my application. This crash is frequent in the release build and has never occurred in debug
I tried looking into the systrace in Perfetto UI but just couldn't figure out the reason for crash. The logs for the crashes showed multiple calls related to the G.C so suspected it to be a memory ...
- reputation score 305
Score of 0
0 answers
147 views
Can we identify the line number responsible for memory leaks in an Android app?
I'm trying to find the line number causing a memory leak in an Android app. Is there a way to pinpoint the exact line?
I have tried using LeakCanary library to find the memory leaks in the Android app....
- reputation score 1
Score of 1
1 answer
675 views
ComposeView leak: ViewTreeObserver.OnGlobalLayoutListener leaking even if it is removed during onDispose
So I have this Composable that I use to detect if a keyboard is visible:
@Composable
fun keyboardVisibilityAsState(): State<Boolean> {
val keyboardState = remember { mutableStateOf(false) }
...
- reputation score 2049
Score of 0
0 answers
490 views
How to figure out where canary and return address are located?
I have this code gave me from my professor, he also wrote other versions of the same software going to uncomment parts of code in order to show us how a stack works but I don't really understand.
#...
- reputation score 9
Score of 1
3 answers
1090 views
ConnectivityManager Callback Memory Leak - Android
I'm using LeakCanary and it found a memory leak in ConnectivityManager. I've never used ConnectivityManager before and it's not in my project from anything that I wrote. I'm assuming maybe a 3rd party ...
- reputation score 19813
Score of 0
0 answers
33 views
Custom back press handler causes mem leak
have registered custom back press with handler onCreate in fragment. But leak canary tells there is memory leak when the fragment gets destroyed.
This is on back press implementation called on ...
- reputation score 1
Score of 0
1 answer
2260 views
received Activity#onDestroy() callback and Activity#mDestroyed is true - Android
How can I resolve this leak?
┬───
│ GC Root: Global variable in native code
│
├─ com.samsung.android.content.clipboard.SemClipboardManager2ドル instance
│ Leaking: UNKNOWN
│ Retaining 204.4 kB in ...
- reputation score 1860
Score of 1
1 answer
491 views
Activity with Navigation component cause A Memory Leak after Start New Root Activity or Calling Finish()
My app start with this Activity _ A _ Which has FragmentContainer that get initialized as following
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/...
- reputation score 55
Score of 2
1 answer
1372 views
Android - Leakcanary spot memory leak in Activities using Android webview - Problem identified in Samsung Android 13 (One ui 5)
folks
Using leakcanary tool we have noticed recently memory leaks in activities that use webview. The issue just occurs in some models like Samsung devices with Android 13 (one ui 5). We were not able ...
- reputation score 171
Score of 1
0 answers
431 views
Leak canary detecting leaks but I dont know how the leak is occuring
I am getting the following leak from leak canary. But I dont know what is the reason.
I also cannot replicate the leak.. The leak occurs randomly so I am not able to trace the leak. Here, I get leak ...
- reputation score 500