Random error in IOS 10+

4 posts, 0 answers
  1. Gabriel
    Gabriel avatar
    3 posts
    Member since:
    Jul 2017

    Posted 30 Oct 2017 Link to this post

    Hi guys... I am having this error randomly in iOS 10+

     

    'System.ObjectDisposedException: Cannot access a disposed object.' Xamarin Exception Stack: Object name: 'TKExtendedChart'. at Foundation.NSObject.get_SuperHandle () <0x101117dd0 + 0x000b0> in <acc94c10bcf54981a7b27c2a0c5b6c97#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at TelerikUI.TKChart.get_WeakDataSource () <0x101819340 + 0x00057> in <ec9f5a4c45f14a83908825860183b239#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at TelerikUI.TKChart.get_DataSource () <0x101818520 + 0x0001f> in <ec9f5a4c45f14a83908825860183b239#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateItemsSource (S sourceOwner, T targetOwner, TelerikUI.TKChart targetChart) <0x1016edca0 + 0x00033> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateSeriesProperties (System.String propertyName, S sourceOwner, T targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) <0x1016ed930 + 0x00193> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.ChartRenderer.iOS.CategoricalSeriesAdapter`1[TSeries].UpdateSeriesProperties (System.String propertyName, TSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) <0x1016ed010 + 0x00043> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.ChartRenderer.iOS.CategoricalStrokedSeriesAdapter`1[TSeries].UpdateSeriesProperties (System.String propertyName, TSeries sourceOwner, TelerikUI.TKChartSeries targetOwner, Telerik.XamarinForms.Chart.RadChartBase sourceChart, TelerikUI.TKChart targetChart) <0x1016ecad0 + 0x00047> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.ChartRenderer.iOS.ChartSeriesAdapter`2[S,T].UpdateCore (S sourceOwner, T targetOwner, System.String propertyName, Telerik.XamarinForms.Common.IParentElement sourceOwnerRoot, System.Object targetOwnerRoot) <0x1016ed640 + 0x000db> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.Chart.ChartElementFacadeAdapter`2[S,T].Update (System.Object sourceOwner, System.Object targetOwner, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) <0x1016dc410 + 0x0013b> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.Common.XamarinToNativeControlExtensions.Update[T,K] (T nativeElement, K xfЕlement, System.String propertyName, System.Object sourceOwnerRoot, System.Object targetOwnerRoot) <0x101725c50 + 0x000cb> in <8692e5a072af4ceea95672092fbac1f7#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Telerik.XamarinForms.Chart.ChartElement.OnPropertyChanged (System.String propertyName) <0x1016dc2b0 + 0x0006b> in <1898247ef2374cc393b60a9b2deb4dca#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.BindableObject+SetValueFlags attributes, System.Boolean silent) <0x100ed2d20 + 0x00247> in <42fe931976e64c199eddde45068a6c09#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) <0x100ed1c30 + 0x00503> in <42fe931976e64c199eddde45068a6c09#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) <0x100ed8960 + 0x005bf> in <42fe931976e64c199eddde45068a6c09#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) <0x100ed85f0 + 0x0008f> in <42fe931976e64c199eddde45068a6c09#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () <0x100edb3a0 + 0x00023> in <42fe931976e64c199eddde45068a6c09#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at Foundation.NSAsyncActionDispatcher.Apply () <0x1011139f0 + 0x00023> in <acc94c10bcf54981a7b27c2a0c5b6c97#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) <0x10112faa0 + 0x0002b> in <acc94c10bcf54981a7b27c2a0c5b6c97#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x10112f9e0 + 0x000ab> in <acc94c10bcf54981a7b27c2a0c5b6c97#ebe182ffb1c5f4cedda65a7e367c6d1e>:0 at ADF.iOS.Application.Main (System.String[] args) <0x10039e840 + 0x00023> in <e05c11a796ba45e79ced5211e8e3b0dd#ebe182ffb1c5f4cedda65a7e367c6d1e>:0

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 02 Nov 2017 Link to this post

    Hello, Gabriel,

    Can you please provide more information on your setup so we can consider what might be causing it? Do you observe it when you are using a specific feature of the Chart? Any additional information will be appreciated so we can narrow down what might be invoking it and investigate it from our side.

    Regards,
    Stefan Nenchev
    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. Prasanth
    Prasanth avatar
    1 posts
    Member since:
    Sep 2018

    Posted 30 Oct 2018 in reply to Stefan Nenchev Link to this post

    Hi,

    Am also getting the same issue and the letting the app to crash when using the RadCartesianChart. Need quick help on this

  4. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1195 posts

    Posted 30 Oct 2018 Link to this post

    Hi Prasanth,

    As Stefan mentioned, we cannot determine what the problem is until we've been able to investigate directly. The stack trace alone is not enough to identify the issue or offer a solution, we'll need to see the code and have some steps to reproduce the problem.


    I see that your colleague, Abhishek, has already opened a ticket for this (Ticket #1348783), please have Abhishek reply to the ticket with the following information:

    1 - All the related code for the Chart

    Please also include the surrounding code as this is critical when it comes to issues like this. For example,  is this in a ListView, or on a ContentPage? Is it dynamically created? 

    2 - A summary of the steps needed to reproduce the exception. 

    How is the chart being disposed? Is Xamarin.Forms doing it when the page is removed from the backstack? Or is there logic that manually removes it from the Visual Tree (e.g. ContentView replacements)?


    Thank you for your understanding an patience in this matter. Having the above information will allow us to give you the fastest and most reliable resolution.



    Regards,
    Lance | Tech Support Engineer, Sr.
    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