Questions tagged [leakcanary]

LeakCanary is a memory leak detection library for Android and Java.

LeakCanary is a memory leak detection library for and .

For more information, see the GitHub page.

390 questions
0
votes
1 answer

Injecting Leakcanary RefWatcher via Dagger 2

I want to get RefWatcher object available throughout my activities and fragments so in my main application dagger module i did @Provides @AppScope static RefWatcher provideRefWatcher(Application application) { return ((AppName)…
Anoop Krishnan
  • 331
  • 3
  • 14
0
votes
2 answers

Build Error: `Failed to resolve: leakcanary-android` after updating to Gradle 4.4

Failed to resolve: leakcanary-android I got this build error after upgrading to Grade to 4.4. I started an brand new Android Studio project and got the same error. Anyone else have the same issue? I am on Android Studio 3.1. The following are the…
Xi Wei
  • 1,669
  • 1
  • 21
  • 33
0
votes
1 answer

Using LeakCanary on project with Realm

I have an android project that uses Realm. I'm trying to integrate LeakCanary to find memory leaks, but when LeakCanary tries to create report, it crashes with exception encrypted.realm: Encrypted interprocess sharing is currently unsupported As I…
0
votes
1 answer

Track memory leak reported by LeakCanary on Android

I'm getting a memory leak on Android reported by LeakCanary but I can't find out how to trace it. I have an activity called Splash which calls one Service to fetch configuration data, then via a handler pings back to the activity. //Started like…
zundi
  • 2,361
  • 1
  • 28
  • 45
0
votes
1 answer

What could be the leak in this leak canary report?

I am trying to find out the exact reason for this leak but still not able to figure out why this leak has happened as ForeignMoviesFragment instance is not hold anywhere. Need help. Below is the screenshot
0
votes
1 answer

Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/squareup/leakcanary/watcher/R

After adding LeakCanary as a dependency to my android gradle: compile 'com.squareup.leakcanary:leakcanary-android:1.5.2' I've got this error when building application: :app:transformClassesWithDexForDebug AGPBI: {"kind":"error","text":"Uncaught…
Jakub Piskorz
  • 1,023
  • 12
  • 21
0
votes
1 answer

Using LeakCanary with HPROF File?

Short Question: Is it somehow possible to use the LeakCanary library with just the HPROF File and find leaks that way? I already tried different stuff but failed as I dont have a KeyedWeakReference. I looked through all the classes and I am not 100%…
Highriser
  • 212
  • 2
  • 14
0
votes
1 answer

Memory Leaks in RecyclerView when used in Fragment by LeakCanary

A simple application with recyclerview in fragment has memory leak as per leaks app. Memory Leak snapshot by Leak App Stack of the Leak: HelloTest.java: public class HelloTest extends AppCompatActivity { private TestFrag mFrag = null; …
0
votes
1 answer

I need help to understand a leak detected with Leak canary

I need help to trace a leak detected with Leak Canary I have made this class as a part of a library that saves Views as images and leak canary has detected a leak that I'm not sure of how to fix or understand. The leak gets detected in my demo app…
user5366495
0
votes
1 answer

Android memory leak testing with leak canary

I am seeing this icon popping up many times on screen. The app is not crashing but I am getting this popup saying app will freeze for some time. ] Also on the log it says ... In com.***.android:1.0.1:1.* FAILURE in…
Debjit
  • 410
  • 5
  • 16
0
votes
1 answer

I can't fix a tiny memory leak detected with canaryLeak. [Video demo]

I have detected a small memeory leak with leakCanary in my app that I can't fix. The leak gets detected when I open my NavigationDrawer and opens a DialogView once and then close it and then open my navdrawer again a couple of times. EDIT: Opening…
user5366495
0
votes
1 answer

Why is Leak Canary not showing a notification when run with a debugger attached?

I installed Leak Canary as per the instructions in their GitHub repo but no notification is showing up when I run it with a debugger attached in the emulator.
Fabian Streitel
  • 2,702
  • 26
  • 36
0
votes
0 answers

Android Leakcanary Trace

I have integrated Leakcanary for the first time in my app, The trace is generated like the following. Can someone explain to me what does it mean? 02-16 12:06:21.272 14201-14490/com.myboxman.app D/LeakCanary: In com.myboxman.app:1.0:79. 02-16…
Najeebullah Shah
  • 4,164
  • 4
  • 35
  • 49
0
votes
1 answer

Memory leak using MapBox

Using LeakCanary, it says I have a memory leak when exiting the activity that uses MapBox to display a map. Heap info and code below. I don't see anything, but then, I don't know what I'm looking for. Can you see the cause? In…
Al Lelopath
  • 6,448
  • 13
  • 82
  • 139
0
votes
1 answer

leaks com.myapp.MainActivity instance 6.9mb

Hey recently I have added leak-canary to my app and I am getting this strange leak on my GPSTracker class. Leak Report says: 02-07 17:42:35.524 25788-26863/com.myapp D/LeakCanary: * com.myapp.MainActivity has leaked: 02-07 17:42:35.525…
android_griezmann
  • 3,757
  • 4
  • 16
  • 43