Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Disposed object: TextView

$
0
0

Hey there, my application is getting an exception that is extremely hard to get the context: Xamarin caused by: android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Xamarin.Forms.Platform.Android.FormsTextView'.

the problem is that it isn't possible to reproduce it, since it occurs randomly, and I have no clue checking the stacktrace. Any ideas?

Xamarin caused by: android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Xamarin.Forms.Platform.Android.FormsTextView'.
  at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00030] in <5800ab4bd995452eabb9d18433425a54>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00001] in <5800ab4bd995452eabb9d18433425a54>:0 
  at Android.Widget.TextView.set_TextFormatted (Java.Lang.ICharSequence value) [0x00028] in <cff9eecbeb2944468e139371fc508f11>:0 
  at Android.Widget.TextView.set_Text (System.String value) [0x00013] in <cff9eecbeb2944468e139371fc508f11>:0 
  at Xamarin.Forms.Platform.Android.LabelRenderer.UpdateText () [0x00098] in <d572ae0ccf89437fad1de1370c623a06>:0 
  at Xamarin.Forms.Platform.Android.LabelRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x000c5] in <d572ae0ccf89437fad1de1370c623a06>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void_object_PropertyChangedEventArgs (object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>: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) [0x000fb] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0014b] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x0020c] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindingExpression.Apply (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property) [0x0006b] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Binding.Apply (System.Object newContext, Xamarin.Forms.BindableObject bindObj, Xamarin.Forms.BindableProperty targetProperty) [0x00042] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.ApplyBindings (System.Object oldContext, System.Boolean skipBindingContext) [0x0003b] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.ApplyBindings (System.Object oldContext) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x0005a] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00021] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.View.OnBindingContextChanged () [0x00042] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetInheritedBindingContext (Xamarin.Forms.BindableObject bindable, System.Object value) [0x00061] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Element.SetChildInheritedBindingContext (Xamarin.Forms.Element child, System.Object context) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Element.OnBindingContextChanged () [0x00021] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.Cell.OnBindingContextChanged () [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.BindingContextPropertyBindingPropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldvalue, System.Object newvalue) [0x0001b] in <7b0368eb3d0f405da776a09e3171532a>: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) [0x0010e] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0014b] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0005f] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.BindableObject.set_BindingContext (System.Object value) [0x00000] in <7b0368eb3d0f405da776a09e3171532a>:0 
  at Xamarin.Forms.TemplatedItemsList`2+<UnhookItem>d__140[TView,TItem].MoveNext () [0x000a7] in <7b0368eb3d0f405da776a09e3171532a>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <013132b061254814bfe3870c86585324>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__1 (System.Object state) [0x00000] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x0000e] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in <013132b061254814bfe3870c86585324>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <013132b061254814bfe3870c86585324>:0 

Viewing all articles
Browse latest Browse all 77050

Trending Articles