flutter_cached_network_image
flutter_cached_network_image copied to clipboard
Application is crashing for large dimension GIFS
🐛 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