Baseflow / flutter_cached_network_image

Download, cache and show images in a flutter app
https://baseflow.com
2.41k stars 638 forks source link

ImageLoader.loadImageAsync.<fn> FlutterError - Exception: Invalid image data. Error thrown . #953

Open karbanr opened 1 week ago

karbanr commented 1 week ago

🐛 Bug Report

Sometimes this issue becomes reproducible in debug mode when trying to display image through CachedNetworkImageProvider. Issue stops to reproduce right after executing command 'flutter pub get'.

Stack trace

Exception caught by image resource service = The following _Exception was thrown resolving an image codec: Exception: Invalid image data When the exception was thrown, this was the stack: 0 _futurize (dart:ui/painting.dart:6980:5) 1 ImageDescriptor.encoded (dart:ui/painting.dart: 6786:12) 2 instantiateImageCodecWithSize (dart:ui/painting.dart:2290:60)| 3 PaintingBinding.instantiateImageCodecWithSize (package:flutter/src/painting/binding.dart:141:15) 4 ImageLoader.loadImageAsync. (package:cached_network_image/src/image_provider/_image_loader.dart:65:22) ‹asynchronous suspension› 5 ImageLoader._load (package:cached_network_image/src/image_provider/_image_loader.dart:124:27) ‹asynchronous suspension› 6 new MultiImageStreamCompleter. (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:26:7) ‹asynchronous suspension›

Image provider: CachedNetworkImageProvider("https://imagestorage_67493", scale: 1.0) Image key: CachedNetworkImageProvider("https://imagestorage_67493", scale: 1.0): CachedNetworkImageProvider ("https://imagestorage_67493", scale: 1.0)

Version: 3.3.1

Platform:

karbanr commented 1 week ago

Screenshot 2024-06-17 at 11 42 02 AM