为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox boots up after ~25 seconds of inactivity

  • 9 个回答
  • 0 人有此问题
  • 3 次查看
  • 最后回复者为 Atomsky Jahid

more options

Whenever I try to open Firefox, it takes about 25 seconds to boot. This behavior can be observed both with all the extensions running and in safe mode. The link to the profiles are shared below.

With extensions: https://share.firefox.dev/3riMPQZ In safe mode: https://share.firefox.dev/3OadE31

I have been noticing this for a few months now. Firefox works just fine after wasting ~25 seconds initially. I have also reinstalled Firefox multiple times. Right after the installation, the boot-up can be very fast (less than 1 second). However, after using Firefox for a few hours, the problem comes back.

I am not well-versed in reading Firefox profiler reports. So, please help me figure out what's actually happening in those ~25 seconds.

Whenever I try to open Firefox, it takes about 25 seconds to boot. This behavior can be observed both with all the extensions running and in safe mode. The link to the profiles are shared below. With extensions: https://share.firefox.dev/3riMPQZ In safe mode: https://share.firefox.dev/3OadE31 I have been noticing this for a few months now. Firefox works just fine after wasting ~25 seconds initially. I have also reinstalled Firefox multiple times. Right after the installation, the boot-up can be very fast (less than 1 second). However, after using Firefox for a few hours, the problem comes back. I am not well-versed in reading Firefox profiler reports. So, please help me figure out what's actually happening in those ~25 seconds.

被采纳的解决方案

The performance profile shows a DBus proxy timeout (25 seconds) while getting the system theme. Go to about:config and try changing widget.use-xdg-desktop-portal.settings = 0.

Is this a flatpak package installation?

定位到答案原位置 👍 1

所有回复 (9)

more options

It could read the cache on a startup. Go to Settings -> Privacy and security and find Your stored cookies, site data, and cache are currently using ??????? of disk space. How much is it? You can clear it from there and test the startup time.

more options

Also try these options. see screenshot Try downloading Firefox from Mozilla and run it from the folder. Do not sign into your Firefox account and see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-release

What OS? What Desktop? X11 or Wayland?


Operating System: openSUSE Tumbleweed 20230710 KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.3.9-1-default (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5825U with Radeon Graphics Memory: 62.1 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: HP Product Name: HP ProBook 455 15.6 inch G9 Notebook PC

由jonzn4SUSE于修改

more options

TyDraniu said

It could read the cache on a startup. Go to Settings -> Privacy and security and find Your stored cookies, site data, and cache are currently using ??????? of disk space. How much is it? You can clear it from there and test the startup time.

Did you mean that it "could not" read the cache? Well, I set up Firefox to delete cache when closed. So, it should not try to find cache when I open it. I also set up automatic deletion of cookies except for the sites I visit regularly.

I checked the amount of cache right after boot-up and it seems like there's no cache stored initially.

由Atomsky Jahid于修改

more options

jonzn4SUSE said

Also try these options. see screenshot Try downloading Firefox from Mozilla and run it from the folder. Do not sign into your Firefox account and see if you have the same issue. https://www.mozilla.org/en-US/firefox/all/#product-desktop-release What OS? What Desktop? X11 or Wayland? Operating System: openSUSE Tumbleweed 20230710 KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.3.9-1-default (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5825U with Radeon Graphics Memory: 62.1 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: HP Product Name: HP ProBook 455 15.6 inch G9 Notebook PC

My operating system is Arch Linux. I run bspwm on X11 and Hyprland on Wayland.

As I already mentioned, a reinstall speeds up the boot-up process (less than a second). But whenever I keep running the browser normally, the problem comes back. I do need to sign into my Firefox accounts so that I can sync all of my devices. A freshly installed Firefox boots up very fast but that doesn't solve the problem I'm facing in my daily use.

由Atomsky Jahid于修改

more options

选择的解决方案

The performance profile shows a DBus proxy timeout (25 seconds) while getting the system theme. Go to about:config and try changing widget.use-xdg-desktop-portal.settings = 0.

Is this a flatpak package installation?

more options

Can you run a virtual machine or usb live stick to test? The below cmd will create a log file (firefox_debug.txt) to show what's happening when you run Firefox. strace -t -o firefox_debug.txt firefox &

more options

I blame ---> bspwm. What happens in KDE or Gnome?

more options

This user is having the same issue https://support.mozilla.org/en-US/questions/1417284 and he is running wm xmonad.

由jonzn4SUSE于修改

more options

Thank you all for replying. The problem was with the xdg desktop portal. I had Hyprland installed along with "xdg-desktop-portal-hyprland", which in turn had "xdg-desktop-portal" as a dependency. I don't use Hyprland that much. So, I just uninstalled those two programs. Firefox now boots up instantly.

由Atomsky Jahid于修改