-
Notifications
You must be signed in to change notification settings - Fork 847
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
Show uncaughtException as an internal error and quit the app #626
Conversation
@yuya-oc Do you want me to test something here? Also, do we currently show this error dialog, or is this adding it? |
@jasonblais Like Electron upgrading, please use for several days. The dialog should not appear frequently. https://circleci.com/gh/yuya-oc/desktop/438#artifacts Currently the application shows such errors only in command line console. So users can't know them even when a critical error happens. Then the application continues to work at such bad situation without quitting. |
Sounds good, I'll use the app and post here if there are any issues. What, if any, can we change for the dialog design and text? |
We can change texts, button labels, icon and misc things (see |
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.
Looks good to me, although I think we should make the visual design a little less windows-centric. Seeing as this is a cross platform application, we may have to design our own look and feel so that the dialog appears natural on all platforms.
0b0ef4f
to
04e1432
Compare
@MusikPolice Yeah, we'll have Asaad's help with UI mockups for this, #609 and #611 |
@yuya-oc the native modal looks perfect. |
@jasonblais Are there any feedback? |
@yuya-oc is there a way for the user to reopen the app via this dialog? E.g. something like attached |
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.
@yuya-oc, here are the proposed text changes:
Title: Mattermost
Text: The Mattermost app quit unexpectedly. Click “Show Details” to learn more. \n\n Internal error: {error}
Buttons: “Show Details” / “OK”
where \n
represents a new line
-
For Windows, can we have "Show Details" as a button next to "OK"?
-
What is the
(O)
on the Linux screenshot next toOK
, is that standard? -
Can the app be reopened via this dialog? (Not needed now, wondering if this can be accomplished later)
After the changes, it would be great to have a screenshot for Windows and Mac and I'll get final sign-off from our UI team.
Unfortunately I found an important issue for this. On Windows, it seems the app can't show the dialog when a problem actually happens. However strangely, if the app is launched from command line, the dialog properly appears. So I couldn't notice the problem in dev mode. I need to inspect Electron. |
1 - Unintentional. Should read 4 - Let me know and I can create a ticket for later
I see. We can also create a separate ticket for Windows for later. |
acb42ae
to
19ced85
Compare
@jasonblais Updated texts. https://circleci.com/gh/yuya-oc/desktop/467#artifacts
I didn't write in the previous comment though, the problem means that the app silently finishes if a problem actually happened. Is it acceptable? Of course, the report file is written in the data directory. |
1/2: Great! Thanks Yuya Is this something we want to consider for this PR, or do I create an improvement ticket for later?
Will the user see the dialog? |
@jasonblais
It was my misunderstanding. The actual problem was to call |
@yuya-oc If we add it, propose we modify the text to |
Updated: https://circleci.com/gh/yuya-oc/desktop/477#artifacts Test build: https://circleci.com/gh/yuya-oc/desktop/480#artifacts This build shows a test error 10 seconds later. |
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.
Looks great, thanks @yuya-oc! Good to merge
Before submitting, please confirm you've
npm run lint:js
for proper code formattingPlease provide the following information:
Summary
When an uncaught error occurred, the error log is saved to
AppData\Roaming\Mattermost\uncaughtException-*.txt
. Then a dialog would pop up to notice it.When the user click "Show detail", the file is opened in the default text editor.
Usually the error is unrecoverable, so the application should finish soon.
https://nodejs.org/api/process.html#process_warning_using_uncaughtexception_correctly
Issue link
#625
Test Cases
Additional Notes
CircleCI is delaying...