-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Exception: Invalid image data #797
Comments
same issue. |
Looks related to #778 I am not sure if it's related to the SSL issue below or not: |
Have you found any solution ? @marcellocamara @ngonhat94 |
You can try other package: https://pub.dev/packages/extended_image |
same issue. |
I have the same issue. Doctor summary (to see all details, run flutter doctor -v): • No issues found! I have tried Image.network, CachedNetworkImageProvider, and ExtendedNetworkImageProvider with the same error |
For those who are getting these crash as fatal crash. |
Sill not solved :(
both of these throws the same error
However if i use |
Same here, any fix ? |
don't use "CachedNetworkImageProvider" try to use "CachedNetworkImage" |
Flutter is used on the main page_ cached_ network_ image。
The url of this image is invalid
Jumping to the next page will report this error
cached_network_image: ^3.2.2
code:
Container(
margin: const EdgeInsets.only(left: 20, top: 54),
child: ClipOval(
child: CachedNetworkImage(
imageUrl: avatorUrl??'',
height: 64,
width: 64,
fit: BoxFit.fill,
progressIndicatorBuilder: (context, url, downloadProgress) =>
CircularProgressIndicator(value: downloadProgress.progress),
errorWidget: (context, url, error) => Image.asset(
'assets/images/profile/head-portrait.png',
width: 36,
height: 36,
fit: BoxFit.fill,
),
)),
)
======== 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:5886:5)
#1 ImageDescriptor.encoded (dart:ui/painting.dart:5741:12)
#2 instantiateImageCodecFromBuffer (dart:ui/painting.dart:2092:60)
#3 PaintingBinding.instantiateImageCodecFromBuffer (package:flutter/src/painting/binding.dart:153:15)
#4 ImageLoader.loadBufferAsync. (package:cached_network_image/src/image_provider/_image_loader.dart:68:22)
#5 ImageLoader._load (package:cached_network_image/src/image_provider/_image_loader.dart:121:25)
#6 new MultiImageStreamCompleter. (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:25:18)
Image provider: CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0)
Image key: CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0): CachedNetworkImageProvider("http://94.74.17.115/wallet-app/img/public/20221025/05hjd8b00eb47a2ad1580ec9df89456/11/635791ac6292b5aef572a183.png", scale: 1.0)
The text was updated successfully, but these errors were encountered: