SfTreeView "Index was outside the bounds of the array" with latest Visual Studio 16.7.4 for iOS 14

Hello

There seems to be a problem with the SfTreeView control when using a device or simulator running iOS 14 and the app was built with the latest Visual Studio version.
When I use your example of the TreeView with freshmvvm (https://github.com/SyncfusionExamples/freshmvvm-treeview-xamarin), the app crashes once the SfTreeView is shown.

The exception is as follows:
"Index was outside the bounds of the array."

Could you please have a loot at this and see if it still works on your side?


I use the latest Visual Studio 2019 version 16.7.4 (Windows).
On the Mac, the Visual Studio version is as follows:
MacOSX:                                                       10.15.6
Visual Studio Community 2019 for Mac:      8.7.8
Mono Framework MDK:                               6.12.0.93
.Net Core SDK:                                              3.1.402
.Net Core Runtime:                                        3.1.8
Xamarin.Max:                                                6.20.2.2
Xamarin.iOS:                                                 14.0.0.0




Here is the stacktrace:

  at Syncfusion.iOS.TreeView.TreeViewItemHolder.GetChildView () [0x00006] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.TreeViewAdapter.UpdateView (UIKit.UICollectionViewCell itemview, System.Int32 position) [0x00000] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.ItemGenerator.UpdateNodeItem (Syncfusion.iOS.TreeView.TreeViewItemInfoBase itemInfo, System.Int32 rowindex, Syncfusion.TreeView.Engine.TreeViewNode treeViewnode) [0x00162] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.ItemGenerator.CreateNodeItem (System.Int32 rowindex, Syncfusion.TreeView.Engine.TreeViewNode treeViewNode) [0x00068] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.LayoutBase.CreateTreeViewItem (System.Int32 itemIndex, Syncfusion.XForms.TreeView.ItemType itemType, Syncfusion.TreeView.Engine.TreeViewNode itemData) [0x0000b] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.LinearLayout.EnsureItems (Syncfusion.GridCommon.ScrollAxis.VisibleLinesCollection visibleLines) [0x00253] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.TreeNodesContainerBase.EnsureItems () [0x0001b] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.TreeNodeContainer.OnMeasureTreeNodeContainer (System.Double width, System.Double height) [0x000ad] in <e90a1f42ec644755befe74ada39edca4>:0 
  at Syncfusion.iOS.TreeView.TreeNodeContainer.LayoutSubviews () [0x0002d] in <e90a1f42ec644755befe74ada39edca4>:0 
  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/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.0.0.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65 
  at TreeViewXamarin.iOS.Application.Main (System.String[] args) [0x00001] in D:\.Net\_syncfusion\freshmvvm-treeview-xamarin-master\TreeViewXamarin\TreeViewXamarin\TreeViewXamarin.iOS\Main.cs:17 


Kind regards

Phil

2 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team September 25, 2020 04:44 PM UTC

Hi Phil, 
 
Thank you for the contacting Synfusion Support. 
 
We have checked the reported query “Index out of range exception" on iOS 14 in SfTreeView” and logged the issue report for the same. We will fix the issue and include the issue fix in our Weekly nuget release which is expected to roll out on October 06,2020. We appreciate your patience until then. 
 
You can track the status of this report through the following feedback link, 
 
Note: The provided feedback link is private, you need to login to view this feedback. 
 
Regards, 
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team October 6, 2020 08:14 AM UTC

Hi Phil,   
   
Thank you for your patience.   
  
We are glad to announce that our Essential Studio 2020 Volume 3 release v18.3.0.35 is rolled out and the issue Index out of range exception on iOS 14 in SfTreeView included in the release.   
    
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.   
   
Regards,   
SaiGanesh Sakthivel

Marked as answer
Loader.
Up arrow icon