Xamarin.forms: [Bug] Android - Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Created on 8 Oct 2019  ·  27Comments  ·  Source: xamarin/Xamarin.Forms

Hello,
I have been unable to replicate in a test project but see that it will occur after using several times the app.
In iOS I have no problem.

The issue appears when I modify a specific ObservableCollection on my code (if I remove the ObservableCollection related code, the issues doesn't happens)

I have the issues using X.F. 4.1 and greater (I dont remember this issue with older versions)
I know I'm not giving much information, I am sorry

Link with the same exception:
https://stackoverflow.com/questions/45898228/android-attempt-to-invoke-virtual-method-void-android-view-view-getboundsonsc (I dont know if related)

This is my exception:

Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
  at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00089] in <dec6115f7d4449ee8ce1bcacaa8cb579>:0 
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001f] in <dec6115f7d4449ee8ce1bcacaa8cb579>:0 
  at Android.Graphics.Drawables.Drawable.CopyBounds (Android.Graphics.Rect bounds) [0x00031] in <11a340ccc8de43f09c97400139266ef5>:0 
  at Xamarin.Forms.Platform.Android.ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x00061] in D:\a\1\s\Xamarin.Forms.Platform.Android\ButtonLayoutManager.cs:126 
  at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\FastRenderers\ButtonRenderer.cs:234 
  at Android.Views.View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x00009] in <11a340ccc8de43f09c97400139266ef5>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.45(intptr,intptr,bool,int,int,int,int)
  --- End of managed Java.Lang.NullPointerException stack trace ---
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
    at android.graphics.drawable.Drawable.copyBounds(Drawable.java:256)
    at md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.n_onLayout(Native Method)
    at md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.onLayout(ButtonRenderer.java:63)
    at android.view.View.layout(View.java:20672)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.ViewCellRenderer_ViewCellContainer.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.ViewCellRenderer_ViewCellContainer.onLayout(ViewCellRenderer_ViewCellContainer.java:72)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
    at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.ListView.setupChild(ListView.java:2162)
    at android.widget.ListView.makeAndAddView(ListView.java:2055)
    at android.widget.ListView.fillDown(ListView.java:786)
    at android.widget.ListView.fillSpecific(ListView.java:1494)
    at android.widget.ListView.layoutChildren(ListView.java:1790)
    at android.widget.AbsListView.onLayout(AbsListView.java:2165)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:625)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.onLayout(ListViewRenderer.java:65)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.onLayout(PageRenderer.java:72)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.n_onLayout(Native Method)
    at md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
    at md58432a647068b097f9637064b8985a5e0.MasterDetailContainer.n_onLayout(Native Method)
    at md58432a647068b097f9637064b8985a5e0.MasterDetailContainer.onLayout(MasterDetailContainer.java:53)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1231)
    at md58432a647068b097f9637064b8985a5e0.MasterDetailPageRenderer.n_onLayout(Native Method)
    at md58432a647068b097f9637064b8985a5e0.MasterDetailPageRenderer.onLayout(MasterDetailPageRenderer.java:68)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.n_onLayout(Native Method)
    at md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.onLayout(PlatformRenderer.java:63)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1812)
    at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
    at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
    at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
    at com.android.internal.policy.DecorView.onLayout(DecorView.java:753)
    at android.view.View.layout(View.java:20672)
    at android.view.ViewGroup.layout(ViewGroup.java:6194)
    at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2792)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2319)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1460)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7183)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
    at android.view.Choreographer.doCallbacks(Choreographer.java:761)
    at android.view.Choreographer.doFrame(Choreographer.java:696)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:193)
    at android.app.ActivityThread.main(ActivityThread.java:6669)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Thanks!

high impact Android needs-info ❓ needs-repro ❔ unverified bug

Most helpful comment

Same issue on Android. Xamarin Forms 4.5.0.617.

Using collection view, DataTemplate has a button with a command set. Binding to a ObservableCollection.

Error when ImageSource is set.
Java.Lang.NullPointerException
Message=Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Solution / Work around
Replace Button to ImageButton

All 27 comments

Hi @matteopiccioni thanks for reporting this!

Not being able to reproduce makes this a bit hard to get to the root cause. You do say that there is some code that has to do with your ObservableCollection being manipulated that triggers this?

Is there some code in that regard that you can share maybe?

I am almost sure that the issues is not on ObservableCollection
The problem is triggered changing the ObserableCollection that trigger the viewcell update.
The problem was inside the ViewCell on the Button control (the exception report ButtonRenderer)
I modify my ViewCell replacing Button with and
and now the problem is gone.

In my code I had a listview with DataTemplateSelector who decides which cell to show
In both cells I had buttons. Removing buttons from both cells the problem is gone

Hope it can helps

Thank you for letting me know @matteopiccioni! Coincidentally, today I had someone approach me with the exact same problem. I will try to work with them to reproduce it and hopefully get to the bottom of this.

This info certainly helps!

Hi @matteopiccioni, I know it has been a little while. Unfortunately, I did not make any progress with the other person having this problem. Is there maybe anything additional that you found on your end?

I am sorry @jfversluis , I dont have more details... I solved replacing Button with StackLayout and GestureRecognizers
Thanks

Not sure if this helps, but we are logging our crashes in AppCenter and I have only seen reports of this crash happening with our Nokia 5.1 (Android One) development phone. No reports of other phones. Which makes me wonder if it is an Android One issue or if this only happens while debugging/running from Visual Studio. In our case it is triggered when changing a List.

The error that is logged in AppCenter:

JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
Drawable.CopyBounds (Android.Graphics.Rect bounds)
ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) D:\a\1\s\Xamarin.Forms.Platform.Android\ButtonLayoutManager.cs:126
ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) D:\a\1\s\Xamarin.Forms.Platform.Android\FastRenderersButtonRenderer.cs:243
View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.50(intptr,intptr,bool,int,int,int,int)
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
android.graphics.drawable.Drawable.copyBounds Drawable.java:256
crc64ee486da937c010f4.ButtonRenderer.n_onLayout(Native Method)
crc64ee486da937c010f4.ButtonRenderer.onLayout ButtonRenderer.java:63
android.view.View.layout View.java:20866
crc64ee486da937c010f4.FrameRenderer.n_onLayout(Native Method)
crc64ee486da937c010f4.FrameRenderer.onLayout FrameRenderer.java:46
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.ListViewAdapter.n_getView(Native Method)
crc643f46942d9dd1fff9.ListViewAdapter.getView ListViewAdapter.java:100
android.widget.HeaderViewListAdapter.getView HeaderViewListAdapter.java:220
android.widget.AbsListView.obtainView AbsListView.java:2366
android.widget.ListView.makeAndAddView ListView.java:2058
android.widget.ListView.fillDown ListView.java:792
android.widget.ListView.fillSpecific ListView.java:1500
android.widget.ListView.layoutChildren ListView.java:1796
android.widget.AbsListView.onLayout AbsListView.java:2165
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.support.v4.widget.SwipeRefreshLayout.onLayout SwipeRefreshLayout.java:625
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
crc643f46942d9dd1fff9.ListViewRenderer.n_onLayout(Native Method)
crc643f46942d9dd1fff9.ListViewRenderer.onLayout ListViewRenderer.java:65
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.ScrollViewContainer.n_onLayout(Native Method)
crc643f46942d9dd1fff9.ScrollViewContainer.onLayout ScrollViewContainer.java:54
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.FrameLayout.layoutChildren FrameLayout.java:323
android.widget.FrameLayout.onLayout FrameLayout.java:261
android.support.v4.widget.NestedScrollView.onLayout NestedScrollView.java:1733
crc643f46942d9dd1fff9.ScrollViewRenderer.n_onLayout(Native Method)
crc643f46942d9dd1fff9.ScrollViewRenderer.onLayout ScrollViewRenderer.java:91
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.PageRenderer.n_onLayout(Native Method)
crc643f46942d9dd1fff9.PageRenderer.onLayout PageRenderer.java:72
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc64720bb2db43a66fe9.NavigationPageRenderer.n_onLayout(Native Method)
crc64720bb2db43a66fe9.NavigationPageRenderer.onLayout NavigationPageRenderer.java:65
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
crc643f46942d9dd1fff9.PlatformRenderer.n_onLayout(Native Method)
crc643f46942d9dd1fff9.PlatformRenderer.onLayout PlatformRenderer.java:63
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.RelativeLayout.onLayout RelativeLayout.java:1083
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.FrameLayout.layoutChildren FrameLayout.java:323
android.widget.FrameLayout.onLayout FrameLayout.java:261
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.FrameLayout.layoutChildren FrameLayout.java:323
android.widget.FrameLayout.onLayout FrameLayout.java:261
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.FrameLayout.layoutChildren FrameLayout.java:323
android.widget.FrameLayout.onLayout FrameLayout.java:261
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.LinearLayout.setChildFrame LinearLayout.java:1812
android.widget.LinearLayout.layoutVertical LinearLayout.java:1656
android.widget.LinearLayout.onLayout LinearLayout.java:1565
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.widget.FrameLayout.layoutChildren FrameLayout.java:323
android.widget.FrameLayout.onLayout FrameLayout.java:261
com.android.internal.policy.DecorView.onLayout DecorView.java:904
android.view.View.layout View.java:20866
android.view.ViewGroup.layout ViewGroup.java:6269
android.view.ViewRootImpl.performLayout ViewRootImpl.java:2911
android.view.ViewRootImpl.performTraversals ViewRootImpl.java:2426
android.view.ViewRootImpl.doTraversal ViewRootImpl.java:1522
android.view.ViewRootImpl$TraversalRunnable.run ViewRootImpl.java:7438
android.view.Choreographer$CallbackRecord.run Choreographer.java:965
android.view.Choreographer.doCallbacks Choreographer.java:777
android.view.Choreographer.doFrame Choreographer.java:709
android.view.Choreographer$FrameDisplayEventReceiver.run Choreographer.java:951
android.os.Handler.handleCallback Handler.java:873
android.os.Handler.dispatchMessage Handler.java:99
android.os.Looper.loop Looper.java:193
android.app.ActivityThread.main ActivityThread.java:6715
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:493
com.android.internal.os.ZygoteInit.main ZygoteInit.java:911

@rhouweling @matteopiccioni would it be possible to switch to a CollectionView and then see if you have the same issue there?

Hi all, we are also running into this issue. I can add more information if necessary.

@michaeldboyd any information is useful, so please do!

Does anyone know the status of this one, happens when a ListView gets re rendered? Any information is acceptable.

@popandov We're currently unable to reproduce the issue. If you have a sample project or additional information you can provide, that would be helpful! Thanks!

