Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When you change the App.MainPage too many times will cause the Android App to crash, the same actions in iOS work just fine. To Reproduce, simply Create a new ContentPage with a button to create a new ContentPage and set it as the new MainPage (App.MainPage) and unload the current page, then run it. After clicking the button enough times, creating pages, setting them as the MainPage and then unloading them, the Android app will crash with an unexpected error. In my case I have an about page and a settings page, each with a single button and to verify this issue, I had the button in settings create and load an About page, and the button in the About page would create and load the Settings page. After about 6 button clicks, the application crashed. Maybe the Garbage Collector isn't cleaning up the pages?
It turns out that the issue is not due to switching the main page, but due to ViewCells in listviews causing android to crash. Please remove this bug as it is a duplicate of existing bugs on this platform.