System.ObjectDisposedException Cannot access a disposed object. Xamarin.Forms.Platform.Android.Image

Hi Xamarian,

Hope you all are doing good.

Please help me out . I'm facing one issue with grouped Listview . i.e.

System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.ImageRenderer'.

Below is my UI code

 <ListView x:Name="lvFilterList" 
                              Grid.Row="1"
                              VerticalOptions="FillAndExpand"
                              HasUnevenRows="True" 
                              Margin="10,10,10,0" 
                              CachingStrategy = "RecycleElement"
                              SeparatorVisibility="None"
                              IsGroupingEnabled="True"
                              GroupDisplayBinding="{Binding FacetName}"
                              SeparatorColor="{StaticResource AppSecondaryTextColor}"                      
                              ItemsSource="{Binding FacetList}"
                              >
                <ListView.Behaviors>
                    <b:EventToCommandBehavior EventName="ItemTapped"
                                              Converter="{StaticResource SelectedItemConverter}"
                                              Command="{Binding ItemTappedCommand}">

                    </b:EventToCommandBehavior>
                </ListView.Behaviors>
                <ListView.GroupHeaderTemplate>
                    <DataTemplate>
                        <ViewCell >
                            <ViewCell.Height>
                                <OnPlatform x:TypeArguments="x:Double" iOS="60"/>
                            </ViewCell.Height>
                            <Frame  IsClippedToBounds="True"
                                HasShadow="True"
                                Margin="{OnPlatform Android='0,3',iOS='0,0,0,6'}"
                                Padding="0"
                                CornerRadius="3"
                                BackgroundColor="{StaticResource AppSubThemeColor}">
                                <Frame IsClippedToBounds="True"
                                   HasShadow="True"
                                   BorderColor="{Binding GroupSelectedColor}"
                                   BackgroundColor="{Binding GroupSelectedColor}"
                                   Padding="10"
                                   CornerRadius="0"
                                   Margin="0">
                                    <StackLayout Spacing="0"
                                         Orientation="Horizontal">
                                        <!--<ff:CachedImage x:Name="ffStateIicon"
                                                HeightRequest="20"
                                                WidthRequest="20"
                                                Margin="5"
                                                VerticalOptions="CenterAndExpand"
                                                HorizontalOptions="Start"
                                                Source="{Binding StateIcon}"/>-->
                                        <Image x:Name="ffStateIicon"
                                                HeightRequest="20"
                                                WidthRequest="20"
                                                Margin="5"
                                                VerticalOptions="CenterAndExpand"
                                                HorizontalOptions="Start"
                                                Source="{Binding StateIcon}"/>
                                        <Label Text="{Binding TitleWithItemCount}" 
                                               HorizontalOptions="StartAndExpand"
                                               HorizontalTextAlignment="Start"
                                               VerticalOptions="Center"
                                               TextColor="Black"
                                               Style="{StaticResource Key=lblCardValue}"
                                              >
                                        </Label>
                                        <StackLayout.GestureRecognizers>
                                            <TapGestureRecognizer 
                                            Command="{Binding Source={x:Reference ProductFilterPage}, 
                                            Path=BindingContext.FacetSelectedCommand}" 
                                            NumberOfTapsRequired="1"
                                            CommandParameter="{Binding .}"/>
                                        </StackLayout.GestureRecognizers>
                                    </StackLayout>
                                    <!--,Converter={StaticResource NameConverter}-->
                                </Frame>
                            </Frame>
                        </ViewCell>
                    </DataTemplate>
                </ListView.GroupHeaderTemplate>
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <Frame  IsClippedToBounds="True"
                                HasShadow="True"
                                Margin="0"
                                Padding="10"
                                CornerRadius="0"
                                BackgroundColor="#FFFFFF">
                                <StackLayout Spacing="0"
                                         Orientation="Horizontal">
                                    <!--<ff:CachedImage x:Name="ffCheck"
                                                HeightRequest="30"
                                                WidthRequest="30"
                                                Margin="5"
                                                VerticalOptions="CenterAndExpand"
                                                HorizontalOptions="Start"
                                                Source="{Binding ImgSource}"/>-->
                                    <Image x:Name="ffCheck"
                                                HeightRequest="30"
                                                WidthRequest="30"
                                                Margin="5"
                                                VerticalOptions="CenterAndExpand"
                                                HorizontalOptions="Start"
                                                Source="{Binding ImgSource}"/>
                                    <Label Text="{Binding FacetValue}"
                                       HorizontalOptions="StartAndExpand"
                                       HorizontalTextAlignment="Start"
                                       VerticalOptions="Center"
                                       >
                                        <Label.FormattedText>
                                            <FormattedString>
                                                <Span Text="{Binding FacetValue}" Style="{StaticResource Key=spnNormal}"/>
                                                <Span Text="{Binding ValueCount}" Style="{StaticResource Key=spnNormal}"/>
                                            </FormattedString>
                                        </Label.FormattedText>
                                    </Label>
                                </StackLayout>
                            </Frame>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

