Navigation.PushAsync(); on windows platform throws exception: Catastrophic failure (0x8000FFFF (E_UNEXPECTED)) with same page instance #3931
Labels
area-navigation
NavigationPage
platform/windows 🪟
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
Navigation.PushAsync(); throws exception: Catastrophic failure (0x8000FFFF (E_UNEXPECTED)) on the windows platform if a singleton instance of the page is provided. Cannot reproduced on android.
Steps to Reproduce
Repo: https://github.com/mfe-/MauiApp1-Noinstalledcomponentsweredetected
NewGamePage.xaml
App.xaml.cs
replaceMainPage = new MainPage()
withMainPage = new NavigationPage(new MainPage());
MainPage.xaml.cs
replace the content ofOnCounterClicked
withclick me
click me
App.g.i.cs
throwsexception: Catastrophic failure (0x8000FFFF (E_UNEXPECTED)) Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled.
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
10.0.19041
Did you find any workaround?
Don't use a singleton for the page instance.
Relevant log output
The text was updated successfully, but these errors were encountered: