-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Crash on Screen rotation on Xamarin.Forms 4.6.0.772 and newer #10733
Comments
Same here - Android apps crashing on screen rotation after upgrading to: Xamarin.Forms v4.6.0.772. This includes blank android apps. iOS has no issue. Downgrading to: v4.6.0.726. fixes the issue. |
Same thing happening here on iOS when the application is moved to the background. Happens on both Simulator targeting 13.4 and on an iPhone 7+ (iOS 13.4) StackTrace:
|
Does downgrading to v4.6.0.726 fixes your issue @dhewitson ? |
@realivanjx yes it does |
Same thing happened to me today, downgraded and problem disappeared |
Hadn't noticed before but I also get the same issue as @dhewitson on iOS. |
Thanks for the feedback to everyone. This PR should fix this issue: #10714 |
Same here. Our workaround for Android until #10714 is merged: // MainActivity.cs
public override void OnConfigurationChanged(Configuration newConfig)
{
if (Device.Flags == null)
{
Device.SetFlags(new List<string>());
}
base.OnConfigurationChanged(newConfig);
} |
should be fixed here |
Im also seeing this crash on iOS on 4.7.0.1080 when I rotate the screen
|
@jdinnen That should be fixed by SR2, which will be out later today. Thanks for your patience! |
Seems to be good in 4.7.0.1142, thank you! |
Sorry but it's still happening in iOS when you have a CollectionView filled in a ContentPage. Xamarin Forms: 4.8.0.1364 2020-09-15 16:25:05.933455+0200 Rabbit2.iOS[96613:9707274] [Snapshotting] Snapshotting a view (0x7fcd0f859aa0, Xamarin_Forms_Platform_iOS_VerticalCell) that is not in a visible window requires afterScreenUpdates:YES. |
Same here. |
I've tried on the 5.0.0.2401 and the issue is still there. |
My workaround is:
|
Description
There is a crash in Xamarin.Forms 4.6.0.772 and newer on android during screen orientation changes. I have tested it on a blank app and it also crashes.
Rotation Crash.txt
Steps to Reproduce
Expected Behavior
Screen content rotates
Actual Behavior
App crashes
Basic Information
Workaround
Roll back to version 4.6.0.726
The text was updated successfully, but these errors were encountered: