Bug 39422 - Binding a List of string[]
Summary: Binding a List of string[]
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-07 18:54 UTC by Jaekov
Modified: 2017-01-05 20:29 UTC (History)
5 users (show)

Tags: Binding, string[]
Is this bug a regression?: ---
Last known good build:


Attachments
Project PCL - binding list of string arrays (24.26 KB, application/zip)
2016-04-18 20:51 UTC, Jaekov
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Jaekov 2016-03-07 18:54:18 UTC
When the app fill the SourceList<string[]> crash.

Code:
----------
list = new ListView ();
			var cell = new DataTemplate (typeof(TextCell));
			cell.SetBinding (TextCell.TextProperty,"[0]");//here is the path
			list.ItemTemplate = cell;
----------

Error shown:

at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00050] in /Users/builder/data/lanes/2689/962a0506/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:303 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/data/lanes/2689/962a0506/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/reflection/methodbase.cs:277 
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.TryGetValue (System.Object source, System.Object& value) [0x0001e] in <filename unknown>:0 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, Boolean fromTarget) [0x001a0] in <filename unknown>:0 
  at Xamarin.Forms.BindingExpression.Apply (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property) [0x0006b] in <filename unknown>:0 
  at Xamarin.Forms.Binding.Apply (System.Object newContext, Xamarin.Forms.BindableObject bindObj, Xamarin.Forms.BindableProperty targetProperty) [0x00042] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.ApplyBindings (System.Object oldContext, Boolean skipBindingContext) [0x0003b] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.BindingContextPropertyBindingPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0000e] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindablePropertyContext context, System.Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) [0x0010e] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) [0x0014b] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, Boolean fromStyle, Boolean checkAccess) [0x0005f] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <filename unknown>:0 
  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in <filename unknown>:0 
  at Xamarin.Forms.TemplatedItemsList`2[TView,TItem].UpdateContent (Xamarin.Forms.TItem content, Int32 index, System.Object item) [0x00000] in <filename unknown>:0 
  at Xamarin.Forms.TemplatedItemsList`2[TView,TItem].CreateContent (Int32 index, System.Object item, Boolean insert) [0x00038] in <filename unknown>:0 
  at Xamarin.Forms.TemplatedItemsList`2[TView,TItem].GetOrCreateContent (Int32 index, System.Object item) [0x00023] in <filename unknown>:0 
  at Xamarin.Forms.TemplatedItemsList`2[TView,TItem].get_Item (Int32 index) [0x0000e] in <filename unknown>:0 
  at Xamarin.Forms.Platform.iOS.ListViewRenderer+ListViewDataSource.GetCellForPath (Foundation.NSIndexPath indexPath) [0x00032] in <filename unknown>:0 
  at Xamarin.Forms.Platform.iOS.ListViewRenderer+ListViewDataSource.GetCell (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath) [0x00011] in <filename unknown>:0 
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/UIKit/UIApplication.cs:77 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0001c] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/UIKit/UIApplication.cs:60 
  at Flyerz.iOS.Application.Main (System.String[] args) [0x00008] in /Users/jeiksegovia/Projects/Flyerz/iOS/Main.cs:17
Comment 1 Paul DiPietro [MSFT] 2016-03-10 19:43:15 UTC
A reproduction project would be appreciated in helping to investigate this issue.
Comment 2 Jason Smith [MSFT] 2016-03-13 11:57:39 UTC
The actual error is missing from the stack trace too. We would at the very least like that. Looks like a linker issue.
Comment 3 Jaekov 2016-03-13 13:30:56 UTC
I could provide a reproduction project. 
Basically it's about binding a List<string[]> myList to a ListView in Xamarin forms PCL project.
Comment 4 Jaekov 2016-04-18 20:51:39 UTC
Created attachment 15756 [details]
Project PCL - binding list of string arrays
Comment 5 Jaekov 2016-04-18 20:53:04 UTC
Comment on attachment 15756 [details]
Project PCL - binding list of string arrays

Run on a real device ios 9.2
Comment 6 Chris King 2016-04-28 19:23:29 UTC
I show no reproduction on master iOS nor Android.
Comment 7 Jaekov 2016-04-28 19:37:54 UTC
Did you run the project on a real ios device? 

The error only appear when is launched on an iPhone.
Comment 8 adrianknight89 2016-12-17 02:18:34 UTC
I tested this in 2.3.3.175. The issue does not exist there. Can this be closed if it's fixed?
Comment 9 Samantha Houts [MSFT] 2017-01-05 20:29:48 UTC
I could not reproduce this issue. I did test on a physical device.