NavigationView.cpp throws exception in Windows.UI.Xaml.dll: Access violation reading location 0x1B0144C4
See original GitHub issueDescribe the bug
I’m using NavigationView inside a XboxGameBarWidget settings widget. The first time i open the Settings view with NavigationView, it works fine. However, the second time (or occasionally the problem takes a few more opens to trigger) the I get an exception:
Exception thrown at 0x79B12FF9 (Windows.UI.Xaml.dll) in GhostOverlay.exe: 0xC0000005: Access violation reading location 0x17672284.
That appears to be in NavigationView::MeasureOverride
on the final return __super::MeasureOverride(availableSize);
line.
Steps to reproduce the bug
Steps to reproduce the behavior:
I do not have a reproduction project available right now, as it relies on authentication to a remote API, However my project is on Github https://github.com/joshhunt/GhostOverlay/blob/master/GhostOverlay/WidgetSettingsBountiesView.xaml.cs. WidgetSettingsView
contains the NavigationView, with WidgetSettingsBountiesView
being the first page in the nav.
Expected behavior I expect it to not crash!!!
Version Info Windows 10 1909 - Desktop Microsoft.UI.Xaml 2.3.200213001
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (5 by maintainers)
Top GitHub Comments
@joshhunt can you try using the latest pre-release build ? There have been several updates to NavigationView since the last stable release.
The NavigationView in MUX has a lot of updates compared to the one in the platform. Once you update to WinUI3, you will get the MUX one as well, so it would be good to not revert back to the one in the platform. If we can figure out what the crash is then it would be helpful.