-
Notifications
You must be signed in to change notification settings - Fork 377
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
Error in Xamarin.iOS: NaN is not a valid value for height #1274
Comments
Do you still experience it if you update XF to the newest stable.? |
Yes, I've updated to the latest v3.6.0.344457, still the same error. |
I've update to FFImageLoading 2.4.10
|
Could you make a repo? |
Unfortunately, that's not really an option. I just found out that it works on a iOS simulator for an iPad with iOS 11.2. |
I am encountering this as well on iOS 10.3.3, works fine though on newer iOS versions. |
Could you test those nugets? https://ci.appveyor.com/project/daniel-luberda/ffimageloading/build/artifacts |
Hi, I'm also having the same problem. Testing on Ipad 9.3.5 |
Tested now with 2.4.11.973-pre, the results are the same: NaN is not a valid value for height (System.ArgumentException) |
https://ci.appveyor.com/project/daniel-luberda/ffimageloading/build/artifacts |
Working :) |
Installed v2.4.11.982 and working. Thanks @daniel-luberda ! |
Description
Hello,
I'm having problems with FFImageLoading in Xamarin.iOS.
I'm using it in a shared .net standard project and it works in Android.
The images are in the shared folder, as Embedded resource.
I've tried with a png and svg. With and without an assembly reference, and all other sorts of things I could think of.
It works in Android, but on iOS I get the error: 'NaN is not a valid value for height'.
Steps to Reproduce
I did step 1 and 2 from the wiki: https://github.com/luberda-molinet/FFImageLoading/wiki/Xamarin.Forms-API
Next, in xaml I've added FFImageLoading reference in the header and changed a working image tag with png to an SvgCachedImage with svg.
I set the source of the image in code
I've also tried with a png image, adding an assembly, setting direct path(without resource://), without the transformation, adding MinimumHeightRequest and MinimumWidthRequest, deleted the bin and obj folders, clean project, rebuild project,...
Expected Behavior
A red icon, like on Android
Actual Behavior
A crash when opening the page with this image (it's not the first page of my app).
Stacktrace:
Basic Information
Code
in Xaml:
<ffSvg:SvgCachedImage VerticalOptions="Center" x:Name="ImageSubmitted" WidthRequest="30" HeightRequest="30" HorizontalOptions="FillAndExpand" > <ffSvg:SvgCachedImage.Transformations> <ffTransformations:TintTransformation EnableSolidColor="True" HexColor="#ff0000" /> </ffSvg:SvgCachedImage.Transformations> </ffSvg:SvgCachedImage> </StackLayout>
C: (I've tried multiple thing, but for now, it's this:
Uri uri = new Uri("resource://SuivoMobile.resources.carnew.svg")); EmbeddedResourceImageSource em = new EmbeddedResourceImageSource(uri); ImageSubmitted.Source = uri;
The text was updated successfully, but these errors were encountered: