Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

After resume the app Prism navigation crashes my app with masterPage

$
0
0

I have a login page and after the user login I clear the Prism's stack navigation then the home page's appear(this page is a master page), if i leave the app then return to it and press the button to logout i get an exception.

Info 10032 MonoDroid Parameter name: instance
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00009] in <6cd960837cc24c26bab2a0a29b597627>:0
at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (System.IntPtr jobject, System.IntPtr jclass, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x00015] in <06064416b46d4ffbb3484c957929a39f>:0
at Android.Support.V4.Widget.DrawerLayout.RemoveDrawerListener (Android.Support.V4.Widget.DrawerLayout+IDrawerListener listener) [0x00088] in :0
at Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer.Dispose (System.Boolean disposing) [0x00012] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\NavigationRenderer.cs:262
at Java.Lang.Object.Dispose () [0x00000] in <06064416b46d4ffbb3484c957929a39f>:0
at Xamarin.Forms.Platform.Android.AppCompat.Platform+<>c__DisplayClass35_0.b__0 () [0x00007] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\FormattedStringExtensions.cs:82
at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <06064416b46d4ffbb3484c957929a39f>:0
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <06064416b46d4ffbb3484c957929a39f>:0
at (wrapper dynamic-method) System.Object:94f22003-73a7-4b0a-8473-7464f829d35f (intptr,intptr)

my logout action is this ---- await _navigationService.NavigateAsync("/NavigationPage/Teste", useModalNavigation: true);

this problem only appears if i leave the app and then return to it. Please help me.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>