Comments (6)
I am from China.
Don't speak in English.
I use version is : disklrucache-2.0.1.jar
from disklrucache.
maybe it doesn't like the space in the filename?
from disklrucache.
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.
Any workaround?
Error is still present after several years.
from disklrucache.
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.
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)
- Clear Cache HOT 1
- Copyright (C) 2011 The Android Open Source Project Copyright 2012 Jake Wharton Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
- executorService is not shut down
- Can you support the OpenHarmony JavaScript version? HOT 1
- Does getCacheDir() supported? HOT 3
- Simplify interface and make lib truly asynchronous HOT 4
- Multi-thread: Infinite loop in trimToSize HOT 5
- Closing the correct resource ? HOT 1
- Validate key Issue HOT 1
- max size doesn't take in consideration minimum 4kb block size. HOT 2
- Files disappear after a while HOT 1
- Old Image is always shown HOT 1
- Basic usage and code samples? HOT 1
- [Question] Where is the performence report of DiskLruCache? HOT 1
- what can cause cache is closed
- Hey! 61 tests 10 failed I have... HOT 5
- Request for new release 2.0.3 HOT 1
- Get entry count/iterator
- while loop in StrictLineReader.java HOT 2
- Key length is 64 for dependencies resolved via maven/jcenter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disklrucache.