Navigation.PushAsync(); on windows platform throws exception: Catastrophic failure (0x8000FFFF (E_UNEXPECTED)) with same page instance #8123
Labels
area-navigation
NavigationPage
platform/windows 🪟
s/needs-verification
Indicates that this issue needs initial verification before further triage will happen
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.
The issue still exists see #3931
Steps to Reproduce
Repo Steps: 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
6.0.312
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
10.0.19041
Did you find any workaround?
If you use
navigationPage.CurrentPage.Navigation.PushAsync(new NewGamePage())
you won't run into the issue so it looks like it can't handle PushAsync with the same instance.Relevant log output
No response
The text was updated successfully, but these errors were encountered: