Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application is crashing for large dimension GIFS #921

Open
2 tasks
doriansabo opened this issue Feb 1, 2024 · 0 comments
Open
2 tasks

Application is crashing for large dimension GIFS #921

doriansabo opened this issue Feb 1, 2024 · 0 comments

Comments

@doriansabo
Copy link

doriansabo commented Feb 1, 2024

馃悰 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:

  • 馃摫 iOS
  • 馃 Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant