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

App Crashes on AnimationViewRenderer.Init() on iOS 9 #241

Closed
dhruvcom opened this issue Sep 25, 2019 · 4 comments
Closed

App Crashes on AnimationViewRenderer.Init() on iOS 9 #241

dhruvcom opened this issue Sep 25, 2019 · 4 comments

Comments

@dhruvcom
Copy link

dhruvcom commented Sep 25, 2019

🐛 Bug Report

I recently upgraded Xamarin.iOS to latest version (Version: 13.2.0.42). After this upgrade my app crashes on AnimationView Renderer. Init() specifically on iOS 9. For iOS 11 and 12 its working appropriate. Below is the exception :
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.PlatformNotSupportedException: This API is not supported on this version of iOS
at UIKit.UIMenuElement..ctor (System.IntPtr handle) [0x00007] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIMenuElement.g.cs:91
at UIKit.UICommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UICommand.g.cs:88
at UIKit.UIKeyCommand..ctor (System.IntPtr handle) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:91
at at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00018] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:944
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:926
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:960
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/external/corefx/src/Common/src/CoreLib/System/Reflection/ConstructorInfo.cs:22
at ObjCRuntime.Runtime.ConstructNSObject[T] (System.IntPtr ptr, System.Type type, ObjCRuntime.Runtime+MissingCtorResolution missingCtorResolution) [0x0003b] in <1b20576ce73640d782f136af13e79af3>:0
at ObjCRuntime.Runtime.GetNSObject[T] (System.IntPtr ptr) [0x000d1] in <1b20576ce73640d782f136af13e79af3>:0
at UIKit.UIKeyCommand.Create (Foundation.NSString keyCommandInput, UIKit.UIKeyModifierFlags modifierFlags, ObjCRuntime.Selector action) [0x0003b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKeyCommand.g.cs:107
at Xamarin.Forms.Platform.iOS.VisualElementRenderer1[TElement]..ctor () [0x00043] in <18e93b810a4a4e2f919016f742528d37>:0 at Xamarin.Forms.Platform.iOS.ViewRenderer2[TView,TNativeView]..ctor () [0x00000] in <18e93b810a4a4e2f919016f742528d37>:0
at Lottie.Forms.iOS.Renderers.AnimationViewRenderer..ctor () [0x00000] in <418697cdbb1f4a3c9418d8b0cf43a628>:0
at Lottie.Forms.iOS.Renderers.AnimationViewRenderer.Init () [0x00000] in <418697cdbb1f4a3c9418d8b0cf43a628>:0
at Aapc.Membership.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x0006e] at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/UIKit/UIApplication.cs:86


I'm not sure if apple stopped supporting any specific thing in their latest release?

Expected behavior

App should not crash

Reproduction steps

Provided.

Configuration

Version: 1.x
XF - 4.1
iOS : 9.3.3
Lottie Plugin : Latest version 3.0.1
Platform:
iOS - Xamarin.Forms

@MrMayTwenty
Copy link

same issue when using iOS 10

@nicolashotterbeekx
Copy link

I think this linked to the this issue.
xamarin/xamarin-macios#7083

@mr5z
Copy link

mr5z commented Oct 4, 2019

Same issue on iPad 4th gen iOS 10.3.4

@martijn00
Copy link
Member

Upgrade to the latest Xamarin to fix this.

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

5 participants