[Bug] [Windows] File Picker Crashes After File Not Found #16068
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
platform/windows 🪟
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When using the file picker:
If you try to put in an invalid file, you get a File Not Found warning dialog, but now the file picker is in a broken state. Clicking on the cancel will cause it to crash, as will trying to select a valid file. Unlike in other file pickers, at this point the file name will not get over written regardless of what file you try to select.
I get the following output:
Surrounding the
FilePicker.PickAsync();
with a try/catch causes the program to get into a locked state with the file picker UI closing but still seeming like it has focus as you can't interact with the main UI anymore.Linking to basic repo I found that has both multi and single file pickers. Thought the problem might be specific to something I was doing, but same behavior in demo repo I found:
https://github.com/jfversluis/MauiFilePickerSample
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jfversluis/MauiFilePickerSample
Version with bug
7.0.49
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.17763.0
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: