Firefox 84 Crashing
Sometimes Firefox's configuration files located under .mozilla/firefox/
in the user's home directory get corrupted due to force kill Firefox (eg. system crash, system reboot or shutdown while browser tabs are open). This can sometimes happen during Firefox or system upgrades.
Fix Firefox:
You can make Firefox build new fresh configuration if you rename/delete the current configuration directory. Be warned you will loose all your plugins, bookmarks, saved site logins ...etc. and you will end up with a new default fresh copy of Firefox. To try this:
- Close Firefox browser.
- Back up your current Firefox configuration directory. Run the following in the terminal:
cp -r ~/.mozilla/firefox/ ~/.mozilla/firefox_old/
-
Delete your current Firefox configuration directory. Run the following in the terminal:
rm -r ~/.mozilla/firefox/
-
Start Firefox browser. A new
.mozilla/firefox/
directory will be automatically created with fresh configuration files in it. -
Try Firefox now and see if it works again.
Rescue data:
If all goes well and Firefox is working again and you wish to restore your important data to the new configuration directory, please follow the steps below:
- Close Firefox browser.
- Run the following command in the terminal:
cp ~/.mozilla/firefox_old/*default/{logins.json,key3.db,key4.db,places.sqlite,cookies.sqlite,formhistory.sqlite,permissions.sqlite,content-prefs.sqlite} ~/.mozilla/firefox/*default/
- Start Firefox browser. This should restore your site logins, passwords, bookmarks, form data and cookies. Please read here
Go back?
If the above solution did not work and you wish to go back to your old Firefox state, Please follow the instructions below:
-
Close Firefox browser.
-
Delete your new Firefox configuration directory. Run the following in the terminal:
rm -r ~/.mozilla/firefox/
-
Restore your old Firefox configuration directory. Run the following in the terminal:
cp -r ~/.mozilla/firefox_old/ ~/.mozilla/firefox/
-
Start Firefox browser. You are now back to your old Firefox configuration. Exactly as it was before you attempt to fix it using this answer.
-
If all goes well, clean up and remove the back up created during this process. Run the following in the terminal:
rm -r ~/.mozilla/firefox_old/
Related videos on Youtube
early-cougar
Updated on September 18, 2022Comments
-
early-cougar almost 2 years
After upgrading to firefox ver 84.0.1+build1-0ubuntu0.20.04.1 (from Ubuntu 20.04 repo), I've been getting a lot of crashes in firefox (rest of system is still functional). It usually happens more than 15 minutes into application startup, and has even happened while I was idle and away from my desk. As far as I can tell it's the same error message every time. One of my crash reports can be found at https://crash-stats.mozilla.org/report/index/fc8299fa-5080-4ffb-bd81-2bca80201226
I tried a reinstall of firefox (also from the ubuntu repo), but that didn't work.
I then rolled back to another version that was available in the ubuntu repo (75.0+build3-0ubuntu1), and that stopped the crashing, but of course that's not going to work long-term either.
After seeing that v75 was working, I tried upgrading again to v84, and once again FF started crashing. For now I'll stay rolled back, but would love to get this figured out.
-
Raffa over 3 yearsI hope this will help. Updating or reinstalling FireFox does not totally fix incompatibilities or corruption that might be in old
.mozilla/firefox/
. -
early-cougar over 3 yearsWould downgrading to v75 not have fixed that? I had to create a brand new profile when I downgraded, and then upgraded to 84 with the new profile. Worth a shot, nonetheless
-
Raffa over 3 yearsI'm afraid not, you need to do that after the upgrade. Profiles and configuration files of older versions might not be fully utilized by newer ones. It happens with Firefox, pulseaudio and others. Firefox had some changes related to how it stores and handles user profile data and configuration lately.
-
early-cougar over 3 yearsYour suggestion worked, Raffa, though I can't seem to mark it as the answer since it's a comment and not an Answer. I am making this reply to indicate to anyone else having this problem that they should try this.
-
Raffa over 3 yearsAnswer added as people tend to look for answers and rarely read comments. Also if this question remains without an answer for a long time, it might get deleted by the system with all its comments Hopefully it will help somebody. I am glad it solved your issue.
-