Giter VIP home page Giter VIP logo

I get this error: "Caused by: java.io.IOException: failed to delete file: /mnt/sdcard/Android/data/mypackage/cache/media/361bd6dab3696905ef0139a9e9969820a98218 83b4b8d0d014bdf3f7f313eede.0" about disklrucache HOT 6 OPEN

cutler avatar cutler commented on July 3, 2024
I get this error: "Caused by: java.io.IOException: failed to delete file: /mnt/sdcard/Android/data/mypackage/cache/media/361bd6dab3696905ef0139a9e9969820a98218 83b4b8d0d014bdf3f7f313eede.0"

from disklrucache.

Comments (6)

cutler avatar cutler commented on July 3, 2024

I am from China.
Don't speak in English.
I use version is : disklrucache-2.0.1.jar

from disklrucache.

jbweimar avatar jbweimar commented on July 3, 2024

maybe it doesn't like the space in the filename?

from disklrucache.

mmm111mmm avatar mmm111mmm commented on July 3, 2024

I have this same issue, on 2.0.2.

I do speak English, however:

E/AndroidRuntime( 8674): java.lang.RuntimeException: java.io.IOException: failed to delete /data/data/com.example.app/cache/6
2770830e31053f34aee2c1a136a1cf3.1
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:175)
E/AndroidRuntime( 8674): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/AndroidRuntime( 8674): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/AndroidRuntime( 8674): at java.lang.Thread.run(Thread.java:818)
E/AndroidRuntime( 8674): Caused by: java.io.IOException: failed to delete /data/data/com.example.app/cache/62770830e31053f34aee2c1a136a1cf3.1
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache.deleteIfExists(DiskLruCache.java:394)
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache.removeEntry(DiskLruCache.java:585)
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache.trimToSize(DiskLruCache.java:638)
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache.access$100(DiskLruCache.java:88)
E/AndroidRuntime( 8674): at com.squareup.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:169)
E/AndroidRuntime( 8674): ... 3 more

Since it's error'ing in the library, not in my app, I cannot try/catch to stop the crash.

from disklrucache.

3c133ps3d avatar 3c133ps3d commented on July 3, 2024

Any workaround?
Error is still present after several years.

from disklrucache.

3c133ps3d avatar 3c133ps3d commented on July 3, 2024

Caused by java.io.IOException: failed to delete /mnt/expand/865ccc00-bcc9-462a-8c57-2bba375fe503/user/0/mypackage/cache/e58254731086bffc6a6af17aef586e6e.1

   at com.squareup.okhttp.internal.io.FileSystem$1.delete + 70(FileSystem.java:70)
   at com.squareup.okhttp.internal.DiskLruCache.removeEntry + 607(DiskLruCache.java:607)
   at com.squareup.okhttp.internal.DiskLruCache.trimToSize + 664(DiskLruCache.java:664)
   at com.squareup.okhttp.internal.DiskLruCache.access$200 + 88(DiskLruCache.java:88)
   at com.squareup.okhttp.internal.DiskLruCache$1.run + 175(DiskLruCache.java:175)
   at java.util.concurrent.ThreadPoolExecutor.runWorker + 1133(ThreadPoolExecutor.java:1133)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run + 607(ThreadPoolExecutor.java:607)
   at java.lang.Thread.run + 761(Thread.java:761)

from disklrucache.

vijaydhas avatar vijaydhas commented on July 3, 2024

Adding logs just incase there is plan to fix this

Fatal Exception: java.lang.RuntimeException: java.io.IOException: failed to delete /data/user/0/package/cache/picasso-cache/5c9c1b3f5eac43c0eeee56965f918676.1
at com.android.okhttp.internal.DiskLruCache$1.run(DiskLruCache.java:181)
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:764)

from disklrucache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.