Sunday 23 December 2012

Unresponsive Script on browsers and some settings for firefox.


Warning Unresponsive script

When JavaScript code runs for longer than a predefined amount of time, Firefox will display a dialog that says Warning: Unresponsive Script. This time is given by the settings dom.max_script_run_time and dom.max_chrome_script_run_time. Increasing the values of those settings will cause the warning to appear less often, but will defeat the purpose: to inform you of a problem with an extension or web site so you can stop the runaway script.
Complete Error Message: “A script on this page may be busy, or It may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.”
Sometimes you may be able to identify the extension:
"Script: chrome://fastdial/content/storage.js:71" 
This error is telling you that Firefox thinks that a script may be running out of control and would make Firefox hang if nothing is done. The script could be something on a web page you're accessing, in an extension you installed, or even Firefox itself. 

Letting the script run longer

If you find that pressing the Continue button brings up the same dialog again, letting the script run longer won't help you; it will just make Firefox hang for longer. However, if you can use Firefox normally after pressing Continue, then the script may just needs extra time to complete.
To tell Firefox to let the script run longer:
  1. In the Location bar, (URL Bar)type about:config and press Enter.
    • The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
  2. In the about:config page, search for the preference dom.max_script_run_time, and double-click on it.
  3. In the Enter integer value prompt, type 20.
  4. Press OK
With scripts now allowed to run for longer times, you may no longer receive the prompt.
If you still receive the prompt (or if you want to see it again), you should set that preference back to the default value.
  1. In the Location bar, type about:config and press Enter.
    • The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
  2. In the about:config page, search for the preference dom.max_script_run_time.
  3. Right-click on it and choose Reset.

Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems

Some problems with Firefox are caused by extensions, themes or hardware acceleration. This article will help you determine whether one of these is causing your problem and, if it is, describe how to make Firefox run normally again. 

 Note: The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. Consider using it before going though a lengthy troubleshooting process. 


Start Firefox in Safe Mode

When you start in Firefox's Troubleshoot Firefox issues using Safe Mode, all extensions are temporarily disabled, hardware acceleration is turned off and the default theme is used. This will help determine whether one of these is causing your problem.
  1. At the top of the Firefox window, click the Help menu and select Restart with Add-ons Disabled.... Firefox will start up with the Firefox Safe Mode dialog.
    Note: You can also start Firefox in Safe 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-4)
  2. When the Firefox Safe Mode window appears, press the button Continue in Safe Mode.
After Firefox starts in Safe Mode, test for your problem.

The problem still occurs in Safe Mode

If your problem persists in Safe Mode, it is not being caused by an extension, theme or hardware acceleration. Other possible causes could be plugins or changes made to Firefox preference settings, which are not disabled in Safe Mode.

The problem does not occur in Safe Mode

If your problem did not occur in Safe Mode, it is most likely because of an extension, theme or hardware acceleration. Continue following the steps in this article to determine the cause of your problem.

Turn off hardware acceleration

With some graphics card and graphics driver setups, Firefox may crash or have trouble showing text or objects on pages when using hardware acceleration. You can try turning off hardware acceleration to see if it fixes the problem.
  1. At the top of the Firefox window, click on the Edit menu and select Preferences
  2. Select the Advanced panel and the General tab.
  3. Uncheck Use hardware acceleration when available.
  4. At the top of the Firefox window, click on the File menu and select Quit.
  5. Start Firefox the way you normally do.
If the problem is no longer happening, then hardware acceleration was likely the cause. You can try updating your graphics drivers to see if that fixes it or simply run without hardware acceleration. Otherwise, your problem is likely related to extensions or themes. Continue with the steps in this article to see if they help.

Switch to the default theme

If you are using a theme other than the default Firefox theme:
  1. At the top of the Firefox window, click on the Tools menu, and then click Add-ons. The Add-ons Manager tab will open.
  2. In the Add-ons Manager tab, select the Appearance panel.
  3. Select the default theme, then click the Enable button, to make Firefox switch to that theme.
  4. Click Restart Firefox if necessary.
After you restart Firefox, test for your problem. If it no longer occurs, the theme you were using was causing it. If it still occurs, continue following the steps in this article.

Disable all extensions

To determine whether a faulty extension is causing your problem, you can disable all of your installed extensions:
  1. At the top of the Firefox window, click on the Tools menu, and then click Add-ons. The Add-ons Manager tab will open.
  2. In the Add-ons Manager tab, select the Extensions panel.
  3. Click the name of an extension in the list to select it.
  4. Click Disable to disable the selected extension.
  5. Repeat this for each of the other extensions in the list.
  6. Click Restart Firefox.
After you restart Firefox, all extensions will be disabled. Test for your problem.
  • If the problem still occurs with all extensions disabled, it is most likely that the localstore.rdf file in your Firefox profile is corrupt. You can Reset toolbars and controls to resolve the problem.
If the problem no longer occurs with all extensions disabled, one of your extensions was causing it. To find the extension that was causing your problem, continue as follows:

Test for faulty extensions

To determine which of your disabled extensions was causing your problem, you can re-enable each extension one at a time.
  1. At the top of the Firefox window, click on the Tools menu, and then click Add-ons. The Add-ons Manager tab will open.
  2. In the Add-ons Manager tab, select the Extensions panel.
  3. Click the name of an extension in the list to select it.
  4. Click Enable to enable the selected extension.
  5. Click Restart Firefox.
After you restart Firefox, test for your problem. If the problem comes back, the extension you just enabled was causing it.
Note: If you have a large number of extensions, it may be quicker to enable more than one extension at a time. The method with the fewest number of restarts required is: Enable half the extensions in this list, then restart Firefox and test for the problem. If the problem reoccurs, you know that the faulty extension is one of the ones you just enabled. If the problem does not occur, you know the faulty extension is one of the disabled ones. Repeat the process until the faulty extension is found.
After you find the extension that was causing your problem, disable or uninstall the faulty extension and re-enable the other extensions in the Add-ons window.

Updating extensions

If an extension was causing your problem, it may have an update available that will fix it:
  1. At the top of the Firefox window, click on the Tools menu, and then click Add-ons. The Add-ons Manager tab will open.
  2. In the Add-ons Manager tab, select the Extensions panel.
  3. Click Find Updates.
  4. If updates are found, install them by clicking Install Updates.
  5. When the installation is complete, click Restart Firefox.
After Firefox restarts, your extensions will be updated. If the extension that was causing your problem had an update, re-enable it and test for your problem again.

Checking extension settings

Some problems are caused if the settings of an extension override Firefox settings (e.g. problems with toolbars). Therefore you may want to check the extension's settings to see if you can find the option that is causing your problem:
  1. At the top of the Firefox window, click on the Tools menu, and then click Add-ons. The Add-ons Manager tab will open.
  2. In the Add-ons Manager tab, select the Extensions panel.
  3. For the extension that is causing your problem click the Preferences button.
  4. Click your way through the settings to see if there is an option that may solve your problem.
  5. If you found a suitable option, click Save and Restart Firefox
Content refers to following links.
http://support.mozilla.org/en-US/kb/warning-unresponsive-script
http://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems
http://kb.mozillazine.org/Unresponsive_Script_Warning

No comments:

Post a Comment