Firefox hangs: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(→‎Hang downloading files: browser.download.manager.scanWhenDone pref no longer exists)
 
(47 intermediate revisions by 3 users not shown)
Line 1: Line 1:
''Hanging'' (freezing, not responding) is when a program is running but stops responding to user input.  A hang/freeze is different from a ''crash'',  which ends the program. If Firefox closes unexpectedly, or if an error dialog appears and Firefox closes, see [[Firefox crashes]].
''Hanging'' (freezing, not responding) is when a program is running but stops responding to user input.  A hang/freeze is different from a ''crash'',  which ends the program. If Firefox closes unexpectedly, or if an error dialog appears and Firefox closes, see [[Firefox crashes]].  If Firefox hangs (stops responding or freezes), try the suggestions in this article.


Many "Firefox" problems are caused by incompatible themes, extensions, or programming errors in plugins. Especially if Firefox hangs after an update, start it in its own [[Safe Mode]] (not Windows Safe Mode) to use the default them and temporarily disable all extensions. As explained at [[Standard_diagnostic_-_Firefox]], you can also use the add-ons manager (accessible from the Tools menu) to update or disable your extensions. Starting with Firefox 3, the add-ons manager can also be used to disable plugins.  
Note: Many "Firefox" problems are caused by problematic themes, extensions, or plugins. To quickly check for these potential causes, follow the steps in the [[Standard diagnostic - Firefox]] article to see if one of your add-ons is causing Firefox to hang.  


==Hang loading first Firefox window==
==Hang loading first Firefox window==
Line 11: Line 11:
===Close Firefox dialog===
===Close Firefox dialog===
If you see a [[Profile_in_use#Indications_that_your_profile_is_locked|"Close Firefox" dialog]] when starting Firefox, with the message ''Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.'', Firefox may have stopped responding the last time you closed it.  Note that Firefox 3 has a delayed shutdown and will show you this dialog if you try to restart it too soon after exiting.  [https://bugzilla.mozilla.org/show_bug.cgi?id=399108]  [https://bugzilla.mozilla.org/show_bug.cgi?id=407981]    If you are unable to restart Firefox,  you will need to  [[Kill application|end all Firefox processes]] or restart the computer.  See [[#Hang at exit|Hang at exit]] (below) if this is a recurring problem.  (If you see this message when no Firefox processes are running, even after restarting the computer, see  [[Profile_in_use#How_to_unlock_your_profile|this article]].)
If you see a [[Profile_in_use#Indications_that_your_profile_is_locked|"Close Firefox" dialog]] when starting Firefox, with the message ''Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.'', Firefox may have stopped responding the last time you closed it.  Note that Firefox 3 has a delayed shutdown and will show you this dialog if you try to restart it too soon after exiting.  [https://bugzilla.mozilla.org/show_bug.cgi?id=399108]  [https://bugzilla.mozilla.org/show_bug.cgi?id=407981]    If you are unable to restart Firefox,  you will need to  [[Kill application|end all Firefox processes]] or restart the computer.  See [[#Hang at exit|Hang at exit]] (below) if this is a recurring problem.  (If you see this message when no Firefox processes are running, even after restarting the computer, see  [[Profile_in_use#How_to_unlock_your_profile|this article]].)
===Corporate login system===
If you are using a corporate login system such as IBM Tivoli Access Manager or Oracle Enterprise Single Sign On Manager,  [https://bugzilla.mozilla.org/show_bug.cgi?id=680927 bug 680927] can cause Firefox 10 can hang at startup, with the process running in the background consuming CPU [https://bugzilla.mozilla.org/show_bug.cgi?id=680927#c55] (rather than [[Firefox crashes#Crash_when_starting_Firefox|crash at startup]], as it would in Firefox 7, 8, or 9).  See the bug report for a suggested workaround (details [https://support.mozilla.org/en-US/questions/906287 here]), apply the fix from Oracle (see [https://bugzilla.mozilla.org/show_bug.cgi?id=680927#c58 bug comments 58-61]) or downgrade to Firefox 3.6.xx (available [http://www.mozilla.org/firefox/all-older.html here]); however,  Firefox 3.6 is no longer being maintained.


==Delay or hang waking from standby==
==Delay or hang waking from standby==
Line 16: Line 19:


==Hang downloading files==
==Hang downloading files==
As the download history grows,  files may take longer to download and Firefox may appear to hang when downloading.  In the Firefox menu, go to "Tools -> Downloads" and click "Clean Up" (Firefox 2) or "Clear List" (Firefox 3) to clear the Download History.   
'''Download history:'''<br>
*'''Firefox 2 and below:'''  If this doesn't help or if it also causes a hang, [[Kill application | exit Firefox completely]] and delete the [[downloads.rdf]] file in the [[Profile folder - Firefox|Firefox profile folder]] [https://bugzilla.mozilla.org/show_bug.cgi?id=306190].  
As the download history grows,  files may take longer to download and Firefox may appear to hang when downloading.  In the Firefox menu, click on "Downloads" (or "Tools - > Downloads"and click "Clear List" to clear the Download History.   
*If this doesn't help or if it also causes a hang, [[Kill application | exit Firefox completely]] and delete the file [[downloads.sqlite]] in the [[Profile folder - Firefox|Firefox profile folder]] [https://bugzilla.mozilla.org/show_bug.cgi?id=306190].


Firefox may hang downloading files if the folder where Firefox is attempting to save the download no longer exists or is not accessible.  Try resetting  the '''browser.download.lastDir''' preference in [[about:config]].  You can also try choosing a new download folder in your Firefox settings ("[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Main / Downloads -> Save files to -> Browse").   
'''Download folder:''' <br>
Firefox can hang downloading files if the folder where Firefox is attempting to save the download no longer exists or is not accessible.  Try resetting  the '''browser.download.lastDir''' preference in [[about:config]].  You can also try choosing a new download folder in your Firefox settings: "[[Menu differences in Windows, Linux, and Mac| Tools -> Options]] -> General (Main in Firefox 3.5)  / Downloads -> Save files to -> Browse".   


See [[Unable to save or download files]] for more information.
'''Windows shell extension:'''<br>
A [http://en.wikipedia.org/wiki/Shell_extension#Extensibility Windows shell extension] added by certain applications can cause Firefox to hang when choosing a folder location to save a file or when opening "Options" or "Downloads" from the Firefox (Tools) menu.  A program called WagerLogic and older versions of  [http://www.tortoisecvs.org/ TortoiseCVS] have been known to cause this problem. As reported in [https://bugzilla.mozilla.org/show_bug.cgi?id=587903#c6 bug 587903], (quote) ''Tortoise is causing the problem. This application installs a shell extension for File I/O and this shell extension hangs Firefox. Every time Firefox calls the windows function to open a windows filpicker this shell driver is loaded as well and hangs Firefox.''  If you have these or similar programs installed,  try installing a newer version or else uninstall the application if you don't need it. 
'''Note:''' You can view and selectively disable Windows shell extensions added by third-party (non-Microsoft) applications with the [http://www.nirsoft.net/utils/shexview.html ShellExView] utility, to determine if one of them is causing the issue. [https://support.mozilla.org/questions/758736] [http://forums.mozillazine.org/viewtopic.php?p=10060835#p10060835] [https://bugzilla.mozilla.org/show_bug.cgi?id=587903#c6] [https://bugzilla.mozilla.org/show_bug.cgi?id=573977#c16] [https://bugzilla.mozilla.org/show_bug.cgi?id=575787]
 
'''Virus scanning:'''  Firefox launches your installed anti-virus program to scan files when the download completes.  In some cases, this causes a substantial delay or hang while the file is scanned.  '''Note:''' If the Download Manager appears to be stuck scanning for viruses, try closing and re-opening the Downloads window. [https://bugzilla.mozilla.org/show_bug.cgi?id=401582#c54] [https://bugzilla.mozilla.org/show_bug.cgi?id=435598#c8] Also in some cases security software such as McAfee Security Center or Microsoft security essentials has real time scanning that will cause the save file to hang. Try disabling it in your virus software's options.
 
See [[Unable to save or download files]] for more information about file download problems and solutions.  


===Hang saving images===
===Hang saving images===
Line 27: Line 38:


==Hang using page history==
==Hang using page history==
If you set Firefox to remember the visited pages for ''more'' than the default number of days, operations involving browsing history can slow down or hang Firefox for short periods of time.  Clearing the browsing history will usually resolve the problem [https://bugzilla.mozilla.org/show_bug.cgi?id=223476].   History can be cleared as part of the "Clear Private Data" function, if "Browsing History" is selected in  "Tools -> Options -> Privacy / Private Data -> Settings".  You can also set Firefox to retain a smaller browsing history in your Privacy settings for History ("[[Menu differences in Windows, Linux, and Mac|Tools -> Options]] -> Privacy / History"):
Sometimes operations involving browsing history can slow down or hang Firefox for varying periods of time.  You can clear everything from the browsing history in "Tools -> Clear Private Data"  (Firefox 3.0) or  "Clear Recent History"  (Firefox 3.5 and above) to see if it resolves the problem[https://bugzilla.mozilla.org/show_bug.cgi?id=223476] [https://bugzilla.mozilla.org/show_bug.cgi?id=686025#c13]
*'''Firefox 2:'''  "Remember visited pages for the last ___ days” (default is 9 days)
*In Firefox 3.6 or below, if you use custom settings for History in your "Tools -> Privacy" options, reset Firefox to remember history for the default period or less (e.g., 90 days or less in Firefox 3.x).
*'''Firefox 3:''' "Keep my history for at least ___ days”  (default is 90 days
*'''Firefox 3.5:''' "Firefox will: Use custom settings for history -> Remember my browsing history for at least __ days" (default is 90 days)


If Firefox hangs when accessing page history (e.g., when you click History on the menu bar) the file that saves your browsing history may be damaged. To fix this,  [[Kill application|exit Firefox]],  open the [[Profile folder - Firefox|Firefox profile folder]] (see the linked article for the location) and then delete or rename [[history.dat]] (Firefox 2) or  [[places.sqlite]],  "places.sqlite-journal", and any "places.sqlite.corrupt" files, if found (Firefox 3 and above - see also [[Locked or damaged places.sqlite]]).  Firefox will generate a new history.dat or places.sqlite file and, in Firefox 3 and above,  your bookmarks will be automatically restored from backup,  but you will lose your browsing history. [http://groups.google.com/group/mozilla.support.firefox/browse_thread/thread/3e1755247f6f87c5/5de485e7bb523fc1]
If Firefox hangs when accessing page history (e.g., when you click History in the Firefox menu or when you try to clear the browsing history) the file that stores your browsing history may be damaged. [https://bugzilla.mozilla.org/show_bug.cgi?id=670590] See below under [[#Places database|Places database]].


==Hang after prolonged or extensive use==
==Hang after prolonged or extensive use==
Line 38: Line 47:


==Hang loading websites==
==Hang loading websites==
'''Note:''' If Firefox stops loading websites but does not actually hang,  try modifying the [[network.http.max-connections]] preference in [[about:config]] to a lower value, such as '''30''', which was the previous default before it was increased to 256. [https://bugzilla.mozilla.org/show_bug.cgi?id=648570] [https://bugzilla.mozilla.org/show_bug.cgi?id=692260] [http://support.mozilla.org/questions/881844] [http://forums.mozillazine.org/viewtopic.php?f=38&t=2321783]  (For other problems loading websites, see [[Error loading websites]]).
===Hang loading sites with JavaScript===
===Hang loading sites with JavaScript===
Firefox may become very slow to respond because of badly coded [[JavaScript]] causing infinite loops on certain websites [http://forums.mozillazine.org/viewtopic.php?p=2430116#2430116].  This problem can usually be cleared by closing the window or tab for that website.  You can also temporarily disable JavaScript to view the problem site, but the website may not work without JavaScript.  Read [[Firefox CPU usage]] for more information and also see the related article, [[Unresponsive Script Warning]].
Firefox may become very slow to respond because of badly coded [[JavaScript]] causing infinite loops on certain websites [http://forums.mozillazine.org/viewtopic.php?p=2430116#2430116].  This problem can usually be cleared by closing the window or tab for that website.  You can also temporarily disable JavaScript to view the problem site, but the website may not work without JavaScript.  Read [[Firefox CPU usage]] for more information and also see the related article, [[Unresponsive Script Warning]].
Line 50: Line 60:
===Hang loading websites when using an automatic proxy configuration file===
===Hang loading websites when using an automatic proxy configuration file===
If you're using an auto-config proxy (PAC), Firefox will hang when you attempt to load sites that don't exist and when opening sites on a domain you haven't opened recently.  The amount of time it hangs will depend on how many look-ups the PAC does. There is no current solution, however this is a recognised bug, and as such is being tracked here: [https://bugzilla.mozilla.org/show_bug.cgi?id=235853 Bug 235853 - PAC: isResolvable() causes the UI to hang during resolution].
If you're using an auto-config proxy (PAC), Firefox will hang when you attempt to load sites that don't exist and when opening sites on a domain you haven't opened recently.  The amount of time it hangs will depend on how many look-ups the PAC does. There is no current solution, however this is a recognised bug, and as such is being tracked here: [https://bugzilla.mozilla.org/show_bug.cgi?id=235853 Bug 235853 - PAC: isResolvable() causes the UI to hang during resolution].
==Hang deleting bookmarks - Firefox 3==
In Firefox 3, deleting, adding, or organizing a large quantity of bookmarks can take a very long time  [https://bugzilla.mozilla.org/show_bug.cgi?id=432706] and trying to delete a complex bookmarks folder  (one that contains many bookmarks and multiple levels of subfolders) can cause Firefox to hang.  [https://bugzilla.mozilla.org/show_bug.cgi?id=428459]  To work around this problem, delete unwanted bookmark subfolders in small steps.  As a last resort you can restart in [[Safe Mode|Firefox Safe Mode]], select the option, "Reset bookmarks to Firefox defaults" and click "Make Changes and Restart".  ('''Warning:'''  This will remove all of your added bookmarks!)  You can then [[import bookmarks]], if available,  from a bookmarks HTML file or from another browser.
==Hang searching bookmarks and history==
A bug in Firefox builds since 3.6.13 and 4.0b5 may cause Firefox to respond very slowly or hang while searching bookmarks and history.  [https://bugzilla.mozilla.org/show_bug.cgi?id=595530]  This should be fixed in an upcoming Firefox update so [[Software Update|check for updates]] and make sure that you are using the latest Firefox version.


==Hang at exit==
==Hang at exit==
Line 71: Line 75:
** If you use [[Firewalls#Norton 360|Norton 360 2.0]], Firefox may not close properly, resulting in multiple firefox.exe processes and symptoms of a [[locked_or_damaged_places.sqlite|locked places.sqlite file]]  (blank homepage, missing bookmarks and history, inactive back/forward toolbar buttons) when you next reopen Firefox.  [http://community.norton.com/norton/board/message?board.id=Norton_360&message.id=1423]  Update Norton 360 to the latest version.  As a workaround, disable "Phishing Protection" in Norton's settings [https://bugzilla.mozilla.org/show_bug.cgi?id=452469#c60] or follow [[Uninstalling toolbars#Other solutions|these instructions]] to manually remove the Norton anti-phishing toolbar from Firefox. [http://community.norton.com/norton/board/message?board.id=Norton_360&thread.id=2267&view=by_date_ascending&page=3]
** If you use [[Firewalls#Norton 360|Norton 360 2.0]], Firefox may not close properly, resulting in multiple firefox.exe processes and symptoms of a [[locked_or_damaged_places.sqlite|locked places.sqlite file]]  (blank homepage, missing bookmarks and history, inactive back/forward toolbar buttons) when you next reopen Firefox.  [http://community.norton.com/norton/board/message?board.id=Norton_360&message.id=1423]  Update Norton 360 to the latest version.  As a workaround, disable "Phishing Protection" in Norton's settings [https://bugzilla.mozilla.org/show_bug.cgi?id=452469#c60] or follow [[Uninstalling toolbars#Other solutions|these instructions]] to manually remove the Norton anti-phishing toolbar from Firefox. [http://community.norton.com/norton/board/message?board.id=Norton_360&thread.id=2267&view=by_date_ascending&page=3]
** If you use  [[Firewalls#Norton Internet Security|Norton Internet Security 2008.5]], update to a more current NIS version or apply the workarounds described above for Norton 360.
** If you use  [[Firewalls#Norton Internet Security|Norton Internet Security 2008.5]], update to a more current NIS version or apply the workarounds described above for Norton 360.
**Symantec IPS 3.0 (add-on) was updated July 08, 2011, receives a message that the program is already running.  Compatibility issue with Norton Toolbar. [http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=kb20100720112959EN_EndUserProfile_en_us] [https://support.mozilla.com/en-US/questions/845252]
**Symantec IPS 3.0 (add-on) was updated July 08, 2011, receives a message that the program is already running.  Compatibility issue with Norton Toolbar. [http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=kb20100720112959EN_EndUserProfile_en_us] [https://support.mozilla.org/questions/845252]
** If you have upgraded [[Firewalls#Comodo Internet Security|Comodo Internet Security]] from a version prior to 3.10, the Comodo Safe Surf component from the previous version can cause Firefox to hang at exit.  To resolve the issue,  you can uninstall Comodo Safe Surf via Windows Control Panel, as its function is now integrated into the current Comodo application.  [http://forums.comodo.com/firewall_help/firefox_process_wonaacutet_quit_after_update_of_comodo-t42172.0.html;msg306350]  [http://forums.comodo.com/safesurf/comodo_safesurf_and_cis_310-t42104.0.html;msg306519] [http://forums.comodo.com/safesurf/safesurf_removal-t30126.0.html]
** If you have upgraded [[Firewalls#Comodo Internet Security|Comodo Internet Security]] from a version prior to 3.10, the Comodo Safe Surf component from the previous version can cause Firefox to hang at exit.  To resolve the issue,  you can uninstall Comodo Safe Surf via Windows Control Panel, as its function is now integrated into the current Comodo application.  [http://forums.comodo.com/firewall_help/firefox_process_wonaacutet_quit_after_update_of_comodo-t42172.0.html;msg306350]  [http://forums.comodo.com/safesurf/comodo_safesurf_and_cis_310-t42104.0.html;msg306519] [http://forums.comodo.com/safesurf/safesurf_removal-t30126.0.html]


===Closing Firefox properly===
===Closing Firefox properly===
#Use "File -> Exit" (Windows) "File -> Quit" (Linux) or "Firefox -> Quit Firefox" (Mac OS X). [http://support.mozilla.com/kb/Menu+Reference]
#Use the "Firefox" button and "Exit" (Windows) or "Quit" (Linux) or, "File -> Exit" (Windows XP)"File -> Quit" (Linux) or "Firefox -> Quit Firefox" (Mac OS X). [https://support.mozilla.org/kb/Menu+Reference]
#Close any remaining dialog boxes or secondary windows such as the Downloads window or the Extensions window.  
#Close any remaining dialog boxes or secondary windows such as the Downloads window or the Extensions window.  
Sometimes, even after following the steps above, Firefox may still be running or it may have stopped responding to input.  Read [[Kill application#If the application fails to close completely|this]] for additional steps you may need to take.  
Sometimes, even after following the steps above, Firefox may still be running or it may have stopped responding to input.  Read [[Kill application#If the application fails to close completely|this]] for additional steps you may need to take.  
Line 83: Line 87:


==Other causes of hanging==
==Other causes of hanging==
===Places database===
Firefox can hang, or it may freeze at regular intervals, if the Places database file storing bookmarks and browsing history  is damaged.  To resolve, close Firefox and delete or rename  [[places.sqlite]]  (and places.sqlite-journal, if it exists) from the [[Profile folder - Firefox|Firefox profile folder]].  When you restart Firefox,  a new Places database will be  generated and your bookmarks will be automatically restored from backup; however, you will lose your browsing history.  (For other issues associated with a corrupt places database, see [[Locked or damaged places.sqlite]].)  [http://groups.google.com/group/mozilla.support.firefox/browse_thread/thread/3e1755247f6f87c5/5de485e7bb523fc1] [https://support.mozilla.org/questions/862445] [https://bugzilla.mozilla.org/show_bug.cgi?id=671448#c16]  [https://bugzilla.mozilla.org/show_bug.cgi?id=666128] [https://bugzilla.mozilla.org/show_bug.cgi?id=686025] [https://bugzilla.mozilla.org/show_bug.cgi?id=691507]  If you use the Sync feature for bookmarks and browsing history, it may also help to deselect these items in Firefox Sync options or to disable Sync completely using the "Deactivate this device" option, before deleting places.sqlite. [https://bugzilla.mozilla.org/show_bug.cgi?id=686025#c7]
'''Note:'''  A  [https://addons.mozilla.org/firefox/addon/places-maintenance/ Places Maintenance add-on] is available that lets you run various maintenance tasks on the Places database (see [http://blog.bonardo.net/2011/09/30/is-your-firefor-freezing-at-regular-intervals this blog post by the Mozilla developer] for details).
===Live Bookmarks===
===Live Bookmarks===
[[Live Bookmarks - Firefox|Live Bookmarks]] can take a long time to load and may hang Firefox (fixed in Firefox 3.1).  [https://bugzilla.mozilla.org/show_bug.cgi?id=329534]  As a workaround,  try deleting unneeded Live Bookmarks.[http://forums.mozillazine.org/viewtopic.php?f=38&t=1037035&start=15]
[[Live Bookmarks - Firefox|Live Bookmarks]] can take a long time to load and may hang Firefox (fixed in Firefox 3.1).  [https://bugzilla.mozilla.org/show_bug.cgi?id=329534]  As a workaround,  try deleting unneeded Live Bookmarks.[http://forums.mozillazine.org/viewtopic.php?f=38&t=1037035&start=15]
Line 99: Line 108:


*'''Outpost Pro Firewall''' Outpost Pro Firewall, versions 2.7 and 3.0, can cause Firefox to stop loading Web sites.  The "firefox.exe" process may also be left running after closing Firefox, and shutting down the computer may be blocked by an error message that the XPCOM:EventReceiver is still waiting for data.[http://forums.mozillazine.org/viewtopic.php?p=2668646#2668646],[http://forums.mozillazine.org/viewtopic.php?p=2674787#2674787]  This may be due to blocking the [https://bugzilla.mozilla.org/show_bug.cgi?id=100154 loopback (localhost)] connection.[http://forums.mozillazine.org/viewtopic.php?p=2683382#2683382]
*'''Outpost Pro Firewall''' Outpost Pro Firewall, versions 2.7 and 3.0, can cause Firefox to stop loading Web sites.  The "firefox.exe" process may also be left running after closing Firefox, and shutting down the computer may be blocked by an error message that the XPCOM:EventReceiver is still waiting for data.[http://forums.mozillazine.org/viewtopic.php?p=2668646#2668646],[http://forums.mozillazine.org/viewtopic.php?p=2674787#2674787]  This may be due to blocking the [https://bugzilla.mozilla.org/show_bug.cgi?id=100154 loopback (localhost)] connection.[http://forums.mozillazine.org/viewtopic.php?p=2683382#2683382]
*'''Norton Anti-virus'''  Older versions of Norton Anti-virus have been known to cause Firefox 2 to hang when NAV real-time protection is turned on. Updating to the latest version may solve the problem. [http://forums.mozillazine.org/viewtopic.php?t=483517&postdays=0&postorder=asc&postsperpage=15&start=149]


===Adobe Type Manager/Font issues===
===Adobe Type Manager/Font issues===
Having installed a huge number of fonts can also cause this problem. [https://bugzilla.mozilla.org/show_bug.cgi?id=491283] Using Adobe Type Manager can lead to a huge number of installed fonts. Uninstall all fonts - except the standard fonts - and Adobe Type Manager in this case.
Having installed a huge number of fonts can also cause this problem. [https://bugzilla.mozilla.org/show_bug.cgi?id=491283] Using Adobe Type Manager can lead to a huge number of installed fonts. Uninstall all fonts - except the standard fonts - and Adobe Type Manager in this case.
===Problematic plugins===
Depending on your browser version and OS, Firefox may hang or crash because of a problematic plugin.  Visit Mozilla's [http://www.mozilla.com/en-US/plugincheck/  Plugin Check page] (using another browser If Firefox crashes at startup) and update all outdated plugins to see if that resolves the problem.  Alternately, disable all plugins using [[Safe Mode]]'s "Disable all add-ons" option  (this will also disable extensions  and themes) or  else manually remove all plugins to another location such as the desktop - see [[Issues related to plugins]] for details and plugin locations.  If this resolves the problem,  re-enable or move each plugin back to its original location, one at a time, and test in between until the culprit is found.
*On Mac OS, the WebEx plugin can cause Firefox to hang (or crash).  If updating does not resolve the problem, delete the "WebEx.plugin" file or disable the plugin by moving it to another location.  '''Note:''' The "WebEx.plugin" file is located in the ''~/Library/Internet Plug-ins'' folder (Macintosh HD/Users/<user account>/Library/Internet Plug-Ins) instead of in the more typical root directory ''/Library/Internet Plug-ins'' folder, where other Internet plugins are installed.  If you need this plugin,  another option is to set Firefox to run in  32-bit mode  in the Firefox.app "Get Info" window (Mac OS X 10.6 and above) and then restart Firefox.  [http://forums.mozillazine.org/viewtopic.php?f=38&t=2062997&start=45] [https://support.mozilla.org/questions/809813]


==Other solutions==
==Other solutions==
Line 113: Line 124:
*[[Firefox CPU usage]]
*[[Firefox CPU usage]]
*[[Error loading websites]]
*[[Error loading websites]]
*[[Browser will not start up]]


== External Links ==
== External Links ==
*[http://wiki.mozilla.org/User:CF:Fx2_Hangs Crash Firefox to determine where Firefox is hanging]
*[https://support.mozilla.org/kb/Firefox+hangs Firefox hangs] (Firefox Support)
*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs (Firefox Support)]


[[Category:Issues (Firefox)]]
[[Category:Issues (Firefox)]]
[[Category:Performance - Firefox]]
[[Category:Performance - Firefox]]

Latest revision as of 00:08, 23 October 2015

Hanging (freezing, not responding) is when a program is running but stops responding to user input. A hang/freeze is different from a crash, which ends the program. If Firefox closes unexpectedly, or if an error dialog appears and Firefox closes, see Firefox crashes. If Firefox hangs (stops responding or freezes), try the suggestions in this article.

Note: Many "Firefox" problems are caused by problematic themes, extensions, or plugins. To quickly check for these potential causes, follow the steps in the Standard diagnostic - Firefox article to see if one of your add-ons is causing Firefox to hang.

Hang loading first Firefox window

Hyper-Threading

Hyper-Threading is a feature on certain older Intel Pentium 4-based processors. In some cases, motherboard chipsets supporting Hyper-Threading can cause Firefox to hang at startup. If you’re experiencing hangs, you may want to check your motherboard manufacturer’s website for updates to the BIOS. [1]

Alternatively, you can disable Hyper-Threading support for Firefox in Windows 2000 and later, as follows: Right-click the Firefox shortcut → Properties → Compatibility → Check "Run this program in compatibility mode" → Select "Windows 98/Windows ME" → OK. [2] [3] For more information on Hyper-Threading, see Intel's article and this article at pcworld.about.com.

Close Firefox dialog

If you see a "Close Firefox" dialog when starting Firefox, with the message Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system., Firefox may have stopped responding the last time you closed it. Note that Firefox 3 has a delayed shutdown and will show you this dialog if you try to restart it too soon after exiting. [4] [5] If you are unable to restart Firefox, you will need to end all Firefox processes or restart the computer. See Hang at exit (below) if this is a recurring problem. (If you see this message when no Firefox processes are running, even after restarting the computer, see this article.)

Corporate login system

If you are using a corporate login system such as IBM Tivoli Access Manager or Oracle Enterprise Single Sign On Manager, bug 680927 can cause Firefox 10 can hang at startup, with the process running in the background consuming CPU [6] (rather than crash at startup, as it would in Firefox 7, 8, or 9). See the bug report for a suggested workaround (details here), apply the fix from Oracle (see bug comments 58-61) or downgrade to Firefox 3.6.xx (available here); however, Firefox 3.6 is no longer being maintained.

Delay or hang waking from standby

You may experience excessive delay or Firefox may appear to hang when waking the computer from hibernation or standby. You may also notice high CPU usage. On Windows, updating Flash to the latest version should resolve the issue, which has been reported with Flash 8. [7] This page will tell you what Flash version is installed. Note that Flash is not the only cause of problems after waking the computer from hibernate or standby. [8] As a workaround, close Firefox before placing the computer in standby/hibernation mode.

Hang downloading files

Download history:
As the download history grows, files may take longer to download and Firefox may appear to hang when downloading. In the Firefox menu, click on "Downloads" (or "Tools - > Downloads") and click "Clear List" to clear the Download History.

Download folder:
Firefox can hang downloading files if the folder where Firefox is attempting to save the download no longer exists or is not accessible. Try resetting the browser.download.lastDir preference in about:config. You can also try choosing a new download folder in your Firefox settings: " Tools -> Options -> General (Main in Firefox 3.5) / Downloads -> Save files to -> Browse".

Windows shell extension:
A Windows shell extension added by certain applications can cause Firefox to hang when choosing a folder location to save a file or when opening "Options" or "Downloads" from the Firefox (Tools) menu. A program called WagerLogic and older versions of TortoiseCVS have been known to cause this problem. As reported in bug 587903, (quote) Tortoise is causing the problem. This application installs a shell extension for File I/O and this shell extension hangs Firefox. Every time Firefox calls the windows function to open a windows filpicker this shell driver is loaded as well and hangs Firefox. If you have these or similar programs installed, try installing a newer version or else uninstall the application if you don't need it. Note: You can view and selectively disable Windows shell extensions added by third-party (non-Microsoft) applications with the ShellExView utility, to determine if one of them is causing the issue. [10] [11] [12] [13] [14]

Virus scanning: Firefox launches your installed anti-virus program to scan files when the download completes. In some cases, this causes a substantial delay or hang while the file is scanned. Note: If the Download Manager appears to be stuck scanning for viruses, try closing and re-opening the Downloads window. [15] [16] Also in some cases security software such as McAfee Security Center or Microsoft security essentials has real time scanning that will cause the save file to hang. Try disabling it in your virus software's options.

See Unable to save or download files for more information about file download problems and solutions.

Hang saving images

See above.

Hang using page history

Sometimes operations involving browsing history can slow down or hang Firefox for varying periods of time. You can clear everything from the browsing history in "Tools -> Clear Private Data" (Firefox 3.0) or "Clear Recent History" (Firefox 3.5 and above) to see if it resolves the problem. [17] [18]

  • In Firefox 3.6 or below, if you use custom settings for History in your "Tools -> Privacy" options, reset Firefox to remember history for the default period or less (e.g., 90 days or less in Firefox 3.x).

If Firefox hangs when accessing page history (e.g., when you click History in the Firefox menu or when you try to clear the browsing history) the file that stores your browsing history may be damaged. [19] See below under Places database.

Hang after prolonged or extensive use

For some users, Firefox consumes excessive amounts of memory and may slow down or hang in situations that include being open for long periods of time, after downloading or saving images or other files, or after extensive use with multiple tabs open. See the article, Reducing memory usage - Firefox. Additional suggestions are given here.

Hang loading websites

Note: If Firefox stops loading websites but does not actually hang, try modifying the network.http.max-connections preference in about:config to a lower value, such as 30, which was the previous default before it was increased to 256. [20] [21] [22] [23] (For other problems loading websites, see Error loading websites).

Hang loading sites with JavaScript

Firefox may become very slow to respond because of badly coded JavaScript causing infinite loops on certain websites [24]. This problem can usually be cleared by closing the window or tab for that website. You can also temporarily disable JavaScript to view the problem site, but the website may not work without JavaScript. Read Firefox CPU usage for more information and also see the related article, Unresponsive Script Warning.

If the web site hangs Firefox (you can't even exit Firefox) try running in Safe Mode and see if you can get an Unresponsive Script Warning. Watch the status bar and see if this frequently occurs while it mentions a specific URL. If so, try blocking that URL using a content-blocker such as Adblock Plus. The problem URL may be fetching an advertisement or side panel that you can do without.

If none of this helps, try using a different browser (such as IE or Opera) or try accessing the site at another time. This might help you determine if the problem lies with Firefox, a poorly designed website, or content that changes over time, such as ads. [25]

Hang loading sites with Java, Flash, or PDF files

If Firefox hangs attempting to load a site with Java or Flash, or an Adobe PDF file, it's likely a problem with the associated plugin.

Hang loading websites when using an automatic proxy configuration file

If you're using an auto-config proxy (PAC), Firefox will hang when you attempt to load sites that don't exist and when opening sites on a domain you haven't opened recently. The amount of time it hangs will depend on how many look-ups the PAC does. There is no current solution, however this is a recognised bug, and as such is being tracked here: Bug 235853 - PAC: isResolvable() causes the UI to hang during resolution.

Hang at exit

Sometimes when you try to open Firefox you may see a "Close Firefox" dialog with the message, Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. This can happen if you try to restart Firefox too soon after closing it [26] [27] but other times, Firefox stops responding at exit and the process remains active, even though no Firefox windows are open. You must then end all Firefox processes or restart the computer before you can reopen Firefox. (See Profile in use for other causes and solutions.)

Note that you may not always see a "Close Firefox" dialog when a Firefox process from a previous session did not close properly. This can result in multiple instances of Firefox in the processes list or cause other issues, until you end the Firefox processes or restart the computer. [28] (If firefox.exe remains in the processes list even after restarting the computer, see Firefox.exe always open.)

You can try the following solutions if Firefox processes that remain at exit are a recurring problem:

  • Problematic extensions can cause the issue. Disable all extensions ("Tools -> Add-ons -> Extensions") and restart Firefox. If the issue is resolved, one of the disabled extensions was causing the problem. If you have many installed extensions, see the Extension issues section of this article for suggested diagnostic steps. [29] [30] [31]
  • Certain Java applets can cause the Firefox process to persist after exit. Try updating Java to the latest version or, if you don't need Java, disable the Java plugin as a workaround.
  • You can disable your installed plugins to see if a plugin is causing your issue. See Issues related to plugins for more information.
  • Using certain Internet security software is reported to cause Firefox processes to remain at exit, on some systems. Updating your security software may resolve the issue. If it doesn't, and you use one of the following applications, try these suggestions:
    • If you use ZoneAlarm Firewall on Windows Vista, Firefox may stop loading pages or hang at exit. You may be unable to end the firefox.exe process and will need to restart the computer before you can reopen Firefox. Try updating ZoneAlarm; if the problem persists, uninstall ZoneAlarm and use another firewall (or use Windows Firewall). [32] [33] [34] [35]
    • If you use Avast! Antivirus, switch to another antivirus product if you also have ZoneAlarm installed. [36]
    • If you use Norton 360 2.0, Firefox may not close properly, resulting in multiple firefox.exe processes and symptoms of a locked places.sqlite file (blank homepage, missing bookmarks and history, inactive back/forward toolbar buttons) when you next reopen Firefox. [37] Update Norton 360 to the latest version. As a workaround, disable "Phishing Protection" in Norton's settings [38] or follow these instructions to manually remove the Norton anti-phishing toolbar from Firefox. [39]
    • If you use Norton Internet Security 2008.5, update to a more current NIS version or apply the workarounds described above for Norton 360.
    • Symantec IPS 3.0 (add-on) was updated July 08, 2011, receives a message that the program is already running. Compatibility issue with Norton Toolbar. [40] [41]
    • If you have upgraded Comodo Internet Security from a version prior to 3.10, the Comodo Safe Surf component from the previous version can cause Firefox to hang at exit. To resolve the issue, you can uninstall Comodo Safe Surf via Windows Control Panel, as its function is now integrated into the current Comodo application. [42] [43] [44]

Closing Firefox properly

  1. Use the "Firefox" button and "Exit" (Windows) or "Quit" (Linux) or, "File -> Exit" (Windows XP), "File -> Quit" (Linux) or "Firefox -> Quit Firefox" (Mac OS X). [45]
  2. Close any remaining dialog boxes or secondary windows such as the Downloads window or the Extensions window.

Sometimes, even after following the steps above, Firefox may still be running or it may have stopped responding to input. Read this for additional steps you may need to take.

Note: To close Firefox and immediately restart, you can install and use the "Quick Restart" extension. Once installed use keyboard shortcut "Ctrl+Alt+R" to close and restart or use the Tools menu item "Restart Firefox".  Firefox 4 users can use the much smaller "Restartless Restart" extension with the same keyboard shortcut.

Other causes of hanging

Places database

Firefox can hang, or it may freeze at regular intervals, if the Places database file storing bookmarks and browsing history is damaged. To resolve, close Firefox and delete or rename places.sqlite (and places.sqlite-journal, if it exists) from the Firefox profile folder. When you restart Firefox, a new Places database will be generated and your bookmarks will be automatically restored from backup; however, you will lose your browsing history. (For other issues associated with a corrupt places database, see Locked or damaged places.sqlite.) [46] [47] [48] [49] [50] [51] If you use the Sync feature for bookmarks and browsing history, it may also help to deselect these items in Firefox Sync options or to disable Sync completely using the "Deactivate this device" option, before deleting places.sqlite. [52]

Note: A Places Maintenance add-on is available that lets you run various maintenance tasks on the Places database (see this blog post by the Mozilla developer for details).

Live Bookmarks

Live Bookmarks can take a long time to load and may hang Firefox (fixed in Firefox 3.1). [53] As a workaround, try deleting unneeded Live Bookmarks.[54]

Extensions

Extensions are a common cause of Firefox problems, including hangs, slowdowns, or periodic freezes. Check the list of problematic extensions to see if it is a known issue and go through the standard diagnostic steps related to extension issues to see if an extension is causing Firefox to hang.

Multiple sessionstore.js files

If Firefox is slow to respond or appears to hang, open the Firefox profile folder, check for multiple sessionstore.js files and delete all copies found. [55] See Multiple profile files created for details.

Internet security software

Internet security software may cause Firefox to hang at exit (see above), to respond very slowly, stop loading pages or to hang during use.

  • Spybot Search and Destroy Spybot S&D includes an "Immunize" feature that, on some systems, can cause Firefox to respond very slowly; for example, extended pauses when loading web pages or switching tabs. [56] [57] To undo the Firefox immunization, go into Spybot S&D -> Immunize. If you right-click in the Immunization window on the right, you can select "deselect all". Check the Immunizations for Firefox you would like to remove, then click Undo. See this Spybot forum topic for more information. Note: The problem was reportedly caused by the large number of entries added to the Firefox hostperm.1 file. Since Firefox 3 uses "permissions.sqlite" instead of hostperm.1 this issue may be limited to Firefox 2 and below.
  • ZoneAlarm on Windows Vista Firefox may stop loading pages or hang on Windows Vista when ZoneAlarm is installed. Uninstall ZoneAlarm and use the Windows Firewall, or install another firewall such as the free Comodo Firewall. [58] [59] [60]
  • Outpost Pro Firewall Outpost Pro Firewall, versions 2.7 and 3.0, can cause Firefox to stop loading Web sites. The "firefox.exe" process may also be left running after closing Firefox, and shutting down the computer may be blocked by an error message that the XPCOM:EventReceiver is still waiting for data.[61],[62] This may be due to blocking the loopback (localhost) connection.[63]

Adobe Type Manager/Font issues

Having installed a huge number of fonts can also cause this problem. [64] Using Adobe Type Manager can lead to a huge number of installed fonts. Uninstall all fonts - except the standard fonts - and Adobe Type Manager in this case.

Problematic plugins

Depending on your browser version and OS, Firefox may hang or crash because of a problematic plugin. Visit Mozilla's Plugin Check page (using another browser If Firefox crashes at startup) and update all outdated plugins to see if that resolves the problem. Alternately, disable all plugins using Safe Mode's "Disable all add-ons" option (this will also disable extensions and themes) or else manually remove all plugins to another location such as the desktop - see Issues related to plugins for details and plugin locations. If this resolves the problem, re-enable or move each plugin back to its original location, one at a time, and test in between until the culprit is found.

  • On Mac OS, the WebEx plugin can cause Firefox to hang (or crash). If updating does not resolve the problem, delete the "WebEx.plugin" file or disable the plugin by moving it to another location. Note: The "WebEx.plugin" file is located in the ~/Library/Internet Plug-ins folder (Macintosh HD/Users/<user account>/Library/Internet Plug-Ins) instead of in the more typical root directory /Library/Internet Plug-ins folder, where other Internet plugins are installed. If you need this plugin, another option is to set Firefox to run in 32-bit mode in the Firefox.app "Get Info" window (Mac OS X 10.6 and above) and then restart Firefox. [65] [66]

Other solutions

  • Perform the standard diagnostic to resolve hanging problems not specifically mentioned in this article.
  • Some older versions of video card drivers can cause hangs. Make sure your drivers are up to date.
  • If none of the solutions on this page fixes your problem, you may want to file a bug report. This is a list of unsolved bugs in Firefox that cause hangs. Look through the list, and if your situation doesn't match any of the situations listed, file a new bug report. If you cannot give a set of steps that reproduces the problem, you may want to try to find a regression window to determine which change to Firefox caused the problem. On Windows, you can also use Process Explorer to determine which thread is using the most CPU.

See also

External Links