Why does Firefox crash so often?

It’s either tab crash or whole browser crash.
Sometimes it may be about 10 crashes (tab+browser) in a day.
Browser update doesn’t help – so it’s either a bug developers don’t give a damn or problem is not related to the browser.

Doesnt happen here.

Logs please?
System information?
Packages installed?

2 Likes

Hi @Sergei1,

I use Firefox, and only Firefox each and every day. Sometimes it does crash. Or rather it hangs until I kill it, but those times are few and far between.

I suspect it might be a faulty extension causing it. Or a theme… :man_shrugging:

The only way to diagnose it, is to disable all custom extensions and themes and seeing if something happens. If not, systematically turn them on one-by-one until the cause has been found and can be handled.

1 Like

I’m sorry, I don’t remember Firefox crashing for me for over a year at least.

The worst I remember is that it can hang - usually some issue with the USER data and that’s usually fixed with varying levels of ‘refresh’ - sync helps to bring back lost data and rebuild it.

My favourite method of recovery is to open Timeshift and drag a 1-2-3 hours old snapshotted .mozilla folder and overwrite the current one.

Looks like I am the Special One. Because nobody experience such problems with Firefox like I do.

Does this occur on a ‘Default’ profile?
Do you have extensions?
Perhaps some CSS?

I’m not carrying a flag here, I genuinely find that Firefox is excellent and don’t find other browsers faster or better in most respects.

userChrome.css
/* Tab close button
*/
.tab-close-button { display: none !important }

/* Enable this to show the tab close button when hovering the tab
.tabbrowser-tab:hover .tab-close-button { display: -moz-inline-box !important }
*/

/*  No Hamburgers today
#PanelUI-menu-button { display: none !important;
} */

/* Blur the email in hamburger menu
*/
#appMenu-popup #appMenu-header-description {
	filter: blur(4px) !important;
	transition: filter 350ms ease-out !important;
	transition-delay: 250ms !important;
}

#appMenu-popup #appMenu-fxa-label2:hover #appMenu-header-description {
		filter: blur(0px) !important;
}

@-moz-document url("about:home"),
url("about:newtab") {
  .search-wrapper .search-handoff-button .fake-caret {
    top: 13px !important;
    inset-inline-start: 48px !important;
  }

  .search-wrapper .logo-and-wordmark {
    opacity: 0.9 !important;
    order: 1 !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
    flex-basis: 20% !important;
  }


  .search-wrapper .search-handoff-button .fake-caret {
    top: 13px !important;
    inset-inline-start: 48px !important;
  }

  .search-wrapper .logo-and-wordmark {
    opacity: 0.9 !important;
    order: 1 !important;
    margin-bottom: 0 !important;
    flex: 1 !important;
    flex-basis: 20% !important;
  }



  .outer-wrapper .search-wrapper {
    padding: 0px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    align-content: space-around !important;
    gap: 20px 10px !important;
  }


  .search-wrapper .logo-and-wordmark .logo {
    background-size: 60px !important;
    height: 60px !important;
    width: 60px !important;
  }


  .search-wrapper .search-inner-wrapper {
    min-height: 42px !important;
   52px default
    order: 2 !important;
    flex: 3 !important;
    flex-basis: 60% !important;
    top: 4px !important;
  }

  .search-wrapper .search-inner-wrapper {
    min-height: 42px !important;
    order: 2 !important;
    flex: 3 !important;
    flex-basis: 60% !important;
    top: 4px !important;
  }
  #root > div{align-items: center; display: flex;}
  .outer-wrapper.ds-outer-wrapper-breakpoint-override.only-search.visible-logo{display: flex !important; padding-top: 0px !important;vertical-align: middle;}
}

/* Remove Text From Address / Search Bar
*/
#urlbar[pageproxystate="invalid"]:not([usertyping],[searchmode]) #urlbar-input::placeholder { color: transparent }
#urlbar[pageproxystate="invalid"]:not([usertyping],[searchmode]) .urlbar-input-box::before {
	content: "";
}

/*
Remove spacer from left of tabs
*/
.titlebar-spacer[type="pre-tabs"] {
	display: none;
}

/*  Unified Extensions Menu*/
/*
Hide panel title
*/
#unified-extensions-view .panel-header { display: none !important }

/* Hide permission msg
.unified-extensions-item-message-deck { display: none }
*/

/*
.tab-background{ background-color: rgba(250,250,250,0.07) }
*/

userContent.css

:root {
–bgcolor: #272727; /page background/
–bbcolor: #3c3c3c;
–stcolor: #363636; /* buttons - Rename Remove etc */
–prcolor: #455a4a;
–hpcolor: AccentColor;
–ndcolor: #2f2f2f;
–tpcolor: #adadad;
–tscolor: #6c6c6c;
–ttcolor: #3c3c3c;
–in-content-page-background: var(–bgcolor)!important;
–in-content-box-background: var(–bbcolor)!important;
–in-content-button-border-color: var(–stcolor)!important;
–in-content-box-background-odd: var(–bgcolor)!important;
–in-content-button-background: var(–bbcolor)!important;
–in-content-button-background-hover: var(–stcolor)!important;
–in-content-button-border-color: var(–bgcolor)!important;
–checkbox-checked-bgcolor: var(–prcolor)!important;
–checkbox-checked-hover-bgcolor: var(–hpcolor)!important;
–in-content-accent-color: var(–prcolor)!important;
–in-content-button-background-active: var(–ndcolor)!important;
–in-content-primary-button-background: var(–ndcolor)!important;
–in-content-primary-button-text-color: var(–tpcolor)!important;
–in-content-table-background: var(–bgcolor)!important;
–in-content-link-color: var(–hpcolor)!important;
–in-content-link-color-hover: var(–hpcolor)!important;
–link-color-hover: var(–hpcolor)!important;
–link-color: var(–hpcolor)!important;
–in-content-background-color: var(–bgcolor)!important;
–box-background: var(–stcolor)!important;
–card-background-color: var(–stcolor)!important;
–in-content-table-header-color: var(–tpcolor)!important;
–moz-dialog: var(–bgcolor)!important;
–in-content-text-color: var(–tpcolor)!important;
–in-content-page-color: var(–tpcolor)!important;
–in-content-deemphasized-text: var(–tscolor)!important;
–in-content-border-color: var(–ttcolor)!important;
–in-content-button-border-color-hover: var(–ndcolor)!important;
–checkbox-unchecked-bgcolor: var(–bbcolor)!important;
–in-content-focus-outline-width: 0px!important;
–in-content-primary-button-border-color: var(–stcolor)!important;
–in-content-primary-button-background-hover: var(–prcolor)!important;
–in-content-primary-button-background: var(–prcolor)!important;
–in-content-primary-button-background-hover: var(–hpcolor)!important;
–in-content-primary-button-border-color: transparent!important;
–in-content-box-info-background: var(–bbcolor)!important;
–message-bar-text-color: var(–bbcolor) !important;
}@-moz-document url-prefix(about:){
body {
background-color: var(–bgcolor)!important
}

.rich-icon,.tile,.top-site-icon {
    background-color: var(--ndcolor)!important
}

.customize-animate-enter-done,.customize-menu,.top-site-outer:hover,button {
    background-color: var(--stcolor)!important
}

.selector {
    background-color: var(--ndcolor)!important;
    border: var(--ndcolor)!important
}



.section input:checked+.slider {
    --newtab-primary-action-background: var(--prcolor)!important
}

#newtab-personalize-icon-label {
    color: var(--hpcolor)!important
}

/* Removes annoying buttons and spaces */
#tracking-protection-icon-container, .titlebar-spacer[type=“pre-tabs”], .titlebar-spacer[type=“post-tabs”]{display: none}
#tabbrowser-tabs{border-inline-start-width: 0!important}

/* Removes urlbar border/background */
#urlbar-background{border: none !important; outline: none !important; transition: .15s !important;}

