-
Notifications
You must be signed in to change notification settings - Fork 804
Description
Describe the bug
In my own project https://github.com/sunjw/fhash/tree/future-winui-was1.7
After update to use Windows App SDK 1.7.1. Run the app in Visual Studio 2022 17.13.6 or 17.4 preview with Debug and Release build, when I close the app window, vs sometimes shows exception on 0x00007FF9877EB8F4 (Microsoft.ui.xaml.dll):
0x00007FF9877EB8F4 (Microsoft.ui.xaml.dll)处(位于 fHashWUI.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000040 时发生访问冲突。
The exception doesn't show with Windows App SDK 1.6.x.
Steps to reproduce the bug
- Open the solution "https://github.com/sunjw/fhash/blob/future-winui-was1.7/trunk/fhashwui17.sln"
- Select "Debug" or "Release" and "x64", build and run.
- After main window shown, close the window.
- Sometimes the exception raised. (>30% chance)
Expected behavior
No response
Screenshots
NuGet package version
None
Windows version
No response
Additional context
0x00007FF9877EB8F4 (Microsoft.ui.xaml.dll)处(位于 fHashWUI.exe 中)引发的异常: 0xC0000005: 读取位置 0x0000000000000040 时发生访问冲突。
callstack:
Microsoft.ui.xaml.dll!00007ff9877eb8f4() 未知
Microsoft.ui.xaml.dll!00007ff9877588b8() 未知
Microsoft.ui.xaml.dll!00007ff9879156f3() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984c72c8a() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984cb6dfd() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984bebd25() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984bee5b3() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984bf4450() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984b599c0() 未知
Microsoft.VisualStudio.DesignTools.WinUITap.dll!00007ff984bf88cd() 未知
CoreMessagingXP.dll!00007ff986fc5188() 未知
CoreMessagingXP.dll!00007ff986f70afd() 未知
CoreMessagingXP.dll!00007ff986f74b56() 未知
CoreMessagingXP.dll!00007ff986f7b190() 未知
CoreMessagingXP.dll!00007ff986f4b9cf() 未知
CoreMessagingXP.dll!00007ff986f89122() 未知
CoreMessagingXP.dll!00007ff986f4c980() 未知
CoreMessagingXP.dll!00007ff986f4c6ed() 未知
CoreMessagingXP.dll!00007ff986f3febc() 未知
CoreMessagingXP.dll!00007ff986f42d62() 未知
CoreMessagingXP.dll!00007ff986f430d8() 未知
CoreMessagingXP.dll!00007ff986f837a3() 未知
CoreMessagingXP.dll!00007ff986f83936() 未知
CoreMessagingXP.dll!00007ff986f83eae() 未知
user32.dll!00007ffad2feb643() 未知
user32.dll!00007ffad2fead1c() 未知
user32.dll!00007ffad30275c3() 未知
ntdll.dll!00007ffad533ffe4() 未知
win32u.dll!00007ffad29f12b4() 未知
ctxapclient64.dll!00007ffab1c4c698() 未知
user32.dll!00007ffad2ff434f() 未知
user32.dll!00007ffad2ff42d8() 未知
ctxapclient64.dll!00007ffab1c3cb2c() 未知
ctxapclient64.dll!00007ffab1c4c7d6() 未知
CoreMessagingXP.dll!00007ff986f83601() 未知
CoreMessagingXP.dll!00007ff986f433d4() 未知
CoreMessagingXP.dll!00007ff986f42623() 未知
CoreMessagingXP.dll!00007ff986f4e9a8() 未知
CoreMessagingXP.dll!00007ff986f3fcbc() 未知
CoreMessagingXP.dll!00007ff986f49335() 未知
CoreMessagingXP.dll!00007ff986fc73d1() 未知
CoreMessagingXP.dll!00007ff986fc3221() 未知
Microsoft.ui.xaml.dll!00007ff987244913() 未知
Microsoft.ui.xaml.dll!00007ff9872446ef() 未知
[托管到本机的转换]
Microsoft.WinUI.dll!ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference _obj = {WinRT.ObjectReference<WinRT.Interop.IUnknownVftbl>}, Microsoft.UI.Xaml.ApplicationInitializationCallback callback = {Method = {System.Reflection.RuntimeMethodInfo}}) 未知
Microsoft.WinUI.dll!Microsoft.UI.Xaml.Application.Start(Microsoft.UI.Xaml.ApplicationInitializationCallback callback = {Method = {System.Reflection.RuntimeMethodInfo}}) 未知
fHashWUI.dll!FilesHashWUI.Program.Main(string[] args = {string[0]}) 行 23 C#
[本机到托管的转换]
hostpolicy.dll!00007ffa8dabe8ec() 未知
hostpolicy.dll!00007ffa8dabebbc() 未知
hostpolicy.dll!00007ffa8dabf4ca() 未知
hostfxr.dll!00007ffa8db0d986() 未知
hostfxr.dll!00007ffa8db0ff66() 未知
hostfxr.dll!00007ffa8db1204c() 未知
hostfxr.dll!00007ffa8db10533() 未知
hostfxr.dll!00007ffa8db08460() 未知
fHashWUI.exe!00007ff69a5baae3() 未知
fHashWUI.exe!00007ff69a5baef6() 未知
fHashWUI.exe!00007ff69a5c2818() 未知
kernel32.dll!00007ffad47ae8d7() 未知
ntdll.dll!00007ffad52914fc() 未知
