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)
 
(5 intermediate revisions by 2 users not shown)
Line 27: Line 27:


'''Windows shell extension:'''<br>
'''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 trying to download and 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.  If you have one of these applications, 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]  
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. You can disable this feature by setting the preference '''[[browser.download.manager.scanWhenDone]]''' to '''false''' in [[about:config]].  [https://bugzilla.mozilla.org/show_bug.cgi?id=412204]  [https://bugzilla.mozilla.org/show_bug.cgi?id=103487] [https://bugzilla.mozilla.org/show_bug.cgi?id=551427] [http://forums.mozillazine.org/viewtopic.php?p=3341702#3341702] '''Note:''' If the Download Manager appears to be stuck scanning for viruses, try closing and re-opening the Downloads window instead of disabling the preference. [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 or Microsoft security essentials has real time scanning that will cause the save file to hang. Try turning it off in your respective virus software's options.
'''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.  
See [[Unable to save or download files]] for more information about file download problems and solutions.  

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