Crash when Russian culture is set

5 posts, 1 answers
  1. Vitaly
    Vitaly avatar
    6 posts
    Member since:
    Oct 2012

    Posted 13 Jun Link to this post

    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

  2. Nikolay
    Admin
    Nikolay avatar
    15 posts

    Posted 16 Jun Link to this post

    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
  3. Vitaly
    Vitaly avatar
    6 posts
    Member since:
    Oct 2012

    Posted 16 Jun in reply to Nikolay Link to this post

    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

  4. Vitaly
    Vitaly avatar
    6 posts
    Member since:
    Oct 2012

    Posted 16 Jun in reply to Vitaly Link to this post

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

    But still please take a look.

     

    Thanks

    Vitaly

  5. Answer
    Nikolay
    Admin
    Nikolay avatar
    15 posts

    Posted 19 Jun Link to this post

    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
Back to Top