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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
karbanr opened this issue Jun 18, 2024 · 1 comment

Comments

@karbanr
Copy link

karbanr commented Jun 18, 2024

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

  • 📱 iOS
@karbanr
Copy link
Author

karbanr commented Jun 18, 2024

Screenshot 2024-06-17 at 11 42 02 AM

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