/* Cool animation on tab/bookmark icons */
.tabbrowser-tab:not([pinned]):not([selected]) .tab-icon-image ,.bookmark-item .toolbarbutton-icon{opacity: 0!important; transition: var(–animationSpeed)!important; width: 0!important; padding-left: 16px!important}
.tabbrowser-tab:not([pinned]):hover .tab-icon-image,.bookmark-item:hover .toolbarbutton-icon{opacity: 100!important; transition: var(–animationSpeed)!important; display: inline-block!important; width: 16px!important; padding-left: 0!important}
.tabbrowser-tab:not([hover]) .tab-icon-image,.bookmark-item:not([hover]) .toolbarbutton-icon{padding-left: 0!important}

/* Removes space after pinned tabs */
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])>#tabbrowser-arrowscrollbox>.tabbrowser-tab[first-visible-unpinned-tab] {margin-inline-start: 0!important}

/* Customizes the customization page */
#customization-container > *{margin-top: -10px; background-color: var(–toolbar-field-background-color) !important}

.customize-menu .close-button:hover {
    background-color: var(--ndcolor)!important;
    border-color: var(--ndcolor)!important
}

/* Fixes the urlbar color on some themes */
#urlbar:not([open]){color: currentColor!important} #urlbar[open]{color: var(–toolbar-field-focus-color)}

/* Makes sidebars nicer */
#sidebar-box{margin-top: -10px !important;border-radius: 10px 10px 0 0!important}
#sidebar-box > *{background-image:none;}

/* Drop menus */
[position=“bottomright topright”]{–panel-border-radius: 0 5px 5px 5px!important}
[position=“bottomleft topleft”]{–panel-border-radius: 5px 0 5px 5px!important}
[part=“content”]{border: none !important;}
.toolbarbutton-1[open]{–toolbarbutton-border-radius: 4px 4px 0 0!important;}

/* Titlebar button fix#6322 */
.titlebar-buttonbox-container{-moz-box-ordinal-group: auto;}
background-color: var(–bgcolor) !important;
}}

@-/moz-document/ url-prefix(about:devtools){
#toolbox-container{margin-top: 10px !important;}
.devtools-tabbar{background: transparent !important;}
.devtools-tab-line{border-radius: 0 0 5px 5px}
.customize-animate-enter-done,.customize-menu,.top-site-outer:hover,button{background-color: transparent!important}}

Lots of

ADDONS
British English Dictionary (Darmeth) dictionary 4.1 true {d187b435-812e-4813-a93e-edccc4118f9d}
British English Dictionary (Marco Pinto) dictionary 3.2.6 true marcoagpinto@mail.telepac.pt
Add custom search engine extension 4.2 true {af37054b-3ace-46a2-ac59-709e4412bec6}
Add-ons Search Detection extension 2.0.0 true addons-search-detection@mozilla.com
Amazon.com extension 1.6 true amazondotcom@search.mozilla.org
Auto Tab Discard extension 0.6.7 true {c2c003ee-bd69-42a2-b0e9-6f34222cb046}
Bing extension 1.6 true bing@search.mozilla.org
Bing AI for Firefox extension 1.1.1 true {78ff999e-1eb8-4435-b33e-55fb214df4c6}
Bitwarden - Free Password Manager extension 2023.9.2 true {446900e4-71c2-419f-a6a7-df9c091e268b}
Browsec VPN - Free VPN for Firefox extension 3.80.6 true browsec@browsec.com
Bypass Paywalls Clean (c) extension 3.4.0.0 true magnolia_limited_permissions@12.34
Clickbait Remover for Youtube extension 0.7.1 true cb-remover@search.mozilla.org
CSS Override extension 1.0 true css-override@scottco.co
Dark Reader extension 4.9.67 true addon@darkreader.org
Download All Images extension 0.8.0 true {32af1358-428a-446d-873e-5f8eb5f2a72e}
DownThemAll! extension 4.11.1 true {DDC359D1-844A-42a7-9AA1-88A850A938A8}
DuckDuckGo extension 1.4 true ddg@search.mozilla.org
DuckDuckGo Privacy Essentials extension 2023.10.24 true jid1-ZAdIEUB7XOzOJw@jetpack
eBay extension 1.4 true ebay@search.mozilla.org
Enhancer for YouTube™ extension 2.0.121 true enhancerforyoutube@maximerf.addons.mozilla.org
Facebook Container extension 2.3.11 true @contain-facebook
Font Changer extension 1.3.0 true {9c291d2c-0c89-40df-958c-24cf23cc06af}
Gesturefy extension 3.2.9 true {506e023c-7f2b-40a3-8066-bc5deb40aebe}
Get RSS Feed URL extension 2.2 true {15bdb1ce-fa9d-4a00-b859-66c214263ac0}
Google extension 1.4 true google@search.mozilla.org
Grammar Checker & Paraphraser – LanguageTool extension 7.1.13 true languagetool-webextension@languagetool.org
Hoxx VPN Proxy extension 3.11.29 true @hoxx-vpn
Instance Assistant for Lemmy & Kbin extension 1.2.6 true {49f79358-ada8-438f-a6b3-649ce7638a34}
Keep pinned tabs alive extension 0.1.0 true {825525a8-c0d5-4f13-b395-26629dde305e}
lasttab extension 0.0.3 true @lasttab
MarkDownload - Markdown Web Clipper extension 3.2.1 true {1c5e4c6f-5530-49a3-b216-31ce7d744db0}
Plasma Integration extension 1.8.1 true plasma-browser-integration@kde.org
Plex Server Stats extension 1.0 true PlexMonitor@gtodd.dev
Popup window extension 0.1.3 true PopupWindow@ettoolong
Quillbot extension 0.1.220 true {72f9a34d-d4e0-49a6-8b9c-84b1e559f722}
Reddit Enhancement Suite extension 5.22.17 true jid1-xUfzOsOFlzSOXg@jetpack
Reddit Enhancer extension 0.20.1 true {46abbc04-ce38-475f-9ef8-e0a4a59d0c9f}
RSS Reader Extension (by Inoreader) extension 5.1.5 true inodhwnfgtr463428675drebcs@jetpack
Search by Image extension 5.8.1 true {2e5ff8c8-32fe-46d0-9fc8-6b8986621f3c}
Select After Closing Current extension 5.3 true select-after-closing-current@qw.linux-2g64.local
Shortkeys (Custom Keyboard Shortcuts) extension 4.0.2 true Shortkeys@Shortkeys.com
Sonarr/Radarr/Lidarr autosearch extension 2.8.3.0 true sonarr-radarr-lidarr-autosearch@robgreen.me
SponsorBlock for YouTube - Skip Sponsorships extension 5.4.25 true sponsorBlocker@ajay.app
Stylus extension 1.5.37 true {7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}
Tab Session Manager extension 6.12.2 true Tab-Session-Manager@sienori
Temporary Containers extension 1.9.2 true {c607c8df-14a7-4f28-894f-29e8722976af}
Terms of Service; Didn’t Read extension 4.1.2 true jid0-3GUEt1r69sQNSrca5p8kx9Ezc3U@jetpack
Tranquility Reader extension 3.0.24 true tranquility@ushnisha.com
TWP - Translate Web Pages extension 9.9.0.30 true {036a55b4-5e72-4d05-a06c-cba2dfcc134a}
uBlock Origin extension 1.53.0 true uBlock0@raymondhill.net
Violentmonkey extension 2.16.0 true {aecec67f-0d10-4fa7-b7c7-609a2db280cf}
webcompat.com reporter extension 0.6.0 true jid1-mjpB54bRzP9Zxw@jetpack
Wikipedia (en) extension 1.3 true wikipedia@search.mozilla.org
Wikiwand: Wikipedia Modernized extension 5.1.3 true jid1-D7momAzRw417Ag@jetpack
YouTube Redux extension 3.2.0 true {2d4c0962-e9ff-4cad-8039-9a8b80d9b8b6}
Z-Library Finder extension 1.2 true support@z-lib.se
Language: English (GB) locale 119.0.20231019.122658 true langpack-en-GB@firefox.mozilla.org
Language: English (US) locale 119.0.20231019.122658 true langpack-en-US@firefox.mozilla.org
Language: ไทย (Thai) locale 119.0.20231019.122658 true langpack-th@firefox.mozilla.org
System theme — auto theme 1.3 true default-theme@mozilla.org
Bard next to Google results extension 2.0 false {7c0954b8-e548-44b8-93a5-d6bf0d07b26b}
Bing AI Chat Search Engine Shortcut extension 1.1.0 false {f888082c-7958-49b8-b3d5-f7f35ee28225}
Bing Chat for All Browsers extension 1.0.7 false {a9cb10b9-75e9-45c3-8194-d3b2c25bb6a2}
ChatGPT - Chatonai (GPT3, GPT4) extension 1.5.8.1 false {28c31a34-6fa8-4962-91eb-2f4777de6e68}
ChatGPTBox extension 2.4.2 false {b764208e-0a98-436d-a599-c1baa044f829}
Checkmarks extension 1.6.1 false {bd97f89b-17ba-4539-9fec-06852d07f917}
Consent-O-Matic extension 1.0.12 false gdpr@cavi.au.dk
Content-Type Fixer extension 1.7.4.1 false {ff75dc6a-251e-42e2-955d-b33dd660a54c}
Currency Converter extension 0.6.9 false {8499351e-6812-4751-9b57-cf16f69fecec}
Everything Metric - Auto Unit Converter extension 3.4 false {ffd50a6d-1702-4d87-83c3-ec468f67de6a}
Grammarly: Grammar Checker and AI Writing App extension 8.908.0 false 87677a2c52b84ad3a151a4a72f5bd3c4@jetpack
I don’t care about cookies extension 3.4.9 false jid1-KKzOGWgsW3Ao4Q@jetpack
Libreddit extension 3.0 false {5003e502-f361-4bf6-b09e-41a844d36d33}
LibRedirect extension 2.8.1 false 7esoorv3@alefvanoon.anonaddy.me
Open With extension 7.2.6 false openwith@darktrojan.net
Dark theme 1.2 false firefox-compact-dark@mozilla.org
Firefox Alpenglow theme 1.4 false firefox-alpenglow@mozilla.org
Light theme 1.2 false firefox-compact-light@mozilla.org

(see about:support)

1 Like

Correct. It’s something at your end that is causing this because Firefox does not behave like that for me or many others. I can’t even remember the last time it crashed.

Either run it in Troubleshoot Mode or just do a Refresh as described below. Most problems like this are caused by an extension or something in your Firefox profile.

3 Likes

Have you checked crash reports in Firefox about:crashes page?
Understanding Crash Reports — Firefox Source Docs documentation

I use Firefox everyday for several hours each day and never experienced a single crash since i joind Linux Manjaro (3years ago) and this with total differend systems… My PC is Intel CPU/Nvidia GPU and Laptop is AMD CPU/GPU.

Its maybe your unstable Hardware configuration or just a Extension in Firefox that maybe lead to this issue.

Possible solutions is to do first. Deactivate all Extension or even better, just boot with a new iso in lifeboot environment and browser there a little and see if a crash happends, when its stable i think its possible that your SSD/HDD has maybe a problem or some configuration/extension/theme issue…

But If its crashing there, i would look closer to your hardware and go slowly step after step and
don’t make to many changes simultaneous.

1.Check temps for RAM/CPU/GPU…

2.Reduce Ramtimings, Reduce CPU Clock.

3.Last step a little dangerous, so carefully add only a little more volt for your RAM’s or CPU.
Double check what you doing there, if you add to much volt to your hardware, you can permanently damage it.

Firefox has been rock solid here as well! BUT, having said that, I did have an issue with what I thought was the browser crashing, turned out to be disk errors and the disk errors were caused by memory errors.

Removing the memory modules, cleaning the terminals, running memory check just to verify no memory errors and then running disk check to fix any errors fixed the issue.

1 Like

Errors are not consistent.
Sometimes error happens when I open specific webpage. On other times this page is opened absolutely fine. Sometimes error happens while I open something, or just happens when I do nothing in the browser.

I can’t “catch” the bug. I don’t know the conditions when bug reveals itself.

As I said crashes happens about 10 times a day.

Here is the example of what happened right now.

изображение

Create a new, clean profile. Don’t install any themes or extensions, to test this, and use that profile and test. See below on working with profiles:

If it works, then it’s obviously something custom, either an extension, or a theme and it can be narrowed down from there.

If it doesn’t, then something is wonky in your installation and we can try fix that.

1 Like

To quote a guru.

You can (krunner firefox -p) and create a new profile. It’s nice to have more than one profile available, but just doing ‘refresh’ would work too - your current profile gets dumped on the desktop and so you don’t lose it.
2023-11-06 16:53:56

Give it your name - so you will have a ‘Default’ (which is certainly no longer default) and a ‘Sergei1’ folder there in ~/.mozilla/firefox. Restrict yourself - maybe add/sign in with Bitwarden or something to get password access (if you created a new profile, you can get passwords by launching firefox with the ‘Default’ one).

Now it’s possible to run two profiles simultaneously - but if the new profile works well, you could try step 2 which is to sign in and synchronise it.

If problems come back, then it’s likely your extensions.

More information is always interesting (not least because I like to look at extensions other folks use and add them to my huge list :stuck_out_tongue: I do love a bit of bloat).

Hey! That’s my favourite way of discovering new extensions, as well. However, I don’t keep 'em around if they’re not useful.

1 Like

Yes. So what?
Here is only part of them

You sound very aggressive. We’re just trying to help, no reason to become snippy.

Anyway, from:

See if you can start in Firefox Troubleshoot Mode

As a first step, you should see if Firefox starts in Firefox Troubleshoot Mode. This special startup mode temporarily turns off hardware acceleration among other settings and disables installed extensions that may prevent Firefox from starting.

The problem happens in Troubleshoot Mode

If the problem still happens in Troubleshoot Mode, it is not being caused by an add-on or by one of the other features and customizations that Troubleshoot Mode disables. Other possible causes include changes made to Firefox preference settings, which are not disabled in Troubleshoot Mode. See the following articles for solutions:

The problem does not happen in Troubleshoot Mode

If the problem does not happen in Troubleshoot Mode, the most likely cause is an extension, theme or hardware acceleration. See this article for solutions:

From the specified link:

How to start Firefox in Troubleshoot Mode

Click the menu button Fx89menuButton, click Help, select Troubleshoot Mode… and click Restart in the Restart Firefox in Troubleshoot Mode? dialog.

Note: You can also start Firefox in Troubleshoot Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode
You may need to specify the Firefox installation path (e.g. /usr/lib/firefox).

1 Like

The problem is I can’t say when it happens and what conditions are.
It doesn’t happen on startup.
It doesn’t happen on specific webpage.
It just happens (like s.h.i.t) from time to time. Like this is a random timer inside a virus that crash my browser and drives me crazy.

And if I switch off my addons and no crash happens it doesn’t mean I solved the problem because stable (with no crashes) work may be for a quite long time. And then boom!

Since the problem seems local to your setup (nobody else here seems to have the same problem), may I offer a non-solution solution such as trying a different browser like Vivaldi (it’s what I use).

I’m disappointed - I thought there’d be AT LEAST one!!

Actually, you are the ‘Special One’ because you kind of fail to respond to any suggestions - you give no feedback, but you whinge and moan like a petulant teenager.

If you fix that, then your Firefox issue will also be fixed.

The last ‘difficult’ issue I had to solve by disabling all addons, then enabling one by one, 1. Bitwarden 2. uBlock and then slowly adding others.

You can DISABLE without removing addons, and only enable one when you really need it (and leave it a day before permanently disabling any others).

You seem rather unwilling to let anyone see a list of your add-ons.

5 Likes

«You sound very aggressive. No reason to become snippy» ©