question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NavigationView.cpp throws exception in Windows.UI.Xaml.dll: Access violation reading location 0x1B0144C4

See original GitHub issue

Describe 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.

image

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:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ranjeshjcommented, Apr 22, 2020

@joshhunt can you try using the latest pre-release build ? There have been several updates to NavigationView since the last stable release.

1reaction
ranjeshjcommented, May 12, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception thrown at Windows.UI.Xaml.dll. 0xC0000005
0xC0000005: Access violation reading location 0x00000000. Note that this exception is thrown only for the first time while the app is installed and...
Read more >
Changing NavigationView.MenuItemsSource crashes
my app crashes with 0xC0000005: Access violation reading location 0x00000000. in NavigationView.cpp at line 924.
Read more >
Unhandled exception at Windows.UI.Xaml.dll (Access ...
As soon as the original view is shown, click on the usercontrol multiple times continuously as fast as one can. Result: Exception thrown:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found