Closed Bug 1862535 Opened 2 years ago Closed 1 year ago

Google search page hang/slowdown crashes Firefox on shutdown (the first run)

Categories

(Firefox :: Address Bar, defect)

Firefox 120
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bagasdotme, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0

Steps to reproduce:

I'm running Firefox Developer Edition (at the time of this writing, 120.0.b5). On the first browser run during system uptime, I Googled some random keywords (e.g. piglin from Minecraft) from address bar. After that, I close the browser.

Precise reproducer:

  • Reboot into different kernel than previously run
  • Open Firefox Developer Edition
  • On blank new page, type any keywords you wish to search the web for, then select Google as the search engine and press Enter.
  • After Google search results is loaded (fully or not), close the page (and browser)

Actual results:

Google search results page hangs at TLS handshake to fonts.gstatic.com and not responding to any mouse clicks. Sometimes, the hang will resolve itself and the page becomes responsive again. At worst, I have to close the page if the hang still continues. In any case, when the browser is closed, Firefox then crashes when
shutting down.

Depending on the last tab before closing the browser, the crash signature can be
different. For example, bp-03b875ae-4c6d-426b-a759-858de0231101 (signature [@ shutdownhang | mozilla::SpinEventLoopUntil<T> | nsThreadManager::SpinEventLoopUntilInternal ]) was generated when closing down Google search results tab (which was the only tab at the run), whereas bp-45ca1f1b-f323-42aa-8c5a-d2c910231101 (signature [@ AsyncShutdownTimeout | Places Clients shutdown | sanitize.js: Sanitize on shutdown ]) was generated when not on Google page.

Expected results:

Google search results page should have been smooth and the browser should have been shut down cleanly when closing down.

The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Address Bar
Component: Address Bar → Untriaged

I can also trigger this crash differently:

When Firefox hangs, GNOME pops out notification where I should force quit the browser or not. When I choose the former and then restarting Firefox, instead of starting with one new tab, all tabs from previous run are opened instead. Then I quit Firefox and some times later, it crashes. bp-21043004-b912-42a6-9d69-bfb580231104 is the example from aforementioned reproducer.

Also, for the original reproducer, I can only trigger it when under heavy I/O load. I have a systemd timer where I use public-inbox's lei to update local copies of several Linux kernel development lists. During the timer, lei spends most of time running git cat-file. As such, when I run Firefox at the same time as the timer, the browser has resource contention (compete) against the timer.

Hello! thank you for submitting this issue unfortunately I wasn't able to reproduce the issue using firefox 121.0a1 (2023-11-09) on Ubuntu 22.04. Could you please answer the following questions in order to further investigate this issue

  1. Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
  3. Do you have any addons installed? If yes could you please list them?
Flags: needinfo?(bagasdotme)

(In reply to Negritas Sergiu, Desktop QA from comment #3)

Hello! thank you for submitting this issue unfortunately I wasn't able to reproduce the issue using firefox 121.0a1 (2023-11-09) on Ubuntu 22.04. Could you please answer the following questions in order to further investigate this issue

  1. Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
  2. Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
  3. Do you have any addons installed? If yes could you please list them?

Sorry for the long reply.

I have installed Arch Linux (and of course, my profile is brand new). On the browser side, I installed following add-ons:

  • Stylus
  • AdBlocker for YouTube
  • Improve YouTube!
  • To Google Translate

As far as I can remember, the original reproducer was run on Debian Testing with LXD container instances running (at bare minimum four containers
for DNS and one for PostgreSQL). I can't reproduce this bug on my current Arch system since I don't have LXD installed yet.

Flags: needinfo?(bagasdotme)

Are you still able to reproduce this in a current version of Firefox? If you are, could you link to a crash report again? Thanks!

Component: Untriaged → Address Bar
Flags: needinfo?(bagasdotme)

(In reply to Liz Henry (:lizzard) (relman/hg->git project) from comment #5)

Are you still able to reproduce this in a current version of Firefox? If you are, could you link to a crash report again? Thanks!

Nope.

As stated earlier, I'm now using Arch Linux and only starting Incus (formerly LXD) service whenever I need it. And even when some (if not all) containers there are running, I can't reproduce the crash.

Flags: needinfo?(bagasdotme)

OK, thanks! I'm going to go ahead and close this issue. Thank you for reporting it!

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.