brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.64k stars 2.3k forks source link

9+ Saved Group Tabs Causes Intermittent Unresponsive Behavior #38423

Open hspencer77 opened 4 months ago

hspencer77 commented 4 months ago

Description

Running Brave 1.66.110 with the following:

When running for about 30 minutes, any new tab opened or any scrolling on an existing page will be delayed. Sometimes the 'rainbow wheel' on Mac OS will show up before the browser becomes responsive.

Steps to reproduce

  1. Open Brave Browser
  2. Launch 10+ more windows with 20+ tabs
  3. Create 9 (or more) group tabs with 4 or more tabs in each group
  4. Navigate open new tabs and navigate the web for around 20 minutes

Actual result

Expected result

Navigation and tab management should be normal.

Reproduces how often

Easily reproduced

Brave version (brave://version info)

brave_1_66_110_system.txt brave_1_66_110_version.txt

Channel information

Reproducibility

Miscellaneous information

brave_1_66_110_about-gpu-2024-05-20T20-02-49-877Z.txt brave_1_66_110_historgrams.txt

rebron commented 4 months ago

cc: @atuchin-m

hspencer77 commented 4 months ago

FYI, I updated my system to macOS Sonoma 14.5 (23F79) - applied a security update. I provided a new trace to @atuchin-m after I was able to recreate the behavior.

atuchin-m commented 4 months ago

I've checked the new trace files from DM. The issue is the results extension excessive work. The extensions or extension service workers spawn a lot of messages and browser got stuck on the processing.

1sec_UI_hang more 1sec extensions_mojom_ServiceWorkerHost

some details from long UI tasks:

mojo_interface_tag: "extensions.mojom.ServiceWorker",
mojo_interface_tag: "storage.mojom.ServiceWorkerStorageControl",
{watcher_notify_interface_tag: "storage.mojom.ServiceWorkerStorageControl"}