You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately, we have an app that crashes every time the app is closed (swiped away) in android. The issue ONLY occurs on release builds. On debug builds the app works fine. The exception stacktrace (caught by appcenter) is:
This is a very pressing issue for us, since we are unable to release an update for our app when the app crashes (almost) every time it is closed.
Steps to Reproduce
We cannot seem to reproduce it in a small app. I seems to happen to 1 of our 3 apps. Even though there is major code sharing between them.
Expected Behavior
App doesn't crash on close
Actual Behavior
App crashes on close
Basic Information
Version with issue:
Last known good version: don't know. Reverted back until 3.0.482510 but app still crashed.
IDE: Visual studio 2017
Platform Target Frameworks:
Android: 8.1 (27)
Android Support Library Version: 27.0.2.1
Nuget Packages: Lots.
Affected Devices: Tested on LG Nexus 5X
Reproduction Link
We are unable to create a small reproduction. It seems be a race condition in our app that isn't present in a small demo app. We're trying to discover a point in time in our history where the error started occurring, which might give us a clue as to what is the trigger for this issue.
From @PaulVrugt on August 6, 2018 14:1
Description
Lately, we have an app that crashes every time the app is closed (swiped away) in android. The issue ONLY occurs on release builds. On debug builds the app works fine. The exception stacktrace (caught by appcenter) is:
JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)
System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer'.
JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self)
JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters)
DrawerLayout.RemoveDrawerListener (Android.Support.V4.Widget.DrawerLayout+IDrawerListener listener)
NavigationPageRenderer.Dispose (System.Boolean disposing)
Object.Dispose ()
Platform.SetPageInternal (Xamarin.Forms.Page newRoot)
This is a very pressing issue for us, since we are unable to release an update for our app when the app crashes (almost) every time it is closed.
Steps to Reproduce
We cannot seem to reproduce it in a small app. I seems to happen to 1 of our 3 apps. Even though there is major code sharing between them.
Expected Behavior
App doesn't crash on close
Actual Behavior
App crashes on close
Basic Information
Reproduction Link
We are unable to create a small reproduction. It seems be a race condition in our app that isn't present in a small demo app. We're trying to discover a point in time in our history where the error started occurring, which might give us a clue as to what is the trigger for this issue.
Copied from original issue: xamarin/Xamarin.Forms#3489
The text was updated successfully, but these errors were encountered: