ObjectDisposedException (MasterDetailPageRenderer) when setting MasterDetailPage.Detail

I realize there is a fix (#4955 - I am not allowed to post links yet) in the XF 4.0 pre-release -- I'm posting to ask if anyone knows a programmatic fix for this issue?

Our customer is wary of upgrading to a pre-release package, but it would help their business greatly to be able to release some new features that have just been developed. Currently this is the last blocking issue before that release can happen.

I am only seeing this happen on a Samsung Galaxy S7 (SM-G930T) with Android 8.0. Others have worked fine, but again, the customer is cautious about releasing any known severe bugs to market.

Stack trace:
03-27 10:30:29.678: E/AndroidRuntime(26851): FATAL EXCEPTION: main
03-27 10:30:29.678: E/AndroidRuntime(26851): Process: [removed for customer privacy], PID: 26851
03-27 10:30:29.678: E/AndroidRuntime(26851): android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object.
03-27 10:30:29.678: E/AndroidRuntime(26851): Object name: 'Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer'.
03-27 10:30:29.678: E/AndroidRuntime(26851): at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in :0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in :0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Android.Views.View.get_Context () [0x0000a] in <3d20f43d3d3e44bb990555b6ae52ba1f>:0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer.g__Update|75_1 () [0x00000] in <6b73296523894c3d8d57f5a8e3480a43>:0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer.b__75_0 () [0x00000] in <6b73296523894c3d8d57f5a8e3480a43>:0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <3d20f43d3d3e44bb990555b6ae52ba1f>:0
03-27 10:30:29.678: E/AndroidRuntime(26851): at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <3d20f43d3d3e44bb990555b6ae52ba1f>:0
03-27 10:30:29.678: E/AndroidRuntime(26851): at (wrapper dynamic-method) System.Object.46(intptr,intptr)
03-27 10:30:29.678: E/AndroidRuntime(26851): at mono.java.lang.RunnableImplementor.n_run(Native Method)
03-27 10:30:29.678: E/AndroidRuntime(26851): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
03-27 10:30:29.678: E/AndroidRuntime(26851): at android.os.Handler.handleCallback(Handler.java:751)
03-27 10:30:29.678: E/AndroidRuntime(26851): at android.os.Handler.dispatchMessage(Handler.java:95)
03-27 10:30:29.678: E/AndroidRuntime(26851): at android.os.Looper.loop(Looper.java:154)
03-27 10:30:29.678: E/AndroidRuntime(26851): at android.app.ActivityThread.main(ActivityThread.java:6823)
03-27 10:30:29.678: E/AndroidRuntime(26851): at java.lang.reflect.Method.invoke(Native Method)
03-27 10:30:29.678: E/AndroidRuntime(26851): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
03-27 10:30:29.678: E/AndroidRuntime(26851): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)

Sign In or Register to comment.