Baseflow / flutter_cached_network_image

Download, cache and show images in a flutter app
https://baseflow.com
2.45k stars 656 forks source link

PathNotFoundException: Cannot delete file #959

Open joachimbulow opened 4 months ago

joachimbulow commented 4 months ago

🐛 Bug Report

We are seeing tons of errros reported in debug mode and Crashlytics due to this library.

At this point i suspect a combination of using staleDuration and macNrOfCacheObjects may be the issue, but idk.

The error looks like this: PathNotFoundException: Cannot delete file, path = '/var/mobile/Containers/Data/Application/B93E8C32-B37A-4447-9506-DCE70BDE8978/Library/Caches/image_or_placeholder/ef157500-49af-11ef-bb4b-b9800cbce33d.jpg' (OS Error: No such file or directory, errno = 2)

Although i think it only started happening once we specified shared cache_key.

Expected behavior

That the library internally handles missing cache files etc gracefully?

Reproduction steps

Not sure, as mentioned it may be due to invalid config.

Configuration

Version: ^3.2.1

Platform: