Brave on Macbook Pro Crashing on Start

<---------Delete this line and everything above before posting---------->**

Description of the issue:
Brave Browser crashed in the middle of work and refuse(s) to open. Crashes immediately.

Steps to Reproduce (add as many as necessary): 1. 2. 3.
OS: Mac OS X 10.15.3
Just open the browser

Actual Result (gifs and screenshots are welcome!):
Crashing
Expected result:
Open
Reproduces how often:
Everytime
Operating System and Brave Version(See the About Brave page in the main menu):

Additional Information:

Tried the suggestions on the forum, none worked so far.

⇒ /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --version
Brave Browser 80.1.3.115

⇒ /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-brave-sync
[0222/155141.733410:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee6338000, 0x2000): (os/kern) invalid address (1)
[0222/155141.855976:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0222/155141.876411:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)
[4015:775:0222/155141.884023:ERROR:child_thread_impl.cc(222)] Invalid PlatformChannel receive right
[4014:775:0222/155141.887357:ERROR:child_thread_impl.cc(222)] Invalid PlatformChannel receive right
[1] 4000 segmentation fault /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

Not sure what to do now :frowning:

Hi @jaishankark - thanks a bunch for reporting. It looks like you’re 1 version behind. Can you update to the latest version and see if the problem continues?

Thanks in advance!

Hi @steeven

The Issue still persists.

Here is the info.

⇒ /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --version --disable-brave-sync
Brave Browser 80.1.3.118

