flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

PathNotFoundException: Cannot delete file

Open joachimbulow opened this issue 7 months ago • 0 comments

🐛 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:

  • [17.5.1] :iphone: iOS
  • [?] :robot: Android

joachimbulow avatar Jul 26 '24 10:07 joachimbulow