android - Picasso: Failed to Delete when navigating away from activity -
edit: started getting these crashes new image trying load on first activity uses picasso, picasso's image management seems working fine. noticed isn't happening on nexus 5. htc 1 running 4.4.2 doesn't have issue. stops short while after clearing cache.
understand, picasso supposed handle you. there's examples of how cancel requests few , far apart. said, having issue if activity adapter loads images navigated away while image still loading, okhttp throws ioexception:
03-10 17:13:08.972 21440-21626/[package] e/androidruntime﹕ fatal exception: okhttp disklrucache process: [package], pid: 21440 java.lang.runtimeexception: java.io.ioexception: failed delete /data/data/[package]/cache/picasso-cache/7e2da32a20d0abcdb2ae7347580c9658.0 @ com.squareup.okhttp.internal.disklrucache$1.run(disklrucache.java:175) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) @ java.lang.thread.run(thread.java:841) caused by: java.io.ioexception: failed delete /data/data/[package]/cache/picasso-cache/7e2da32a20d0abcdb2ae7347580c9658.0 @ com.squareup.okhttp.internal.disklrucache.remove(disklrucache.java:584) @ com.squareup.okhttp.internal.disklrucache.trimtosize(disklrucache.java:639) @ com.squareup.okhttp.internal.disklrucache.access$100(disklrucache.java:86) @ com.squareup.okhttp.internal.disklrucache$1.run(disklrucache.java:169) at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) at java.lang.thread.run(thread.java:841) any ideas?
Comments
Post a Comment