Pending Review
Last Updated: 16 Sep 2019 12:34 by Rajendra
Created by: Rajendra
Comments: 0
Category: UI for Xamarin
Type: Bug Report
0
Hi Team,

I implemented radcheckbox in my xamarin telerik application. In which i select checkbox and afterword i post some data through webAPI. After completion of posting data i got response from server and my app got crashed and show me following stack trace data,

  at Telerik.XamarinForms.PrimitivesRenderer.iOS.CheckBoxRenderer.OnElementDetached (Telerik.XamarinForms.Primitives.RadCheckBox oldElement) [0x00025] in <f3723b4c1d3f406496717d69142c8f84>:0 

  at Telerik.XamarinForms.Common.iOS.IosRendererBase`2[S,T].Dispose (System.Boolean disposing) [0x0001f] in <81c15264f2164ef79a02e84ed79e8bfd>:0 

  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/Foundation/NSObject2.cs:147 

  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in <612eab01c6f546df983c0637f996b4cd>:0 

  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in <612eab01c6f546df983c0637f996b4cd>:0 

  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <612eab01c6f546df983c0637f996b4cd>:0 

  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/Foundation/NSObject2.cs:147 

  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (Xamarin.Forms.VisualElement view) [0x0003e] in <612eab01c6f546df983c0637f996b4cd>:0 

  at Xamarin.Forms.Platform.iOS.VisualElementPackager.OnChildRemoved (System.Object sender, Xamarin.Forms.ElementEventArgs e) [0x0000f] in <612eab01c6f546df983c0637f996b4cd>:0 

  at Xamarin.Forms.Element.OnChildRemoved (Xamarin.Forms.Element child) [0x00007] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:343 

  at Xamarin.Forms.VisualElement.OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:750 

  at Xamarin.Forms.Layout`1[T].OnChildRemoved (Xamarin.Forms.Element child) [0x00000] in <4542de7f0f544d51b46d63bd15d5f6b5>:0 

  at Xamarin.Forms.Layout.OnInternalRemoved (Xamarin.Forms.View view) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:464 

  at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0002b] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:427 

  at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)

  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in <a1ab7fc4639d4d84af41d68234158b1c>:0 

  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <a1ab7fc4639d4d84af41d68234158b1c>:0 

  at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) [0x00021] in <a1ab7fc4639d4d84af41d68234158b1c>:0 

  at System.Collections.ObjectModel.Collection`1[T].Remove (T item) [0x00027] in <939d99b14d934342858948926287beba>:0 

  at Xamarin.Forms.Layout.OnInternalAdded (Xamarin.Forms.View view) [0x0000b] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:451 

  at Xamarin.Forms.Layout.InternalChildrenOnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00078] in D:\a\1\s\Xamarin.Forms.Core\Layout.cs:443 

  at (wrapper delegate-invoke) <Module>.invoke_void_object_NotifyCollectionChangedEventArgs(object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)

  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in <a1ab7fc4639d4d84af41d68234158b1c>:0 

  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00009] in <a1ab7fc4639d4d84af41d68234158b1c>:0 

 

My xaml code,

<telerikControls:RadCheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" HorizontalOptions="Center" VerticalOptions="Center" />

 

My model class code,

private bool _isSelected;
        public bool IsSelected
        {
            get { return _isSelected; }
            set
            {
                _isSelected = value;
            }
        } 

Version information,

Xmarin form version : 4.1.0

Telerik UI version : 2019.2.802.1

iOS version 12.2

Pending Review
Last Updated: 05 Aug 2019 12:04 by ADMIN
Created by: jeljeljel
Comments: 1
Category: Installer and VS Extensions
Type: Bug Report
1

If you already have the Telerik.UI.for.Xamarin NuGet package installed to your projects and you use the Telerik Toolbox to add a control, it will break your references by duplicating references to the same assemblies (one for newly added assembly reference, one for existing package reference).

When you drag and drop in a control from the Toolbox, it will add the assembly references that point to the installation folder, even if I already have the NuGet Package referenced. This means that you would need to manually have to remove the Telerik assembly references every time you use the Toolbox. The problem is exasperated if the project structure doesn't support package reference (i.e. you cant tell which assembly to remove)

Ultimately, this means you can't use the Telerik UI for Xamarin Toolbox when using NuGet packages.

 

 

Pending Review
Last Updated: 18 Jul 2019 16:47 by ADMIN

Hi,

I rolled my app with the ListView out to production and are getting 8+ crashes a day from 140 users with the above issue. I have included a stack trace. I cannot find the steps to reproduce the issue in development. I have rolled back to using the native ListView as this does not crash the app.

Attached is an example project to see what I am doing in general terms, but I have not been able to reproduce this crash in it.

My guess is that a DataTemplate is not being cleaned up properly and when the data behind is changed it attempts to access the control that represented the data in the DataTemplate.

Regards
Anthony

Xamarin caused by: android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Android.Support.V7.Widget.SwitchCompat'.
Java.Interop.JniPeerMembers.AssertSelf(IJavaPeerable self)<9cb01525c8ce48268eb7a54e1b653d67>:0
Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod(string encodedMember, IJavaPeerable self, JniArgumentValue* parameters)<9cb01525c8ce48268eb7a54e1b653d67>:0
Android.Widget.CompoundButton.set_Checked(bool value)<83e36ed05052486983583851de96589e>:0
Xamarin.Forms.Platform.Android.AppCompat.SwitchRenderer.HandleToggled(object sender, EventArgs e)<e6fe81c4055a4db5bd435b7d12d894e3>:0
at Xamarin.Forms.Switch+<>c.<.cctor>b__14_0 (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x0001c] in <209f66ed8fe04cb6a815feb8c3b62471>:0
Xamarin.Forms.BindableObject.SetValueActual(BindableProperty property, BindableObject.BindablePropertyContext context, object value, bool currentlyApplying, SetValueFlags attributes, bool silent)<209f66ed8fe04cb6a815feb8c3b62471>:0
Xamarin.Forms.BindableObject.SetValueCore(BindableProperty property, object value, SetValueFlags attributes, BindableObject.SetValuePrivateFlags privateAttributes)<209f66ed8fe04cb6a815feb8c3b62471>:0
Xamarin.Forms.BindingExpression.ApplyCore(object sourceObject, BindableObject target, BindableProperty property, bool fromTarget)<209f66ed8fe04cb6a815feb8c3b62471>:0
Xamarin.Forms.BindingExpression.Apply(bool fromTarget)<209f66ed8fe04cb6a815feb8c3b62471>:0
Xamarin.Forms.BindingExpression.BindingExpressionPart.<PropertyChanged>b__49_0()<209f66ed8fe04cb6a815feb8c3b62471>:0
Java.Lang.Thread.RunnableImplementor.Run()<83e36ed05052486983583851de96589e>:0
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)<83e36ed05052486983583851de96589e>:0
at (wrapper dynamic-method) System.Object.31(intptr,intptr)
mono.java.lang.RunnableImplementor.n_run(Native Method)
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:145
android.app.ActivityThread.main()ActivityThread.java:6914
java.lang.reflect.Method.invoke(Native Method)
java.lang.reflect.Method.invoke()Method.java:372
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:1404
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:1199

 

Pending Review
Last Updated: 27 Jun 2019 15:01 by ADMIN

Hi!

We are using your component SlideView on Main Page of our app. Unfortunately when we upgraded Xamarin Forms to 4.0 version we are facing exception - System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer from native handle 0x75 (key_handle 0x60775bd). ---> System.MissingMethodException: No constructor found for Telerik.XamarinForms.PrimitivesRenderer.Android.SlideViewRenderer::.ctor(System.IntPtr, Android.Runtime.JniHandleOwnership) ---> Java.Interop.JavaLocationException: Exception of type 'Java.Interop.JavaLocationException' was thrown.

 

Steps to reproduce:

1) Open app with SlideView and BottomNavigationBar

2) Navigate to any another tab

3) Back to main page tab

4) App is crashing with this exception.

 

It could be important information to reproduce this but it doesn't happend on every tab. We have five tabs in app (Main Page and 4 additional) and it crashes only on navigation between main page and last tab.

I guess that could happend when SlideView disposes or reloads.

Pending Review
Last Updated: 19 Jun 2019 14:03 by ADMIN
Hello, 

i have integrated data form in our application, it's working fine in android, ios simulator, when we tried it in ios device (iphone XR) its load and views are good but when we clicked on text editor inside of data forms we face app crash.