Skip to content
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

Simple shell navigation causes Microsoft.UI.Xaml.Controls.Frame.NavigationFailed was unhandled. #22563

Open
AndersenBell opened this issue May 22, 2024 · 2 comments
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@AndersenBell
Copy link

Description

@BethMassi

When I click on a button that changes the IsVisible and IsEnabled of FlyoutItem(s) it causes the application to crash with a
Microsoft.UI.Xaml.Controls.Frame.NavigationFailed exception.

image

Steps to Reproduce

Run the application. Click on the "Click Me" button a random number of times (a lot some times)

Get the error.

When reproducing, I also occasionally see this:
Microsoft.UI.Xaml.UnhandledExceptionEventArgs
with a message of:
unable to figure out route for: //D_FAULT_FlyoutItem21/IMPL_home7/home7 (Parameter 'uri')

Link to public reproduction project repository

https://github.com/AndersenBell/maui-nav-error.git

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.17763.0

Did you find any workaround?

No. Catching the exception still causes the shell navigation to no longer work.

Relevant log output

'MauiApp5.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.5\System.Runtime.Intrinsics.dll'. 
Exception thrown: 'System.Runtime.InteropServices.COMException' in WinRT.Runtime.dll
Exception thrown: 'System.Runtime.InteropServices.COMException' in Microsoft.Maui.dll
'MauiApp5.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\PrivateAssemblies\Runtime\Microsoft.VisualStudio.Debugger.Runt
@AndersenBell AndersenBell added the t/bug Something isn't working label May 22, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@jaosnz-rep jaosnz-rep added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels May 22, 2024
@jaosnz-rep
Copy link

jaosnz-rep commented May 22, 2024

Can repro this issue at Windows platform on the latest 17.11 Preview 1(8.0.40/8.0.21/8.0.3).

@PureWeen PureWeen added platform/windows 🪟 area-controls-shell Shell Navigation, Routes, Tabs, Flyout labels May 22, 2024
@PureWeen PureWeen added this to the Backlog milestone May 22, 2024
@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants