From Fedora Project Wiki

(Added a guide for mozilla binaries testing.)
No edit summary
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= '''Bug reporting overview''' =
= '''Standard troubleshooting steps''' =


Details for each of these items are covered below with references at the bottom.
== Restart Firefox ==


# Clear out cache, cookies and session history.
Close Firefox completely: From the menu at the top of the Firefox windowbar, select ''File'' and then select the ''Quit'' menu item. Then restart your computer and start Firefox again.  
# Remove all plugin-ins, extensions, non-default themes.
# Restart the application and see if you are still able to reproduce the issue.
# Startup in Safe-Mode and reproduce.
# Create a new profile. (See profile manager section below)
# Download a copy of Mozilla and see if the issue persists. [https://www.mozilla.com/en-US/firefox/all.html]


These steps can help isolate where the issues may reside.
== Create a new profile ==


= '''Standard troubleshooting steps''' =
If the steps above don't fix your problem, continue by following these instructions.
 
'''Make a new profile'''
 
A corrupt profile can cause various problems with Firefox. You can try to make a new profile test whether that solves the problem, and if so, copy your data (bookmarks, saved passwords, etc.) to the new profile.
 
'''Important: Before you can start the Profile Manager, Firefox must be completely closed.'''


== Restart Firefox ==
# Exit Firefox. To close Firefox, at the top of the Firefox window, select the File menu, and then select Quit.
# In Terminal run: '''firefox -ProfileManager -no-remote'''
#* If the Profile Manager window does not open, Firefox may have been running in the background, even though it was not visible. Close all instances of Firefox or restart the computer and then try again.
# To start the Create Profile Wizard, click ''Create Profile...'' in the Profile Manager.
# Click Next and enter the name of the profile. Use a profile name that is descriptive, such as your personal name. This name is not exposed on the Internet.
# To create the new profile, click ''Finish''.
# Click on the newly created profile in the Profile Manager and click Start Firefox.


Close Firefox completely: From the menu at the top of the Firefox windowbar, select ''File'' and then select the ''Quit'' menu item. Then restart your computer and start Firefox again.  
Test to see if your problem occurs with the new profile. If it doesn't, you can copy your data to the new profile - see Recovering important data from an old profile for instructions. For troubleshooting purposes, only copy the files that correspond to your bookmarks and saved passwords.


== Clear cookies and cache ==
== Clear cookies and cache ==


Many problems with loading web pages can be resolved by clearing Firefox's cookies and cache:
Many problems with loading web pages can be resolved by clearing Firefox's cookies and cache. If the new profile helps you, you can try to clear your existing old profile:


# Click on the Tools menu and select Clear Recent History... to bring up the Clear Recent History window
# Click on the Tools menu and select Clear Recent History... to bring up the Clear Recent History window
Line 34: Line 41:
For more information, see Clear Recent History. [http://support.mozilla.com/en-US/kb/Clear+Recent+History]
For more information, see Clear Recent History. [http://support.mozilla.com/en-US/kb/Clear+Recent+History]


== Test in Safe Mode ==
== Troubleshoot Add-ons / plugins ==


''firefox -safe-mode''
Sometimes add-ons for Firefox (Extensions, Themes or Plugins) can cause problems and you can disable them one-by-one:


== Reset preferences ==
# Open the Add-ons Window by clicking the Tools menu and select Add-ons.
# There are three tabs - '''Extensions''', '''Themes''', '''Plugins''' so select the one you want to test
# Disable each extensions/theme/plugin in the list.
# Test for your problem.


( Safe mode option ) [http://support.mozilla.com/en-US/kb/Safe+Mode]
== Check WebRender ==


== Troubleshoot extensions and themes ==
WebRender is a new Firefox hardware accelerated back end. It's enabled by default on Gnome/X.org and Gnome/Wayland for Intel/AMD graphics cards. You can try to switch it on/off to check if that solves your issues.


Sometimes add-ons for Firefox (extensions or themes) can cause problems. To confirm whether your problem is caused by an add-on, launch Firefox's Safe Mode:
[[File:Webrender-about.png|thumb|center|WebRedner Firefox setup]]


# Close down Firefox completely: At the top of the Firefox window, click the File menu, and select the Quit menu item.
# Go to '''about:support''' page and check '''Compositing''' field. It's '''Basic''' for software rendering and '''WebRender''' otherwise.
# Go to your Terminal and run: '''firefox -safe-mode'''
# Go to '''about:config''' page and look for '''gfx.webrender.all''' and '''gfx.webrender.enabled''' preferences. Turn them on/off according your preference.
# In the Firefox Safe Mode dialog, click ''Continue in Safe Mode''.
# Restart browser, check at '''about:support''' WebRender status.
# Test for your problem.  


If the problem does not occur in Safe Mode, an extension or theme is likely the cause. For more information about troubleshooting extensions and themes, and how to narrow down which add-on is causing problems, see Troubleshooting extensions and themes. [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes]
== Check Firefox X11 Gtk+ backend (Gnome only) ==


== Troubleshoot Add-ons / plugins ==
Firefox can run with two independent Gtk+ backends / graphics servers where Wayland is a default one on Gnome Shell. If you run Gnome, please try to reproduced your issue on Firefox X11 backend.


Sometimes plugins for Firefox (such as Adobe Reader, Flash, Java, RealPlayer/HelixPlayer, Rhythmbox, Totem and VLC) can cause problems.
# install firefox-x11 package
# close all active firefox instances
# run '''Firefox on X11''' from menu or '''firefox-x11''' in Terminal


# Open the Add-ons Window by clicking the Tools menu and selecting Add-ons
== Collect information for a bug report ==
# Click on the Plugins icon at the top of the Add-ons window.
# Click each plugin in the list and then click Disable.
# Test for your problem.
 
For more information about various plugins, and what to do if you find the plugin that causes problems, see the Troubleshooting plugins article.
 
 
== Further troubleshooting steps ==


If the steps above don't fix your problem, continue by following these instructions.  
Please provide those information to your bug report. [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=firefox]


'''Make a new profile'''
If you Firefox crashes, please go to a crash stat page by visiting this link:


A corrupt profile can cause various problems with Firefox. You can try to make a new profile test whether that solves the problem, and if so, copy your data (bookmarks, saved passwords, etc.) to the new profile.
''about:crashes''


'''Important: Before you can start the Profile Manager, Firefox must be completely closed.'''
and you should see crash reports ids. Please Submit them at Mozilla by '''Submit All''' button and paste Report IDs to the report at bugzilla.


# Exit Firefox. To close Firefox, at the top of the Firefox window, select the File menu, and then select Quit.
If applicable attach a screen cast [https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en] or a picture of the issue.
# In Terminal run: '''firefox -ProfileManager'''
#* If the Profile Manager window does not open, Firefox may have been running in the background, even though it was not visible. Close all instances of Firefox or restart the computer and then try again.
#* If you are connected to another host, and the above is not working properly, run: '''firefox -ProfileManager -no-remote'''
# To start the Create Profile Wizard, click ''Create Profile...'' in the Profile Manager.
# Click Next and enter the name of the profile. Use a profile name that is descriptive, such as your personal name. This name is not exposed on the Internet.
# You can also choose where to store the profile, which is useful if you plan on exporting your data and settings to another computer or setup in the future. To choose its storage location on your system, click ''Choose Folder...''.
# To create the new profile, click ''Finish''.
# Click on the newly created profile in the Profile Manager and click Start Firefox.  


Test to see if your problem occurs with the new profile. If it doesn't, you can copy your data to the new profile - see Recovering important data from an old profile for instructions. For troubleshooting purposes, only copy the files that correspond to your bookmarks and saved passwords.
Attach exact Firefox version, type this command in terminal:


== Collect information for a bug report ==
''rpm -q firefox''


In the URL bar, visit this link:
Attach firefox troubleshooting data, in the URL bar, visit this link:


  ''about:support''
  ''about:support''


Copy this information to your bug report. [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=firefox]
and use '''Copy text to clipboard''' to copy/paste it.


== Testing Mozilla binaries ==
== Testing Mozilla binaries ==
Line 101: Line 96:
# Download Firefox [https://www.mozilla.org/en-US/firefox/new/]/Thunderbird[https://www.thunderbird.net/en-US/] from Mozilla site directly .
# Download Firefox [https://www.mozilla.org/en-US/firefox/new/]/Thunderbird[https://www.thunderbird.net/en-US/] from Mozilla site directly .
# Unpack the tarball.
# Unpack the tarball.
# In Terminal run locally as '''./firefox -ProfileManager -no-remote''' ('''./thunderbird -ProfileManager  -no-remote'''), create a new profile and test your issue.
# In Terminal run locally as '''./firefox -ProfileManager -no-remote''' ('''./thunderbird -ProfileManager  -no-remote'''), create a new profile and test your issue. It runs with X11 backend by default.
# To use Wayland native backend run as '''MOZ_ENABLE_WAYLAND=1 ./firefox -ProfileManager -no-remote'''. Mozilla thunderbird does not support Wayland yet.
 
Some issues can be already fixed in Beta or Nightly which are pre-release and development versions. Please also check those two if you can reproduce it issue.
 
# Download Firefox Beta/Nightly [https://www.mozilla.org/en-US/firefox/channel/desktop/] or Thunderbird Beta [https://www.thunderbird.net/en-US/channel/] from Mozilla site.
 
== Testing Firefox titlebar ==
 
In case of unexpected Firefox titlebar behavior (missing titlebar, doubled titlebar, missing 'Title Bar' checkbox at Customize menu) try to run Firefox in terminal as:
 
'''MOZ_GTK_TITLEBAR_DECORATION=client firefox'''
 
and
 
'''MOZ_GTK_TITLEBAR_DECORATION=system firefox'''
 
and check of that helps.
 
== Use Mozregression tool ==
 
Mozregression tool [https://mozilla.github.io/mozregression/] can be used to find offending changeset. Install mozregression on terminal by
 
'''pip install mozregression'''
 
and run
 
'''mozregression --good version_good --bad version_bad'''
 
where version_good and version_bad are affected Firefox version. For instance when something bad happens between Firefox 78 and 79, you can find that by:
 
'''mozregression --good 78.0 --bad 79.0'''
 
The mozregression wool will launch various Firefox versions and as you if the launched version is good or bad. When the bi-section is finished a regression range is printed.
 
If you want to test Firefox in Wayland, run mozregression with MOZ_ENABLE_WAYLAND env variable, i.e.:
 
'''MOZ_ENABLE_WAYLAND=1 mozregression --good 78.0 --bad 79.0'''
 
If you have a specific profile where the bug happens, you can tell mozregression to use it for testing. For instance I have a  Firefox profile named ''default'' and I want mozregression to use it. First I need to locate the profile files, in my case it's stored at /home/user/.mozilla/firefox/80thyv9a.default (/home/user/.mozilla/firefox is a Firefox profile directory). To test it under Wayland I run:
 
'''MOZ_ENABLE_WAYLAND=1 mozregression --profile /home/user/.mozilla/firefox/80thyv9a.default --profile-persistence clone-first --good 78.0 --bad 79.0'''
 
(note the --profile-persistence clone-first parameter to clone the profile before use which protects your data)
 
== Get system log after system freeze / restart ==
 
If you suffer from whole system lockups / sudden restart you can examine system log from previous session and look for relevant entries like gfx driver errors, kernel errors or Gnome/Mutter failures. Right after restart run on terminal:
 
'''journalctl -b -1'''
 
It shows a log from previous session, the '-b -1' param tells journalctl to show log from previous boot.


= Additional Reading =
= Additional Reading =

Revision as of 15:14, 1 March 2021

Standard troubleshooting steps

Restart Firefox

Close Firefox completely: From the menu at the top of the Firefox windowbar, select File and then select the Quit menu item. Then restart your computer and start Firefox again.

Create a new profile

If the steps above don't fix your problem, continue by following these instructions.

Make a new profile

A corrupt profile can cause various problems with Firefox. You can try to make a new profile test whether that solves the problem, and if so, copy your data (bookmarks, saved passwords, etc.) to the new profile.

Important: Before you can start the Profile Manager, Firefox must be completely closed.

  1. Exit Firefox. To close Firefox, at the top of the Firefox window, select the File menu, and then select Quit.
  2. In Terminal run: firefox -ProfileManager -no-remote
    • If the Profile Manager window does not open, Firefox may have been running in the background, even though it was not visible. Close all instances of Firefox or restart the computer and then try again.
  3. To start the Create Profile Wizard, click Create Profile... in the Profile Manager.
  4. Click Next and enter the name of the profile. Use a profile name that is descriptive, such as your personal name. This name is not exposed on the Internet.
  5. To create the new profile, click Finish.
  6. Click on the newly created profile in the Profile Manager and click Start Firefox.

Test to see if your problem occurs with the new profile. If it doesn't, you can copy your data to the new profile - see Recovering important data from an old profile for instructions. For troubleshooting purposes, only copy the files that correspond to your bookmarks and saved passwords.

Clear cookies and cache

Many problems with loading web pages can be resolved by clearing Firefox's cookies and cache. If the new profile helps you, you can try to clear your existing old profile:

  1. Click on the Tools menu and select Clear Recent History... to bring up the Clear Recent History window
  2. In the Time range to clear drop-down menu, select Everything
  3. Click the arrow next to Details to display the list of items to clear, then select the following items:
    • Cache
    • Cookies
  4. Click Clear Now.
  5. Exit your browser
  6. Clear Flash cookies
    • find ~/.macromedia/ -type f -name \*.sol -exec rm '{}' \;

For more information, see Clear Recent History. [1]

Troubleshoot Add-ons / plugins

Sometimes add-ons for Firefox (Extensions, Themes or Plugins) can cause problems and you can disable them one-by-one:

  1. Open the Add-ons Window by clicking the Tools menu and select Add-ons.
  2. There are three tabs - Extensions, Themes, Plugins so select the one you want to test
  3. Disable each extensions/theme/plugin in the list.
  4. Test for your problem.

Check WebRender

WebRender is a new Firefox hardware accelerated back end. It's enabled by default on Gnome/X.org and Gnome/Wayland for Intel/AMD graphics cards. You can try to switch it on/off to check if that solves your issues.

WebRedner Firefox setup
  1. Go to about:support page and check Compositing field. It's Basic for software rendering and WebRender otherwise.
  2. Go to about:config page and look for gfx.webrender.all and gfx.webrender.enabled preferences. Turn them on/off according your preference.
  3. Restart browser, check at about:support WebRender status.

Check Firefox X11 Gtk+ backend (Gnome only)

Firefox can run with two independent Gtk+ backends / graphics servers where Wayland is a default one on Gnome Shell. If you run Gnome, please try to reproduced your issue on Firefox X11 backend.

  1. install firefox-x11 package
  2. close all active firefox instances
  3. run Firefox on X11 from menu or firefox-x11 in Terminal

Collect information for a bug report

Please provide those information to your bug report. [2]

If you Firefox crashes, please go to a crash stat page by visiting this link:

about:crashes

and you should see crash reports ids. Please Submit them at Mozilla by Submit All button and paste Report IDs to the report at bugzilla.

If applicable attach a screen cast [3] or a picture of the issue.

Attach exact Firefox version, type this command in terminal:

rpm -q firefox

Attach firefox troubleshooting data, in the URL bar, visit this link:

about:support

and use Copy text to clipboard to copy/paste it.

Testing Mozilla binaries

Some issues can be Fedora specific, caused by build environment, patches and so on. It's important to try vanilla binaries from Mozilla project to negate that case.

  1. Download Firefox [4]/Thunderbird[5] from Mozilla site directly .
  2. Unpack the tarball.
  3. In Terminal run locally as ./firefox -ProfileManager -no-remote (./thunderbird -ProfileManager -no-remote), create a new profile and test your issue. It runs with X11 backend by default.
  4. To use Wayland native backend run as MOZ_ENABLE_WAYLAND=1 ./firefox -ProfileManager -no-remote. Mozilla thunderbird does not support Wayland yet.

Some issues can be already fixed in Beta or Nightly which are pre-release and development versions. Please also check those two if you can reproduce it issue.

  1. Download Firefox Beta/Nightly [6] or Thunderbird Beta [7] from Mozilla site.

Testing Firefox titlebar

In case of unexpected Firefox titlebar behavior (missing titlebar, doubled titlebar, missing 'Title Bar' checkbox at Customize menu) try to run Firefox in terminal as:

MOZ_GTK_TITLEBAR_DECORATION=client firefox

and

MOZ_GTK_TITLEBAR_DECORATION=system firefox

and check of that helps.

Use Mozregression tool

Mozregression tool [8] can be used to find offending changeset. Install mozregression on terminal by

pip install mozregression

and run

mozregression --good version_good --bad version_bad

where version_good and version_bad are affected Firefox version. For instance when something bad happens between Firefox 78 and 79, you can find that by:

mozregression --good 78.0 --bad 79.0

The mozregression wool will launch various Firefox versions and as you if the launched version is good or bad. When the bi-section is finished a regression range is printed.

If you want to test Firefox in Wayland, run mozregression with MOZ_ENABLE_WAYLAND env variable, i.e.:

MOZ_ENABLE_WAYLAND=1 mozregression --good 78.0 --bad 79.0

If you have a specific profile where the bug happens, you can tell mozregression to use it for testing. For instance I have a Firefox profile named default and I want mozregression to use it. First I need to locate the profile files, in my case it's stored at /home/user/.mozilla/firefox/80thyv9a.default (/home/user/.mozilla/firefox is a Firefox profile directory). To test it under Wayland I run:

MOZ_ENABLE_WAYLAND=1 mozregression --profile /home/user/.mozilla/firefox/80thyv9a.default --profile-persistence clone-first --good 78.0 --bad 79.0

(note the --profile-persistence clone-first parameter to clone the profile before use which protects your data)

Get system log after system freeze / restart

If you suffer from whole system lockups / sudden restart you can examine system log from previous session and look for relevant entries like gfx driver errors, kernel errors or Gnome/Mutter failures. Right after restart run on terminal:

journalctl -b -1

It shows a log from previous session, the '-b -1' param tells journalctl to show log from previous boot.

Additional Reading

  • Additional accessibility prefs can be found here: [9]
  • Additional hidden prefs can be found here: [10]
  • Mozilla's own basic trouble-shooting page: [11]
  • Mozilla support page: [12]