⇒ /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-brave-sync
[44020:68867:0225/120947.250010:ERROR:rewards_service_impl.cc(206)] Failed to read file: /Users/jkarnaina/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[44025:775:0225/120947.289871:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[0225/120947.715325:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee1cfa000, 0x2000): (os/kern) invalid address (1)
[0225/120947.837870:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0225/120947.878585:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)

Thank you.

And with Sudo:

⇒ sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-brave-sync
Password:
[44302:775:0225/121303.990625:ERROR:dock.mm(156)] dock_plist is not an NSDictionary
[44302:26371:0225/121304.657268:ERROR:rewards_service_impl.cc(206)] Failed to read file: /var/root/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[44307:775:0225/121304.696619:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[0225/121305.116884:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee1314000, 0x2000): (os/kern) invalid address (1)
[0225/121305.231701:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0225/121305.242973:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)
[1] 44286 illegal hardware instruction sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

@jaishankark,
Can you try removing the --disable-brave-sync flag in your command?

Here you go:

⇒ sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser
Password:
[51868:775:0225/141251.214009:ERROR:dock.mm(156)] dock_plist is not an NSDictionary
[51868:59907:0225/141251.921891:ERROR:rewards_service_impl.cc(206)] Failed to read file: /var/root/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[51874:775:0225/141251.961290:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[0225/141252.405908:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee50ce000, 0x2000): (os/kern) invalid address (1)
[0225/141252.513628:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0225/141252.531589:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)
[1] 51867 illegal hardware instruction sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

There is no such file as ledger state in the specified location on line 2 above:

⇒ sudo ls -alrtp /var/root/Library/Application\ Support/BraveSoftware/Brave-Browser/Default/
total 928
-rw-r–r--@ 1 root wheel 164 Feb 22 15:30 README
drwx------@ 2 root wheel 64 Feb 22 15:30 rewards_service/
drwx------@ 3 root wheel 96 Feb 22 15:30 Sync Data/
-rw-------@ 1 root wheel 118784 Feb 22 15:30 History
-rw-------@ 1 root wheel 0 Feb 22 15:30 History-journal
-rw-------@ 1 root wheel 34816 Feb 22 15:30 Login Data
-rw-------@ 1 root wheel 0 Feb 22 15:30 Login Data-journal
-rw-------@ 1 root wheel 20480 Feb 22 15:30 Favicons
-rw-------@ 1 root wheel 0 Feb 22 15:30 Favicons-journal
drwx------@ 7 root wheel 224 Feb 22 15:30 GPUCache/
-rw-------@ 1 root wheel 20480 Feb 22 15:31 Cookies
-rw-------@ 1 root wheel 0 Feb 22 15:31 Cookies-journal
-rw-------@ 1 root wheel 67584 Feb 22 15:31 Web Data
-rw-------@ 1 root wheel 0 Feb 22 15:31 Web Data-journal
-rw-------@ 1 root wheel 20480 Feb 22 15:31 Top Sites
-rw-------@ 1 root wheel 0 Feb 22 15:31 Top Sites-journal
-rw-r–r--@ 1 root wheel 131072 Feb 22 15:31 Visited Links
-rw-------@ 1 root wheel 36864 Feb 22 15:31 Reporting and NEL
-rw-------@ 1 root wheel 0 Feb 22 15:31 Reporting and NEL-journal
drwx------@ 3 root wheel 96 Feb 22 15:31 Local Storage/
drwx------@ 8 root wheel 256 Feb 22 17:50 Extension State/
-rw-------@ 1 root wheel 8 Feb 25 12:13 Last Session
-rw-------@ 1 root wheel 8 Feb 25 12:13 Last Tabs
drwx------ 28 root wheel 896 Feb 25 14:12 …/
drwx------@ 8 root wheel 256 Feb 25 14:12 Platform Notifications/
drwx------@ 8 root wheel 256 Feb 25 14:12 Site Characteristics Database/
-rw-------@ 1 root wheel 8 Feb 25 14:12 Current Session
drwx------@ 8 root wheel 256 Feb 25 14:12 Session Storage/
drwx------@ 30 root wheel 960 Feb 25 14:12 ./
-rw-------@ 1 root wheel 8 Feb 25 14:12 Current Tabs

hey, any update on the issue ??

This isn’t an update on the problem per se, but the current version of Release is now
     Brave 1.4.95 Chromium: 80.0.3987.122 (Official Build) (64-bit)
     OS macOS Version 10.15.3 (Build 19D76)

You might try downloading and see if it works right, now. Here’s a link to the DMG:
https://github.com/brave/brave-browser/releases/download/v1.4.95/Brave-Browser.dmg

Also, if you haven’t tried it, you could try disabling hardware acceleration. If you need to do it via terminal, this should work
open -a '/Applications/Brave Browser.app' --args --disable-gpu

Here you go:

⇒ sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-gpu
Password:
[83577:775:0227/172335.675727:ERROR:dock.mm(156)] dock_plist is not an NSDictionary
[83577:43779:0227/172336.384445:ERROR:rewards_service_impl.cc(206)] Failed to read file: /var/root/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[83582:775:0227/172336.423777:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[0227/172336.851552:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee5c0d000, 0x2000): (os/kern) invalid address (1)
[0227/172337.055577:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0227/172337.238093:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)
[1] 83576 illegal hardware instruction sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

⇒ sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-gpu
[83901:775:0227/172715.859275:ERROR:dock.mm(156)] dock_plist is not an NSDictionary
[83901:72707:0227/172716.659249:ERROR:rewards_service_impl.cc(206)] Failed to read file: /var/root/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[83909:775:0227/172716.697494:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[83901:775:0227/172716.887319:ERROR:CONSOLE(0)] “Unchecked runtime.lastError: Cannot access contents of url “chrome://welcome/”. Extension manifest must request permission to access this host.”, source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
[0227/172717.170146:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee7f78000, 0x2000): (os/kern) invalid address (1)
[0227/172717.443874:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[0227/172717.474308:WARNING:crash_report_exception_handler.cc(239)] UniversalExceptionRaise: (os/kern) failure (5)
[1] 83900 illegal hardware instruction sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

⇒ sudo /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --version
Password:
Brave Browser 80.1.4.95

Hmm. Could you try using the command I posted? Because when I do, Brave launches without reporting any errors:

HnkAir:~ hnktong$ open -a '/Applications/Brave Browser.app' --args --disable-gpu
HnkAir:~ hnktong$ 

but when I do it your way, I get errors

Last login: Thu Feb 27 12:28:38 on ttys000
HnkAir:~ hnktong$ sudo  /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-gpu
Password:
[41892:775:0227/174932.192317:ERROR:dock.mm(168)] persistent_apps is not an NSArray
[41892:38915:0227/174933.157716:ERROR:rewards_service_impl.cc(206)] Failed to read file: /var/root/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[41898:775:0227/174933.199581:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
2020-02-27 17:49:36.668 Brave Browser[41892:1236188] Persistent UI failed to open file file:///var/root/Library/Saved%20Application%20State/com.brave.Browser.savedState/window_2.data: No such file or directory (2)
HnkAir:~ hnktong$ 

Without sudo:

HnkAir:~ hnktong$  /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser --disable-gpu
[41642:44803:0227/172736.228824:ERROR:rewards_service_impl.cc(206)] Failed to read file: /Users/hnktong/Library/Application Support/BraveSoftware/Brave-Browser/Default/ledger_state
[41651:775:0227/172736.347864:ERROR:ledger_impl.cc(102)] Failed to initialize wallet
[41642:775:0227/172740.228213:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "chrome://components/". Extension manifest must request permission to access this host.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
[41642:775:0227/172740.228553:ERROR:CONSOLE(0)] "Unchecked runtime.lastError: Cannot access contents of url "chrome://settings/help". Extension manifest must request permission to access this host.", source: chrome-extension://mnojpmjdmbbfmejpflffifhffcmidifd/_generated_background_page.html (0)
[41642:775:0227/172740.427487:ERROR:CONSOLE(4)] "Polymer is already defined.", source: chrome://settings/crisper.js (4)
[41642:775:0227/172835.280561:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.
[41642:775:0227/172903.696519:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.
[41642:775:0227/173001.408869:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.
[41642:775:0227/173128.109061:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.
[41642:775:0227/173430.795090:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.

I’m wondering if by going into the app’s package contents that it’s messing with the way things are called and the permissions the app has. Yes, you’d think using sudo would take care of that, but …

Also, you might try moving your profile folder (usually “Default” unless you created another one you use regularly) out of ~/Library/Application Support/BraveSoftware/Brave-Browser/User Data to your Documents or something, which protects your bookmarks and such, then delete the Brave-Browser folder and try relaunching Brave normally (from Applications folder or Dock). You probably know this, but the tilde ("~") at the beginning of the path represents your home folder.

My thinking is that if the state of the application when it crashed is somehow being restored at launch, such as by loading the tabs that were present at crash, that this might be what’s preventing it from running properly now.

Also, apologies if this has been asked earlier, but are you running any security, AV, or antimalware software? I run Malware Bytes and CleanMyMac without negative results, but, at least on the Windows side, software like Kaspersky often creates problems for Brave.

Thank you it worked this time, just the first command. Though all my bookmarks and everything is reset clean somehow.

If you moved your profile folder, they should be in there. There’s a bookmarks file you can just copy into the new Default folder after quitting Brave. Be sure to copy (hold Option while dragging and dropping) rather than move so you have a backup.
image

I’m not sure about the rest, but if there were there a lot of passwords, you could try copying (not moving) the entire contents except for anything having something like session or crash in its name. Maybe avoid sync, too. As long as you have the Default folder you moved to Documents or wherever intact, you can try over and over again if Brave crashes. I’ve copied my profile folder between different versions of Brave (Release, Beta, Nightly, Dev) and IIRC from one OS to another (macOS to Windows) and had most stuff stay intact. You can also do this to at least some degree (but make sure you back up your valuable stuff) with Chromium and Chrome - that is, copy Brave profile to one of those, or one of their profiles to one of the other browsers.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.