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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TLC
Newbie
Newbie
Posts: 61
Joined: Mon Apr 08, 2019 12:00 am

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

Post by TLC » Mon Oct 07, 2019 9:54 pm

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 1692 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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Wed Oct 09, 2019 1:38 pm

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.

TLC
Newbie
Newbie
Posts: 61
Joined: Mon Apr 08, 2019 12:00 am

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

Post by TLC » Wed Oct 09, 2019 7:11 pm

4.2019.9.10 works as expected in Android. Haven't tested iOS yet.

TLC
Newbie
Newbie
Posts: 61
Joined: Mon Apr 08, 2019 12:00 am

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

Post by TLC » Fri Nov 08, 2019 3:21 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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » 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 ?

TLC
Newbie
Newbie
Posts: 61
Joined: Mon Apr 08, 2019 12:00 am

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

Post by TLC » Mon Dec 16, 2019 9:13 pm

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Tue Dec 17, 2019 9:39 am

Ok, let me do some tests here and back to you asap.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

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

Post by Pep » Fri Dec 20, 2019 5:13 pm

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.

Post Reply