Open Bug 1766154 Opened 2 years ago Updated 2 years ago

Firefox crash when click "Apply and Restart" button for "Restart Firefox to apply these changes" under "Language"

Categories

(Toolkit :: Add-ons Manager, defect, P3)

Firefox 99
Desktop
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: thinking962, Unassigned)

Details

Attachments

(2 files)

[Affected Versions]:

  • 99.0.1 (64-bit)

[Affected Platforms]

  • MacOS 10.13.6
  • MacOS 10.15.7

[Steps to reproduce]:

  1. Open the browser.
  2. Navigate to the "about:preferences" page.
  3. Scroll down to "Language".
  4. Click the "Set Alternatives..." button.
  5. Click the "Select a language to add..." dropdown.
  6. Choose the language.
  7. Click the "Add" button.
  8. Repeat Step 5, Step 6, and Step 7 to add some languages.
  9. Click the "OK" button.
  10. Click the "Apply and Restart" button

[Expected results]:

  • Firefox restarts and the language is set.

[Actual results]:

  • Firefox crash.

Please do not set flags, that's up to the bug triager or owner.

Severity: S1 → --
Priority: P1 → --

I'm so sorry about it. Thanks for reminding!

(In reply to Francesco Lodolo [:flod] from comment #1)

Please do not set flags, that's up to the bug triager or owner.

I can't reproduce this on my machine.

  1. Does it happen on a fresh profile?
  2. Do you have a crash in about:crashes after this happens?
Attached image crash.png

(In reply to Francesco Lodolo [:flod] from comment #3)

I can't reproduce this on my machine.

  1. Does it happen on a fresh profile?
  2. Do you have a crash in about:crashes after this happens?

For question 1), it happens on both fresh profile and old profile. I tried it on two profiles, one is new, and one is the one I have used for a long time.

For question 2), yes I got a crash report.

Please submit the report and link to it here in the bug once available (in general, it would be great to submit all crashes). A local crash can't be used for debugging.

(In reply to Francesco Lodolo [:flod] from comment #6)

Please submit the report and link to it here in the bug once available (in general, it would be great to submit all crashes). A local crash can't be used for debugging.

https://crash-stats.mozilla.org/report/index/1befe7b0-0d1d-43b3-ab3e-64a7e0220424
I try it again right now. It still crashes. I have submitted the crash report and the link is here. Please check.

Tentatively moving to Add-ons, give the AddonManager: Waiting to start provider shutdown..

I would note that I count 24 language packs. I've tried installing 4-5, without having the browser crash.

Component: Preferences → Add-ons Manager
Product: Firefox → Toolkit

We tried to reproduce the issue on macOS 10.14 using FF 99.0.1 , but no crashes were encountered during testing on a fresh Firefox profile.

I suspect this is the dictionaries rather than the langpacks. They can be large, and there a are a bunch of them. The background update checker is running trying to possibly update some of those, while firefox is trying to restart.

Can you try to reproduce with a large number of dictionaries installed (as well as langpack)?

Flags: needinfo?(vcarciu)

(In reply to Shane Caraveo (:mixedpuppy) from comment #10)

Can you try to reproduce with a large number of dictionaries installed (as well as langpack)?

In that case, I would try to install a few languages from this list, including German.
https://mozilla-l10n.github.io/firefox-dictionaries/

For some languages, after the langpack we try to install dictionaries as well.

Hello, following the steps from reporter I observed that if we are adding the languages in about:preferences, both lang packs and dictionaries were installed for that language.

I tried this scenario using more than 30 languages without encountering any crashes at restart.

Thanks,
Victor

Flags: needinfo?(vcarciu)

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(mixedpuppy)

This seems like a corner case with unusually high number of dictionaries and possibly a slow network connection.

Severity: -- → S3
Priority: -- → P3

The data in the add-ons repository is cleared upon receiving the "intl:app-locales-changed" observer.

That in its turn triggers logic that fetches additional details from AMO over network (presumably to get the up-to-date localized versions), at
https://searchfox.org/mozilla-central/rev/da6a85e615827d353e5ca0e05770d8d346b761a9/toolkit/mozapps/extensions/internal/AddonRepository.jsm#542-574

Perhaps this bug is happening when the language changes are triggered in quick succession, which queues up network requests. Not sure what's going to happen when all of that happens around shutdown.

There are multiple aspects here:

  1. The backgroundUpdateCheck method shouldn't run concurrently.
  2. The fetch should be time-bound, to not indefinitely block shutdown.
  3. We should evaluate whether it's really necessary to immediately fetch the localized data, or even as a shutdown blocker. E.g. it may be reasonable to not block shutdown, but fetch again at the next startup.
Flags: needinfo?(mixedpuppy)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: