break after update to xamarin form 3.1

hi all,
after update to xamarin form 3.1 i have this error.
can you help me?
thanks
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at Syncfusion.SfDataGrid.XForms.iOS.SfProgressBarRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00045] in :0
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:150
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:398
at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property, System.Boolean fromStyle, System.Boolean checkAccess) [0x000c1] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:507
at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:44
at Xamarin.Forms.Platform.i
OS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x0007d] in <0aa4434e6c8849f1bca03cc1ef0ae57c>:0
at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (System.Boolean disposing) [0x00000] in <0aa4434e6c8849f1bca03cc1ef0ae57c>:0
at Syncfusion.SfDataGrid.XForms.iOS.SfProgressBarRenderer.Dispose (System.Boolean disposing) [0x0000a] in :0
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <0aa4434e6c8849f1bca03cc
1ef0ae57c>:0
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37
at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <0aa4434e6c8849f1bca03cc1ef0ae57c>:0
at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69
at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x000
00] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37

24 Replies

AA Amr Al-Sayed June 24, 2018 11:05 AM UTC

Not jus the SfDataGrid, SfListView too. At first the list view is displayed normally and works fine but after I push a page (Modal or Navigation) the new page displays normally  but when I pop the page back to the page with the SfListView, it crashes. This only happens on iOS though.
Here is the StackTrace:


System.NullReferenceException: Object reference not set to an instance of an object
  at Syncfusion.ListView.XForms.iOS.ExtendedScrollViewRenderer.Dispose (System.Boolean disposing) [0x00009] in :0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (Xamarin.Forms.VisualElement view) [0x0003e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:122 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00092] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:200 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0005c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:73 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:264 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:264 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:264 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133 
  at Xamarin.Forms.Platform.iOS.Platform.DisposeModelAndChildrenRenderers (Xamarin.Forms.Element view) [0x00038] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:237 
  at Xamarin.Forms.Platform.iOS.Platform.HandleChildRemoved (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:348 
  at Xamarin.Forms.Element.OnDescendantRemoved (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:648 
  at Xamarin.Forms.Element.OnDescendantRemoved (Xamarin.Forms.Element child) [0x00020] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:651 
  at Xamarin.Forms.Element.OnDescendantRemoved (Xamarin.Forms.Element child) [0x00020] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:651 
  at Xamarin.Forms.Element.OnDescendantRemoved (Xamarin.Forms.Element child) [0x00020] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:651 
  at Xamarin.Forms.Element.OnChildRemoved (Xamarin.Forms.Element child) [0x0001f] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:385 
  at Xamarin.Forms.VisualElement.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:629 
  at Xamarin.Forms.Page.OnInternalRemoved (Xamarin.Forms.VisualElement view) [0x00013] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:375
  at Xamarin.Forms.Page.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00022] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:353 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288 
  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/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351 
  at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) [0x0002b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:205 
  at System.Collections.ObjectModel.Collection`1[T].Remove (T item) [0x00027] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:113 
  at Xamarin.Forms.NavigationPage+d__65.MoveNext () [0x000e8] in D:\a\1\s\Xamarin.Forms.Core\NavigationPage.cs:278 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:357 
  at Xamarin.Forms.Platform.iOS.NavigationRenderer+d__72.MoveNext () [0x00064] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:710 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113 
  at Xamarin.Forms.Platform.iOS.NavigationRenderer+ParentingViewController+d__34.MoveNext () [0x0003a] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\NavigationRenderer.cs:1104 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1018 
  at UIKit.UIKitSynchronizationContext+<>c__DisplayClass1_0.b__0 () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIKitSynchronizationContext.cs:24 
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSAction.cs:125 
  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/11.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/UIKit/UIApplication.cs:63 
  at SmartEduEbisApp.iOS.Application.Main (System.String[] args) [0x00001] in C:\Repos\SmartEduSchoolApp\SmartEduEbisApp.iOS\Main.cs:14


BR Ben Reierson June 24, 2018 02:54 PM UTC

Seeing the same thing in my Xamarin Forms app after updating to Forms 3.1 (was on 2.5.x previously). Is this confirmed yet? This is the only thing holding me back from completing the update.


NI Ninaada June 24, 2018 07:25 PM UTC

Same with me here. Only in iOS latest Syncfusion SfListView(16.1.0.37) is crashing with the same stackTrace:

Syncfusion.ListView.XForms.iOS
ExtendedScrollViewRenderer.Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.OnChildRemoved (Xamarin.Forms.VisualElement view)
Xamarin.Forms.Platform.iOS
VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
ScrollViewRenderer.Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose (System.Boolean disposing)
Xamarin.Forms.Platform.iOS
VisualElementPackager.Dispose ()
Xamarin.Forms.Platform.iOS
PageRenderer.Dispose (System.Boolean disposing)
Foundation
NSObject.Dispose () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/Foundation/NSObject2.cs:133
Xamarin.Forms.Platform.iOS
Platform.DisposeModelAndChildrenRenderers (Xamarin.Forms.Element view)
Xamarin.Forms.Platform.iOS.Platform.System
IDisposable.Dispose ()
Xamarin.Forms.Platform.iOS
FormsApplicationDelegate.UpdateMainPage ()
Xamarin.Forms.Platform.iOS
FormsApplicationDelegate.ApplicationOnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args)
Xamarin.Forms
BindableObject.OnPropertyChanged (System.String propertyName) D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:150
Xamarin.Forms
Element.OnPropertyChanged (System.String propertyName) D:\a\1\s\Xamarin.Forms.Core\Element.cs:398
Xamarin.Forms
Application.set_MainPage (Xamarin.Forms.Page value) D:\a\1\s\Xamarin.Forms.Core\Application.cs:98
Prism.Common
ApplicationProvider.set_MainPage (Xamarin.Forms.Page value)
Prism.Navigation
PageNavigationService.DoPush (Xamarin.Forms.Page currentPage, Xamarin.Forms.Page page, System.Nullable`1[T] useModalNavigation, System.Boolean animated, System.Boolean insertBeforeLast, System.Int32 navigationOffset)
Prism.Navigation
PageNavigationService+<>c__DisplayClass33_0+<<ProcessNavigationForRootPage>b__0>d.MoveNext ()
System.Runtime.ExceptionServices
ExceptionDispatchInfo.Throw () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
System.Runtime.CompilerServices
TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
System.Runtime.CompilerServices
TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
System.Runtime.CompilerServices
TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
System.Runtime.CompilerServices
TaskAwaiter.GetResult () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113
Prism.Navigation
PageNavigationService+<DoNavigateAction>d__41.MoveNext ()
System.Runtime.ExceptionServices
ExceptionDispatchInfo.Throw () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152
System.Runtime.CompilerServices
TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187
System.Runtime.CompilerServices
TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
System.Runtime.CompilerServices
TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
System.Runtime.CompilerServices
TaskAwaiter.GetResult () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:113
Prism.Navigation
PageNavigationService+<ProcessNavigationForRootPage>d__33.MoveNext ()
System.Runtime.ExceptionServices
ExceptionDispatchInfo.Throw () /Library/Frameworks/Xamarin.iOS.framework/Versions/11.12.0.4/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152



AN Ashok N Syncfusion Team June 25, 2018 03:42 AM UTC

Hi All, 

Thanks for contacting Syncfusion support. 

We have released our Essential Studio 16.1.0.37 with support for Xamarin.Forms v2.4.0.280. We will provide the Xamarin.Forms v3 support from our upcoming 2018 Vol 2 main release only, which will be schedule for rolls out within this week. We will update you once release gets rolled out. We appreciate your patience until then. 

Regards, 
Ashok 



MA Mark June 25, 2018 10:36 AM UTC

I have this problem in my Xamarin Forms UWP app when going back a page:

   at Xamarin.Forms.Platform.UWP.ScrollViewRenderer.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
   at Windows.ApplicationModel.Core.UnhandledError.Propagate()
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)

Xamarin Forms 3.1.0.5839
Syncfusion.Xamarin.SfDataGrid 16.2.0.41.

I thought that this:

#207587: Application crashed while navigating back to the first page from second page where the data grid is loaded after updating Xamarin.Forms.3.0. This issue has been fixed.

would have fixed it.



AN Ashok N Syncfusion Team June 28, 2018 02:50 AM UTC

Hi Mark,  

 

We have checked the reported Application crash while navigating back with Xamarin.Forms v3.1 and SfDataGrid v16.2.0.41 in both Xamarin.Forms.iOS and Xamarin.Forms.UWP platform and it is working properly in both platforms. For your reference we have attached working sample in the below location, please refer it. Please modify our attached sample based on your requirement and revert along with replication procedure, that would be more helpful for further analyse.  

  

Regards,  

Ashok  


Attachment: App18_6ef006fd.zip


SC Stefan Cuypers June 30, 2018 01:58 PM UTC

I seem to have the same problem:
   at Xamarin.Forms.Platform.UWP.ScrollViewRenderer.<OnScrollToRequested>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()



SC Stefan Cuypers June 30, 2018 03:10 PM UTC

I solved the problem in my project. I was assigning a new empty datasource to the ItemsSource before leaving the screen (to free up memory).
I changed the code to call Clear() on the current datasource and the problem did not occur any more.





JA Jayaraman Ayyanar Syncfusion Team July 2, 2018 12:23 PM UTC

Hi Stefan, 
 
Thanks for the udpate. 
 
We are glad that your issue has been resolved. Let us know if you require any further assistance. 
 
Regards, 
Jayaraman. 



MA Mark July 3, 2018 07:18 AM UTC

I solved this with a hack.

I am using FreshMVVM. Whenever I close the popup(modal) after showing the grid I would get the exception.

This is the original close modal code:


I changed it to this:


Before I close the popup I show the Inputs tab and then delete the grid tab.

Something between FreshMVVM and the SfDataGrid is causing an exception.

My hack sorts it out.