(https://github.com/xamarin/Xamarin.Forms/files/4162600/dumpstack.txt)
Hi,
unfortunately I'm also unable to reliably reproduce this issue, but it happens from time to time in one of our projects as well:
We were adding items to an ObservableCollection with a Command on a Button, while the ObservableCollection was bound to a CollectionView.
I was basically just fuzzy-testing it, adding new items, removing items randomly, adding some again, clearing the cart, etc.
The problem happened when I was adding a new item to the cart with a button not present in the XAML below.

Edit: I attached the dumped stacktrace from visual studio: [dumpstack.txt].

You can see the XAML Code below.

`
ItemsSource="{Binding CartItems}"
VerticalScrollBarVisibility="Default"
SelectionMode="None"
HeightRequest="115" Margin="20, 5, 20, 0" EmptyView="Das Warenkorb ist leer.">


                <CollectionView.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Label FontSize="18" Grid.Column="0" TextColor="Black" VerticalOptions="Center">
                                <Label.FormattedText>
                                    <FormattedString>
                                        <Span Text="{Binding Count}"></Span>
                                        <Span Text="x "></Span>
                                        <Span Text="{Binding Name}"></Span>
                                    </FormattedString>
                                </Label.FormattedText>

                            </Label>
                            <Label Text="{Binding Price, StringFormat='{0:0.00} €'}" FontSize="18" Grid.Column="1"  TextColor="Black" HorizontalOptions="End" VerticalOptions="Center"></Label>
                            <Button ImageSource="trash_w.png" androidSpecific:Button.UseDefaultShadow="true" BackgroundColor="DimGray" Grid.Column="2" WidthRequest="40" HeightRequest="40" Command="{Binding RemoveItemCommand}"></Button>

                        </Grid>
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>`

To me it seems graphical. It started when I replaced text on a button by an icon. Also the stack trace mentions graphical stuff.
It only occurred on the second back navigation from an overview to a detail page.
Reverting the change stopped the issue. But of course, that is not what I want.
One extra thing to mention is the use of a custom ContentButton in the overview.

Update 2020/02/26 : By removing the image on the button I stopped getting the issue. As someone also mentioned, not sure if it's only happening when Debugging in Visual Studio... so far I did not get that issue on release version...

Hi all... just want to mention that I have the issue also on my side. Like others, I am not able to reproduce the issue when I want, but I am getting it a couple of times per day.

-My interface has 3 different ObservableCollection linked with a CollectionView and only one of them has button inside the DataTemplate
-like @a-einstein, I also do have an ImageSource on my button.
-Not using XAML to build my views, only C# code.
-Have multiples background threads that are pushing update to my ViewModel.
-This is running under and industrial tablet with Android 5.1.1

I will try to replace the button like @matteopiccioni and see how things are going...

There are my Exceptions:

Thread finished: <Thread Pool> #15
The thread 0xf has exited with code 0 (0x0).
Thread started: <Thread Pool> #31
02-25 14:21:35.779 D/Mono    ( 6394): DllImport attempting to load: '/system/lib/liblog.so'.
02-25 14:21:35.780 D/Mono    ( 6394): DllImport loaded library '/system/lib/liblog.so'.
02-25 14:21:35.780 D/Mono    ( 6394): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
02-25 14:21:35.780 D/Mono    ( 6394): Searching for '__android_log_print'.
02-25 14:21:35.780 D/Mono    ( 6394): Probing '__android_log_print'.
02-25 14:21:35.781 D/Mono    ( 6394): Found as '__android_log_print'.
02-25 14:21:35.802 I/MonoDroid( 6394): UNHANDLED EXCEPTION:
02-25 14:21:35.813 I/MonoDroid( 6394): Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
02-25 14:21:35.813 I/MonoDroid( 6394):   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0008e] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0 
02-25 14:21:35.813 I/MonoDroid( 6394):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0001f] in <064cde681fba4dd08eaf8b1bdbbfb8c8>:0 
02-25 14:21:35.814 I/MonoDroid( 6394):   at Android.Graphics.Drawables.Drawable.CopyBounds (Android.Graphics.Rect bounds) [0x00031] in <985f5179c1dd4b3b98fb1b8dcc1ee9be>:0 
02-25 14:21:35.814 I/MonoDroid( 6394):   at Xamarin.Forms.Platform.Android.ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x00061] in D:\a\1\s\Xamarin.Forms.Platform.Android\ButtonLayoutManager.cs:126 
02-25 14:21:35.814 I/MonoDroid( 6394):   at Xamarin.Forms.Platform.Android.FastRenderers.ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\FastRenderers\ButtonRenderer.cs:243 
02-25 14:21:35.814 I/MonoDroid( 6394):   at Android.Views.View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom) [0x00009] in <985f5179c1dd4b3b98fb1b8dcc1ee9be>:0 
02-25 14:21:35.814 I/MonoDroid( 6394):   at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.48(intptr,intptr,bool,int,int,int,int)
02-25 14:21:35.814 I/MonoDroid( 6394):   --- End of managed Java.Lang.NullPointerException stack trace ---
02-25 14:21:35.814 I/MonoDroid( 6394): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.graphics.drawable.Drawable.copyBounds(Drawable.java:187)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc64ee486da937c010f4.ButtonRenderer.n_onLayout(Native Method)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc64ee486da937c010f4.ButtonRenderer.onLayout(ButtonRenderer.java:63)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.814 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.814 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.ItemContentView.n_onLayout(Native Method)
02-25 14:21:35.814 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.ItemContentView.onLayout(ItemContentView.java:54)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.support.v7.widget.RecyclerView$LayoutManager.layoutDecoratedWithMargins(RecyclerView.java:9322)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1615)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
02-25 14:21:35.814 I/MonoDroid( 6394):  at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.ItemsViewRenderer_3.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.ItemsViewRenderer_3.onLayout(ItemsViewRenderer_3.java:45)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)Thread started: <Thread Pool> #32

02-25 14:21:35.815 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.815 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.815 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.PageRenderer.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.PageRenderer.onLayout(PageRenderer.java:72)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
Thread started: <Thread Pool> #3302-25 14:21:35.815 I/MonoDroid( 6394):     at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)

02-25 14:21:35.815 I/MonoDroid( 6394):  at crc64720bb2db43a66fe9.NavigationPageRenderer.n_onLayout(Native Method)
02-25 14:21:35.815 I/MonoDroid( 6394):  at crc64720bb2db43a66fe9.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.815 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.815 I/MonoDroid( 6394):  at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.816 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.PlatformRenderer.n_onLayout(Native Method)
02-25 14:21:35.816 I/MonoDroid( 6394):  at crc643f46942d9dd1fff9.PlatformRenderer.onLayout(PlatformRenderer.java:63)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
Thread started: <Thread Pool> #3402-25 14:21:35.816 I/MonoDroid( 6394):     at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)

02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.View.layout(View.java:15806)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.816 I/MonoDroid( 6394):  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
Thread started: <Thread Pool> #3502-25 14:21:35.817 I/MonoDroid( 6394):     at android.view.View.layout(View.java:15806)

02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2202)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1959)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1161)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6198)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.Choreographer.doCallbacks(Choreographer.java:580)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.Choreographer.doFrame(Choreographer.java:550)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.os.Handler.handleCallback(Handler.java:739)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.os.Handler.dispatchMessage(Handler.java:95)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.os.Looper.loop(Looper.java:135)
02-25 14:21:35.817 I/MonoDroid( 6394):  at android.app.ActivityThread.main(ActivityThread.java:5280)
02-25 14:21:35.817 I/MonoDroid( 6394):  at java.lang.reflect.Method.invoke(Native Method)
02-25 14:21:35.817 I/MonoDroid( 6394):  at java.lang.reflect.Method.invoke(Method.java:372)
02-25 14:21:35.817 I/MonoDroid( 6394):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
02-25 14:21:35.817 I/MonoDroid( 6394):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
02-25 14:21:35.876 D/Mono    ( 6394): DllImport searching in: '__Internal' ('(null)').
02-25 14:21:35.876 D/Mono    ( 6394): Searching for 'java_interop_jnienv_throw'.
02-25 14:21:35.876 D/Mono    ( 6394): Probing 'java_interop_jnienv_throw'.
02-25 14:21:35.876 D/Mono    ( 6394): Found as 'java_interop_jnienv_throw'.
Thread started: <Thread Pool> #36
referenceTable GDEF length=670 1
referenceTable GSUB length=7202 1
referenceTable GPOS length=24560 1
referenceTable GDEF length=670 1
referenceTable GSUB length=7186 1
referenceTable GPOS length=26464 1
referenceTable head length=54 1
referenceTable GDEF length=670 1
referenceTable GSUB length=7186 1
referenceTable GPOS length=26482 1
referenceTable head length=54 1
referenceTable head length=54 1
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI CallObjectMethodA called with pending exception 'java.lang.NullPointerException' thrown in void crc64ee486da937c010f4.ButtonRenderer.n_onLayout(boolean, int, int, int, int):-2
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]     in call to CallObjectMethodA
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]     from void crc64ee486da937c010f4.ButtonRenderer.n_onLayout(boolean, int, int, int, int)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65] "main" prio=5 tid=1 Runnable
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x74676700 self=0xb8fb4300
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   | sysTid=6394 nice=0 cgrp=default sched=0/0 handle=0xb6ff4bec
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   | state=R schedstat=( 8841175589 234927991 10246 ) utm=718 stm=166 core=2 HZ=100
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   | stack=0xbe795000-0xbe797000 stackSize=8MB
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #00 pc 00004e64  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #01 pc 00003665  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #02 pc 00256ba1  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #03 pc 00238fdf  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #04 pc 000b0fdb  /system/lib/libart.so (art::JniAbort(char const*, char const*)+610)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #05 pc 000b1715  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #06 pc 000b49cf  /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1346)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #07 pc 000b98a7  /system/lib/libart.so (art::CheckJNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+42)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #08 pc 0000d01f  /data/app/com.companyname.AndroIDBAR-1/lib/arm/libmonodroid.so (java_interop_jnienv_call_object_method_a+78)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   native: #09 pc 00009e28   (???)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc64ee486da937c010f4.ButtonRenderer.n_onLayout(Native method)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc64ee486da937c010f4.ButtonRenderer.onLayout(ButtonRenderer.java:63)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.ItemContentView.n_onLayout(Native method)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.ItemContentView.onLayout(ItemContentView.java:54)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.RecyclerView$LayoutManager.layoutDecoratedWithMargins(RecyclerView.java:9322)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1615)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
02-25 14:21:35.952 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.ItemsViewRenderer_3.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.ItemsViewRenderer_3.onLayout(ItemsViewRenderer_3.java:45)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.PageRenderer.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.PageRenderer.onLayout(PageRenderer.java:72)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc64720bb2db43a66fe9.NavigationPageRenderer.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc64720bb2db43a66fe9.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.PlatformRenderer.n_onLayout(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at crc643f46942d9dd1fff9.PlatformRenderer.onLayout(PlatformRenderer.java:63)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.View.layout(View.java:15806)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2202)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1959)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1161)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6198)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.Choreographer.doCallbacks(Choreographer.java:580)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.Choreographer.doFrame(Choreographer.java:550)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.os.Handler.handleCallback(Handler.java:739)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.os.Handler.dispatchMessage(Handler.java:95)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.os.Looper.loop(Looper.java:135)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at android.app.ActivityThread.main(ActivityThread.java:5280)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke!(Native method)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at java.lang.reflect.Method.invoke(Method.java:372)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
02-25 14:21:35.953 F/art     ( 6394): art/runtime/check_jni.cc:65] 
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289] Runtime aborting...
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289] Aborting thread:
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289] "main" prio=5 tid=1 Native
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x74676700 self=0xb8fb4300
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   | sysTid=6394 nice=0 cgrp=default sched=0/0 handle=0xb6ff4bec
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=R schedstat=( 8887080665 234927991 10260 ) utm=722 stm=166 core=2 HZ=100
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0xbe795000-0xbe797000 stackSize=8MB
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   | held mutexes= "abort lock" "mutator lock"(shared held)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00004e64  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #01 pc 00003665  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00256ba1  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #03 pc 00238fdf  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #04 pc 0022837d  /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+32)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #05 pc 0022861f  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+410)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #06 pc 002287df  /system/lib/libart.so (art::Runtime::Abort()+82)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #07 pc 000a6a35  /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #08 pc 000b11d7  /system/lib/libart.so (art::JniAbort(char const*, char const*)+1118)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #09 pc 000b1715  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+68)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #10 pc 000b49cf  /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1346)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #11 pc 000b98a7  /system/lib/libart.so (art::CheckJNI::CallObjectMethodA(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)+42)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #12 pc 0000d01f  /data/app/com.companyname.AndroIDBAR-1/lib/arm/libmonodroid.so (java_interop_jnienv_call_object_method_a+78)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #13 pc 00009e28   (???)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc64ee486da937c010f4.ButtonRenderer.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc64ee486da937c010f4.ButtonRenderer.onLayout(ButtonRenderer.java:63)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.ItemContentView.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.ItemContentView.onLayout(ItemContentView.java:54)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.RecyclerView$LayoutManager.layoutDecoratedWithMargins(RecyclerView.java:9322)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1615)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.ItemsViewRenderer_3.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.ItemsViewRenderer_3.onLayout(ItemsViewRenderer_3.java:45)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.VisualElementRenderer_1.onLayout(VisualElementRenderer_1.java:81)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.PageRenderer.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.PageRenderer.onLayout(PageRenderer.java:72)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc64720bb2db43a66fe9.NavigationPageRenderer.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc64720bb2db43a66fe9.NavigationPageRenderer.onLayout(NavigationPageRenderer.java:65)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout(FormsViewGroup.java:37)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.PlatformRenderer.n_onLayout(Native method)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at crc643f46942d9dd1fff9.PlatformRenderer.onLayout(PlatformRenderer.java:63)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1076)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.layoutChildren(FrameLayout.java:581)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.widget.FrameLayout.onLayout(FrameLayout.java:516)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.View.layout(View.java:15806)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewGroup.layout(ViewGroup.java:5038)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2202)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1959)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1161)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6198)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.Choreographer.doCallbacks(Choreographer.java:580)
02-25 14:21:36.530 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.Choreographer.doFrame(Choreographer.java:550)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.os.Handler.handleCallback(Handler.java:739)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.os.Handler.dispatchMessage(Handler.java:95)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.os.Looper.loop(Looper.java:135)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at android.app.ActivityThread.main(ActivityThread.java:5280)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at java.lang.reflect.Method.invoke!(Native method)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at java.lang.reflect.Method.invoke(Method.java:372)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] Pending exception java.lang.NullPointerException thrown by 'void crc64ee486da937c010f4.ButtonRenderer.n_onLayout(boolean, int, int, int, int):-2'
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at copyBounds (Drawable.java:187)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (ButtonRenderer.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (ButtonRenderer.java:63)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (VisualElementRenderer_1.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (VisualElementRenderer_1.java:81)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (VisualElementRenderer_1.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (VisualElementRenderer_1.java:81)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (ItemContentView.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (ItemContentView.java:54)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutDecoratedWithMargins (RecyclerView.java:9322)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutChunk (LinearLayoutManager.java:1615)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at fill (LinearLayoutManager.java:1517)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayoutChildren (LinearLayoutManager.java:612)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at dispatchLayoutStep2 (RecyclerView.java:3924)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at dispatchLayout (RecyclerView.java:3641)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (RecyclerView.java:4194)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (ItemsViewRenderer_3.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (ItemsViewRenderer_3.java:45)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (VisualElementRenderer_1.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (VisualElementRenderer_1.java:81)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (VisualElementRenderer_1.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (VisualElementRenderer_1.java:81)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (VisualElementRenderer_1.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (VisualElementRenderer_1.java:81)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (PageRenderer.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (PageRenderer.java:72)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (NavigationPageRenderer.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (NavigationPageRenderer.java:65)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at measureAndLayout (FormsViewGroup.java:37)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at n_onLayout (PlatformRenderer.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (PlatformRenderer.java:63)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (RelativeLayout.java:1076)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutChildren (FrameLayout.java:581)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (FrameLayout.java:516)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutChildren (FrameLayout.java:581)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (FrameLayout.java:516)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutChildren (FrameLayout.java:581)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (FrameLayout.java:516)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at setChildFrame (LinearLayout.java:1703)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutVertical (LinearLayout.java:1557)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (LinearLayout.java:1466)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layoutChildren (FrameLayout.java:581)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at onLayout (FrameLayout.java:516)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (View.java:15806)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at layout (ViewGroup.java:5038)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at performLayout (ViewRootImpl.java:2202)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at performTraversals (ViewRootImpl.java:1959)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at doTraversal (ViewRootImpl.java:1161)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at run (ViewRootImpl.java:6198)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at run (Choreographer.java:767)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at doCallbacks (Choreographer.java:580)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at doFrame (Choreographer.java:550)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at run (Choreographer.java:753)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at handleCallback (Handler.java:739)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at dispatchMessage (Handler.java:95)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at loop (Looper.java:135)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at main (ActivityThread.java:5280)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at invoke (Method.java:-2)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at invoke (Method.java:372)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at run (ZygoteInit.java:963)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   at main (ZygoteInit.java:758)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] Dumping all threads without appropriate locks held: thread list lock mutator lock
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] All threads:
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] DALVIK THREADS (41):
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289] "main" prio=5 tid=1 Native
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x74676700 self=0xb8fb4300
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   | sysTid=6394 nice=0 cgrp=default sched=0/0 handle=0xb6ff4bec
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=R schedstat=( 8917554899 235034181 10269 ) utm=723 stm=168 core=2 HZ=100
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0xbe795000-0xbe797000 stackSize=8MB
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   | held mutexes= "abort lock"
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00004e64  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #01 pc 00003665  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00256ba1  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #03 pc 00238fdf  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #04 pc 00242cbd  /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+120)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #05 pc 00228595  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+272)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #06 pc 002287df  /system/lib/libart.so (art::Runtime::Abort()+82)
02-25 14:21:36.531 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #07 pc 000a6a35  /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0xb4951000-0xb4953000 stackSize=1020KB
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00243f8d  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+64)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #05 pc 0001659b  /system/lib/libc.so (__pthread_start(void*)+30)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x0 self=0xb8fd31b0
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 1333402 247394 15 ) utm=0 stm=0 core=2 HZ=100
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0xb4851000-0xb4853000 stackSize=1020KB
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00012960  /system/lib/libc.so (syscall+28)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00243f8d  /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+64)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #04 pc 00244815  /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+60)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #06 pc 000144c3  /system/lib/libc.so (__start_thread+6)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289] "Signal Catcher" prio=5 tid=5 WaitingInMainSignalCatcherLoop
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | sysTid=6403 nice=0 cgrp=default sched=0/0 handle=0xb8fb9988
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0xb4747000-0xb4749000 stackSize=1012KB
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 0003c1d0  /system/lib/libc.so (__rt_sigtimedwait+12)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 0022bdf7  /system/lib/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&)+86)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #04 pc 0001659b  /system/lib/libc.so (__pthread_start(void*)+30)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x12c151c0 self=0xb914fe40
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 1848280 429065 6 ) utm=0 stm=0 core=0 HZ=100
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 0003ce04  /system/lib/libc.so (__pselect6+20)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00299597  /system/lib/libart.so (art::JDWP::JdwpAdbState::ProcessIncoming()+202)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #04 pc 0019d2a1  /system/lib/libart.so (art::JDWP::StartJdwpThread(void*)+16)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #06 pc 000144c3  /system/lib/libc.so (__start_thread+6)
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289] 
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x12dffd00 self=0xb9153238
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 5216799 158137 41 ) utm=0 stm=0 core=3 HZ=100
02-25 14:21:36.532 F/art     ( 6394): art/runtime/runtime.cc:289]   | held mutexes=
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x12f0b0a0 self=0xbbce1b90
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 4525129 4208568 71 ) utm=0 stm=0 core=1 HZ=100
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00012964  /system/lib/libc.so (syscall+32)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00043001  /system/lib/libc.so (sem_timedwait+140)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289] "Thread-1979" prio=5 tid=19 Native
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | sysTid=6837 nice=0 cgrp=default sched=0/0 handle=0xb9a9b860
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 6534129 11581885 88 ) utm=0 stm=0 core=1 HZ=100
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00012964  /system/lib/libc.so (syscall+32)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00043001  /system/lib/libc.so (sem_timedwait+140)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289] "Thread-1980" prio=5 tid=20 Native
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | sysTid=6840 nice=0 cgrp=default sched=0/0 handle=0xba3444c8
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | stack=0x98e63000-0x98e65000 stackSize=1020KB
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #01 pc 00016e07  /system/lib/libc.so (__futex_wait_ex+42)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #02 pc 00043001  /system/lib/libc.so (sem_timedwait+140)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | group="" sCount=0 dsCount=0 obj=0x12f740a0 self=0xbbbd60b8
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | state=S schedstat=( 4735213 7847154 87 ) utm=0 stm=0 core=1 HZ=100
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | held mutexes=
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #00 pc 00012964  /system/lib/libc.so (syscall+32)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #01 pc 00016e07  /system/lib/libc.so (__futex_wait_ex+42)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   native: #03 pc 00154d48  /data/app/Mono.Android.DebugRuntime-1/lib/arm/libmonosgen-32bit-2.0.so (???)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   (no managed stack frames)
02-25 14:21:36.534 F/art     ( 6394): art/runtime/runtime.cc:289]   | held mutexes=
02-25 14:21:36.534 F/libc    ( 6394): Fatal signal 6 (SIGABRT), code -6 in tid 6394 (name.AndroIDBAR)
**Java.Lang.NullPointerException:** 'Loading...'

