How can I stop Firefox from freezing regularly?

6,961

Solution 1

I would suggest using the Profile Manager to create a new profile alongside your existing one. The Profile Manager will let you choose which profile to use at startup.

In this new profile, disable all plugins. Use this new profile for a bit and see if the freezes keep happening. If they do, the problem is external to your profile; and has to do either with your Firefox installation or something else on your computer.

However, if the freezes don't happen in the new profile, you know it has something to do with the old one. You can start introducing plugins and extensions one at a time into the new profile to see if you can narrow down a culprit.

If the new profile is still running smoothly with all your plugins and extensions, try restoring data from your old profile, one piece at a time.

Through this process, you'll hopefully be able to deduce what's causing the problem, and if not, you'll have a new profile that doesn't cause the problem with most of your data in it.

Solution 2

I see that you have stated;

I have tried removing all plugins, to no avail.

Just to be certain, have you disabled Java? If so, a runaway script could also cause an issue such as this depending on how Firefox interprets said script. Also, some 'Ads' may also cause said crash.

I would suggest installing the following as a 'trial'; NoScript and AdBlockPlus. Both of these plugins are available directly through Firefox; Tools > Add-ons.

In case you have never used 'NoScript', when first installed and you visit a Webpage, no scripts will run. This means, for instance, login attempts will not work, website functionality based on scripts will not work, etc. When you visit a site, you can simply add the script to your approved list, very simply; Right-Click > NoScript > [Select Script]. Your "allowed" scripts will be remembered, you can also revoke rights.

I have had the exact same issue you have mentioned with Firefox on OS X and discovered it only occurred on certain webpages, using trial and error, banned scripts using NoScript and have not experienced the behavior since.

Share:
6,961
Questioner
Author by

Questioner

Updated on September 18, 2022

Comments

  • Questioner
    Questioner over 1 year

    (Firefox 7.0.1 on Ubuntu 11.10 using Gnome Classic)

    I had hoped my Firefox freezing issue would have been solved with the sqlite VACUUM method offered in this answer. It has helped, in that Firefox seems to freeze slightly less often.

    Unfortunately, while slightly less, Firefox keeps freezing. It seems to happen if I leave it for a while without doing any tasks, but I am not 100% certain about that. In any case, at least once a day I have to force it to close:

    enter image description here

    I've run Firefox with the -g option to see if I get any debugging output, but it doesn't seem to report anything unusual. It looks like this around when I have to force a close:

    [Thread 0xa97ffb70 (LWP 4301) exited]
    [Thread 0xaddfeb70 (LWP 4287) exited]
    [Thread 0xb01feb70 (LWP 4275) exited]
    [Thread 0xb09ffb70 (LWP 4274) exited]
    [Thread 0xb140ab70 (LWP 4272) exited]
    [Thread 0xb24ffb70 (LWP 4270) exited]
    [Thread 0xb2e9db70 (LWP 4266) exited]
    [Thread 0xb369eb70 (LWP 4265) exited]
    [Thread 0xb42ffb70 (LWP 4264) exited]
    [Thread 0xac2fdb70 (LWP 4309) exited]
    
    Program terminated with signal SIGKILL, Killed.
    The program no longer exists.
    

    I have tried removing all plugins, to no avail.

    How can I get Firefox to stop freezing.

    • wizlog
      wizlog over 12 years
      Try uninstalling, then re-installing.
    • daxelrod
      daxelrod over 12 years
      Also, while it's frozen, is it using CPU?
    • Questioner
      Questioner over 12 years
      I was kind of hoping to avoid wiping out my profile and creating a new one. Won't I lose all my bookmarks, settings, and preferences that way? As for the question of CPU, yes, it seems that when FireFox freezes, my CPU is near 100% activity.
    • daxelrod
      daxelrod over 12 years
      Sorry I wasn't clear with my suggestion. Firefox allows you to have multiple profiles and switch between them. I was suggesting you create a new one alongside your existing profile for testing purposes.
    • Questioner
      Questioner over 12 years
      @daxelrod: Ah. I see. I will give that a shot and report back when I've had some results.
    • Rob
      Rob over 12 years
      Before you do that, you can backup the profile with this command cp -r ~/.mozilla ~/.mozilla.bkup which will copy the .mozilla to .mozilla.bkup, or whatever you want to use.
    • cwd
      cwd over 12 years
      Use Chrome instead ;) Each tab runs in a separate process and it's easy to close one without it locking up your whole browser.
    • Questioner
      Questioner over 12 years
      @cwd: I use Chrome and Chromium regularly. However, I need Firefox because I use some plugins not available on Chrome.
    • Questioner
      Questioner over 12 years
      @daxelrod: I started a clean profile, and slowly introduced my more critical plug-ins. So far so good. It doesn't identify what the problem was, but it might be the winning solution to just start fresh. If you post your suggestion as an answer, and assuming I don't get the freeze back, I'd award the bounty on that.
    • daxelrod
      daxelrod over 12 years
      @DaveMG: I expanded on my solution a bit and posted it as an answer. If you do end up finding out was was causing the problem, please let us know!
  • daxelrod
    daxelrod over 12 years
    Out of curiosity, if plugins and scripts are disabled, how would an ad still cause a crash?
  • V_P
    V_P over 12 years
    @daxelrod: Sorry, I do not do Web Development so I am not 100% aware of how Ads and scripts operate but, I have seen instances where YouTube, for instance, would run correctly even without allowing the script via NoScript; I believe it was a change on YouTube's side though. After seeing that, I was not sure if those same changes could be employed to deliver Ads, hence me mentioning AdBlockPlus as well, sort of like a safety net of sorts.
  • daxelrod
    daxelrod over 12 years
    YouTube videos will play without JavaScript enabled because they use the Flash plugin. If you opt-in to their HTML5 trial, videos will play without even needing the Flash plugin enabled.