PS your sample did not display my behavior.
PPS Ignore duplicate second image. Editor will not allow me to delete it!




MA Mark July 3, 2018 08:59 AM UTC

The code pixies are working against me!

The above worked for a while but is no longer.

Still an issue.


MA Mark July 5, 2018 11:34 AM UTC

I have created a Xamarin Forms, FreshMVVM and SFDataGrid project. All latest Nugets

This project shows the problem in the UWP app. Please use this with your debugging and testing of the SFDataGrid control.



Attachment: FreshMVVMSFDataGrid_a5cd3d7f.rar


SR Sivakumar R Syncfusion Team July 12, 2018 04:08 AM UTC

Hi Mark, 
 
We are able to replicate the issue with provided sample. The crash occurs when loading Forms ListView in the place of SfDataGrid also. We are still analyzing on this issue. We will provide analysis details by 12th July, 2018. 
 
Thanks, 
Sivakumar 



SK Shivagurunathan Kamalakannan Syncfusion Team July 12, 2018 07:26 PM UTC

Hi Mark, 
 
We confirmed that the issue with “Crash while navigating back from SfDataGrid in MasterDetailPage”  is a defect and we have logged a defect report. The reported issue will be fixed and will be available in our upcoming release. We appreciate your patience until then. 
 
Regards, 
Shivagurunathan 
 



MA Mark July 13, 2018 07:40 AM UTC

Thanks for the feedback. It's appreciated.


SK Shivagurunathan Kamalakannan Syncfusion Team July 14, 2018 01:40 PM UTC

Hi Mark,  
  
We have checked the reported issue with our source and also with the ListView. We got exception when using ListView also, however the call stack of the crash differs for ListView. Further, the call stack of the crash when using SfDataGrid happens at the framework class and hence we are not sure if this is an issue in our side and suspect this to be a framework issue. We will continue to check this in our side and get this fixed if this is our side issue or will report it in the framework if this is a framework issue when using Fresh MVVM. We will update you the details once we narrow down this and appreciate your patience until then.  
  
Regards,  
Shivagurunathan  



MA Mark August 6, 2018 10:57 AM UTC

Tested with SFDataGrid 16.2.0.46. UWP still crashed if page with DataGrid was shown.


When I close the pop up I get this:

Thanks

Mark.




MA Mark August 7, 2018 07:02 AM UTC

Here is a sample project....


VR Vigneshkumar Ramasamy Syncfusion Team August 7, 2018 05:52 PM UTC

Hi Alberto,  
  
We have analyzed the issue with “Crash while navigating back from SfDataGrid in MasterDetailPage”. Now we have validated further with the issue and as mentioned earlier we have confirmed this is the framework level issue and we have reported the same in the bugzilla and we will continue to work for this issue once it is fixed in the framework level. For more details refer the below bugzilla link. 
  
  
Regards,  
Vigneshkumar R 



VR Vigneshkumar Ramasamy Syncfusion Team August 17, 2018 05:41 AM UTC

Hi Alberto,  
 
We have checked the issue with “Crash while navigating back from SfDataGrid in MasterDetailPage by installing Xamarin Forms version 3.2.0.729530 pre 2 which is released as latest pre release version, in that version SfDataGrid Forms UWP APP gets loading fine. For resolving this issue, you can upgrade your Xamarin Forms version to 3.2.0.729530 pre 2. We have attached sample for the same and please find it from the below link. 
 
Sample: NewFreshMVVM
 
 
Please let us know if this help full. 
 
Regards 
Vigneshkumar R 



MA Mark September 20, 2018 01:35 PM UTC

This problem is fixed, thank you.

Tested with Xamarin.Forms 3.2.0.839982.


VR Vigneshkumar Ramasamy Syncfusion Team September 21, 2018 09:01 AM UTC

Hi Alberto, 
 
Thanks for the update. We glad to know that your issue has been resolved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 



AM Ahmad Muhamad replied to Vigneshkumar Ramasamy November 11, 2018 10:34 AM UTC

Hi Alberto, 
 
Thanks for the update. We glad to know that your issue has been resolved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


i have a same problem with ...... SfListView
*********************


Attachment: SfListView_56de1898.rar


JN Jayaleshwari N Syncfusion Team November 12, 2018 12:03 PM UTC

Hi Ahmad,  
  
We have checked the reported query from our side. We have used XF 3.3, SfListView 16.3.0.29 and checked with already mentioned use case reported with the same crash above like “whether crash occurs when I pop the page back to the page with the SfListView”. Unfortunately the reported crash does not occur at our end. Can you please share more details about the use case, and also let us know if you are using listview with any other view like prism or within any other layouts. We have attached the tested sample from our end, please find the sample from below link.  
  
  
Can you please check with the above sample whether you are facing issue in our sample also. If not, we would request you to revert us back with the replication procedure to reproduce the issue or share the modified sample which will help us to analyze the query better and provide appropriate solution at our end.  
  
Regards,  
Jayaleshwari N 


Loader.
Up arrow icon