(https://github.com/xamarin/Xamarin.Forms/files/4162600/dumpstack.txt)
Hi,
unfortunately I'm also unable to reliably reproduce this issue, but it happens from time to time in one of our projects as well:
We were adding items to an ObservableCollection with a Command on a Button, while the ObservableCollection was bound to a CollectionView.
I was basically just fuzzy-testing it, adding new items, removing items randomly, adding some again, clearing the cart, etc.
The problem happened when I was adding a new item to the cart with a button not present in the XAML below.

Edit: I attached the dumped stacktrace from visual studio: [dumpstack.txt].

You can see the XAML Code below.

`

                <CollectionView.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Label FontSize="18" Grid.Column="0" TextColor="Black" VerticalOptions="Center">
                                <Label.FormattedText>
                                    <FormattedString>
                                        <Span Text="{Binding Count}"></Span>
                                        <Span Text="x "></Span>
                                        <Span Text="{Binding Name}"></Span>
                                    </FormattedString>
                                </Label.FormattedText>

                            </Label>
                            <Label Text="{Binding Price, StringFormat='{0:0.00} €'}" FontSize="18" Grid.Column="1"  TextColor="Black" HorizontalOptions="End" VerticalOptions="Center"></Label>
                            <Button ImageSource="trash_w.png" androidSpecific:Button.UseDefaultShadow="true" BackgroundColor="DimGray" Grid.Column="2" WidthRequest="40" HeightRequest="40" Command="{Binding RemoveItemCommand}"></Button>

                        </Grid>
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>`

Hi,

I ran into the same situation as yours. I am using a CollectionView with a LinearItemsLayout to show multiple items on the HomePage and then lazy load more items when the user scrolls to the bottom. It would produce this error when adding more items to the ObservableRangeCollection in the MvvmHelpers namespace.

I isolated the problem by commenting out controls in my ItemsTemplate in the CollectionView one at a time until I found that my Button with an ImageSource and Text properties set was causing the crash. I replaced the control with a StackLayout in vertical orientation with an ImageButton and a Label. Now I can lazy load more items again.

I am sharing only a part of my ItemTemplate here. Notice how I replace the 2 Buttons at the bottom with the 2 StackLayouts preceding them.

<StackLayout
                        Grid.Row="3"
                        Margin="5"
                        HorizontalOptions="Start"
                        Orientation="Vertical">
                        <ImageButton
                            Command="{Binding Source={x:Reference HomeView1}, Path=BindingContext.SavePostCommand}"
                            CommandParameter="{Binding Path=.}"
                            Source="saveicon_white.png"
                            Style="{StaticResource TrendingPageImageButtonStyle}" />
                        <Label Style="{StaticResource TrendingPageImageLabelStyle}" Text="Save" />
                    </StackLayout>
                    <StackLayout
                        Grid.Row="3"
                        Margin="5"
                        HorizontalOptions="End"
                        Orientation="Vertical">
                        <ImageButton
                            Command="{Binding Source={x:Reference HomeView1}, Path=BindingContext.SharePostCommand}"
                            CommandParameter="{Binding Path=.}"
                            Source="shareicon_white.png"
                            Style="{StaticResource TrendingPageImageButtonStyle}" />
                        <Label Style="{StaticResource TrendingPageImageLabelStyle}" Text="Share" />
                    </StackLayout>
                    <!--
                        NOTE: Following controls produce the following Java exception

                        Java.Lang.NullPointerException:
                        'Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)'
                        on a null object reference'
                    -->
                    <!--<Button
                        Grid.Row="3"
                        Command="{Binding Source={x:Reference HomeView1}, Path=BindingContext.SavePostCommand}"
                        HorizontalOptions="Start"
                        ImageSource="saveicon_white.png"
                        Style="{StaticResource PageButtonStyle}"
                        Text="Save" />
                    <Button
                        Grid.Row="3"
                        Command="{Binding Source={x:Reference HomeView1}, Path=BindingContext.SharePostCommand}"
                        HorizontalOptions="End"
                        ImageSource="shareicon_white.png"
                        Style="{StaticResource PageButtonStyle}"
                        Text="Share" />-->

It appears that the Button with a Text and ImageSource is raising this exception. If I can reproduce this problem in a tiny test project, I will share it on here. I cannot share more details of my code on here obviously for proprietary reasons. If anyone else is having this problem inside a CollectionView, I would start by commenting out code in your ItemTemplate one at a time until the exception no longer happens.

I hope that helps anyone else.

This error also occurred to me
And I couldn't find the error
But scrolling the page in many rows will increase this error

Also can't reproduce this one but seeing numerous crash reports in AppCenter for this one with

Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Stack Trace

JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
Drawable.CopyBounds (Android.Graphics.Rect bounds)
ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom)
ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b)
View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom)
md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.onLayout ButtonRenderer.java:72
android.view.View.layout View.java:20836
md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.n_getView(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.getView ListViewAdapter.java:100
android.widget.HeaderViewListAdapter.getView HeaderViewListAdapter.java:232
md51558244f76c53b6aeda52c8a337f2c37.ListViewRenderer.onLayout ListViewRenderer.java:65
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.n_onLayout(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.VisualElementRenderer_1.onLayout VisualElementRenderer_1.java:81
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.n_onLayout(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.PageRenderer.onLayout PageRenderer.java:72
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.n_onLayout(Native Method)
md58432a647068b097f9637064b8985a5e0.NavigationPageRenderer.onLayout NavigationPageRenderer.java:65
android.view.View.layout View.java:20836
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md58432a647068b097f9637064b8985a5e0.Platform_ModalContainer.n_onLayout(Native Method)
md58432a647068b097f9637064b8985a5e0.Platform_ModalContainer.onLayout Platform_ModalContainer.java:45
android.view.View.layout View.java:20836
md51558244f76c53b6aeda52c8a337f2c37.PlatformRenderer.onLayout PlatformRenderer.java:55
android.view.View.layout View.java:20836

Seeing this on a whole range of devices and android versions

I was running into this just now, and found the source to be having the ImageSource property set on a button in a ListView.

I can't provide a sample project at the moment (I've sunk enough time on it today as it is), but I wanted to post up how I was able to repro consistently. I can look at adding a sample project at a later time after I'm finished with this app.

I'm using the ZXing.Mobile.Net.Forms scanner package in a custom control on my page, which I'm having to re-load whenever returning to the screen (from taking a photo, or jumping to another app, etc). I'm having to re-load to work around what is either a bug or my misunderstanding of it's design (won't scan upon return w/o re-loading).

When my page opens, the ListView is empty.

  • I add a couple of items to it.
  • Then I open the "action menu" (popup) to delete the items in the ListView.
  • Select delete, the items are removed and the "action menu" is removed - prompting a re-load of the scanner control. At this point I can scroll through the page error free.
  • Now add another item to the ListView.
  • When scrolling to the ListView, the moment the first item should become visible on the screen, this exception pops up and the app crashes.

Ways I've found to avoid the exception:

  • If I do NOT re-load the scanner control, this error does not happen. The scanner doesn't work at that point, but no exception crashing the app.
  • Keep re-loading the scanner control, but remove the ImageSource property on the button that exists on the ListView items.
    --ListView.ItemTemplate
    --- DataTemplate
    ---- ViewCell
    ----- Grid
    ----- ...Column Definitions....
    ------ Button
    ------ ImageSource="delete_icon.png"
    ------ Command="{Binding BindingContext.DeleteBarcode, Source={x:Reference ThisPage}}"
    ------ CommandParameter="{Binding .}"
    ------ BackgroundColor="Transparent"

Anyway, I know this is kind of a specific example, but maybe someone can gleam some ideas on what could be happening. I saw people saying inconsistent repro, but this has been consistent for me.

Quick Edit: I'm using a Galaxy S6 device (not emulator). Android 7.0 - API 24.

Please, let me tell you my experience:

A CollectionView with 3.500 items and a button inside the DataTemplate generates the error exposed here. The button has it´s ImageSource set to a FontImageSource in order to use an icons font.

Then, if a substitute the font icon Image with only text to the button the error dissapear.

If I use a Label with text or an ImageButton with the Source set to the FontImageSource the error doesn´t happen.

Thank you!

Same issue on Android. Xamarin Forms 4.5.0.617.

Using collection view, DataTemplate has a button with a command set. Binding to a ObservableCollection.

Error when ImageSource is set.
Java.Lang.NullPointerException
Message=Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Error when ImageSource is not set.
Java.Lang.NullPointerException:** 'Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isMutable()' on a null object reference'

Remove button, no issues.

Button to ImageButton

Same issue on Android. Xamarin Forms 4.5.0.617.

Using collection view, DataTemplate has a button with a command set. Binding to a ObservableCollection.

Error when ImageSource is set.
Java.Lang.NullPointerException
Message=Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Solution / Work around
Replace Button to ImageButton

Reading all your logs seems to be an issue in Android ButtonRenderer OnLayout method. I am trying to reproduce the issue.

Some extra information:

  • Happens if use an image on the Button?
  • Perhaps it happens when reloading the view or after coming out of sleep?

Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you!

@samhouts please don't close this issue. It's very real and there is information above on the error. It shows up numerous times in app center logs

I am getting same issue:

Xamarin Forms Version : 4.7.0.1080
Platform : Android
Scenario: When I scrolled ListView then the app will be crashed

AppCenter Log:

md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.onLayout
ButtonRenderer.java, line 72
Java.Lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference

Stack traces
JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args)
JniPeerMembers+JniInstanceMethods.InvokeNonvirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
Drawable.CopyBounds (Android.Graphics.Rect bounds)
ButtonLayoutManager.OnLayout (System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom)
ButtonRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b)
View.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 left, System.Int32 top, System.Int32 right, System.Int32 bottom)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.59(intptr,intptr,bool,int,int,int,int)
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.Rect.set(android.graphics.Rect)' on a null object reference
android.graphics.drawable.Drawable.copyBounds Drawable.java:256
md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.n_onLayout(Native Method)
md5f92e0daf340890c9667469657ee2ece8.ButtonRenderer.onLayout ButtonRenderer.java:72
android.view.View.layout View.java:20707
md51558244f76c53b6aeda52c8a337f2c37.Platform_DefaultRenderer.n_onLayout(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.Platform_DefaultRenderer.onLayout Platform_DefaultRenderer.java:72
android.view.View.layout View.java:20707
android.view.ViewGroup.layout ViewGroup.java:6198
com.xamarin.forms.platform.android.FormsViewGroup.measureAndLayout FormsViewGroup.java:37
md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.n_getView(Native Method)
md51558244f76c53b6aeda52c8a337f2c37.ListViewAdapter.getView ListViewAdapter.java:100
android.widget.HeaderViewListAdapter.getView HeaderViewListAdapter.java:220
android.widget.AbsListView.obtainView AbsListView.java:2408
android.widget.ListView.makeAndAddView ListView.java:2126
android.widget.ListView.fillUp ListView.java:893
android.widget.ListView.fillGap ListView.java:767
android.widget.ListView.fillGap ListView.java:746
android.widget.AbsListView.trackMotionScroll AbsListView.java:5334
android.widget.ListView.trackMotionScroll ListView.java:2045
android.widget.AbsListView$FlingRunnable.run AbsListView.java:4878
android.view.Choreographer$CallbackRecord.run Choreographer.java:1009
android.view.Choreographer.doCallbacks Choreographer.java:821
android.view.Choreographer.doFrame Choreographer.java:753
android.view.Choreographer$FrameDisplayEventReceiver.run Choreographer.java:995
android.os.Handler.handleCallback Handler.java:873
android.os.Handler.dispatchMessage Handler.java:99
android.os.Looper.loop Looper.java:201
android.app.ActivityThread.main ActivityThread.java:6806
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run RuntimeInit.java:547
com.android.internal.os.ZygoteInit.main ZygoteInit.java:873

Was this page helpful?
0 / 5 - 0 ratings