{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3435","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3435/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3435/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3435/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/3435","id":345653090,"node_id":"MDU6SXNzdWUzNDU2NTMwOTA=","number":3435,"title":"ButtonRenderer causing crash in Xamarin forms app in android devices","user":{"login":"Bhauraj001","id":35101591,"node_id":"MDQ6VXNlcjM1MTAxNTkx","avatar_url":"https://avatars1.githubusercontent.com/u/35101591?v=4","gravatar_id":"","url":"https://api.github.com/users/Bhauraj001","html_url":"https://github.com/Bhauraj001","followers_url":"https://api.github.com/users/Bhauraj001/followers","following_url":"https://api.github.com/users/Bhauraj001/following{/other_user}","gists_url":"https://api.github.com/users/Bhauraj001/gists{/gist_id}","starred_url":"https://api.github.com/users/Bhauraj001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bhauraj001/subscriptions","organizations_url":"https://api.github.com/users/Bhauraj001/orgs","repos_url":"https://api.github.com/users/Bhauraj001/repos","events_url":"https://api.github.com/users/Bhauraj001/events{/privacy}","received_events_url":"https://api.github.com/users/Bhauraj001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-30T08:07:26Z","updated_at":"2018-08-06T11:25:28Z","closed_at":null,"author_association":"NONE","body":"<!-- Bug report best practices: https://github.com/xamarin/Xamarin.Forms/wiki/Submitting-Issues -->\r\n\r\n### Description\r\nApp is Crashed in all Android devices for Xamarin forms app\r\n\r\nSystem.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.AppCompat.ButtonRenderer'.\r\n\r\n### Steps to Reproduce\r\nI have app with 4 buttons and it navigates 4 pages, all 4 pages contains Skiasharp.\r\n1.  When i tap on pages multiple times(navigates between pages)\r\n2. App is crashing with below log.\r\n\r\nThe same thing works for iOS but it fails in Android..\r\n\r\nJniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)\r\nSystem.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.AppCompat.ButtonRenderer'.\r\nJniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)\r\nJniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue parameters)\r\nView.get_Context ()\r\nButtonRenderer.UpdateBitmap ()\r\nButtonRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e)\r\n(wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)\r\nBindableObject.OnPropertyChanged (System.String propertyName)\r\nElement.OnPropertyChanged (System.String propertyName)\r\nBindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent)\r\nBindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes)\r\nBindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget)\r\nBindingExpression.Apply (System.Boolean fromTarget)\r\nBindingExpression+BindingExpressionPart.b__49_0 ()\r\nThread+RunnableImplementor.Run ()\r\nIRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this)\r\n(wrapper dynamic-method) System.Object.0fa052d2-505e-4538-a06d-cc6a7f2bcb69(intptr,intptr)*\r\n\r\n### Expected Behavior\r\n\r\n### Actual Behavior\r\n\r\n### Basic Information\r\n\r\n- Version with issue: Xamarin Forms 3.0.0.482510\r\n- Last known good version:\r\n- IDE: Visual Studio 2017\r\n- Platform Target Frameworks: <!-- All that apply -->\r\n  - Android: Target Version Android 8.1(API Level 27), Minimum Android Version is Android 5.0(API Level 21)\r\n\r\n- Nuget Packages:\r\nMicrochart v0.8.3 prerelease\r\n- Affected Devices: Attached screenshot from appcenter\r\n\r\n### Screenshots\r\n\r\n<!-- If the issue is a visual issue, please include screenshots showing the problem if possible -->\r\n\r\n### Reproduction Link\r\n![1](https://user-images.githubusercontent.com/35101591/43443754-6b5e5142-94bf-11e8-9c92-6d011379a60c.JPG)\r\n![2](https://user-images.githubusercontent.com/35101591/43443755-6b91cbe4-94bf-11e8-8432-acbd1a8cf021.JPG)\r\n![3](https://user-images.githubusercontent.com/35101591/43443756-6bc3b730-94bf-11e8-8fc3-aa9f1d2346e0.JPG)\r\n![5](https://user-images.githubusercontent.com/35101591/43443757-6beda932-94bf-11e8-9868-fcfeecb8e504.JPG)\r\n![6](https://user-images.githubusercontent.com/35101591/43443758-6c19abea-94bf-11e8-9727-98fc5eb82b34.JPG)\r\n![7](https://user-images.githubusercontent.com/35101591/43443759-6c42149a-94bf-11e8-80ab-dd71e4be7381.JPG)\r\n![8](https://user-images.githubusercontent.com/35101591/43443760-6c77e67e-94bf-11e8-9c15-9b9a0f44ac75.JPG)\r\n![9](https://user-images.githubusercontent.com/35101591/43443761-6ca392ec-94bf-11e8-871d-ffbcffdd07c8.JPG)\r\n![10](https://user-images.githubusercontent.com/35101591/43443762-6ccc6ffa-94bf-11e8-8272-ef71e9526ea7.JPG)\r\n\r\n<!-- Please upload or provide a link to a reproduction case -->"},"comment":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/comments/410676874","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/3435#issuecomment-410676874","issue_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3435","id":410676874,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDY3Njg3NA==","user":{"login":"rmarinho","id":1235097,"node_id":"MDQ6VXNlcjEyMzUwOTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1235097?v=4","gravatar_id":"","url":"https://api.github.com/users/rmarinho","html_url":"https://github.com/rmarinho","followers_url":"https://api.github.com/users/rmarinho/followers","following_url":"https://api.github.com/users/rmarinho/following{/other_user}","gists_url":"https://api.github.com/users/rmarinho/gists{/gist_id}","starred_url":"https://api.github.com/users/rmarinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmarinho/subscriptions","organizations_url":"https://api.github.com/users/rmarinho/orgs","repos_url":"https://api.github.com/users/rmarinho/repos","events_url":"https://api.github.com/users/rmarinho/events{/privacy}","received_events_url":"https://api.github.com/users/rmarinho/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T11:25:28Z","updated_at":"2018-08-06T11:25:28Z","author_association":"MEMBER","body":"Hi @Bhauraj001 can you try to update to 3.1.0 and see if you still see this issue? \r\n\r\nAlso can you give us a small reproduction of the problem?! Since this also involves SkiaSharp and the crash with ButtonRenderer.UpdateBitmap I suspect these are related. \r\n\r\nWe would need to also need the versions you are using from Skia etc, so please provide a small reproduction sample. \r\n\r\nThanks"}}
{"actor":{"display_login":"rmarinho"}}