Brave Crashes constantly

I use Brave since it was released and am super happy with it (and recommend it to anyone).
A few days ago it started to crash - constantly. It was not possilbe to even see one page or the blank page.
I tried to resolve the Problem (downloading the latest version, disk utility first aid and so on) but unfortunately no difference.
I found out though that it has to do something withe the following folder:

~/Library/Application Support/BraveSoftware/Brave-Browser

If I delete this folder Brave starts up normally - but unfortunately all my bookmarks and everything else is gone (which is not good, because it is my sole browser I use and organize everything with).

I am using a MacBook Pro with macos 10.14.6, no addons. Other browsers and the rest of the apps are working normally.

Thank you for any support!

I’m experiencing the same problem. Brave unexpectedly quits and it continues to crash on startup until I can hit the don’t reopen button fast enough. Once I do that it seems to behave until the next time I close and re-open Brave.

Mac Mini MacOS High Sierra 10.13.6

This just started a few days ago and I am not experiencing this issue on my Windows 10 machine.

When you open a private window instead of a “normal” window, does it stay open without crashing?
Private mode disables your extensions, and is kind of like “safe mode” that can help with troubleshooting.

cannot test it - it crashes before I can do anything.

@macman,
Can you try downloading our Beta build and see if you get the same results? It’s interesting that deleting the directory you listed causes the app to load normally.

Once you delete it, the browser will launch and, on first launch, will also re-create that directory to store browsing data. I’m wondering if the issue is more on the system side or the data side (that is, if you have some data stored that is causing conflict with the browser when launched).

To clarify, this is happening to me only on starting the browser. I click on the icon in the dock and it crashes with the following:

Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000048

I then reopen but quickly say no to reopening the last window and if I am fast enough it opens properly.

Not to stop you from trying @Mattches’ suggestion to use the beta build, but:

I don’t have a Mac to test on, but in Windows, I can right click the icon on my taskbar and have a choice to open a private window. Do you have anything similar?

image

1 Like

Greetings. @G2theC, right-clicking the Brave dock icon doesn’t produce a result similar to the Windows task bar right-click, but (@macman @Damfino this opens an incognito window when run from Finder) one can write a simple scrip in Apple Script Editor to do it. The code is:
if application “Brave Browser” is running then
tell application “Brave Browser” to make new window with properties {mode:“incognito”}
else
do shell script “open -a ‘/Applications/Brave Browser.app’ --args --incognito”
end if
tell application “Brave Browser” to activate

This forum embeds format codes sometimes, so here’s a pic of what the editor window should look like (click to enlarge):

Save that as an application by selecting Export… in the File menu, Application as the File Format, name it, navigate in the dialog to get where you want to save it, click Save, and drag it to your dock. Or, you could try using the one I shared here (not positive it will work as is; you may have to do the export thing):

Thank you, but also private window does not work. Crashes.

Also the beta crashes.

@macman,
Can you either enable automatic crash reporting, or go to brave://crashes and use the Send now option to send crash reports to us so we can take a look on our end?

How do I do that? Where do I enter brave://crashes or how can I send? Brave doesn’t start …

Great point – my bad, it’s been a long day :sweat_smile:
Let me reach out to some team members and get some additional input on your situation.
Also, can you tell me if you have any anti-virus or system cleaning applications that are running on your system? Anything that may (for whatever reason) be unintentionally flagging/removing that Brave directory?

I can send you the crash report from Console … but where can I send it to?
No anti-virus or cleaning-apps. Nothing to remove that directory.
Crash reports are too long to post it here …

Tried most things suggested; turned off Malwarebytes, downloaded the beta, created and ran the AppleScript, nothing worked. Also restarted the system. Finder says Brave last opened successfully 4:21 PM EDT today (1/10/20). macOS Catalina 10.15.2

I also tried the Applescript to select a private window, and that crashed as well. I also turned off all extensions, but no change. I see you restarted your system, I then restarted my computer and now it appears to be working fine. I wonder if this is a memory issue?
I’ll post back on if this issue crops back up.

Hi,

Same issue here, impossible to launch Brave on MacOS 10.14.6.
I constantly crashes each time I launch it.
As I cannot use the UI before it crashes,I gave the command line a try and got a segmentation fault in case this helps the Brave dev team or anyone else troubleshoot this.

Thanks,

/Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

[0111/092851.622207:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee9afa000, 0x2000): (os/kern) invalid address (1)
[0111/092851.760528:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[1] 16363 segmentation fault /Applications/Brave\ Browser.app/Contents/MacOS/Brave\ Browser

Just want to link this thread with my issue.

When either the Defaults/Bookmarks or Defaults/Preferences files get corrupted, Brave will crash on launch. I’ve been through this three times now where I had to rebuild/restore my bookmarks. The only thing that works at this point is to regularly make a backup of your bookmarks by exporting them from the bookmarks manager page, then it’s fairly simple to just re-import the bookmarks if you otherwise have to trash the Bookmarks preference file and/or all of your preferences. But if you don’t have a backup of the bookmarks, it’s can be difficult to fix the bookmarks file. You have to know how to read JSON and perhaps use a language like Python as I did to evaluate and debug the JSON to find the problems in the file.

The bottom line is, when Brave crashes or quits due to a locked up web page, or for any other reason, it routinely corrupts its own Preferences and Bookmarks to the point where the app won’t launch anymore. They really need to fix this issue. In the meantime, backup your bookmarks regularly (or keep snapshot backups of your system so you can just restore the entire preferences folder from a time prior to the latest crash).

Do this:

Make a safety of the entire prefs folder: (right-click and choose “compress Brave-Browser” to make a ZIP backup):

~/Library/Application Support/BraveSoftware/Brave-Browser

Then go into the Brave-Browser folder and click on the “Default” folder.

Try removing either or both of these files: (don’t delete them - just move them to a temp folder on your desktop)

~/Library/Application Support/BraveSoftware/Brave-Browser/Default/Bookmarks
~/Library/Application Support/BraveSoftware/Brave-Browser/Default/Preferences

It’s also safe to delete these, as they are useless after multiple crashes:

~/Library/Application Support/BraveSoftware/Brave-Browser/Default/Last Session
~/Library/Application Support/BraveSoftware/Brave-Browser/Default/Last Tabs

If you have some programming skills, the Bookmarks file is repairable. If you don’t, you can still read the Bookmarks file contents and manually recover bookmarked URLs from it. Just drag and drop the Bookmarks file on to TextEdit and it will open as a plain text file and you can skim through it and copy URLs so you can re-bookmark them again. Extremely tedious to do manually, but if you’re not a programmer that’s the best you can hope for.

If you do find yourself trying to manually recover data from the Default/Preferences or Default/Bookmarks files, there’s an app called “Sublime” which I highly recommend (google “Mac Sublime Download”) which is a text editor for developers, and it has some features that can make JSON more readable.

Make a safety copy of your Default/Bookmarks or Default/Preferences file
Launch Sublime.
Drag-drop the Bookmarks or Preferences file into the Sublime window
Press shift-command-P to bring up the command window
Type “indent json” to filter the command list
You should see a menu item that says “Indent JSON” - click on it
Now the JSON will have an outline format that is easier to read, and you can scroll through and find URLs or other text data to recover.

The Brave Bookmarks and Preferences files are ridiculous. This data should not be stored as JSON in a single text file.

tried it. Still crashing.