On clicking item i'm changing image from checked to unchecked and vice versa. sometime i'm getting crash on scroll and sometime on item tapped.
Below is my stack traces

JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)
JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
View.get_Context ()
Platform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:1307
Forms+AndroidPlatformServices.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Platform.Android\Forms.cs:599
VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:788
Image.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Core\Image.cs:64
VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:771
VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:653
VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:711
StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) D:\a\1\s\Xamarin.Forms.Core\StackLayout.cs:199
StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) D:\a\1\s\Xamarin.Forms.Core\StackLayout.cs:124
StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) D:\a\1\s\Xamarin.Forms.Core\StackLayout.cs:57
Layout.UpdateChildrenLayout () D:\a\1\s\Xamarin.Forms.Core\Layout.cs:264
Layout.OnSizeAllocated (System.Double width, System.Double height) D:\a\1\s\Xamarin.Forms.Core\Layout.cs:224
VisualElement.SizeAllocated (System.Double width, System.Double height) D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:793
Layout+<>c.b__45_0 () D:\a\1\s\Xamarin.Forms.Core\Layout.cs:381
Thread+RunnableImplementor.Run ()
IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this)
(wrapper dynamic-method) System.Object.44(intptr,intptr)

Posts

  • XamarinSampleXamarinSample USMember

    This is my log

    Time Device Name Type PID Tag Message
    03-15 16:30:36.543 Samsung Nexus Debug 3249 dalvikvm GC_EXPLICIT freed 265K, 20% free 7517K/9292K, paused 0ms+1ms, total 5ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_TAR_BRIDGE bridges 215 objects 230 opaque 40 colors 215 colors-bridged 215 colors-visible 215 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.02ms tarjan 0.08ms scc-setup 0.05ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.01ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_BRIDGE: Complete, was running for 10.86ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_MINOR: (Nursery full) time 11.61ms, stw 11.90ms promoted 1845K major size: 143216K in use: 139610K los size: 42352K in use: 39738K
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport attempting to load: '/system/lib/liblog.so'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport loaded library '/system/lib/liblog.so'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Searching for '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Probing '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Found as '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Info 3249 MonoDroid UNHANDLED EXCEPTION:
    03-15 16:30:56.803 Samsung Nexus Info 3249 MonoDroid System.ObjectDisposedException: Cannot access a disposed object.
    03-15 16:30:56.813 Samsung Nexus Info 3249 MonoDroid Object name: 'widiaMachining.Droid.CustomRenderers.ImageControlRenderer'.
    at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <42dc777b518744fdae9988e94489a4a0>:0
    at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <42dc777b518744fdae9988e94489a4a0>:0
    at Android.Views.View.get_Context () [0x0000a] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Xamarin.Forms.Platform.Android.Platform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0001f] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.Forms+AndroidPlatformServices.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x0002a] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Image.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00052] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x00236] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0005b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x0014b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout+<>c.b__45_0 () [0x00080] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <1219ce5aae934ab095dc0e05b2110050>:0
    at (wrapper dynamic-method) System.Object.44(intptr,intptr)
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes Unhandled Exception from source=AndroidEnvironment
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes System.ObjectDisposedException: Cannot access a disposed object.
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes Object name: 'widiaMachining.Droid.CustomRenderers.ImageControlRenderer'.
    at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <42dc777b518744fdae9988e94489a4a0>:0
    at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <42dc777b518744fdae9988e94489a4a0>:0
    at Android.Views.View.get_Context () [0x0000a] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Xamarin.Forms.Platform.Android.Platform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0001f] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.Forms+AndroidPlatformServices.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x0002a] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Image.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00052] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x00236] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0005b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x0014b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout+<>c.b__45_0 () [0x00080] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <1219ce5aae934ab095dc0e05b2110050>:0
    at (wrapper dynamic-method) System.Object.44(intptr,intptr)

  • XamarinSampleXamarinSample USMember

    This is my log

    Time Device Name Type PID Tag Message
    03-15 16:30:36.543 Samsung Nexus Debug 3249 dalvikvm GC_EXPLICIT freed 265K, 20% free 7517K/9292K, paused 0ms+1ms, total 5ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_TAR_BRIDGE bridges 215 objects 230 opaque 40 colors 215 colors-bridged 215 colors-visible 215 xref 1 cache-hit 0 cache-semihit 0 cache-miss 0 setup 0.02ms tarjan 0.08ms scc-setup 0.05ms gather-xref 0.01ms xref-setup 0.00ms cleanup 0.01ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_BRIDGE: Complete, was running for 10.86ms
    03-15 16:30:36.543 Samsung Nexus Debug 3249 Mono GC_MINOR: (Nursery full) time 11.61ms, stw 11.90ms promoted 1845K major size: 143216K in use: 139610K los size: 42352K in use: 39738K
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport attempting to load: '/system/lib/liblog.so'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport loaded library '/system/lib/liblog.so'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Searching for '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Probing '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Debug 3249 Mono Found as '__android_log_print'.
    03-15 16:30:56.783 Samsung Nexus Info 3249 MonoDroid UNHANDLED EXCEPTION:
    03-15 16:30:56.803 Samsung Nexus Info 3249 MonoDroid System.ObjectDisposedException: Cannot access a disposed object.
    03-15 16:30:56.813 Samsung Nexus Info 3249 MonoDroid Object name: 'widiaMachining.Droid.CustomRenderers.ImageControlRenderer'.
    at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <42dc777b518744fdae9988e94489a4a0>:0
    at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <42dc777b518744fdae9988e94489a4a0>:0
    at Android.Views.View.get_Context () [0x0000a] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Xamarin.Forms.Platform.Android.Platform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0001f] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.Forms+AndroidPlatformServices.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x0002a] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Image.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00052] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x00236] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0005b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x0014b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout+<>c.b__45_0 () [0x00080] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <1219ce5aae934ab095dc0e05b2110050>:0
    at (wrapper dynamic-method) System.Object.44(intptr,intptr)
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes Unhandled Exception from source=AndroidEnvironment
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes System.ObjectDisposedException: Cannot access a disposed object.
    03-15 16:30:56.813 Samsung Nexus Error 3249 AppCenterCrashes Object name: 'widiaMachining.Droid.CustomRenderers.ImageControlRenderer'.
    at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <42dc777b518744fdae9988e94489a4a0>:0
    at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <42dc777b518744fdae9988e94489a4a0>:0
    at Android.Views.View.get_Context () [0x0000a] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Xamarin.Forms.Platform.Android.Platform.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x0001f] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.Forms+AndroidPlatformServices.GetNativeSize (Xamarin.Forms.VisualElement view, System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <8d678adba5c44144970f35b4d07f7ee0>:0
    at Xamarin.Forms.VisualElement.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x0002a] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Image.OnSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.OnMeasure (System.Double widthConstraint, System.Double heightConstraint) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.GetSizeRequest (System.Double widthConstraint, System.Double heightConstraint) [0x00053] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.Measure (System.Double widthConstraint, System.Double heightConstraint, Xamarin.Forms.MeasureFlags flags) [0x00052] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateNaiveLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, Xamarin.Forms.StackOrientation orientation, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint) [0x00236] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.CalculateLayout (Xamarin.Forms.StackLayout+LayoutInformation layout, System.Double x, System.Double y, System.Double widthConstraint, System.Double heightConstraint, System.Boolean processExpanders) [0x00058] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.StackLayout.LayoutChildren (System.Double x, System.Double y, System.Double width, System.Double height) [0x0005b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.UpdateChildrenLayout () [0x0014b] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout.OnSizeAllocated (System.Double width, System.Double height) [0x0000f] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.VisualElement.SizeAllocated (System.Double width, System.Double height) [0x00000] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Xamarin.Forms.Layout+<>c.b__45_0 () [0x00080] in <68ab566bdacc435a8adf7cece6abb272>:0
    at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <1219ce5aae934ab095dc0e05b2110050>:0
    at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <1219ce5aae934ab095dc0e05b2110050>:0
    at (wrapper dynamic-method) System.Object.44(intptr,intptr)

  • CadeyUkCadeyUk Member

    Hi, did you get a fix for this issue - I am having the same problem.

Sign In or Register to comment.