The following App class creates a Map on a page that is navigated to from the main page:
public class App : Application
Button button = new Button
Text = "Navigate to Map",
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center
button.Clicked += async (sender, args) =>
await button.Navigation.PushAsync(new ContentPage
Content = new Map()
MainPage = new NavigationPage(new ContentPage
Content = button
On the UWP platforms, this map cannot change size. If the phone is rotated (or if the desktop window is resized), the program goes out on an unhandled exception with the text "Catastrophic failure."
I experience the same thing
Microsoft Lumia 640 XL Dual SIM
--> maybe it's also connected to Bug 39489?
Sorry bug reference in Comment 1 was ment to be Bug 41529
I forked the Xamarin.Forms Github project and tried this again with directly referencing the source projects (hoping I could fix it and make a pull request later).
So there must be a difference when using the nuget packages VS the sources - maybe someone has some insights for me?
I have the same issue.
To simulate the bug :
Create 2 page in the portable project.
page 1 has a button and when it is clicked, pushasync to the page 2.
page 2 has a simple map.
On UWP, when rotating the phone (Lumia 920 and Lumia 930) on page 2, the application crash with message "catastrophic failure".
When I replace pushasync by pushmodalasync, everything works perfectly.
I have the bug in 18.104.22.168 and previous version.
*** Bug 42847 has been marked as a duplicate of this bug. ***
Created attachment 17091 [details]
This seems to also be affecting W8.1 / WP8.1 RT apps. On mobile, it crashes when the device is rotated causing a size change.
However, on UWP, I cannot reproduce the crash anymore on devices running the W10 Anniversary Update (version 1607).
*** Bug 45289 has been marked as a duplicate of this bug. ***
*** Bug 49068 has been marked as a duplicate of this bug. ***
This looks like your problem:
Should be fixed on 2.3.5-pre1