You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2021-02-20 09:55:35.841 17079-11470/xxx.xxxx.xxx E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #32
Process: xxx.xxxx.xxx, PID: 17079
java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/xxx.xxxx.xxx/cache/leakcanary/2021-02-20_09-49-25_148.hprof
at leakcanary.internal.LeakCanaryFileProvider$SimplePathStrategy.getUriForFile(LeakCanaryFileProvider.kt:319)
at leakcanary.internal.LeakCanaryFileProvider$Companion.getUriForFile(LeakCanaryFileProvider.kt:412)
at leakcanary.internal.activity.LeakViewsKt$shareHeapDump$1.run(LeakViews.kt:34)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
2021-02-20 09:55:36.844 17079-11470/xxx.xxxx.xxx E/APP: (CrashHandler.java:33) uncaughtException GlipUncaughtException
java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/xxx.xxxx.xxx/cache/leakcanary/2021-02-20_09-49-25_148.hprof
at leakcanary.internal.LeakCanaryFileProvider$SimplePathStrategy.getUriForFile(LeakCanaryFileProvider.kt:319)
at leakcanary.internal.LeakCanaryFileProvider$Companion.getUriForFile(LeakCanaryFileProvider.kt:412)
at leakcanary.internal.activity.LeakViewsKt$shareHeapDump$1.run(LeakViews.kt:34)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
I found that every time I click Share Heap Dump file, it will crash. The Log is as follows. I checked Leakcannary's code and found that it is because there is no cache path directory in the root path xml (leak_canary_file_paths.xml). When leakcanary.internal.LeakDirectoryProvider#newHeapDumpFile dumped the file, it was found that the downloads did not have the write permission, and they were finally put in the cache path.
So this bug occurred. I have forcibly replaced the leakcanary xml in the app with my own xml to solve this problem, but I hope the official can also modify the xml configuration or the code of newHeapDumpFile.
Steps to Reproduce
[Provide a sample project, a .hprof file or a failing test]
[First Step]
[Second Step]
[and so on...]
Expected behavior: [What you expect to happen]
Version Information
LeakCanary version:
Android OS version:
Gradle version:
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
The text was updated successfully, but these errors were encountered:
Description
In Android 10, Log:
I found that every time I click Share Heap Dump file, it will crash. The Log is as follows. I checked Leakcannary's code and found that it is because there is no cache path directory in the root path xml (leak_canary_file_paths.xml). When leakcanary.internal.LeakDirectoryProvider#newHeapDumpFile dumped the file, it was found that the downloads did not have the write permission, and they were finally put in the cache path.
So this bug occurred. I have forcibly replaced the leakcanary xml in the app with my own xml to solve this problem, but I hope the official can also modify the xml configuration or the code of newHeapDumpFile.
Steps to Reproduce
[Provide a sample project, a .hprof file or a failing test]
[First Step]
[Second Step]
[and so on...]
Expected behavior: [What you expect to happen]
Version Information
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.
The text was updated successfully, but these errors were encountered: