Baseflow / Baseflow/flutter_cached_network_image
Application is crashing for large dimension GIFS
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
The application crashes without error when GIF with 10 000 x 10 0000 dimensions file is downloaded. It may crash the app during the image decoding process?
Image URL: `https://gateway.irys.xyz/IVsMWdJzHLxtPY1Qyc7yPkt4vHWvCXiXbhORmWVH5lg`
```
CachedNetworkImage(
imageUrl: url,
fit: BoxFit.cover,
memCacheHeight: cacheSize,
memCacheWidth: cacheSize,
errorWidget: (_, __, ___) => errorWidget,
placeholder: (_, __) => progressIndicatorWidget,
);
```
or
```
Image(
fit: BoxFit.cover,
image: CachedNetworkImageProvider(url,),
loadingBuilder: (context, child, loadingProgress) => progressIndicatorWidget,
errorBuilder: (context, error, stackTrace) => errorWidget,
);
```
### Expected behavior
Applications don't crash.
### Reproduction steps
Visit a screen where the CachedNetworkImage widget is rendered and the application will crash.
### Configuration
**Version:** cached_network_image: ^3.3.0 Flutter (Channel stable, 3.13.8, on macOS 14.1 23B74 darwin-arm64, locale en-RS)
**Platform:**
- [ ] :iphone: iOS
- [ ] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.