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
fix: save crash reports locally when uploadToServer: false on linux #24778
Conversation
c7dd94c
to
17b51ad
Compare
// dump dir on linux. | ||
ifdescribe(process.platform !== 'linux')(`when ${crashingProcess} crashes`, () => { | ||
const processList = process.platform === 'linux' ? ['main', 'renderer', 'sandboxed-renderer'] | ||
: ['main', 'renderer', 'sandboxed-renderer', 'node']; |
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.
fix for node process on linux is non-trivial, filed #24779 for follow-up.
@@ -159,7 +167,7 @@ bool ElectronCrashReporterClient::GetCrashMetricsLocation( | |||
#endif // OS_MACOSX || OS_LINUX | |||
|
|||
bool ElectronCrashReporterClient::IsRunningUnattended() { | |||
return false; | |||
return !collect_stats_consent_; |
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.
Did you find this change to be necessary to get crashes to dump to disk? I'm surprised it would be needed.
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.
yup the crash dumping to disk for the browser process relies on this https://source.chromium.org/chromium/chromium/src/+/master:components/crash/core/app/breakpad_linux.cc;l=2068
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.
aha, this comment explains why the redundancy: https://source.chromium.org/chromium/chromium/src/+/master:components/crash/core/app/crashpad.cc;l=251-255;drc=e4696af2b851af0b99601ec463ef11209036c2bd
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
Failing tests are unrelated, merging. |
Release Notes Persisted
|
I was unable to backport this PR to "9-x-y" cleanly; |
I have automatically backported this PR to "10-x-y", please check out #24787 |
…24778) * fix: generate dumps under crashDumps folder in linux * Update spec-main/api-crash-reporter-spec.ts Co-authored-by: Jeremy Rose <jeremya@chromium.org>
@deepak1556 has manually backported this PR to "9-x-y", please check out #24788 |
Description of Change
Fixes #24714
Checklist
npm test
passesRelease Notes
Notes: save crash reports locally when uploadToServer: false on linux