vscodium
vscodium copied to clipboard
Crashpad disabled regardless of `enable-crash-reporter` argv
Describe the bug
Due to the patch introduced in #787 , regardless of the enable-crash-reporter argv, the crash-reporter is always disabled.
- unless one start the program with
--crash-reporter-directorypresent. - the vscodium patch quits
configureCrashReporterif there is noproduct.appCenter. There always isn't, is it? - so there is always no electron crash minidumps for vscodium. Very frustrating for users who come to vscodium just for a pdb-available electron.
Expected behavior
- The
enable-crash-reporterargv is supposed to be the rightful controller over whetherconfigureCrashReportershould be run. (check https://github.com/microsoft/vscode/blob/8a19756adf1b689e4f490a871d5067e6c54e3d01/src/main.js#L83C54-L83C75 ) - If user
enable-crash-reporter, the directory set for crashDumps (%appdata/VSCodium/Crashpadby default) should be initilized, containing an emptysettings.datand two directoriesattachmentsandreports. Minidumps are to be placed in thereportsdir lest a crash happens someday.
My Proposals
- The original problem that lead to #787 patch had been resolved by https://github.com/microsoft/vscode/commit/65475dc56e04da109cf3744987f2e00fafca914f . Should
submitURLbe empty or undefined,uploadToServerwould be false, making it acceptable tocrashReporter.start(). So we might as well remove thecrash-reporter.patch. - Document the
--crash-reporter-directory <absolute-path>cli option somewhere in the codium repository (based on infomation from vscode), so that users can have a better understanding of the crash telemetry, and quickly get to how to get dumps when electron crashes.
- From my opinion, this single cli option enables crash dump and disables crash telemetry at the same time, and is very worth recommending to our users.
- This infomation will also be especially helpful for users who have to stick on an earlier version of codium (permanently affected by the 787-patch!) due to compatibility reasons but also looking for minidumps.
- For the current documents, the mentioning of
telemetry.enableCrashReporterhas been obselete (and potentially misleading!) since the one-time transition in v1.49, and should be updated.
Please confirm that this problem is VSCodium-specific
- [x] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.
Please confirm that the issue/resolution isn't already documented
- [x] I checked the Docs page and the Troubleshooting page and my issue is not mentioned there.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment, and we'll keep it open. If you have any new additional information, please include it with your comment!
i believe the issue and the solution still validates.