Baseflow / Baseflow/flutter_cached_network_image
FileSystemException: Cannot open file, path = 'C:\Users\User\AppData\Roaming\com.example\examole\libCachedImageData.json'
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Sometimes this error happens(Usually in release mode) with message that file is busy by some system entity.
```
_File.open. (dart:io/file_impl.dart:356)#1 _rootRunUnary (dart:async/zone.dart:1436)#2 JsonCacheInfoRepository._saveFile (package:flutter_cache_manager/src/storage/cache_info_repositories/json_cache_info_repository.dart:191)
```
I think it will be good to wrap all file operations into try catch.
This is a very rare issue and i can not reproduce it by myself, but i have errors logging system by RunZodedGuarded and Flutter.onError and see that this happens with users of my app.
By the way i use errorWidget for all CachedNetworkImages

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.