RuddyOne / CarouselView

CarouselView control for Xamarin Forms
MIT License
1 stars 1 forks source link

[iOS] Could not initialize an instance of the type UIKit.UIImage #9

Open nbsoftware opened 4 years ago

nbsoftware commented 4 years ago

Upgraded to your version, coming from Alex's version - mainly because of AndroidX Android is working like a charm

However I'm getting a weird exception with iOS. Something about the plugin not finding the arrows image ressources? See Exception below.

Does that make any sense to you? Thanks

  "exception" : {
    "message" : "Could not initialize an instance of the type 'UIKit.UIImage': the native 'initWithContentsOfFile:' method returned nil.\nIt is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.",
    "wrapperSdkName" : "appcenter.xamarin",
    "type" : "System.Exception",
    "stackTrace" : "  at Foundation.NSObject.InitializeHandle (System.IntPtr handle, System.String initSelector) [0x00085] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.20.1.18/src/Xamarin.iOS/Foundation/NSObject2.cs:498 \n
      at UIKit.UIImage..ctor (System.String filename) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.20.1.18/src/Xamarin.iOS/UIKit/UIImage.g.cs:109 \n
      at CarouselView.FormsPlugin.iOS.CarouselViewRenderer.SetArrows () [0x000e1] in <5e1b20a58f7f4f2e9bbb034b7a10d43c>:0 \n
      at CarouselView.FormsPlugin.iOS.CarouselViewRenderer.SetNativeView () [0x00159] in <5e1b20a58f7f4f2e9bbb034b7a10d43c>:0 \n
      at CarouselView.FormsPlugin.iOS.CarouselViewRenderer.Element_SizeChanged (System.Object sender, System.EventArgs e) [0x00041] in <5e1b20a58f7f4f2e9bbb034b7a10d43c>:0 \n
      at (wrapper delegate-invoke) <Module>.invoke_void_object_EventArgs(object,System.EventArgs)\n
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00029] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:1084 \n
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:316 \n
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:708 \n
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.View child, Xamarin.Forms.Rectangle region, Xamarin.Forms.SizeRequest childSizeRequest) [0x00225] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:319 \n``
      at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x00081] in D:\\a\\1\\s\\Xamarin.Forms.Core\\StackLayout.cs:65 \n
      at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x00158] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:266 \n
      at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:224 \n
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:812 \n
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:1083 \n
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:316 \n
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:708 \n
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x001da] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:178 \n
      at Xamarin.Forms.ScrollView.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x000f8] in D:\\a\\1\\s\\Xamarin.Forms.Core\\ScrollView.cs:237 \n
      at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x00158] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:266 \n
      at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:224 \n
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:812 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:1083 \n
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:316 \n
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:708 \n
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x001da] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:178 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:278 
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000ca] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:357 \n
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:337 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:812 
      at Xamarin.Forms.VisualElement.SetSize (System.Double width, System.Double height) [0x00021] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:1083 
      at Xamarin.Forms.VisualElement.set_Bounds (Xamarin.Forms.Rectangle value) [0x0005d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:316 
      at Xamarin.Forms.VisualElement.Layout (Xamarin.Forms.Rectangle bounds) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:708 
      at Xamarin.Forms.Layout.LayoutChildIntoBoundingRegion (Xamarin.Forms.VisualElement child, Xamarin.Forms.Rectangle region) [0x0005f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:147 
      at Xamarin.Forms.Page.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0010d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:278 \n
      at Xamarin.Forms.Page.UpdateChildrenLayout () [0x000ca] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:357 
      at Xamarin.Forms.Page.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:337 
      at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:812 
      at Xamarin.Forms.Page.OnChildMeasureInvalidated (Xamarin.Forms.VisualElement child, Xamarin.Forms.Internals.InvalidationTrigger trigger) [0x000a9] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:396 
      at Xamarin.Forms.Page.OnChildMeasureInvalidated (System.Object sender, System.EventArgs e) [0x00013] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Page.cs:319 
      at Xamarin.Forms.VisualElement.InvalidateMeasureInternal (Xamarin.Forms.Internals.InvalidationTrigger trigger) [0x0000b] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:844 
      at Xamarin.Forms.VisualElement.set_IsPlatformEnabled (System.Boolean value) [0x0001c] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:558 
      at Xamarin.Forms.Platform.iOS.Platform+<>c.<.cctor>b__62_0 (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000a] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\Platform.cs:31 
      at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:463 
      at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:397 
      at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:334 
      at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindableObject.cs:311 
      at Xamarin.Forms.Platform.iOS.Platform.SetRenderer (Xamarin.Forms.VisualElement bindable, Xamarin.Forms.Platform.iOS.IVisualElementRenderer value) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\Platform.cs:238 
      at Xamarin.Forms.Platform.iOS.NavigationRenderer.CreateViewControllerForPage (Xamarin.Forms.Page page) [0x00008] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\Renderers\\NavigationRenderer.cs:379 
      at Xamarin.Forms.Platform.iOS.NavigationRenderer.OnPushAsync (Xamarin.Forms.Page page, System.Boolean animated) [0x0001d] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\Renderers\\NavigationRenderer.cs:355 
      at Xamarin.Forms.NavigationPage.PushAsyncInner (Xamarin.Forms.Page page, System.Boolean animated) [0x00084] in D:\\a\\1\\s\\Xamarin.Forms.Core\\NavigationPage.cs:441 
      at Xamarin.Forms.NavigationPage.PushAsync (Xamarin.Forms.Page page, System.Boolean animated) [0x0014e] in D:\\a\\1\\s\\Xamarin.Forms.Core\\NavigationPage.cs:254 
      at fipacapp.ListCV.FipacList_ItemTapped (System.Object sender, Xamarin.Forms.ItemTappedEventArgs e) [0x001ee] in /Users/fmeyer/work/repositories/customers/fipac/fipac-mobile/fipacapp/fipacapp/Forms/ListCV.xaml.cs:179 "
  },
nbsoftware commented 4 years ago

Anyone? Is it just me?