Baseflow / Baseflow/flutter_cached_network_image
FileSystemException: Cannot open file, OS Error: No such file or directory, errno = 2 was thrown
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## π Bug Report
In my app, Im having a ListView which shows the users like in contacts app, sometimes its throws FileSystemException: Cannot open file.
ββββββββ Exception caught by image resource service ββββββββ
The following FileSystemException was thrown resolving an image codec:
```
Cannot open file, path = '/var/mobile/Containers/Data/Application/
B861D1-3A04-498D-AC67-23E00574DD1C/Library/Caches/
libCachedImageData/fdbf1150-a040-11ea-d6f9-4168d77.bin'
(OS Error: No such file or directory, errno = 2)
```
When the exception was thrown, this was the stack
#0 _File.open. (dart:io/file_impl.dart:366:9)
(elided 13 frames from dart:async)
Path: /var/mobile/Containers/Data/Application/B861D1-3A04-498D-AC67-23E00574DD1C/Library/Caches/libCachedImageData/fdbf1150-a040-11ea-d6f9-4168d77.bin
**Code**
```
ListTile(
leading: CachedNetworkImage(
fadeInDuration: Duration(milliseconds: 100),
fit: BoxFit.cover,
imageUrl: _filteredUser[index].photoUrl,
progressIndicatorBuilder: (context, url, downloadProgress) =>
shimmerImageTile(),
errorWidget: (context, url, error) => _imagePlaceHolder(),
),
title: userName(),
),
```
### Configuration
**Version:**
```cached_network_image: ^2.2.0```
**Platform:**
- [ π’] :iphone: iOS
- [ π’] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.