Hi Everyone,
iPhone App is crashing Intermittently. I am getting the below exception. To verify, whether it's a Xaml issue or not, I have commented all Xaml code. But still getting exception. App is working fine in UWP.
{System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0004c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:…}
Object reference not set to an instance of an object at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (Xamarin.Forms.VisualElement view) [0x0004c] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\VisualElementPackager.cs:102 \n at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildAdded (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Platform.iOS\\VisualElementPackager.cs:154 \n at Xamarin.Forms.Element.OnChildAdded (Xamarin.Forms.Element child) [0x0000f] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Element.cs:326 \n at Xamarin.Forms.VisualElement.OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualElement.cs:756 \n at Xamarin.Forms.Layout`1[T].OnChildAdded (Xamarin.Forms.Element child) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:32 \n at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0001d] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:462 \n at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00078] in D:\\a\\1\\s\\Xamarin.Forms.Core\\Layout.cs:452 \n at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)\n at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:263 \n at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:338 \n at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x0001a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:196 \n at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:71 \n at Xamarin.Forms.ObservableWrapper`2[TTrack,TRestrict].Add (TRestrict item) [0x0004b] in D:\\a\\1\\s\\Xamarin.Forms.Core\\ObservableWrapper.cs:35 \n at Telerik.XamarinForms.Primitives.RadBusyIndicator.set_VisibleContent (Xamarin.Forms.View value) [0x00042] in <24f49cf5b9fd4fe5ba0662b01eef93e5>:0 \n at Telerik.XamarinForms.Primitives.RadBusyIndicator.DisplayActualContent () [0x00070] in <24f49cf5b9fd4fe5ba0662b01eef93e5>:0 \n at Telerik.XamarinForms.Primitives.RadBusyIndicator.OnIsBusyPropertyChanged (Telerik.XamarinForms.Primitives.RadBusyIndicator indicator, System.Boolean oldValue, System.Boolean newValue) [0x00000] in <24f49cf5b9fd4fe5ba0662b01eef93e5>:0 \n at Telerik.XamarinForms.Common.BindablePropertyExtensions+<>c_DisplayClass6_0`2[TDeclarer,TPropertyType].<Create>b0 (Xamarin.Forms.BindableObject b, System.Object o, System.Object n) [0x00000] in <a803b4fb350e421cab61e2cee294d08a>:0 \n 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 \n 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 \n at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00214] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindingExpression.cs:155 \n at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindingExpression.cs:53 \n at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b_49_0 () [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\BindingExpression.cs:738 \n at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/Foundation/NSAction.cs:152 \n--- End of stack trace from previous location where exception was thrown ---\n\n at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)\n at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86 \n at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e]
Any suggestion plz....