brave-browser: [Desktop] crash when updating a setting that requires restart when an update is waiting

Description

If you have an update waiting and you change a preference that requires a restart, when you restart Brave crashes. Sometimes this results in tab/window loss, but not always (still trying to narrow down that part).

Steps to Reproduce

  1. Download a previous version (ex. 1.12.103 on Beta).
  2. Launch, navigate to brave://settings/help to trigger update check.
  3. Once update is fully downloaded, navigate to brave://settings.
  4. Change a setting that requires restart (I’ve used either chromecast or crash report)
  5. Click Restart button for the setting you changed.

Actual result:

When Brave goes to restart there is a crash. My personal profile lost all tabs/windows however my test profiles did not (crash report was still generated though).

Example crash reports: 37180000-45d5-d704-0000-000000000000 (changed crash report setting to trigger need for restart, only produced one crash report)

2e180000-45d5-d704-0000-000000000000, 3b180000-45d5-d704-0000-000000000000 (changed chromecast setting to trigger need for restart, produced two crash reports)

d8120000-45d5-d704-0000-000000000000 (changed chrome cast setting to trigger need for restart, produced one crash report, this was for my personal profile where I lost all tabs/windows)

Expected result:

No crash.

Reproduces how often:

easily

Brave version (brave://version info)

see below for versions used

Version/Channel Information:

  • Can you reproduce this issue with the current release? yes 1.11.101 --> 1.11.104 upgrade
  • Can you reproduce this issue with the beta channel? yes 1.12.103 --> 1.13.54 upgrade
  • Can you reproduce this issue with the nightly channel? yes 1.14.6 --> 1.14.10 upgrade

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
  • Does the issue resolve itself when disabling Brave Rewards?
  • Is the issue reproducible on the latest version of Chrome?

Miscellaneous Information:

cc @bsclifton

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

Reproduced, this is actually super frequent crash, it just has slightly different fingerprints. Many thanks for repro @LaurenWags !!!

see https://github.com/brave/brave-browser/issues/12248

Nice catch @LaurenWags 👍 Doesn’t seem to be a high rate crash as we’ve only seen ~12 crashes as per the following:

https://brave.sp.backtrace.io/p/brave/explore?time=all&aggregations=((callstack%2Chead))&fingerprint=53d60d102e44ec2284abf4fac366b47c1215e606e060c8edf27aa6b2f9384e05