-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win32 picking APIs causes the UI to freeze after dialog closes #8527
Comments
Workaround: Hover outside the main window, un-focus/re-focus, resize window. |
I am experiencing the same issue in my application. I hope that this is fixed in the near future as it is blocking an important feature. Note: this is running with standard windows privileges and is not elevated. |
Actually, drag the title bar and the UI response again. So same issue here. |
I cannot reproduce this problem in the test I had done with P/Invoke from C++ headers |
I am using the latest 1.3 version of the SDK (also tested with 1.4 experimental). This issue happens often but not every time. However, it happens often enough to cause a noticeable problem with the feature I am implementing. I believe there are other conflicts in the SDK or UI thread that freeze the application UI. After looking at your GitHub code, I realize we are using different File Open Dialogs. I am using:
So maybe your approach works around the UI freezing issue. Further Edit: |
I use My dialog constructing code can be found here |
I'm reproducing the same issue when printing to PDF (and selecting a folder) with a Telerik PdfViewer. Telerik has informed me that it is caused by this bug. |
In theory this should be fixed in 1.3.3 (1.3.230724000) by this change:
|
@codendone, thank you! I am closing this issue as from my tests I couldn't repro the bug in latest release of the SDK (1.3.230724000) in Dev Home and in the test app from this issue's description. Please re-open if this was not resolved for others. |
Describe the bug
In Dev Home, we are using the Win32 picker APIs as suggested in this doc to workaround the dialog exception issue when running the application in elevated mode. I noticed that using this API sometimes causes the application UI to become non-responsive after the file picker dialog is closed. I am able to repro on an empty WinUI application (details in next section).
Steps to reproduce the bug
XAML
XAML.CS
Repro recording
In this video, the third attempt shows the bug described in this issue where clicking the checkbox control becomes non-responsive.
FilePickerBug.mp4
Expected behavior
When dialog closes, application UI is unblocked.
Screenshots
Video attached above.
NuGet package version
WinUI 3 - Windows App SDK 1.3.1: 1.3.230502000
Windows version
Windows Insider Build (xxxxx)
Additional context
No response
The text was updated successfully, but these errors were encountered: