Brave Browser keeps crashing after recent update

I updated my system this morning and since then brave browser keeps crashing within 15-20 seconds of launch. The Error messages displayed are :

❯ brave
[28049:28049:0909/201900.536793:ERROR:gl_implementation.cc(286)] Failed to load /usr/lib/brave/swiftshader/libGLESv2.so: /usr/lib/brave/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[28049:28049:0909/201900.538145:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open i915 (search paths /usr/lib/dri)
failed to load driver: i915
MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths /usr/lib/dri)
failed to load swrast driver
Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0
[28021:28021:0909/201902.742999:ERROR:CONSOLE(53)] "Uncaught QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'grid-sites-data-v1' exceeded the quota.", source: chrome://newtab/brave_new_tab.bundle.js (53)
[28021:28021:0909/201907.296104:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "chrome://newtab/". Extension manifest must request permission to access this host.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
[28021:28021:0909/201907.943432:ERROR:CONSOLE(53)] "Uncaught QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'grid-sites-data-v1' exceeded the quota.", source: chrome://newtab/brave_new_tab.bundle.js (53)
--2020-09-09 20:19:08--  https://cr.brave.com/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving cr.brave.com (cr.brave.com)... 64:ff9b::9765:7907, 151.101.121.7
Connecting to cr.brave.com (cr.brave.com)|64:ff9b::9765:7907|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36
Saving to: ‘/dev/fd/4’

/dev/fd/4                                     0%[                                                                                         ]       0  --.-KB/s               
Failed to get crash dump id.
Report Id: d0260000-88e8-05/dev/fd/4                                   100%[========================================================================================>]      36  --.-KB/s    in 0s      


/usr/bin/brave: line 27: 28021 Bus error               (core dumped) /usr/lib/brave/brave "$@" $SANDBOX_FLAG $PEPPER_FLASH_FLAG $USER_FLAGS

I have tried launching with no sandbox , no gpu accleration , and have read a lot of posts but couldn’t find a solution .

❯ brave --no-sandbox
[29304:29304:0909/203049.660326:ERROR:gl_implementation.cc(286)] Failed to load /usr/lib/brave/swiftshader/libGLESv2.so: /usr/lib/brave/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[29304:29304:0909/203049.661553:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
Failed to parse JSON adblock resources: EOF while parsing a value at line 1 column 0
[29280:29280:0909/203051.797857:ERROR:CONSOLE(53)] "Uncaught QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'grid-sites-data-v1' exceeded the quota.", source: chrome://newtab/brave_new_tab.bundle.js (53)
--2020-09-09 20:31:01--  https://cr.brave.com/
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving cr.brave.com (cr.brave.com)... 64:ff9b::9765:7907, 151.101.121.7
Connecting to cr.brave.com (cr.brave.com)|64:ff9b::9765:7907|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36
Saving to: ‘/dev/fd/4’

/dev/fd/4                          100%[==============================================================>]      36  --.-KB/s    in 0s      


Failed to get crash dump id.
Report Id: e3260000-88e8-05
/usr/bin/brave: line 27: 29280 Bus error               (core dumped) /usr/lib/brave/brave "$@" $SANDBOX_FLAG $PEPPER_FLASH_FLAG $USER_FLAGS

My system information is given below :

Manjaro Version: 20.1
Kernel : 5.7.19-2-MANJARO 
Shell : bash 5.0.18
DE : Xfce
CPU : Intel i7-8750H (12) @ 4.100GHz
dGPU : NVIDIA GeForce GTX 1050 Ti Mobile
iGPU : Intel UHD Graphics 630
Memory : 8 GB

Nvidia related info :

❯ nvidia-smi
Wed Sep  9 20:27:20 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.66       Driver Version: 450.66       CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   49C    P8    N/A /  N/A |      4MiB /  4042MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1070      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

Please guys help , I highly depend on brave for a lot of stuff :slightly_frowning_face:

I just installed it on my system to check and it works fine. That suggests it’s an issue specific to your system, or systems like yours.

On that note, looking at the error message, it’s complaining about missing dependencies… So the two things I would try are:

  1. Try to reinstall the browser by removing it completely and reinstall from the official repositories. (or run package verification tests)
  2. I would backup and remove the user configuration for Brave and try again to see if isnt something specific to your config… (I think that’s in the ~/.config/BraveSoftware directory)

Thanks for replying @lrissman !!

I already tried removing and reinstalling brave with the following commands:

$ sudo pacman -Rsn brave 
$ sudo pacman -S brave 

But the problem persists , I have tried beta and nightly channels as well , no luck .

I have tried removing the brave config as well , it launches once and then crashes on next run , I am not sure what’s wrong here ,

for now I have restored a snapshot from last Friday and it is working , so I guess it has something to do with the recent kernel update now I am on Kernel: 5.7.17-2-MANJARO after restoring the snapshot.

I don’t think this is a solution but I had no choice

It can be something else too but it is something from today’s updates that broke brave for sure …
As brave was not updated and neither I changed anything else in my system. I think it might be a gcc issue , as gcc was updated from 10.2.0-1 to 10.2.0-2

If it’s really kernel linked then try other kernels, like 5.4 or 4.19.

How exactly?

Have you already updated using

sudo pacman-mirrors -f && sudo pacman -Syyu

You also could try to de-install swiftshader.

As stated above by Wollie, I’d look into the dependencies as well as that seems the most likely – something not quite right there as per your original error message.

But failing that – I’m on Kernel 5.8.6-1 and it works for comparison

Linux ---- 5.8.6-1-MANJARO #1 SMP PREEMPT Thu Sep 3 14:19:36 UTC 2020 x86_64 GNU/Linux

I just removed brave and searched my filesystem. I found two places where it left behind junk:

/home/----/.config/BraveSoftware
/home/----/.config/BraveSoftware/Brave-Browser
/home/----/.config/BraveSoftware/Brave-Browser/biahpgbdmdkfgndcmfiipgcebobojjkp/1.0.12/tor-0.3.5.11-linux-brave-0

and

/usr/lib/brave

You may want to look into those and see if there’s something causing you grief. (or just backup/remove them and install again)

yeah i was getting a frozen typing problem and freeze up but on second install waited for a minute or 2 then went through the setup screens. typing worked and program worked. It seems the program has to check in first. so yeah install it start it wait 2 minutes before trying to use the program first time. then try.

Update make sure you have installed the brave-bin package from AUR and NOT brave as the later has been flagged out of date

I wish someone in the manjaro rep would add the icon to the brave-bin package in pacman package search or the browser recommendation.