Error in xamarin.forms iOS app - shell + visual Material

edammeredammer GBMember ✭✭

Hi,

I have a Xamarin.Forms app on iOS.
I'm using Shell and Visual Material.

On iOS only (android is fine) if I navigate back to my first page, the app closes.
All other page behave ok.

I get the below exception

SIGABRT: Cannot access a disposed object. Object name: 'MaterialFrameRenderer'.

NSObject.get_SuperHandle ()
UIView.get_Layer ()
VisualElementPackager.EnsureChildrenOrder ()
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
VisualElementRenderer`1[TElement].SetElement (TElement element)
IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
ScrollViewRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view)
VisualElementPackager.Load ()
PageRenderer.ViewDidLoad ()
(wrapper managed-to-native) ObjCRuntime.Messaging.objc_msgSendSuper(intptr,intptr)
UIViewController.get_View ()
PageRenderer.get_NativeView ()
PageRenderer.SetElement (Xamarin.Forms.VisualElement element)
Platform.CreateRenderer (Xamarin.Forms.VisualElement element)
ShellSectionRootRenderer.LoadRenderers ()
ShellSectionRootRenderer.ViewDidLoad ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)

I can't see from the stack trace exactly whats causing the error.
Also, not seeing anything online thats helping.

Thanks

Best Answer

Answers

Sign In or Register to comment.