Getting error on app releasing

Hi guys, Im really new making apps on XF and Im getting this error when I deploy the app en release mode (also with the generated apk). I have to say the app works fine in debug mode and the error is when close it with back arrow button from device.
I get this log from the Visual Studio (2015)

Any help would be appreciated

Info 454 Gobi vendor/qcom/proprietary/RIDL/RIDLClient/RIDLSQL.cpp:2500: GetTransState() EBADF
Info 967 OpenGLRenderer Initialized EGL, version 1.4
Warning 21332 ContextImpl Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1271 android.content.ContextWrapper.bindService:604 com.sonyericsson.crashmonitor.MiscTaAdapter.open:90 com.sonyericsson.crashmonitor.service.CrashMonitorService.onInit:127 com.sonyericsson.crashmonitor.service.CrashMonitorService.onHandleIntent:192
Debug 967 ActivityManager New dropbox entry: Tiendas.Droid, data_app_crash, 1395e605-9489-4b1d-a169-878787506db8
Error 21490 AndroidRuntime at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.n_onDestroy(Native Method)
Error 21490 AndroidRuntime at android.app.ActivityThread.main(ActivityThread.java:5526)
Error 21490 AndroidRuntime FATAL EXCEPTION: main
Error 21490 AndroidRuntime at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3917)
Error 21490 AndroidRuntime at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Error 21490 AndroidRuntime at android.support.v4.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:621)
Error 21490 AndroidRuntime at java.lang.reflect.Method.invoke(Native Method)
Error 21490 AndroidRuntime java.lang.RuntimeException: Unable to destroy activity {Tiendas.Droid/md55d0e470a941fbb8af075a7bae3af6404.MainActivity}: java.lang.IllegalStateException: Activity has been destroyed
Error 21490 AndroidRuntime at android.os.Handler.dispatchMessage(Handler.java:102)
Error 21490 AndroidRuntime at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3948)
Error 21490 AndroidRuntime at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:638)
Error 21490 AndroidRuntime at android.app.ActivityThread.access$1500(ActivityThread.java:154)
Error 21490 AndroidRuntime at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.onDestroy(FormsAppCompatActivity.java:80)
Error 21490 AndroidRuntime Process: Tiendas.Droid, PID: 21490
Error 21490 AndroidRuntime at android.app.Activity.performDestroy(Activity.java:6456)
Error 21490 AndroidRuntime at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3930)
Error 21490 AndroidRuntime at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1143)
Error 21490 AndroidRuntime at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1515)
Error 21490 AndroidRuntime ... 9 more
Error 21490 AndroidRuntime at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
Error 21490 AndroidRuntime at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445)
Error 21490 AndroidRuntime at android.os.Looper.loop(Looper.java:234)
Error 21490 AndroidRuntime Caused by: java.lang.IllegalStateException: Activity has been destroyed
Debug 21490 AndroidRuntime Shutting down VM
Info 21490 MonoDroid at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.onDestroy(FormsAppCompatActivity.java:80)
1Info 21490 MonoDroid at android.os.Looper.loop(Looper.java:234)
Info 21490 MonoDroid at Android.Support.V4.App.FragmentTransactionInvoker.CommitAllowingStateLoss () [0x00033] in <27c17fe440cf491ba8255bcefade6e02>:0
Info 21490 MonoDroid at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailContainer.Dispose (System.Boolean disposing) [0x00041] in :0
Info 21490 MonoDroid at Android.App.Activity.n_OnDestroy (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in :0
Info 21490 MonoDroid at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3917)
Info 21490 MonoDroid --- End of managed Java.Lang.IllegalStateException stack trace ---
Info 21490 MonoDroid at Java.Lang.Object.Dispose () [0x00000] in :0
Info 21490 MonoDroid at Java.Interop.JniEnvironment+InstanceMethods.CallIntMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method) [0x00084] in :0
Info 21490 MonoDroid at java.lang.reflect.Method.invoke(Native Method)
Info 21490 MonoDroid at Xamarin.Forms.Platform.Android.AppCompat.Platform.SetPage (Xamarin.Forms.Page newRoot) [0x0003f] in :0
Info 21490 MonoDroid at android.app.Activity.performDestroy(Activity.java:6456)
Info 21490 MonoDroid at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
Info 21490 MonoDroid at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnDestroy () [0x0002f] in :0
Info 21490 MonoDroid at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:638)
Info 21490 MonoDroid at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <3dc9ed3d31194319991e686734adcb10>:0
Info 21490 MonoDroid at Java.Lang.Object.Dispose () [0x00000] in :0
Info 21490 MonoDroid at (wrapper dynamic-method) System.Object:6f2e6987-977b-432f-8375-f3d485570471 (intptr,intptr)
Info 21490 MonoDroid at Android.Runtime.JNIEnv.CallIntMethod (System.IntPtr jobject, System.IntPtr jmethod) [0x0000e] in :0
Info 21490 MonoDroid at md5b60ffeb829f638581ab2bb9b1a7f4f3f.FormsAppCompatActivity.n_onDestroy(Native Method)
Info 21490 MonoDroid at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1515)
Info 21490 MonoDroid java.lang.IllegalStateException: Activity has been destroyed
Info 21490 MonoDroid Java.Lang.IllegalStateException: Activity has been destroyed
Info 21490 MonoDroid at android.app.ActivityThread.access$1500(ActivityThread.java:154)
Info 21490 MonoDroid at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445)
Info 21490 MonoDroid at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3948)
Info 21490 MonoDroid at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Info 21490 MonoDroid at Xamarin.Forms.Platform.Android.AppCompat.MasterDetailPageRenderer.Dispose (System.Boolean disposing) [0x00046] in :0
Info 21490 MonoDroid at android.app.ActivityThread.main(ActivityThread.java:5526)
Info 21490 MonoDroid at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1143)
Info 21490 MonoDroid at Xamarin.Forms.Platform.Android.AppCompat.Platform.Dispose () [0x00010] in :0
Info 21490 MonoDroid at android.os.Handler.dispatchMessage(Handler.java:102)

Sign In or Register to comment.