brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.52k stars 2.27k forks source link

Windows users unable to launch Brave after update to 1.68.128 #40005

Closed Brave-Matt closed 1 month ago

Brave-Matt commented 1 month ago

Description

Brave won't launch normally for Windows users after the latest update to v1.68.128. Notably, Private windows will launch properly but trying to open the standard browser will not. Disabling extensions (via flag), opening a new profile and reinstalling does not resolve the issue. This has been reported multiple times on our support site/socials:

Steps to reproduce

  1. Launch Brave after update to 1.68.128 on Windows

Actual result

Browser won't launch/crashes

Expected result

Browser opens

Reproduces how often

Easily reproduced

Brave version (brave://version info)

v1.68.128

Channel information

Reproducibility

Miscellaneous information

Internal Slack thread: https://bravesoftware.slack.com/archives/C012NN4F6UU/p1721848474288939

bsclifton commented 1 month ago

Steps to reproduce:

  1. Fresh profile
  2. Exit Brave
  3. Use an editor to open the Local State file at the root of the profile
  4. Find the section avatar_icon":"chrome://theme/IDR_PROFILE_
  5. Change the value of avatar_icon to be chrome://theme/IDR_PROFILE_AVATAR_28 and save the file
  6. Launch Brave
  7. It crashes
bsclifton commented 1 month ago

As a work-around to folks experiencing this, you can do the above - and then change the IDR_PROFILE_AVATAR_28 part to IDR_PROFILE_AVATAR_26 for example and save. That should fix you

LaurenWags commented 1 month ago

Tried STR from https://github.com/brave/brave-browser/issues/40005#issuecomment-2251241020 on macOS 1.68.128 Chromium: 127.0.6533.73 and confirmed chrome://theme/IDR_PROFILE_AVATAR_28 displays fine on macOS:

Screenshot 2024-07-25 at 4 43 17 PM
Brave | 1.68.128 Chromium: 127.0.6533.73 (Official Build) (x86_64)
-- | --
Revision | 800676fd9ede2eb4174bac98c186e53749c7201f
OS | macOS Version 13.6.7 (Build 22G720)

brave://local-state:

Screenshot 2024-07-25 at 4 50 40 PM
kjozwiak commented 1 month ago

Steps to reproduce:

  1. Fresh profile
  2. Exit Brave
  3. Use an editor to open the Local State file at the root of the profile
  4. Find the section avatar_icon":"chrome://theme/IDR_PROFILE_
  5. Change the value of avatar_icon to be chrome://theme/IDR_PROFILE_AVATAR_28 and save the file
  6. Launch Brave
  7. It crashes

So using the above STR/Cases that @bsclifton mentioned above, I can reproduce the crash pretty easily as per the following:

Example of the above occurring on Win 11 x64:

https://github.com/user-attachments/assets/92f424b3-7a9d-41e2-9e38-5d76b054afe0

kjozwiak commented 1 month ago

The above requires 1.68.131 or higher for 1.68.x verification 👍

kjozwiak commented 1 month ago

Verification PASSED on Win 11 x64 using the following build(s):

Brave | 1.68.131 Chromium: 127.0.6533.73 (Official Build) (64-bit)
-- | --
Revision | 8167dd98e054f33ff258260aaf64d2eba8110772
OS | Windows 11 Version 23H2 (Build 22631.3958)

Using the STR/Cases from both https://github.com/brave/brave-core/pull/24863#issue-2431149942 & https://github.com/brave/brave-browser/issues/40005#issuecomment-2251398295, ensured that Brave isn't crashing when chrome://theme/IDR_PROFILE_AVATAR_28 as per the following cases:

Test Case #1 - Clean Install

Ran through the above several times and ensured that Brave wasn't crashing.

https://github.com/user-attachments/assets/e7a7d90b-9354-4842-b598-6289eb817d0b

Test Case #2 - Upgrading from 1.68.x broken State

https://github.com/user-attachments/assets/c17d4966-f311-4f71-96f4-deaaa5b0ec5d

Test Case #3 - Upgrading from 1.67.x -> 1.68.x

https://github.com/user-attachments/assets/bd064d61-8bca-481b-a5eb-79c21dbd3c6a