Hi, I have an app that goes from the startscreen to a page that is rendered per platform and than to a second screen that is cross platform. When I want to navigate to a third screen in my forms app I get an error. This error happens in Android but not iOS.
An unhandled exception occured.
10-22 10:54:15.271 D/Mono (24912): DllImport attempting to load: '/system/lib/liblog.so'.
10-22 10:54:15.271 D/Mono (24912): DllImport loaded library '/system/lib/liblog.so'.
10-22 10:54:15.271 D/Mono (24912): DllImport searching in: '/system/lib/liblog.so' ('/system/lib/liblog.so').
10-22 10:54:15.271 D/Mono (24912): Searching for '__android_log_print'.
10-22 10:54:15.271 D/Mono (24912): Probing '__android_log_print'.
10-22 10:54:15.271 D/Mono (24912): Found as '__android_log_print'.
10-22 10:54:15.271 I/MonoDroid(24912): UNHANDLED EXCEPTION:
10-22 10:54:15.311 I/MonoDroid(24912): Android.Views.WindowManagerBadTokenException: Exception of type 'Android.Views.WindowManagerBadTokenException' was thrown.
10-22 10:54:15.311 I/MonoDroid(24912): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00068>
10-22 10:54:15.311 I/MonoDroid(24912): at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr) [0x00062] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/0ef616ae/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:491
10-22 10:54:15.311 I/MonoDroid(24912): at Android.App.Dialog.Show () [0x00043] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/0ef616ae/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Android.App.Dialog.cs:2497
10-22 10:54:15.311 I/MonoDroid(24912): at Xamarin.Utilities.Android.ActivityEx.ShowError (Android.App.Activity,string,string) <IL 0x00048, 0x001e7>
10-22 10:54:15.311 I/MonoDroid(24912): at Xamarin.Utilities.Android.ActivityEx.ShowError (Android.App.Activity,string,System.Exception) <IL 0x00021, 0x00147>
10-22 10:54:15.311 I/MonoDroid(24912): at Xamarin.Auth.WebAuthenticatorActivity.<OnCreate>m__1 (object,Xamarin.Auth.AuthenticatorErrorEventArgs) <IL 0x00017, 0x000cb>
10-22 10:54:15.311 I/MonoDroid(24912): at Xamarin.Auth.Authenticator/<OnError>c__AnonStorey2.<>m__0 () <IL 0x00024, 0x000cf>
10-22 10:54:15.311 I/MonoDroid(24912): at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/0ef616ae/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36
10-22 10:54:15.311 I/MonoDroid(24912): at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.18-series/0ef616ae/source/monodroid/src/Mono.Android/platforms/android-14/src/generated/Java.Lang.IRunnable.cs:71
10-22 10:54:15.311 I/MonoDroid(24912): at (wrapper dynamic-method) object.723e0205-b7ab-4dd4-885e-4d8903f1c8ff (intptr,intptr) <IL 0x00011, 0x0003b>
10-22 10:54:15.311 I/MonoDroid(24912): --- End of managed exception stack trace ---
10-22 10:54:15.311 I/MonoDroid(24912): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41352130 is not valid; is your activity running?
10-22 10:54:15.321 I/MonoDroid(24912): at android.view.ViewRootImpl.setView(ViewRootImpl.java:705)
10-22 10:54:15.321 I/MonoDroid(24912): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:453)
10-22 10:54:15.321 I/MonoDroid(24912): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:351)
10-22 10:54:15.321 I/MonoDroid(24912): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:171)
10-22 10:54:15.321 I/MonoDroid(24912): at android.view.Window$LocalWindowManager.addView(Window.java:558)
10-22 10:54:15.321 I/MonoDroid(24912): at android.app.Dialog.show(Dialog.java:282)
10-22 10:54:15.321 I/MonoDroid(24912): at mono.java.lang.RunnableImplementor.n_run(Native Method)
10-22 10:54:15.321 I/MonoDroid(24912): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
10-22 10:54:15.321 I/MonoDroid(24912): at android.app.Activity.runOnUiThread(Activity.java:4649)
10-22 10:54:15.321 I/MonoDroid(24912): at mono.java.lang.RunnableImplementor.n_run(Native Method)
10-22 10:54:15.321 I/MonoDroid(24912): at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:29)
10-22 10:54:15.321 I/MonoDroid(24912): at android.os.Handler.handleCallback(Handler.java:615)
10-22 10:54:15.321 I/MonoDroid(24912): at android.os.Handler.dispatchMessage(Handler.java:92)
10-22 10:54:15.321 I/MonoDroid(24912): at android.os.Looper.loop(Looper.java:155)
10-22 10:54:15.321 I/MonoDroid(24912): at android.app.ActivityThread.main(ActivityThread.java:5454)
10-22 10:54:15.321 I/MonoDroid(24912): at java.lang.reflect.Method.invokeNative(Native Method)
10-22 10:54:15.321 I/MonoDroid(24912): at java.lang.reflect.Method.invoke(Method.java:511)
10-22 10:54:15.321 I/MonoDroid(24912): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
10-22 10:54:15.321 I/MonoDroid(24912): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
10-22 10:54:15.321 I/MonoDroid(24912): at dalvik.system.NativeStart.main(Native Method)
10-22 10:54:15.331 E/mono-rt (24912): Stacktrace:
10-22 10:54:15.331 E/mono-rt (24912):
10-22 10:54:15.331 E/mono-rt (24912):
10-22 10:54:15.331 E/mono-rt (24912): =================================================================
10-22 10:54:15.331 E/mono-rt (24912): Got a SIGSEGV while executing native code. This usually indicates
10-22 10:54:15.331 E/mono-rt (24912): a fatal error in the mono runtime or one of the native libraries
10-22 10:54:15.331 E/mono-rt (24912): used by your application.
10-22 10:54:15.331 E/mono-rt (24912): =================================================================
10-22 10:54:15.331 E/mono-rt (24912):
10-22 10:54:15.331 F/libc (24912): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 24912 (m.randstad.meta)
The program 'Mono' has exited with code 0 (0x0).