Exception: iertutil.dll Access violation reading location 0x0000000000000000
See original GitHub issueDescribe the bug Application crashes on exit at base.h loc 2088 with the following exception.
Exception thrown at 0x00007FFA74BC12AA (iertutil.dll) in App3.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
__declspec(noinline) void unconditional_release_ref() noexcept
{
std::exchange(m_ptr, {})->Release(); // <- Here
}
Steps to reproduce the bug
Steps to reproduce the behavior:
- Create a C++ WinUI 3 desktop application.
- Modify MainWindow.xaml to the following:
<Window
x:Class="App3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App3"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<MenuBar Name="TestMenuBar">
<MenuBarItem Name="TestMenuItem" Title="Test"/>
</MenuBar>
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</StackPanel>
</Window>
- Run the application in x64.
- Close the application.
- Exception is thrown.
Expected behavior App closes without exception.
Screenshots
Version Info
NuGet package version:
Windows app type:
UWP | Win32 |
---|---|
Yes |
Windows 10 version | Saw the problem? |
---|---|
Insider Build (xxxxx) | |
May 2020 Update (19041) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | Yes |
October 2018 Update (17763) | |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Xbox | |
Surface Hub | |
IoT |
Additional context When run in x86 mode the following exception occurs:
Exception thrown at 0x6E0193DA (iertutil.dll) in App3.exe: 0xC0000005: Access violation reading location 0x00000000.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
C# program with access violation in iertutil.dll at exit
Running procdump.exe I was able to get a dump of the crash, with this error: Unhandled exception at 0x00007FFB0FDDFCA0 (iertutil.dll) in ...
Read more >Access violation reading location 0x00000000 when ...
Hi, I have developed a c# dll that makes http reqest using System.Net namespace. If I call the dll methods from an c#...
Read more >Premiere crashing in multiple scenarios
Exception Parameters: Access violation reading location ... C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\AdobePSL.dll.
Read more >exception thrown. Access violation reading Location
After running for almost half an hour my program throws an exception. dadc = GetDC(); dadc->FillRgn(); It throws exception at line 2.
Read more >AE is crashing because of an opengl issue
Exception Parameters: Access violation reading location 0x0000000000000250. Exception Message: 3221225477 The instruction at 0x%p referenced ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@stevenbrix Indeed. Here you go:
@AaronViviano are you able to load symbols for Microsoft.ui.xaml.dll?