We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

System.ObjectDisposedException: Cannot access a disposed object. Object name: 'SFCircularGauge'.

Hi,

One of my tester found an error, but it don't happens always, so I can't reproduce here.

It happens when it update a property binded to a needle on SfCircularGauge. 
This gauges have 2 needles.

Bellow is the stack error catch by HockeyApp.

Maybe it's related to this error:
https://www.syncfusion.com/forums/131464/system-objectdisposedexception-cannot-access-a-disposed-object-object-name-39sfnavigationdrawer39

Thanks,
Joao

System.ObjectDisposedException: Cannot access a disposed object.  Object name: 'SFCircularGauge'.
  at Foundation.NSObject.get_SuperHandle () <0x100ad9e10 + 0x000b0> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at UIKit.UIView.get_Frame () <0x100a9ea00 + 0x00083> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularGauge.get_Frame () <0x101273210 + 0x0001b> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularGauge.setValue (System.nfloat value, System.Int32 needleIndex, System.Int32 scaleIndex) <0x10127dfe0 + 0x00083> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularGauge+<setValue>c__AnonStorey1.<>m__0 () <0x10132cd80 + 0x00023> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at ObjCRuntime.Trampolines+SDAction.Invoke (System.IntPtr block) <0x100b000b0 + 0x0005b> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDAction:Invoke (intptr)
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) ObjCRuntime.Messaging:objc_msgSend (intptr,intptr,double,double,ulong,intptr,intptr)
  at UIKit.UIView.AnimateKeyframes (System.Double duration, System.Double delay, UIKit.UIViewKeyframeAnimationOptions options, System.Action animations, UIKit.UICompletionHandler completion) <0x100a9c1a0 + 0x00113> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularGauge.setValue (System.nfloat value, Foundation.NSString key, System.Boolean animated, System.Int32 pointerIndex, System.Int32 scaleIndex, System.nfloat pointerValue) <0x10127f060 + 0x00247> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularPointer.setValue (System.nfloat value) <0x1012804f0 + 0x0017b> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.iOS.SFCircularPointer.set_Value (System.nfloat value) <0x10127ffd0 + 0x0001f> in <2f82e26d061348e78f425a8524c2a8d4#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.XForms.iOS.PointerMapping.OnPointerPropertiesChanged (System.String propertyName, Syncfusion.SfGauge.XForms.NeedlePointer formPointer, Syncfusion.SfGauge.iOS.SFNeedlePointer nativePointer) <0x101260540 + 0x00087> in <1e565a9d2e9241cb9583a4173f856caa#bffaabef0abd14764495ed5c7d77b857>:0 
  at Syncfusion.SfGauge.XForms.iOS.ScaleMapping.FormPointer_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) <0x101262940 + 0x00163> in <1e565a9d2e9241cb9583a4173f856caa#bffaabef0abd14764495ed5c7d77b857>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) <0x1003dc930 + 0x0007f> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>: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) <0x1003df220 + 0x00247> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>:0 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) <0x1003de120 + 0x00517> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>:0 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) <0x1003e4e60 + 0x005bf> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>:0 
  at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) <0x1003e4af0 + 0x0008f> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>:0 
  at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () <0x1003e78a0 + 0x00023> in <7fc7c54b5e2d419395df064dc5addbb6#bffaabef0abd14764495ed5c7d77b857>:0 
  at Foundation.NSAsyncActionDispatcher.Apply () <0x100ad6b00 + 0x00023> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>: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) <0x100af3ac0 + 0x0002b> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x100af3a00 + 0x000ab> in <ef46365b0eaf490385df9fbc37d3de31#bffaabef0abd14764495ed5c7d77b857>:0 
  at Rabbit2.iOS.Application.Main (System.String[] args) <0x1000a6c90 + 0x00023> in <80fbcc5c502a4a1faf6b354a88f1a85a#bffaabef0abd14764495ed5c7d77b857>:0

1 Reply

AK Ashwin Kumaravel Syncfusion Team August 25, 2017 07:39 AM UTC

Hi Joao,

Thanks for using Syncfusion products,

We have validated your stack trace at our end but we are unable to reproduce the scenario at our end. We have created a simple sample with circularGuage and bounded random values with pointers.And in a button click we have removed the gauge from the view still we are not able to reproduce the same issue.

Can you please download the testing sample from the below link?

Sample Link- http://www.syncfusion.com/downloads/support/forum/132300/ze/CIrCulargaugeTest-1924510609  

Since the issue is not reproduced at our end, we would like to know the following details, which will helpful in further analysis and to provide the solution sooner.

- Modify the attached sample to replicate your scenario
- Or provide your sample along with replication steps.

Regards,
Ashwin
 


Loader.
Live Chat Icon For mobile
Up arrow icon