Baseflow / Baseflow/flutter_cached_network_image

FileSystemException: Cannot open file, path = 'C:\Users\User\AppData\Roaming\com.example\examole\libCachedImageData.json'

Open
#656 0 comments 0 reactions 0 assignees View on GitHub
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
![image](https://user-images.githubusercontent.com/63228361/135405121-cc6b4436-7997-4878-bef2-dc703b3895c6.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.