Skip to content

Winui3 App Page Freeze #10213

Closed
Closed

Description

@FF69B3

Describe the bug

Winui3 App Page Freeze

Steps to reproduce the bug

When switching between applications using ALT + TAB, there is a chance that the application may freeze,

It will restore when the Alt key is pressed again.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Activity

  1. XFEstudio commented on Dec 16, 2024

    @XFEstudio

    Same as this problem
    Every time I switch to another window by using alt+tab and switch back, this page will freeze until I press space.

  2. dim0147 commented on Dec 17, 2024

    @dim0147

    Video, using mouse wheel & alt tab sometimes cause hang
    https://github.com/user-attachments/assets/88a3ecd3-9adf-41f5-b835-fee96095e190
    WinUI Gallery v2.5.1

  3. bogdan-patraucean commented on Feb 7, 2025

    @bogdan-patraucean

    This bug needs to be fixed ASAP, as it makes apps unusable. This was not an issue in 1.5 version. It's not just Alt-Tab, it's just switching from a window to another, one being the app. The issue is happening on Windows 10 as well.

    I'm considering downgrading the version if this is not fixed in 1.7. Can't release the app in this state. I would probably wake up with hundreds of bug reports.

    There are at least 3 more issues related to this:

  4. brentesh commented on Feb 19, 2025

    @brentesh

    We have a production ERP that is seeing this issue as well and causing quite a few customer complaints. Is there any update on this at all?

  5. brentesh commented on Feb 19, 2025

    @brentesh

    Is there any work-around for this besides just downgrading?

  6. svsnux commented on Feb 19, 2025

    @svsnux

    This bug is causing major issues with our clients...

  7. nseveno commented on Feb 28, 2025

    @nseveno

    Hi, I also have a freeze problem with a WinUI 3 application.

    It happens mostly when I Iaunch the application from Visual Studio (with or without a debugger attached).
    It happens also sometimes when a ListView is refreshed.
    It happens less when executing a Release build, but this is still a big problem.

    I'm unable to find the cause.
    Please correct this bug ! Or provide a workaround. The 1.6 SDK is unusable with this kind of bug !

  8. brentesh commented on Feb 28, 2025

    @brentesh

    We've moved back to 1.5 until this is resolved.

  9. bogdan-patraucean commented on Mar 20, 2025

    @bogdan-patraucean

    1.7 released and still not fixed.

  10. MPITech commented on Mar 20, 2025

    @MPITech

    May I suggest that the OP change the subject to something more descriptive, like "... when ALT+TAB is used" or "when switching windows". It may help it get attention... although, sometimes I wonder if the team is actually reading ANY of these posts anymore.

  11. wbokkers commented on Mar 25, 2025

    @wbokkers

    We also have more and more customers reporting that our app is freezing on them. I am not sure if it has to do with this same issue.

  12. semiroot commented on Mar 25, 2025

    @semiroot

    I have a similar if not the same issue.

    At a random point (no window/app switching), the ui freezes fully/or partially.
    Fully meaning no ui related events are fired making the window feel frozen.
    Partially meaning a scroll view inside can still be scrolled but no other pointer or keyboard event is handled.
    In most cases, labels of buttons are not rendered but their icons are.

    No exception is thrown and the app is actually still running (I can even force garbage collection with JetBrains dotMemory). I can close the app by closing the window.

    I can sometimes reproduce the issue when excessively navigating with Tab/Shift+Tab.

    I have this issue in version 1.6.x and 1.7 of Windows App SDK.

  13. lgBlog commented on Mar 26, 2025

    @lgBlog

    On any page, long pressing the TAB key will cause the UI to freeze

  14. cconner100 commented on Apr 8, 2025

    @cconner100

    This is also causing us not to release the new version of our system. We really need a fix for this from msft soon

  15. MPITech commented on Apr 8, 2025

    @MPITech

    We're seeing this more and more as we develop and test our app. We really need this fixed as we approach release. We're begging you.

  16. codendone commented on Apr 10, 2025

    @codendone
    Contributor

    There was a fix in 1.6.7 and 1.7.1 which may address this issue:

    • Fixed an issue where pointer input would stop working when using arrow keys at the same time. For more info, see GitHub issue #10126.
    • Fixed an issue where apps in remote desktop stop responding to pointer input. For more info, see GitHub issue #10009. (This is the same fix as the pointer input plus arrow keys fix, due to remote desktop automatically sending some key input during the switch away and back.)

    1.7.1 additionally has this fix:

    • Fixed an issue where app UI sometimes permanently freezes and can stop rendering due to the DispatcherQueue getting stuck. (RuntimeCompatibilityChange: FixRandomUIFreezeInDispatcher)

    Please let us know if you see an improvement with these versions!

  17. FF69B3 commented on Apr 18, 2025

    @FF69B3
    Author

    1.6.7 和 1.7.1 中有一个修复程序,可能会解决此问题:

    • 修复了同时使用箭头键时指针输入停止工作的问题。有关详细信息,请参阅 GitHub 问题 #10126。
    • 修复了远程桌面中的应用程序停止响应指针输入的问题。有关详细信息,请参阅 GitHub 问题 #10009。(这与指针输入加箭头键的修复相同,因为远程桌面在切换期间会自动发送一些按键输入。

    1.7.1 还修复了以下问题:

    • 修复了应用程序 UI 有时会永久冻结并可能由于 DispatcherQueue 卡住而停止渲染的问题。(RuntimeCompatibilityChange:FixRandomUIFreezeInDispatcher)

    如果您看到这些版本的改进,请告诉我们!

    Fixed

  18. vsvsav commented on May 6, 2025

    @vsvsav

    it hangs with DataGrid & ColumnWidth="*" & <DataGrid.Columns><`DataGridTextColumn> & empty rows on window resize
    for the latest
    WindowsAppSDK 1.7.250401001
    CommunityToolkit.WinUI.UI.Controls.DataGrid 7.1.2
    .NET9 WinUI3 Desktop Debug & Release

    It works stably with ColumnWidth="100"
    or `ColumnWidth="*" & HeadersVisibility="All" & GridLinesVisibility="All"
    or ColumnWidth="*" without <DataGrid.Columns>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions