You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what's the root cause of the issue, but I'm finding it very hard to investigate from my side.
I ported my app from UWP to WinUI 3, mostly because I'm curious about AOT performances.
I started by porting it to 1.5, and once done I moved to 1.6 preview 2.
I did all the fixes needed by AOT compilation and app works smoothly when launched from Visual Studio (still, as packaged, but this way AOT is only emulated as far as I understand)
The problems start when I actually publish a MSIX package and the code is actually compiled AOT.
The app works, as in, it starts and everything seems to be quite smooth, until the UI thread gets completely stuck.
I know that threading model changes from UWP to WinUI, and that reentrancy protection is gone, but I'm not sure whether this is the root cause of the issue or not and I'm not sure about how to verify this.
Also, if this was the case, I'd expect the freeze to occur whether the app is being compiled AOT or not.
The deadlock seems to happen very randomly (at times I can use the app for minutes, other times just for a couple of seconds, and it doesn't seem to be connected to any specific action) but it always happen on GC waiting for collection to be completed.
I hope that this is enough to investigate the issue:
Had the feeling that this was caused by the runtime, but I was told to open the issue here. Thanks for pointing out the cause, completely missed that readme!
Describe the bug
I'm not sure what's the root cause of the issue, but I'm finding it very hard to investigate from my side.
I ported my app from UWP to WinUI 3, mostly because I'm curious about AOT performances.
I started by porting it to 1.5, and once done I moved to 1.6 preview 2.
I did all the fixes needed by AOT compilation and app works smoothly when launched from Visual Studio (still, as packaged, but this way AOT is only emulated as far as I understand)
The problems start when I actually publish a MSIX package and the code is actually compiled AOT.
The app works, as in, it starts and everything seems to be quite smooth, until the UI thread gets completely stuck.
I know that threading model changes from UWP to WinUI, and that reentrancy protection is gone, but I'm not sure whether this is the root cause of the issue or not and I'm not sure about how to verify this.
Also, if this was the case, I'd expect the freeze to occur whether the app is being compiled AOT or not.
The deadlock seems to happen very randomly (at times I can use the app for minutes, other times just for a couple of seconds, and it doesn't seem to be connected to any specific action) but it always happen on GC waiting for collection to be completed.
I hope that this is enough to investigate the issue:
In case, I can provide a full dump as well, but I'd prefer to share it privately.
Steps to reproduce the bug
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6 Preview 2: 1.6.240821007-preview2
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: