-
Notifications
You must be signed in to change notification settings - Fork 666
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 3 & Reunion 0.5 error: Microsoft C++ exception: winrt::hresult_error at memory location 0x..... when NavigationView is using #4806
Comments
@LeftTwixWand , same. Looks like you narrowed it down further. When I singled stepped through initialization, I was able to get to a running state, so I assumed it was a bit more complicated and related to a background thread. Regardless, NavigationView is presently unusable with WinUI. |
@Noemata, unfortunately, WinUI 3 is not open source yet, and we can't check what is happening inside( |
@LeftTwixWand , indeed, we must wait. Hopefully, Microsoft will change its definition of production ready. This release is a curious kind of production grade. |
When the exception caught by VS, press F5 and continue works for me. |
@ojhad FYI |
There is a simple workaround for this, as explained in #4496 (comment) |
So strange. In one project I can just skip the error, and it will work. But in another, any manipulations with a NavigationView also will throw an exception: |
Hi @LeftTwixWand, you should see a fix for this bug in the upcoming WinUI 3/Project Reunion 0.8 Preview, which you can expect soon. Thanks for filing this! |
Thanks for everyone, who making such cool technologies) |
What is the status of this? I'm running into this problem without Reunion. Just the navigation control. As one of the comments noted, in one configuration (using HTTP to talk to a remove server), there is no error. In another configuration (using HTTP to talk to a local server), I get the error. You can't just step through it, it's a real exception. This is so deep in the WinUI code that there's no chance of reproducing it. When I build on a Windows 2019 Server, no error. When I build on a VM with Windows 11, no error. When I build on a laptop with all the other normal desktop connections and device, I get the error. |
@DRAirey1 how are you using WinUI without Reunion? Can you provide a repro/details. perhaps you are not hitting the same issue. |
I just created a new project from the WinUI templates in Visual Studio 2022.
No. I can't repro. It happens randomly and the variables include using MSAL, different releases of the SDK, debug/release build, etc. I can tell you that it's related to the BreadcrumbBar. The problem occurred when navigating to a page. The crash occurred while adding that view model to the ObservableCollection<ViewModel> that is bound to the Items Property of the BreadcrumbBar. When I replace the WinUI BreadcrumbBar with a custom control, the problem disappeared. The problem occurred deep in the WinUI code with an error identical to the OP. |
Describe the bug:
Impossible to use NavigationView component in WinUI 3 and Project Reunion 0.5.
Steps to reproduce the bug:
All you need to do for the bug reproducing, is to add NavigationView item to your XAML code:
<NavigationView/>
Screenshots:
Version Info
NuGet package version:
WinUI 3 - Project Reunion 0.5
Windows app type:
Additional context
I suppose, It's the same error, that describes in this issue: #4790
The text was updated successfully, but these errors were encountered: