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›
🐛 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: