Closed kpespisa closed 2 months ago
To walk-around, you can use CachedImageView instead like this:
<maui:CachedImageView
Source="mortalkombat.gif"
Padding="20"
Stroke="#DDDDDD" StrokeThickness="20" StrokeShape="Ellipse"
HeightRequest="200"
WidthRequest="200"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight">
</maui:CachedImageView>
https://github.com/user-attachments/assets/d29f0fe4-e122-47ee-b9d6-7be537ce9b28
For the crash root cause I will take a deep look and try to fix in the next version of FFImageLoading.Maui.
@kpespisa Fixed in the latest version 1.2.7 : https://www.nuget.org/packages/FFImageLoading.Maui/1.2.7
I'm getting an error moving from 1.2.6 to 1.2.7:
System.InvalidOperationException: Unable to resolve service for type 'FFImageLoading.IImageService' while attempting to activate...
@kpespisa Yes, it also takes me 1 hour to find the root cause. You can try to upgrade Maui to the latest version by command: sudo dotnet workload update
Ahh, thank you very much for the quick fix and advice!
Description
Loading certain animated images and applying a transform to them causes a crash that loops.
... repeats many times ....
Steps to Reproduce
Add a CachedImage to a ContentPage and include a CircleTransformation. Set the source to a certain kind of animated image (I've provided an example). I've seen this with several images, and haven't determined what is special about them. Most load just fine.
Expected Behavior
Image loads and animates, OR fails to load similar to trying to load from an invalid URL
Actual Behavior
Image fails to load and an exception and stack trace are logged. The console fills up quickly until the app finally crashes.
Basic Information
Reproduction Link / Code
Project attached
FFImageLoadingTransformIssue.zip