Skip to content

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

Closed

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions