Tag: leakcanary

Why is this a memory leak

I came across a library for memory leak detection in Android (Java) called LeakCanary but cannot understand the example where they leak the memory. Could anybody please explain how and why the code shown in their example is a memory leak. class Cat { } class Box { Cat hiddenCat; } class Docker { static […]

How to use Leak Canary

I know this is probably a dumb question, but I am pretty new at developing android, and I currently experiencing an OutOfMemoryError in my apps, which I have tried to debug using MAT, but it is still too hard to find the leak in a few activities, then I found LeakCanary, which seems simpler and […]

Memory leak in Fragment

I am using the LeakCanary library to monitor memory leaks in my app. I received this memory leak and not sure how to track down what is causing it. 05-09 09:32:14.731 28497-31220/? D/LeakCanary´╣Ľ In com.etiennelawlor.minesweeper:0.0.21:21. * com.etiennelawlor.minesweeper.fragments.MinesweeperFragment has leaked: * GC ROOT com.google.android.gms.games.internal.GamesClientImpl$PopupLocationInfoBinderCallbacks.zzahO * references com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1.zzajo * references com.google.android.gms.games.internal.GamesClientImpl.mContext * references com.etiennelawlor.minesweeper.activities.MinesweeperActivity.mFragments * references android.app.FragmentManagerImpl.mAdded […]

MainActivity leaked using leakcanary

I am using Leak Canary to track memory leak and it says the following were leaked: static hk.o references ht.a leaks MainActivity instance what is the hk.o and ht.a? I dont have them in my MainActivity.

Square LeakCanary Cannot find symbol

build.gradle has been configured as per github insturctions.LeakCanary class doesn’t seem to be included. dependencies { debugCompile ‘com.squareup.leakcanary:leakcanary-android:1.3’ releaseCompile ‘com.squareup.leakcanary:leakcanary-android-no-op:1.3’ } analyzer and watcher packages has just 1 single class file in it.

Stuck at “Dumping memory, app will freeze. Brrr.” message

I’m trying to use LeakCanary to detect memory leaks in my app, but it does not go further than the message “Dumping memory, app will freeze. Brrr.” I’ve been waiting for about 20 minutes or so, but no changes. Same behaviour on these devices: 1. Asus fonepad 8 (Android 5.0 stock) 2. Sony Xperia SP […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.