-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Code Quality: Handle COM and other exceptions in file dialog services #17448
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't have a good error handling (that is, a error dialog), even if we do this, the dialog just doesn't appear and user would think it's broken from the start. We'd just better let it crash.
And ALL of them never should go wrong; exiting gracefully makes it harder to catch up.
An error message can be added, but in any event, I would prefer for it to look like nothing is happening than for the app to crash. |
|
That case, sure. |
|
I'm curious why it's failing in the first place, can they be missing a service? |
|
Based on the exception type which is COMException, one of the com methods are failing. Note that it should NEVER happen. Can think of the APIs not found *somehow* or the general memory failures happening. |
|
We have close to a dozen reports for this in Sentry. |
|
This adds detailed error code to the log and I think log is also reported to Sentry in the same user's page, right? I don't have access to there but you should be able to knnow what the issue is from that. |
|
I don't see anything helpful in the stacktrace. |
|
I mean there should be going to have the HRESULT code now because this adds log and the logging also reports to Sentry, right? After a release published after this PR, we should be knowing the error code, I think. |
|
Sounds like a plan 👍 |
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.
Fixes FILES-APP-2PH. The issue was that: Windows COM subsystem failed to instantiate a file dialog object, indicating system-level corruption or critical resource failure.
falsewhen exceptions occur, indicating that the dialog operation failed.This fix was generated by Seer in Sentry, triggered by Yair. 👁️ Run ID: 831432
Not quite right? Click here to continue debugging with Seer.