Declined
Last Updated: 07 Apr 2020 07:58 by ADMIN
Rajendra
Created on: 16 Sep 2019 12:34
Category: UI for Xamarin
Type: Bug Report
2
Checkbox crashing issue in iOS.
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

6 comments
ADMIN
Yana
Posted on: 07 Apr 2020 07:58

I've updated the status of this item to "Declined' due to inactivity.  If you still experience such kind of issues, please send a support ticket with more details on the exact scenario you have.

Regards,
Yana
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Lance | Manager Technical Support
Posted on: 22 Jan 2020 22:14

Hi Ryan,

I would need your code to offer any direct suggestions.  I've reviewed your account and see that you have a Priority Support license. If you open a priority Support Ticket (select UI for Xamarin) and share your code with us, we can directly investigate to offer a solution.

Test

In the meantime, I did attempt to replicate the behavior but was not successful. It works as expected in a RadPopup even after open and closing many times:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:primitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
             x:Class="CheckBoxTest.Portable.MainPage">

    <Grid>
        <Button HorizontalOptions="Center"
                VerticalOptions="Start"
                Text="Open Popup"
                Clicked="ShowPopup">
            <primitives:RadPopup.Popup>
                <primitives:RadPopup x:Name="popup"
                                     IsModal="True"
                                     OutsideBackgroundColor="#6F000000" >
                    <primitives:RadBorder CornerRadius="8"
                                          BackgroundColor="White">
                        <StackLayout>
                            <StackLayout Padding="20"
                                         Spacing="5"
                                         Orientation="Horizontal">
                                <primitives:RadCheckBox x:Name="checkbox"
                                                        IsChecked="False" />
                                <Label Text="{Binding Source={x:Reference checkbox}, Path=IsChecked}" />
                            </StackLayout>
                            <Button Text="Close Popup"
                                    Clicked="ClosePopup_Clicked" />
                        </StackLayout>
                    </primitives:RadBorder>
                </primitives:RadPopup>
            </primitives:RadPopup.Popup>
        </Button>
    </Grid>
</ContentPage>

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
    }

    private void ShowPopup(object sender, EventArgs e)
    { 
        popup.IsOpen = !popup.IsOpen;
    }

    private void ClosePopup_Clicked(object sender, EventArgs e)
    {
        popup.IsOpen = !popup.IsOpen;
    }
}

We will see your ticket come in and either I or one of my colleagues will investigate further.

Note: If you are using XF 4.2 I recommend updating to 4.3+ or downgrading to 4.1.0.581479. Xamarin.Forms 4.2 has several issues regarding UI elements and navigation.

Regards,
Lance | Team Lead - US DevTools Support
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
Ryan
Posted on: 20 Jan 2020 15:15

I have the same problem, in my case, I do have the checkboxes on a RadPopup. I was wondering if I have to make any particular action to dispose of the checkboxes or Radpopup in general. I think the error comes up when I want to open up the RadPopup for the second time.

I appreciate any suggestions.

ADMIN
Didi
Posted on: 11 Oct 2019 14:39

Hi,

Thank you for the provided details.

I would need more details on the scenario you have in order to reproduce and research the issue. Could you please send us a sample where the behavior occurs? Once we are aware of the exact setup you have and reproduce the issue on our side, then we will be able to investigate it further and provide more information on the matter.

If you don't want to attach the sample to the Public Feedback portal, please open a support ticket and attach it there.

Thank you for the understanding and I look forward to your reply.

Regards,
Didi
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
x
Posted on: 10 Oct 2019 17:19

I have the same Error.

The error happens when I activate the checkbox in a view and then move back twice in the navigation.

 

Xam Forms Version: 4.2.0.848062

Telerik Version: 2019.3.1004.410

ADMIN
Didi
Posted on: 18 Sep 2019 11:14

Hi Rajendra,

Thank you for the provided information and the RadCheckBox definition.

I have tried to reproduce the exception on my side but I couldn't. In this case could you please share the following details:

- the page where the RadCheckBox is defined?
- What should happen after the data is posted? - navigate to a new page, or create a new one, or reload the current page?
- the exact version of Xamarin.Forms used in the project.

Thank you in advance.

Regards,
Didi
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