-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] App crashes after updating to v4.2.0.709249 #7301
Comments
someone here is having the same problem |
Similar to this problem I am experiencing? Having to downgrade now. This version is unusable for me |
I had the exact issue, fixed it by changing my splashactivity from FormsAppCompatActivity to AppCompatActivity |
@bentmar - that seems to work for me too. Is there any side effect of doing this do you think? |
My issue is similar (related?), but instead of crashing on startup, it crashes when going back to the launcher:
|
App is not crashing with a new blank project with XF v4.2.0.709249, but if I'm adding a splash activity to the app it crashes with the same error right after MainActivity is shown |
To pinpoint the issue it seems that calling on destroy in a FormsAppCompatActivity gives us a crash in latest XF. For all of you using splashacitivities use AppCompatActivity instead of the FormsAppCompatActivity. @WilliamWatterson86 since youre probably not using anything Xamarin.Forms related in your splashactivity there will be no problem with this. |
Same here: at Java.Interop.JniPeerMembers/JniInstanceMethods.InvokeVirtualVoidMethod (string,Java.Interop.IJavaPeerable,Java.Interop.JniArgumentValue*) [0x0005f] in :0 Look at FormsAppCompatActivity.cs:228. |
|
Same here [MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] System.NullReferenceException: Object reference not set to an instance of an object.
[MonoDroid] at Xamarin.Forms.Platform.Android.AppCompat.Platform.op_Implicit (Xamarin.Forms.Platform.Android.AppCompat.Platform canvas) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:491
[MonoDroid] at Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnDestroy () [0x0002f] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:221
[MonoDroid] at Android.App.Activity.n_OnDestroy (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <14fc11fa46a741ab9dde75db7823aece>:0
[MonoDroid] at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.17(intptr,intptr) |
Probably caused by #6467 |
I've also solved this way |
#7706 Should fix this. If not, please re-open. |
Description
After updating to v4.2.0.709249 from v4.1.0.709244 the app is immediately crashing on startup with the following exception
`
0xFFFFFFFFFFFFFFFF in System.Diagnostics.Debugger.Mono_UnhandledException_internal C#
0x1 in System.Diagnostics.Debugger.Mono_UnhandledException C#
0x20 in Android.Runtime.DynamicMethodNameCounter.9 C#
0x1 in Xamarin.Forms.Platform.Android.AppCompat.Platform.op_Implicit at D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\Platform.cs:491,4 C#
0x3B in Xamarin.Forms.Platform.Android.FormsAppCompatActivity.OnDestroy at D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FormsAppCompatActivity.cs:221,4 C#
0xA in Android.App.Activity.n_OnDestroy C#
0x11 in Android.Runtime.DynamicMethodNameCounter.9 C#
`
Steps to Reproduce
Expected Behavior
App starts
Actual Behavior
App crashes
Basic Information
The text was updated successfully, but these errors were encountered: