My app is crashing when I try to open a page that contains a SfChart only when running a release build. A debug build with the same data works just fine.
I'm using the latest stable version of Syncfusion libraries (18.1.0.54) and latest stable Xamarin.Forms (4.6.0.800).
Relase mode is configure to link only SDK Assemblies and Code shrinker is disabled. I've tried even with a blank chart as shown on Getting started page but app still crashs, so that plus the fact that it works on Debug mode tells me there is nothing wrong with my data.
Chart is inside a SfTabView, below is a simplyfied XAML snip:
<ContentPage
...
xmlns:chart="clr-namespace:Syncfusion.SfChart.XForms;assembly=Syncfusion.SfChart.XForms"
...
>
<ContentPage.Content>
<tabView:SfTabView
BackgroundColor="{StaticResource CellBackground}"
DisplayMode="ImageWithText"
EnableSwiping="False"
OverflowMode="Scroll"
TabHeaderBackgroundColor="{StaticResource LightGrey}"
TabHeaderPosition="Top"
TabHeight="60"
VisibleHeaderCount="2">
<tabView:SfTabItem
Title="Track"
FontIconFontFamily="{StaticResource FontAwesomeFamily}"
FontIconFontSize="25"
IconFont="{x:Static control:FontAwesomeIcons.Map}"
SelectionColor="{StaticResource DarkOrange}"
TitleFontSize="20">
<tabView:SfTabItem.Content>
<view:MapView BindingContext="{Binding BindingContext, Mode=TwoWay, Source={Reference page}}" />
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
<tabView:SfTabItem
Title="Statistics"
FontIconFontFamily="{StaticResource FontAwesomeFamily}"
FontIconFontSize="25"
IconFont="{x:Static control:FontAwesomeIcons.ChartLine}"
SelectionColor="{StaticResource DarkOrange}"
TitleFontSize="20">
<tabView:SfTabItem.Content>
<ScrollView>
<Grid Padding="20,0,20,0">
...
<chart:SfChart Grid.Row="8" Grid.ColumnSpan="3">
<chart:SfChart.PrimaryAxis>
<chart:DateTimeAxis>
<chart:DateTimeAxis.Title>
<chart:ChartAxisTitle Text="Time" />
</chart:DateTimeAxis.Title>
</chart:DateTimeAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis>
<chart:NumericalAxis.Title>
<chart:ChartAxisTitle Text="Speed (km/hr)" />
</chart:NumericalAxis.Title>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis>
<chart:SfChart.Series>
<chart:LineSeries
ItemsSource="{Binding SpeedChartItems}"
XBindingPath="CreatedDateTimeUtc"
YBindingPath="SpeedKm" />
</chart:SfChart.Series>
</chart:SfChart>
</Grid>
</ScrollView>
</tabView:SfTabItem.Content>
</tabView:SfTabItem>
</tabView:SfTabView>
</ContentPage.Content>
</control:BaseNavigationPage>
And stack trace attched
Attachment:
SfChartcrash_e1759b7a.zip