This is a migrated thread and some comments may be shown as answers.
Crash when Russian culture is set
4 Answers 18 Views
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Vitaly asked on 13 Jun 2017, 09:57 PM

Hi,

 

Bar char with tooltips. It works fine with English but crashes with Russian and probably other cultures using comma as decimals separator.

Culture is set like this:

var cultureInfo = new CultureInfo("ru");

CultureInfo.DefaultThreadCurrentUICulture = cultureInfo;
CultureInfo.DefaultThreadCurrentCulture = cultureInfo;

 

Here is the exception details:

AndroidPropertyNameDataPointBinding.java

java.lang.NumberFormatException: Invalid long: "8145,17"

 

java.lang.Long.invalidLong Long.java:124
java.lang.Long.parse Long.java:363
java.lang.Long.parseLong Long.java:353
java.lang.Long.parseLong Long.java:321
java.math.BigDecimal.<init> BigDecimal.java:344
java.math.BigDecimal.<init> BigDecimal.java:425
md55d97e70f294cadecf8b72d95928fece7.AndroidPropertyNameDataPointBinding.n_getValue AndroidPropertyNameDataPointBinding.java
md55d97e70f294cadecf8b72d95928fece7.AndroidPropertyNameDataPointBinding.getValue AndroidPropertyNameDataPointBinding.java:30
com.telerik.widget.chart.engine.databinding.datasources.CategoricalSeriesDataSource.initializeBinding CategoricalSeriesDataSource.java:60
com.telerik.widget.chart.engine.databinding.datasources.ChartSeriesDataSource.generateDataPoint ChartSeriesDataSource.java:214
com.telerik.widget.chart.engine.databinding.datasources.ChartSeriesDataSource.bindCore ChartSeriesDataSource.java:184
com.telerik.widget.chart.engine.databinding.datasources.ChartSeriesDataSource.bind ChartSeriesDataSource.java:280
com.telerik.widget.chart.engine.databinding.datasources.ChartSeriesDataSource.rebind ChartSeriesDataSource.java:125
com.telerik.widget.chart.engine.databinding.datasources.ChartSeriesDataSource.setItemsSource ChartSeriesDataSource.java:92
com.telerik.widget.chart.visualization.common.ChartSeries.initDataBinding ChartSeries.java:628
com.telerik.widget.chart.visualization.cartesianChart.series.categorical.CategoricalSeriesBase.initDataBinding CategoricalSeriesBase.java:89
com.telerik.widget.chart.visualization.cartesianChart.series.categorical.CategoricalSeries.initDataBinding CategoricalSeries.java:66
com.telerik.widget.chart.visualization.common.ChartSeries.setData ChartSeries.java:415
com.telerik.widget.chart.visualization.cartesianChart.series.categorical.BarSeries.setData BarSeries.java:527
mono.java.lang.RunnableImplementor.n_run RunnableImplementor.java
mono.java.lang.RunnableImplementor.run RunnableImplementor.java:30
android.os.Handler.handleCallback Handler.java:739
android.os.Handler.dispatchMessage Handler.java:95
android.os.Looper.loop Looper.java:148
android.app.ActivityThread.main ActivityThread.java:5417
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:726
com.android.internal.os.ZygoteInit.main ZygoteInit.java:616

 

Thanks

Vitaly

4 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 16 Jun 2017, 12:55 PM
Hello Vitaly,

Thank you for contacting us.

I've tried a few different cultures but unfortunately I wasn't able to reproduce the issue.
It will be very helpful if you can provide simple working project or more information about the setup of your chart.

Looking forward for your reply.

Regards,
Nikolay
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Vitaly
Top achievements
Rank 1
answered on 16 Jun 2017, 07:33 PM

Hi Nikolay,

 

Here is the small demo reproducing the crash: 

https://github.com/VitalyKnyazev/CrashingChart

 

See line 14 in MainActivity.cs, using latest controls v2017.2.614.234

 

Thanks

Vitaly

0
Vitaly
Top achievements
Rank 1
answered on 16 Jun 2017, 07:41 PM

Actually, I have just fixed the issue changing decimal to double in DataPoint.

But still please take a look.

 

Thanks

Vitaly

0
Accepted
Nikolay
Telerik team
answered on 19 Jun 2017, 09:24 AM
Hello Vitaly,

Thank you for sending a demo project.

I was able to reproduce the issue now. I have logged it in our backlog. Here is a link to the public item in our Feedback Portal where you can track the progress on the matter.

I have updated your Telerik points as a token of our appreciation for reporting the bug.

Let us know if we can assist you further.

Regards,
Nikolay
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Vitaly
Top achievements
Rank 1
Share this question
or