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

System.ObjectDisposedException: Cannot access a disposed object - SfCircularGauge


Mobile application has hit a runtime error as below.

Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Com.Syncfusion.Gauges.SfCircularGauge.SfCircularGauge'.

May I know how to solve this error? Please let me know if you need more information from me. Thanks!


3 Replies

AK Ashwin Kumaravel Syncfusion Team August 7, 2017 01:03 PM UTC

Hi Chuah,

Thanks for using Syncfusion products,

We have validated your query and we are unable to reproduce the reported issue"System.ObjectDisposedException: Cannot access a disposed object" at our end.So can you please share your reproducing sample or replication procedure so it will be very helpful for us to validate on this and provide you a better solution.

Regards,
Ashwin.k


BA Balakrishnan December 6, 2017 02:15 PM UTC

Hi Guys,

I am also struck with the same error, I got this error while navigating from a page having Syncfusion gauge to another page. I am using master details page. It is not showing any details. This is the error message got it in Hockey app crash report.

Xamarin caused by: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
Com.Syncfusion.Gauges.SfCircularGauge.SfCircularGauge.Dispose(bool disposing)<7c0e9d154eba4c919dc94c7f8f2f022a>:0
Java.Lang.Object.Dispose()<2cbc8bc37f564147a10de1abb0c4e399>:0
Xamarin.Forms.Platform.Android.ViewRenderer<TViewTNativeView>.Dispose(bool disposing)<7fcbd59ddd2f4ebfb60e22f10868ab72>:0
Java.Lang.Object.Dispose()<2cbc8bc37f564147a10de1abb0c4e399>:0
Xamarin.Forms.Platform.Android.VisualElementRenderer<TElement>.Dispose(bool disposing)<7fcbd59ddd2f4ebfb60e22f10868ab72>:0
Xamarin.Forms.Platform.Android.PageRenderer.Dispose(bool disposing)<7fcbd59ddd2f4ebfb60e22f10868ab72>:0
Java.Lang.Object.Dispose()<2cbc8bc37f564147a10de1abb0c4e399>:0
Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnDestroyView()<7fcbd59ddd2f4ebfb60e22f10868ab72>:0
Android.Support.V4.App.Fragment.n_OnDestroyView(IntPtr jnienvIntPtr native__this)<7a2a36256f1648ecbd0c15a75bc5a349>:0
at (wrapper dynamic-method) System.Object:bfdc0062-9df7-49d5-897a-ae391ada8a88 (intptr,intptr)
md5270abb39e60627f0f200893b490a1ade.FragmentContainer.n_onDestroyView(Native Method)
md5270abb39e60627f0f200893b490a1ade.FragmentContainer.onDestroyView()FragmentContainer.java:59
android.support.v4.app.Fragment.performDestroyView()Fragment.java:2410
android.support.v4.app.FragmentManagerImpl.moveToState()FragmentManager.java:1378
android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState()FragmentManager.java:1523
android.support.v4.app.FragmentManagerImpl.moveToState()FragmentManager.java:1598
android.support.v4.app.FragmentManagerImpl.executeOpsTogether()FragmentManager.java:2145
android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps()FragmentManager.java:2092
android.support.v4.app.FragmentManagerImpl.execPendingActions()FragmentManager.java:1998
android.support.v4.app.FragmentManagerImpl.executePendingTransactions()FragmentManager.java:762
md5b60ffeb829f638581ab2bb9b1a7f4f3f.InnerGestureListener.n_onSingleTapUp(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.InnerGestureListener.onSingleTapUp()InnerGestureListener.java:79
android.view.GestureDetector.onTouchEvent()GestureDetector.java:640
md5b60ffeb829f638581ab2bb9b1a7f4f3f.LabelRenderer.n_onTouchEvent(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.LabelRenderer.onTouchEvent()LabelRenderer.java:45
android.view.View.dispatchTouchEvent()View.java:11721
android.view.ViewGroup.dispatchTransformedTouchEvent()ViewGroup.java:2955
android.view.ViewGroup.dispatchTouchEvent()ViewGroup.java:2636
md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.n_dispatchTouchEvent(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.dispatchTouchEvent()VisualElementRenderer_1.java:64
android.view.ViewGroup.dispatchTransformedTouchEvent()ViewGroup.java:2961
android.view.ViewGroup.dispatchTouchEvent()ViewGroup.java:2650
md5b60ffeb829f638581ab2bb9b1a7f4f3f.Platform_DefaultRenderer.n_dispatchTouchEvent(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.Platform_DefaultRenderer.dispatchTouchEvent()Platform_DefaultRenderer.java:54
android.view.ViewGroup.dispatchTransformedTouchEvent()ViewGroup.java:2961
android.view.ViewGroup.dispatchTouchEvent()ViewGroup.java:2650
md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.n_dispatchTouchEvent(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.VisualElementRenderer_1.dispatchTouchEvent()VisualElementRenderer_1.java:64
android.view.ViewGroup.dispatchTransformedTouchEvent()ViewGroup.java:2961
android.view.ViewGroup.dispatchTouchEvent()ViewGroup.java:2650
md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.n_dispatchTouchEvent(Native Method)
md5b60ffeb829f638581ab2bb9b1a7f4f3f.PlatformRenderer.dispatchTouchEvent()PlatformRenderer.java:55
android.view.ViewGroup.dispatchTransformedTouchEvent()ViewGroup.java:2961
android.view.ViewGroup.dispatchTouchEvent()ViewGroup.java:2650
com.android.internal.policy.DecorView.superDispatchTouchEvent()DecorView.java:445
com.android.internal.policy.PhoneWindow.superDispatchTouchEvent()PhoneWindow.java:1828
android.app.Activity.dispatchTouchEvent()Activity.java:3292
android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent()WindowCallbackWrapper.java:71
com.android.internal.policy.DecorView.dispatchTouchEvent()DecorView.java:407
android.view.View.dispatchPointerEvent()View.java:11960
android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent()ViewRootImpl.java:4776
android.view.ViewRootImpl$ViewPostImeInputStage.onProcess()ViewRootImpl.java:4590
android.view.ViewRootImpl$InputStage.deliver()ViewRootImpl.java:4128
android.view.ViewRootImpl$InputStage.onDeliverToNext()ViewRootImpl.java:4181
android.view.ViewRootImpl$InputStage.forward()ViewRootImpl.java:4147
android.view.ViewRootImpl$AsyncInputStage.forward()ViewRootImpl.java:4274
android.view.ViewRootImpl$InputStage.apply()ViewRootImpl.java:4155
android.view.ViewRootImpl$AsyncInputStage.apply()ViewRootImpl.java:4331
android.view.ViewRootImpl$InputStage.deliver()ViewRootImpl.java:4128
android.view.ViewRootImpl$InputStage.onDeliverToNext()ViewRootImpl.java:4181
android.view.ViewRootImpl$InputStage.forward()ViewRootImpl.java:4147
android.view.ViewRootImpl$InputStage.apply()ViewRootImpl.java:4155
android.view.ViewRootImpl$InputStage.deliver()ViewRootImpl.java:4128
android.view.ViewRootImpl.deliverInputEvent()ViewRootImpl.java:6642
android.view.ViewRootImpl.doProcessInputEvents()ViewRootImpl.java:6616
android.view.ViewRootImpl.enqueueInputEvent()ViewRootImpl.java:6577
android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent()ViewRootImpl.java:6745
android.view.InputEventReceiver.dispatchInputEvent()InputEventReceiver.java:185
android.os.MessageQueue.nativePollOnce(Native Method)
android.os.MessageQueue.next()MessageQueue.java:325
android.os.Looper.loop()Looper.java:142
android.app.ActivityThread.main()ActivityThread.java:6541
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run()Zygote.java:240
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:767


SG Sri Gayathri Gopalakrishnan Syncfusion Team December 7, 2017 12:35 PM UTC

Hi Balakrishnan,

Thanks for using Syncfusion products,

A support incident has been created already under your account and we have updated details in the incident.

Please get back to us if you need any other assistance.

Regards,
Sri Gayathri. G 


Loader.
Up arrow icon