-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
Description
.NET 10 Native AOT 导致 WinUI 3 桌面应用程序未响应
--------------------------------------------------------------------
.NET 10 Native AOT causes WinUI 3 desktop applications to not respond
Reproduction Steps
我的应用程序之前使用的是 .NET 9 版本,今天发布了 .NET 10 后,升级 WinUI 3 桌面应用到 .NET 10 版本,在 Debug 模式下开启了 Native AOT 后,桌面应用程序运行一段时间后(通常在 10 秒到 20 秒左右)就会导致未响应,而且也没有触发任何异常,在 .NET 9 版本(无论是否开了 AOT)和 .NET 10 without Native AOT 正常运行,所以我猜测是 .NET 10 Native AOT 出现了问题,希望 .NET 团队能定位一下 Native AOT 的这个 bug 并尽快修复。
--------------------------------------------------------------
My application was previously using.NET 9 version. After.NET 10 was released today, I upgraded the WinUI 3 desktop application to.NET 10 version and enabled Native AOT in Debug mode. After the desktop application runs for a period of time (usually around 10 to 20 seconds), it will cause unresponse and no exceptions will be triggered. It runs normally in.NET 9 version (regardless of whether AOT is enabled or not) and.NET 10 without Native AOT. So I guess there is a problem the.NET 10 Native AOT. I hope the.NET team can locate this bug of Native AOT and fix it as soon as possible.
Expected behavior
.NET 10 和 .NET 9 在 AOT 模式下正常运行
--------------------------------------------------------------------
.NET 10 and.NET 9 operate normally in AOT mode
Actual behavior
.NET 10 WinUI 3 桌面应用程序在开启 Native AOT 后会发生未响应,且不触发异常,难以找到具体问题
--------------------------------------------------------------------
.NET 10 WinUI 3 desktop applications will not respond after enabling Native AOT, and no exception will be triggered. It is difficult to find the specific problem
Regression?
继续使用 .NET 9
--------------------------------------------------------------------
Continue using .NET 9
Known Workarounds
继续使用 .NET 9
--------------------------------------------------------------------
Continue using .NET 9
Configuration
.NET 10.0
Windows 11 26100.7070
X64
None
None
Other information
截图和我的项目以及主线程调用堆栈
--------------------------------------------------------------------
Screenshots, my project and the main thread call stack
Metadata
Metadata
Assignees
Labels
Type
Projects
Status