SfListView broken after upgrade to Xamarin Forms 3.1

Only in iOS latest Syncfusion SfListView(16.1.0.37) is crashing. It crashes only when I'm popping a page which has sflistview in it. Also, it happens only on iOS, It works fine in Android. Here is the 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

5 Replies

RS Rawoof Sharief Muthuja Sherif Syncfusion Team June 25, 2018 10:57 AM UTC

Hi Ninaada, 
 
The reported issue NullReference exception occurred from ExtendendScrollView of iOS project has been resolved and included in 2018 Vol2 Main release. We are glad to announce that our Essential Studio Volume 2, 2018 (Version 16.2.0.41) is rolled out and is available for download under the following link. 
 
                                              
 
Regards, 
Rawoof M. 




NI Ninaada June 26, 2018 05:56 AM UTC

I have upgraded and the issue seems to have been fixed. Thank you!


MK Muthu Kumaran Gnanavinayagam Syncfusion Team June 27, 2018 04:06 AM UTC

Hi Ninaada, 
 
Thanks for the valuable response. 
 
Regards, 
G.Muthu kumaran. 



CN Casey Niemann August 11, 2018 03:23 PM UTC

WE have the same issue. 
We are latest on Sync fusion (16.2451.0.41) and Xamarin.Forms (3.1.0.697729)


Terminating app due to uncaught exception 'System.NullReferenceException', reason: 'System.NullReferenceException: Object reference not set to an instance of an object'

Xamarin Exception Stack:
at Syncfusion.ListView.XForms.iOS.ExtendedScrollViewRenderer.Dispose (System.Boolean disposing) <0x106f70840 + 0x000b8> in <6d4e8aa410694182b35ee18b05ee9cea#20e7c929b9342d51df6872a7a1422e96>:0 
  at Foundation.NSObject.Dispose () <0x106164d08 + 0x0001f> in <0b60c1467e7449608ac42f9c7bbfdd05#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (Xamarin.Forms.VisualElement view) <0x10633cfd0 + 0x000cb> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) <0x10633d2e8 + 0x0023f> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) <0x10633cc84 + 0x000fb> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) <0x10633e1b4 + 0x000a7> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Foundation.NSObject.Dispose () <0x106164d08 + 0x0001f> in <0b60c1467e7449608ac42f9c7bbfdd05#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) <0x10633cc84 + 0x000c3> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) <0x10633e1b4 + 0x000a7> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Foundation.NSObject.Dispose () <0x106164d08 + 0x0001f> in <0b60c1467e7449608ac42f9c7bbfdd05#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.Platform.DisposeModelAndChildrenRenderers (Xamarin.Forms.Element view) <0x106338dfc + 0x00113> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Platform.iOS.Platform.HandleChildRemoved (System.Object sender, Xamarin.Forms.ElementEventArgs e) <0x106339774 + 0x00013> in <b7c1dc032eaf4563aa1e0e3cc19471d3#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Element.OnDescendantRemoved (Xamarin.Forms.Element child) <0x105930b10 + 0x00067> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Element.OnChildRemoved (Xamarin.Forms.Element child) <0x10592f6d4 + 0x0008f> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.VisualElement.OnChildRemoved (Xamarin.Forms.Element child) <0x1059893a8 + 0x00013> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Page.OnInternalRemoved (Xamarin.Forms.VisualElement view) <0x105963128 + 0x0006f> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.Page.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) <0x105962e90 + 0x0009f> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) <0x105cbe0d8 + 0x00053> in <a94eabc69d1f4469a11625cfe02138d9#20e7c929b9342d51df6872a7a1422e96>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) <0x105cbe2d0 + 0x00067> in <a94eabc69d1f4469a11625cfe02138d9#20e7c929b9342d51df6872a7a1422e96>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) <0x105cbdcb4 + 0x00077> in <a94eabc69d1f4469a11625cfe02138d9#20e7c929b9342d51df6872a7a1422e96>:0 
  at System.Collections.ObjectModel.Collection`1[T].Remove (T item) <0x1057c7a00 + 0x00087> in <b238a3153e534349ad10ed0787f2157a#20e7c929b9342d51df6872a7a1422e96>:0 
  at Xamarin.Forms.NavigationPage+<Xamarin-Forms-INavigationPageController-RemoveAsyncInner>d__65.MoveNext () <0x10595d0d4 + 0x001af> in <212d41bd9b8847d3b9de286069712a07#20e7c929b9342d51df6872a7a1422e96>:0 


JN Jayaleshwari N Syncfusion Team August 13, 2018 12:07 PM UTC

Hi Casey,  
  
We have checked the reported issue in our sample and it is working fine. We suspect that the assemblies are not referred properly in your project. Could you please clear the NuGet cache and update the ListView to the latest version (16.2.0.46) in your application.    
    
Please follow the below steps to clear the NuGet cache,

For Windows:

Follow the below link to clear cache,

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache  

For Mac:

Can you please check and remove in your mac if there is any package in the following location?

• ~/.local/share/NuGet/Cache
• ~/.nuget/package

For your reference we have attached the sample and you can download it from the below link.    
    
    
Please check the reported issue occurs in our sample. If the above sample does not meet your requirement then, Could you please modify the above sample to replicate the issue which would highly help us to analyze the query better and provide an appropriate solution.           
  
Regards,  
Jayaleshwari N 


Loader.
Up arrow icon