Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash opening "Leaks" activity on 1.4-beta1 #382

Closed
meisteg opened this issue Jan 9, 2016 · 4 comments
Closed

Crash opening "Leaks" activity on 1.4-beta1 #382

meisteg opened this issue Jan 9, 2016 · 4 comments

Comments

@meisteg
Copy link

meisteg commented Jan 9, 2016

My test device is running Android M, and I have not had a leak to get the notification to grant storage permissions. When I run the Leaks activity, it crashes with the dump below. The activity is able to open after granting storage permission.

D  Shutting down VM
E  FATAL EXCEPTION: main
E  Process: com.meiste.tempalarm, PID: 14231
E  java.lang.RuntimeException: Unable to resume activity {com.meiste.tempalarm/com.squareup.leakcanary.internal.DisplayLeakActivity}: java.lang.Unsupport
                        edOperationException: Could not create leak directory /storage/emulated/0/Download/leakcanary-com.meiste.tempalarm
E      at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3121)
E      at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3152)
E      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
E      at android.app.ActivityThread.-wrap11(ActivityThread.java)
E      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
E      at android.os.Handler.dispatchMessage(Handler.java:102)
E      at android.os.Looper.loop(Looper.java:148)
E      at android.app.ActivityThread.main(ActivityThread.java:5443)
E      at java.lang.reflect.Method.invoke(Native Method)
E      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E  Caused by: java.lang.UnsupportedOperationException: Could not create leak directory /storage/emulated/0/Download/leakcanary-com.meiste.tempalarm
E      at com.squareup.leakcanary.DefaultLeakDirectoryProvider.leakDirectory(DefaultLeakDirectoryProvider.java:45)
E      at com.squareup.leakcanary.internal.DisplayLeakActivity.getLeakDirectory(DisplayLeakActivity.java:94)
E      at com.squareup.leakcanary.internal.DisplayLeakActivity$LoadLeaks.<init>(DisplayLeakActivity.java:431)
E      at com.squareup.leakcanary.internal.DisplayLeakActivity$LoadLeaks.load(DisplayLeakActivity.java:413)
E      at com.squareup.leakcanary.internal.DisplayLeakActivity.onResume(DisplayLeakActivity.java:142)
E      at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1281)
E      at android.app.Activity.performResume(Activity.java:6320)
E      at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3110)
E      ... 10 more
@manjunathc23
Copy link

+1

@manjunathc23
Copy link

Worked for me after I gave permission to storage

@pyricau
Copy link
Member

pyricau commented Jan 18, 2016

PRs welcome!

@uKL
Copy link

uKL commented Jan 19, 2016

Same here. Crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants