Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 5.1.1 CM 12.1 custom) 3. HTC Desire C (Android 4.4 CM 11 custom)

I did everything as its advised in instruction:

public class ExampleApplication extends Application {    @Override public void onCreate() {     super.onCreate();     LeakCanary.install(this);   } } 
like image 919
Sergey Maslov Avatar asked Jul 10 '15 22:07

Sergey Maslov


1 Answers

If you're on Android M you need to grant the "write external storage" permission or leak canary will hang for a long time with the brrr message. In your apps drawer, long click on the launcher for leak canary (like you were going to uninstall it) and drag up to "app info" and turn on the storage permission.

like image 59
bsautner Avatar answered Sep 18 '22 12:09

bsautner