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 for Bug 53870 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 20768 [details]
App crashes after viewing 4-6 pages when an image is set using NavigationPage.SetTItleIcon.
Run the attached sample app. It brings up a list of announcements. Tap on one, then tap the back arrow to return to the previous list. Tap on another announcement, then tap the back arrow again. Repeat this a few more times, and the app will crash.
There is a variable in AnnouncementPage.xaml.cs _useTitleImage set to true. Change that to false and the app won't crash. The difference is text is now being set into the Title field rather than an image in SetTitleIcon.
Title = "Memory Test";
Set _useTitleImage back to true and change to the latest stable release of Forms. Repeat the test and the app will no longer crash.
Created attachment 20769 [details]
Can you confirm that this doesn't occur using the latest nightly build (https://blog.xamarin.com/try-the-latest-in-xamarin-forms-with-nightly-builds/)? It looks that way for me (stable doesn't crash, prerelease crashes, nightly doesn't).
With the latest nightly build(s) I'm getting an exception on startup:
System.InvalidCastException: Specified cast is not valid.
I am getting the same InvalidCastException with nightly build 76.