-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinUI: Pushing the same page instance onto a NavigationPage after popping it causes a crash. #7698
Comments
Updated the title. MAUI uses WinUI, not UWP. |
verified repro on windows using above repro project. |
Any update on this issue? I'm running into the same exception when trying to create a SwapChainPanel custom renderer in WinUI. |
The issue with SwapChainPanel seems unrelated to this issue. The issue was caused by Maui's Background assignment which is not allowed on WinUI's SwapChainPanel. I had to add an empty property mapping handler for the Background property via the ModifyMapping method to prevent the crash. |
@mlancione Would you be willing to share the code fragment that you implemented as a workaround with Background? |
@dgerding In my Maui custom View constructor I added this:
|
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Notes on this so far: The Unhandled exception is thrown because "NavigationFailed" is not handled in the MAUI I'm not sure how the |
Will do more tests but, cannot reproduce it with the current main branch (7.0.200). |
https://github.com/drasticactions/MauiRepros/tree/main/MauiReusePageBug On the Current MAUI stable and main, it throws with the same errors listed above. |
I can confirm what drasticactions reported 2 weeks ago with the exact same repository and we can reproduce it across multiple machines as well. |
How do you handle the |
@datvm can you log a new bug? |
@PureWeen Hi, I don't know where to put the code in to log it. That's my question. How do I handle it or get the underlying exception that causes it? Right now all I get is the "Catastrophic failure ..." exception from the OP post. |
There are a lot of problems with navigation in MAUI for WinUI, and no problems for Android & iOS & macOS. So we rejected winui support. I waste a lot of time... Page2: await Shell.Current.GoToAsync($"///home") or "//home" - it works for Android & iOS & macOS, WinUI - does not. This is a basic thing that is not tested at all ?! Where are public MS MAUI unit tests? If you pay me, I will make basic samples that demonstrate the problems for WinUI only. |
Please, fix this bug. It blocks our migration from Xamarin to MAUI for the Windows support. We have not found a workaround to overcome this crash. |
Mine also happen when a <CollectionView
x:Name="PetAvatarCollectionView"
ItemsLayout="HorizontalList"
ItemsSource="{x:Binding UserProfile.UserPetProfile}">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="app:UserPetProfile">
<toolkit:AvatarView
CornerRadius="35"
HeightRequest="65"
ImageSource="{x:Binding PetImageUrl}"
WidthRequest="65" />
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView> namespace petaverse.frontend.mauiapp;
public partial class UserProfile : BaseModel
{
#region [ Properties ]
[ObservableProperty]
string guid;
[ObservableProperty]
string email;
[ObservableProperty]
string userName;
[ObservableProperty]
string phoneNumber;
[ObservableProperty]
string avatarUrl;
[ObservableProperty]
string bio;
[ObservableProperty]
bool gender;
[ObservableProperty]
string countryName;
[ObservableProperty]
string city;
[ObservableProperty]
string district;
[ObservableProperty]
string ward;
[ObservableProperty]
List<UserPetProfile> userPetProfile = new();
#endregion
}
public partial class UserPetProfile : BaseModel
{
[ObservableProperty]
string petImageUrl;
} |
As this issue was marked fixed months ago, I was curious if anyone has confirmed it fixed using .net 8 preview? |
Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you! |
Description
UWP only:
Push a ContentPage onto a NavigationPage.
Pop the page, using the back button.
Push the same page again.
Exception = {"Catastrophic failure (0x8000FFFF (E_UNEXPECTED))"}
Minimal repro:
https://github.com/Keflon/MauiNavigationBugRepro
Steps to Reproduce
In MainPage.xaml.cs add the following, where
_childPage
is set to an instance of a Maui PageVersion with bug
6.0 (current)
Last version that worked well
Release Candidate 3 (current)
Affected platforms
Windows
Affected platform versions
Latest
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: