Skip to content
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

App crash after invoked FilePicker.Default.PickAsync in administrator mode and release mode of the Unpackaged app #24141

Open
jingliancui opened this issue Aug 11, 2024 · 4 comments
Labels
area-controls-picker Picker platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@jingliancui
Copy link
Contributor

Description

The case specially crashes in

  1. Release Version
  2. Administrator mode
  3. Unpackaged App

Steps to Reproduce

  1. Open the .sln file by using VS2022
  2. Publish the app by using this command
    dotnet publish -f net8.0-windows10.0.19041.0 -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true
  3. Open the app using administrator mode
  4. Click the button "Chose File"

Actual Result:
App crash

Except Result:
App does not crash

Link to public reproduction project repository

https://github.com/jingliancui/MAUIWinFilePickerIssue

Version with bug

8.0.80 SR8

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

10.0.19041.0

Did you find any workaround?

No

Relevant log output

No
@jingliancui jingliancui added the t/bug Something isn't working label Aug 11, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03 ninachen03 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Aug 12, 2024
@ninachen03
Copy link

I can repro this issue at windows platform on the latest 17.11.0 Preview 7.0 (8.0.80 & 8.0.71).

@uwer62
Copy link

uwer62 commented Aug 14, 2024

Welcome to the club :-(
One has to dig two times deep.
WinUI3:
microsoft/microsoft-ui-xaml#9476 (closed) points to:
WindowsAppSDK:
microsoft/WindowsAppSDK#2504

This bug is open for 2 years now without a solution. We have chosen to to use the CommonOpenFileDialog from the WindowsAPICodePack.Shell.CommonFileDialogs NuGet package. It throws some warnings during build but it works.
It's really a shame that this doesn't get fixed

@MartyIX
Copy link
Contributor

MartyIX commented Dec 9, 2024

It looks like there might be some development for this issue: microsoft/WindowsAppSDK#4945

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-picker Picker platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants