Brave browser won't open on Linux Mint 19 Mate

Description of the issue:

I installed brave according to https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux “Ubuntu 16.04+ and Mint 18+”

I enabled user namespaces as per above

I followed the advice at Brave browser won't open on debian 64bit

sudo sysctl kernel.unprivileged_userns_clone=1
echo kernel.unprivileged_userns_clone = 1 | sudo tee /etc/sysctl.d/00-local-userns.conf

I rebooted

Steps to Reproduce (add as many as necessary):

  1. starting brave using the start menu

  2. starting brave from bash with " brave-browser" and " brave-browser --no-sandbox"

Actual Result (gifs and screenshots are welcome!):

Brave doesn’t open a window, error msgs when starting using bash

x:~$ brave-browser
[4043:4043:0607/045514.258488:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[4010:4037:0607/045514.615702:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/mm/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[4043:4043:0607/045514.638845:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[4043:4043:0607/045514.659113:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[4116:4116:0607/045514.671380:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[4010:4010:0607/045514.756152:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)
[4010:4010:0607/045514.769854:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)

x:~ brave-browser --no-sandbox [4339:4339:0607/045545.005482:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process. [4311:4331:0607/045545.391714:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/mm/.config/BraveSoftware/Brave-Browser/Default/ledger_state [4339:4339:0607/045545.410327:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command [4413:4413:0607/045545.429597:ERROR:ledger_impl.cc(358)] Failed to initialize wallet [4339:4339:0607/045545.432706:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command [4311:4311:0607/045545.490869:ERROR:CONSOLE(1)] "Uncaught ReferenceError: brave_new_tab is not defined", source: (1) [4311:4311:0607/045545.491404:ERROR:CONSOLE(1)] "Uncaught ReferenceError: brave_new_tab is not defined", source: (1) [4311:4333:0607/045600.882276:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/mm/.config/BraveSoftware/Brave-Browser/Default/ledger_state [4605:4605:0607/045600.882470:ERROR:ledger_impl.cc(358)] Failed to initialize wallet ^Cx:~

Expected result:

Brave opens a window

Reproduces how often:

Always

Operating System and Brave Version(See the About Brave page in the main menu):

LinuxMint 19 (tara)
GNOME: 3.28.2 (Ubuntu)
Kernel version: 4.15.0-51-generic (#55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019)
GCC: 7 (x86_64-linux-gnu)
Xorg: 1.19.6 (25 October 2018 04:11:27PM) (25 October 2018 04:11:27PM)

x:~$ brave-browser --version
Brave Browser 75.0.65.118

Additional Information:

HELP!

Have you tried turning hardware acceleration off? That seems to fix a related issue in other OSs. It looks like this switch should do it from the command line:
brave-browser --disable-accelerated-2d-canvas | Disable gpu-accelerated 2d canvas.
Brave opened and ran and didn’t appear to spew an error.

Here are some related switches that might be worth a try:
–disable-accelerated-jpeg-decoding | Disable partially decoding jpeg images using the GPU. At least YUV decoding will be accelerated when not using this flag. Has no effect unless GPU rasterization is enabled.
–disable-accelerated-mjpeg-decode | Disable hardware acceleration of mjpeg decode for captured frame, where available.
–disable-accelerated-video-decode | Disables hardware acceleration of video decode, where available.

I couldn’t reproduce your problem in Linux Mint 19 (tara) Cinnamon (yes, not Mate, I know).
It’d been a while since I used my Linux virtual machine, so I got to test Brave 0.60.47 in Linux Mint 19 (tara) Cinnamon 3.8.9, kernel 4.15.0.45-generic (#48-Ubuntu), gcc 7.3.0, Xorg 1.19.6, pixman 0.34.0. That worked fine, but I’m using Cinnamon. Even so I updated Mint to kernel 4.15.0-51-generic (among other things) since it needed doing and tried again. Brave 0.61.51 Chromium 73.0.3683.75 still worked in the updated Mint w/Cinnamon. After updating Brave’s signature, got it upgraded to 0.65.118 Chromium 75.0.3770.80 and it seems to be running fine.

Maybe it’s a Mate thing? Admittedly, I’m using a virtual machine in VirtualBox, but it’s now the same kernel and same distro except I have Cinnamon instead of Mate.

Maybe it’s a Mate thing?

I wonder. I like its simplicity, but Cinnamon seems more up to date. I tried all:

$ brave-browser --disable-accelerated-2d-canvas
[5783:5783:0613/220543.173550:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[5750:5849:0613/220543.609082:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/xxx/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[5783:5783:0613/220543.632440:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[5783:5783:0613/220543.648136:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[5852:5852:0613/220543.650012:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[5750:5750:0613/220543.756373:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: chrome://newtab/ (1)
[5750:5750:0613/220543.764185:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)
[5750:5750:0613/220543.875130:ERROR:CONSOLE(0)] “Fetch API cannot load https://pdfjs.robwu.nl/logpdfjs. Redirects to data: URL are allowed only when mode is “no-cors”.”, source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[5750:5750:0613/220543.875268:ERROR:CONSOLE(0)] “Uncaught (in promise) TypeError: Failed to fetch”, source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)

================================================================

$ brave-browser --disable-accelerated-jpeg-decoding
[6150:6150:0613/220736.462072:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[6116:6142:0613/220736.829535:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/xxx/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[6150:6150:0613/220736.839603:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6150:6150:0613/220736.855389:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6223:6223:0613/220736.875205:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[6116:6116:0613/220736.964804:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: chrome://newtab/ (1)
[6116:6116:0613/220736.966508:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)

================================================================

$ brave-browser --disable-accelerated-mjpeg-decode
[6457:6457:0613/220839.660158:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[6425:6449:0613/220840.050517:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/xxx/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[6457:6457:0613/220840.071487:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6457:6457:0613/220840.072357:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6529:6529:0613/220840.085194:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[6425:6425:0613/220840.204775:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: chrome://newtab/ (1)
[6425:6425:0613/220840.207497:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)

================================================================

$ brave-browser --disable-accelerated-video-decode
[6759:6759:0613/220919.810078:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[6726:6750:0613/220920.243541:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/xxx/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[6759:6759:0613/220920.254881:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6759:6759:0613/220920.269523:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[6833:6833:0613/220920.297423:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[6726:6726:0613/220920.361674:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)
[6726:6726:0613/220920.395591:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)

Hmm. I’ve seen reports of Brave not launching in macOS where the Brave-Browser folder is missing from ~/Library/Application Support/BraveSoftware, so that when Brave looks for the supporting files and settings and profiles and such it finds nothing and barfs.

The same type of folder appears in ~/.config/BraveSoftware in Mint and appears to have the same basic content as in macOS. If there isn’t a ~/.config/BraveSoftware/Brave-Browser directory/folder, creating one might fix it (it does in macOS).

It’s present.

I’ve uploaded it at http://www.byteshift.de/_tmp_brave.7z

Hmm. You probably tried Brave before enabling namespaces and doing what was recommended in the other post about Debian, but could you just confirm that? I don’t recall having to enable user namespaces to get Brave to work. My recollection is just following the installation instructions adding the signature/key and repository and using apt did the trick.

Are you running any antimalware software that might interfere? In Windows, Kaspersky is known to cause issues with Brave.

If I get some time this weekend, I’ll spin up a Linux Mint 19 VM with Mate and see what happens.

However, I’m pinging @Mattches to see if he has any ideas.

It seems odd to me that despite telling Brave to disable acceleration the messages it spews appear to indicate it’s creating multiple threads in the gpu (or at least trying).

IIRC I installed Brave first, then I enabled namespaces and re-installed.

antimalware software

No… The firewall was off, I activated it now, seems like a good idea… :slight_smile:

@Marek.Moehling,
I see that you tried launching with various gpu flags disabled.
Did you try launching with the generic --disable-gpu flag?

1 Like

I did now…:

$ brave-browser --disable-gp
[3339:3339:0616/195033.538954:ERROR:sandbox_linux.cc(368)] InitializeSandbox() called with multiple threads in process gpu-process.
[3306:3320:0616/195033.954192:ERROR:rewards_service_impl.cc(186)] Failed to read file: /home/mm/.config/BraveSoftware/Brave-Browser/Default/ledger_state
[3339:3339:0616/195033.995857:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[3412:3412:0616/195034.003207:ERROR:ledger_impl.cc(358)] Failed to initialize wallet
[3339:3339:0616/195034.009169:ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
[3306:3306:0616/195034.136376:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: chrome://newtab/ (1)
[3306:3306:0616/195034.137693:ERROR:CONSOLE(1)] “Uncaught ReferenceError: brave_new_tab is not defined”, source: (1)
[3306:3306:0616/195034.352131:ERROR:CONSOLE(0)] “Fetch API cannot load https://pdfjs.robwu.nl/logpdfjs. Redirects to data: URL are allowed only when mode is “no-cors”.”, source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[3306:3306:0616/195034.353352:ERROR:CONSOLE(0)] “Uncaught (in promise) TypeError: Failed to fetch”, source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)

Heureka, it works now after it updated to version “0.65.121 Chromium: 75.0.3770.100 (Official Build) (64-bit).”

2 Likes