Open Bug 1751720 Opened 2 years ago Updated 2 years ago

Crash on high number of tabs [ AppendNativeHandler ]

Categories

(Firefox :: Tabbed Browser, defect)

Firefox 96
defect

Tracking

()

UNCONFIRMED

People

(Reporter: oddstr13, Unassigned, NeedInfo)

Details

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

Steps to reproduce:

  1. Update from Firefox 95.0.1 to 96.0.1 (via mint package repo).
  2. Launch browser with automatic session restore (10490 tabs).
  3. Watch browser crash towards the end of loading the session.

The exact number of tabs is probably variable, but seems to be just shy of 10k on my system. Enabling addons are likely to cause the crash to happen with fewer tabs.

Reproducible in new profile by copying over the sessionstore file.
Rolling back to v95 allows me to load the session unmodified.
Likely reproducible on other systems by opening enough tabs (I've got mine spread over multiple windows).

Actual results:

bp-7220a584-1435-4ffe-83c2-5d7f10220122
bp-f652f9d5-7e2b-45af-9804-1b43c0220121 (I'm not sure of what was different this time; [@ mozilla::loader::ImportModule ] likely stumbled onto #1716849 )
bp-f83fe60a-7439-4ed5-ae61-4e44b0220121
bp-ae94ba15-6c3a-4479-bb81-ac4850220121
bp-be228ec2-dda3-4ec0-83b0-aa25a0220121
bp-8c80a016-04a4-4305-9313-596030220123
bp-a697d335-caf7-4f79-88fb-3b8930220123
bp-2620a1e2-ead0-4d43-a3bc-5b7f00220123
bp-6f03d541-e620-45a3-a454-f98f00220123
bp-98ae3ce5-4e63-41fc-a174-7362d0220123
bp-3dde16c2-2c9f-433a-b111-03dc40220123
bp-4cea4b27-1b4c-4a5f-a8c2-d39b90220123
bp-36d4ca2c-c871-4708-afb0-bbd1f0220123
bp-5df47f71-1e47-47fd-8c61-705e20220123
bp-c0012a2a-7bdf-486c-9b72-605860220123
bp-e903dd5d-50fd-4c2a-877b-8be5b0220123

Triggered by successfully loading a session with about 9600 tabs, and opening tabs until crash:
bp-7fe355e3-51a8-4c1c-84a8-761620220123

Triggered by loading a number of tabs near what crashes, and then enabling the FoxyTab addon [@ js::UnwindEnvironment ]:
bp-26bcef79-da01-4f56-929a-f57cd0220123

Expected results:

Not crashing, and me continuing on with what I was intending to do at the time, instead of spending 2-3 days on debugging 🙈

Support thread with my debugging journey so far: https://support.mozilla.org/en-US/questions/1365276

The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Tabbed Browser

The severity field is not set for this bug.
:dao, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dao+bmo)

Hello!
I have tried to reproduce the issue with Ubuntu 20.04 with Firefox 99.0a1(2022-02-28) unfortunately I wasn't able to reproduce the issue and crash firefox. 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 so can you list them?
Flags: needinfo?(oddstr13)
  1. As explained in the issue, I was able to reproduce the issue in a clean profile, by copying the session file over. I have not tested without the session file, as that would require opening 10k tabs rather than just ~500 like I did while testing here, but I guess I could abuse bookmark folder open all bookmarks to make this easier.

  2. I have no intent on running nightly, nor clearing my profile, and as such would prefer to not run nightly on my system. I can attempt to reproduce with 97.0.1, if that is of interest.

  3. As explained in the issue, I was able to reproduce the issue in a clean profile, and loading addons made the issue happen earlier. Addons are part of the crash reports.

Flags: needinfo?(oddstr13)

I forgot to add that my objection to running nightly is due to potentially upgrading my profile such that it is difficult to get it loaded in stable again.

Also seeing related crashes in 101.0.1

bp-f685bcde-667f-4265-816e-e45200220628
bp-9c939c51-968e-486e-814d-e7ab90220628
bp-3c1143d4-6712-481d-a46f-2b7d20220628
bp-96a1a4f5-7be1-45f4-a91b-d21150220628

Pulling out several domains from my profile using extract_domain.py https://github.com/oddstr13/FirefoxSessionTools
reducing the tab count from 11139 to 10090 allowed me to load the profile again.

You need to log in before you can comment on or make changes to this bug.