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.
I create pages dynamically based on page class name like this:
async void listItem_tapped(object tappedItem)
var newPage=(Page) Activator.CreateInstance(Type.GetType(((fooClass)tappedItem)).PageName);
await this.Navigation.PushAsync (newPage,false);
and I remove pages from navigation stack on Disappearing ,
protected async override void OnDisappearing ()
this.Content = null;
The issue is that the pages are left in Navigation stack and RemovePage has no effect on them.
I tested it in Xamarin.Forms v22.214.171.12459 on ios simulator of Xamarin Studio v5.9.4.
I have checked this issue but unable to reproduce it.
Could you please provide us sample project so that I can reproduce this issue at my end.
the issue only happens on xamarin.forms on android.
calling Navigation.RemovePage in OnDisappering will trigger OnDisappering method again and this creates an infinite loop and will crash the application with stack over flow.
here is a sample project with two pages, page one has a button for navigating to page two and tries to remove page1 in OnDisappering
it works correctly without crash in xamarin.forms ios application
I have checked this issue with provided sample in comment #2 and getting same behavior as mentioned in comment #2.
Xamarin Studio 5.9.4 (build 5)
Mono 4.0.2 ((detached/c99aa0c)
GTK+ 2.24.23 (Raleigh theme)
Xcode 6.2 (6776)
Xamarin.Mac : 126.96.36.199 (Enterprise Edition)
Xamarin.iOS: 188.8.131.52 (Enterprise Edition)
Xamarin.Android : 184.108.40.206 (Enterprise Edition)
Mac OS X 10.9.4
Removing the page from the navigation stack in OnDissapearing event causes Android application to crash.
This issue is not happening for me on 2.3.3.-pre3. Can you re-test?
I have checked this issue with Xamarin.Forms 2.3.3-pre3 and observed that this issue is working fine.
Hence closing this issue.