Page 1 of 1

Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Mon Oct 07, 2019 9:54 pm
by 18286055
Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms when version 4.2019.7.3 or later is installed. However, the latest version is required to fix other bugs noted in https://www.steema.com/support/viewtopi ... =4&t=17188

See the demo repository for details (the last comment has the zip file, as the 2MB zip file is too large for Steema apparently...):
https://developercommunity.visualstudio ... ial-2.html
or the direct download:
https://developercommunity.visualstudio ... 3-test.zip

Using Visual Studio 2019, version 16.3.2 on windows 10 v1903, Steps to reproduce:

1) edit NuGet for solution
2) install any stable version of Steema.TeeChart.NET.Xamarin.Forms to all projects
3) clean
4) rebuild
5) run (deploy to device or simulator)

The app will crash at startup with 4.2019.7.3 or later when running on android. iOS doesn't crash at startup but it's unknown if any other issues exist for iOS 13.

See attached screenshot for all installed libraries and screenshots:
crash data.zip
(238.33 KiB) Downloaded 1162 times

And finally the exceptions that are shown:
System.MissingFieldException: Message=Field not found: int .Id.main_scrollview Due to: Could not find field in class
System.TypeInitializationException: Message=The type initializer for 'Attribute' threw an exception.
System.TypeInitializationException: Message=The type initializer for 'Attribute' threw an exception.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Wed Oct 09, 2019 1:38 pm
by Pep
Hello,
I've been able to reproduce the problem here. There was an issue with Xamarin assemblies.
I've just uploaded a new TeeChart for Xamarin.Forms nuget package version that has been compiled with the latest Xamarin.Forms and that fixes the problem.
Could you please check if it's working fine for you ?
You can download it at nuget.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Wed Oct 09, 2019 7:11 pm
by 18286055
4.2019.9.10 works as expected in Android. Haven't tested iOS yet.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Fri Nov 08, 2019 3:21 pm
by 18286055
It seems in the new version, 4.2019.9.10, that zoom is not functional at all. pan still works but I cannot zoom.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Wed Nov 27, 2019 10:50 pm
by Pep
It seems in the new version, 4.2019.9.10, that zoom is not functional at all. pan still works but I cannot zoom.
Sorry for delay in my answer.
Does this happens to you on Android, iOS or both platforms ?

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Mon Dec 16, 2019 9:13 pm
by 18286055
Pep wrote:
Wed Nov 27, 2019 10:50 pm
It seems in the new version, 4.2019.9.10, that zoom is not functional at all. pan still works but I cannot zoom.
Sorry for delay in my answer.
Does this happens to you on Android, iOS or both platforms ?
iOS only.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Tue Dec 17, 2019 9:39 am
by Pep
Ok, let me do some tests here and back to you asap.

Re: Steema.TeeChart.NET.Xamarin.Forms crashes in Xamarin.Forms

Posted: Fri Dec 20, 2019 5:13 pm
by Pep
Hello,
I've just done some tests here using the latest nuget version and a simple example project, and it seems that Zoom is working fine on iOS and Android.
I've used the following code :

Code: Select all

			ChartView chartView = new ChartView
			{
				VerticalOptions = LayoutOptions.FillAndExpand,
				HorizontalOptions = LayoutOptions.FillAndExpand,

				WidthRequest = 400,
				HeightRequest = 600,
			};

			chartView.Chart.Zoom.Active = true;
			chartView.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Auto;
			chartView.Chart.Series.Add(new Steema.TeeChart.Styles.Line());
			chartView.Chart[0].FillSampleValues(10);
			(chartView.Chart[0] as Steema.TeeChart.Styles.Line).LinePen.Width = 5;


			this.Content = new StackLayout
			{
				VerticalOptions = LayoutOptions.Start,
				Children =
				{
					chartView,
				},
			};

Could you please check if it's working for you using the same code ? and, in the case you still having problems, please send me a code example with whith I can try to reproduce the problem here.