Baseflow / Baseflow/flutter_cached_network_image
App CRASH: MultiImageStreamCompleter: Connection refused. Error thrown Instance of 'ErrorDescription'.
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
Rapid scrolling produces this crash:
```
new MultiImageStreamCompleter.
FlutterError - Connection refused. Error thrown Instance of 'ErrorDescription'.
package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:32
```
### Expected behavior
Image url's are fine and work most of the time, rapid scrolling produces this crash
### Reproduction steps
Rapid scrolling of grid images/list images over 20 produces this crash:
```
Widget displayImage(String picUrl, double size) => CachedNetworkImage(
memCacheWidth: size.toInt(),
imageBuilder: (context, imageProvider) =>
_getFlatImageProvider(imageProvider, size, context),
imageUrl: picUrl,
placeholder: (context, url) => _getFlatPlaceholderOrErrorImage(size, true),
errorWidget: (context, url, error) =>
_getFlatPlaceholderOrErrorImage(size, false));
```
### Configuration
**Version:**
cached_network_image: ^3.2.3
**Platform:**
- [x ] :iphone: iOS
- [ ] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.