-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brave freezes or hangs on launch when there are a large number of Cookies and other site data
#9481
Comments
For folks that are experiencing lock-ups because of the publisher list being downloaded (for Brave Rewards), there are some great fixes coming in 1.8. One of those fixes a bug where this list continues to be downloaded even after flipping rewards to off We'll have a release candidate available soon which I'll try to share when it completes |
For anyone tracking this who would like to try the 1.8 release candidate, please download and try out https://github.com/brave/brave-browser/releases/tag/v1.8.84 and let us know if this improves behavior 😄 |
Thank you. Clean install is still crashing on my side though.
EDIT: also tried the suggested flags, to no avail. |
Same here on Windows 10, it still freezes. |
YES |
how did the update get to stable by the way |
@riccardoangius for your issue, when was the last time Brave worked for you? Do you know the version you had? Looking at the call stack, it's a bit hard to tell. But I am seeing some USB/bluetooth keyboard problems. Can you please try turning off your bluetooth keyboard and then launching Brave (mouse-only). The errors I'm seeing are saying you're missing the entitlement (Catalina thing) for this keyboard to allow bluetooth control. This might be something that needs to be added in System Preferences |
This never came up in any of our testing - even now, there are crash reports... but there aren't many clues. Without a solid way to reproduce, it's very difficult to find the root cause @Xyncgas did the release candidate work for you? |
@bsclifton thank you. I have no BT keyboard, so I looked around a bit and stumbled upon this. Looked around and indeed I hadn't enabled Accessibility Keyboard (as in the linked thread) but Typing feedback was on and turning it off solved it all for me. I was checking the UX for an accessible app I was developing and completely forgot about it 🤦🏻♂️ |
@riccardoangius this is great! Thanks for finding 😄 I believe we captured the above issue (accessibility keyboard) with #7546 but haven't solved it yet macOS users please do try turning this off, if that is an option for you. For those who need it, a fix should be coming in Chromium 83 which we're working through now (Chromium 82 was skipped by Chrome team). Expected to be released May 19th |
Btw, is there any way to block/disable Brave automatic update? I tested downgrading to Release Channel v1.7.92 and everything is working fine. But when I went to Help-About and try to update again, the same issue happened. |
@onmyouji yes - I believe as a manual work-around you can install Having it work with 1.7.92 seems like it's a problem with the Chromium 81 upgrade we did. Thanks for helping us troubleshoot this 😄 |
I’ll also mention that [Google] Chrome doesn’t have this problem. So I don't think it's Chromium 81.x all by itself. |
Although not crashing it freezes during start up for a few seconds |
Just checked out the RC2, the issue is still there. |
From #9162
I have to force kill it, else it just hangs. |
@intelligentpotato what OS are you on? As a troubleshooting step, for the more tech savvy folks - you can help us determine if the hanging is a profile-specific problem:
Quit all instances of Brave and then rename the folder. You can relaunch and you'll have a brand new profile. I'm curious if the problem still happens then (try visiting a few websites). If not, we know the bug is related to something about the user profile After testing, you can go back to the folder you renamed, remove the new one which got created, and rename the folder back to the old name. If you're not sure what I'm talking about in this post, please don't attempt the above steps 😄 |
I think several people, including myself, have demonstrated that there's a profile-related issue in play. I had previously tried switching profiles by creating a new one, quitting Brave, then launching into the new one -- no hang. I just tried your method, renaming the C:\Users\MyUserID\AppData\Local\BraveSoftware\Brave-Browser\User Data directory and then launching Brave into a new profile. Again, no hang. Previously under my default profile I had manually disabled all extensions (others also used --disable-extensions) but still got the (3-min) hang on launch. Using your rename\UD method, I just tried with two extension (Acrobat & a password manager), and then quickly tried changing a few settings to set up Brave the way I like it (Download folder, home page, DNT enabled, turn off Brave Rewards button, etc.). After quitting & relaunching Brave, I never got a hang. Whatever's going on, it doesn't seem to be a corrupted profile but rather something about a specific profile setting (lack of Brave Rewards, no Crypto Wallet, non-use of Tor, etc.). |
On MacOS 10.14.6, I updated to the Brave 1.8.84 RC but was still getting the lag on startup. However, I went into Settings > Additional Settings > Reset Settings > "Restore settings to their original defaults", which seems to have resolved it for me. So it's definitely profile-related. Using that reset method is much less destructive than torching the whole profile (it keeps bookmarks, history, extension settings, etc), so that's nice! |
@GitOutWest thanks for taking the time to test that 😄 It's definitely appreciated as there are a few different types of issues happening to folks. Can you try the latest 1.8 release candidate? This is very likely what we're going to release soon: This 1.8 release does specifically fix a bug where the Brave Rewards publishers list was being downloaded/installed even if you have rewards disabled. It also includes some optimizations for when rewards IS enabled and that list is downloaded. Basically, when that list is downloaded, a bunch of records are dropped and inserted in SQLite, which I believe is the freeze that a number of folks are reporting There's definitely also a hardware related issue- where disabling HW acceleration solves some users. This might be something we see but Chrome doesn't see because Chrome is fetching the field trial values from finch server. We set the flag values at build time and don't reach out- so there's a potential that we have different driver workarounds / exclusion lists than Chrome All of that said, there are still another two unknown issues: both freezing and crashing is happening to users who have never enabled Rewards... some on a brand new profile. I have several crash dumps and unfortunately, there isn't enough information to narrow the problem down. Having more crash reports and knowing more about the environment (which OS, does it work in Chrome, comparing brave://gpu to chrome://gpu, etc) will help Some macOS users were resolved by disabling the virtual keyboard 😄 Bigtime thanks to @riccardoangius for confirming that works @talisto let us know how that works! If doing the profile reset does fix you, then you've helped narrow down the problem for a lot of folks 😄 Thanks for trying and sharing that troubleshooting step |
Cookies and other site data
Updated to a P2 now that we've been able to find the cause and we know the impact. Definitely something we would consider hotfixing for |
Assigning @bridiver as he had a possible fix |
Verified passed with
Verification PASSED on
Verification PASSED on
|
Description
We have several reports from users on all Desktop OSes having a hang or complete freeze of the program when launching. After investigation, this appears to be due to a large number of entries under brave://settings/content/all
Clearing
Cookies and other site data
will resolve the issue until the user builds up a large number of sites again. @iefremov has characterized the problem (see #9481 (comment)) and we're working on a fixTest plan
Original issue description
Below is the text from when we were diagnosing this issue. There were multiple problems in play and some of those were split out into separate issues. The text is being kept for posterity
GitHub issues
Newly updated Brave freezes after launch - Windows 10 #9372
- started happening with
1.7.98
(Chromium 81)- multiple users experience freeze for 20 or more seconds, but it's fine after that
- useful crash dumps shared in issue 🎉 @bsclifton looking into these
- many users had rewards off or toggled rewards off for troubleshooting
Brave Beta hangs on start after update #9162
- user reported issue with
81.1.8.70
(Chromium 81)- UI unusable to the point where menu can't be opened
System randomly freezing #9294
- seems to be GPU related
- one user reports disabling HW acceleration fixes problem
Possibly related issues
Community issues
Recommended user troubleshooting steps
Things that can help us narrow it down
System Preferences
>Accessibility
>Keyboard
>Accessibility Keyboard
. There is a known crash if this is enabled... so until this is fixed, it's recommended you disable.Steps that some people have used to fix the problem
We're working on a fix now - stay tuned.
BAT Ledger
process takes 100% CPU and then goes back down may be fixed as of 1.8 🎉 Please make sure to update to latest version of BraveFollowing these steps will lead to data loss. Please consider backing up your profile before attempting! If you're not sure how to do that, please ask here
Some folks have had the problem completely resolved by clicking
Restore settings to their original defaults
on brave://settings/reset to reset their settings. Workaround discovered by @talisto hereSome folks who had used sync may have hit a condition where duplicate bookmarks were created. Please see Brave freezes or hangs on launch when there are a large number of
Cookies and other site data
#9481 (comment) for more information - kudos to @jonathansampson and a user for narrowing that use-case down 😄 For this case, you can likely try exporting your bookmarks as HTML, clearing your bookmarks in Brave, and then re-importing your bookmarks to see if this helpsFixes that have already been released
1.8.86
(1.8.x) had a fix for the Brave Rewards publishers list. Instead of being requested by only folks with rewards on, it was being requested by anyone who had ever turned on rewards (even if off). This leads to extra CPU usage when processing. Captured with Optimize timers for publisher lists #94411.8.86
(1.8.x) had an update for top sites on new tab page which regressed performance upon opening a new tab. Behavior introduced in NTP: Prevent data loss in topSites after topSites update brave-core#5097 was removed and merged into Nightly (1.10) with NTP: Remove option to bookmark top sites brave-core#5490Known problems (not being addressed)
1.7.98
(1.7 hotfix 1) introduced migration code for cookie and no-script settings. This is only done once, but it could explain some UI hang that folks experience if they have a lot of cookie or no-script settings. @mkarolin looked into this; having over 300 different content settings could cause a problem- but once it finishes, it won't happen again. @bsclifton tried with as many as 100 content settings on an old laptop and it wasn't noticeable. If we wanted to investigate further, we can create an issue and look at WIP: Speed up shields settings migration. brave-core#5453The text was updated successfully, but these errors were encountered: