okhttp: IOException in DiskLruCache in 1.5.0.

Upgraded to v1.5.0 and I’m seeing a lot of these exceptions thrown.

java.lang.RuntimeException: java.io.IOException: failed to delete /data/data/app.philm.in/cache/picasso-cache/452f1b31c49eebbd77673818036d6560.0
       at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:175)
       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)
Caused by: java.io.IOException: failed to delete /data/data/app.philm.in/cache/picasso-cache/452f1b31c49eebbd77673818036d6560.0
       at com.squareup.okhttp.internal.DiskLruCache.remove(DiskLruCache.java:584)
       at com.squareup.okhttp.internal.DiskLruCache.trimToSize(DiskLruCache.java:639)
       at com.squareup.okhttp.internal.DiskLruCache.access$100(DiskLruCache.java:86)
       at 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)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 48 (13 by maintainers)

Most upvoted comments

image help me

Same is happening.

Seeing this on okhttp 3.11.0 😦