Slow startup (~30 seconds)
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: yoasif, Assigned: stransky)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
From: https://www.reddit.com/r/firefox/comments/tvqzqn/firefox_99_takes_30s_to_startup/
Firefox is too slow to startup on my Arch Linux box. It takes almost 30s to start on an SSD + Hexacore CPU.
### Basic information
Steps to Reproduce:
Start Firefox.
Expected Results:
Actual Results:
30 second startup.
Performance recording (profile)
Profile URL: https://share.firefox.dev/3DFu7VR
System configuration:
OS version: Arch Linux
GPU model: Intel(R) HD Graphics P630 (KBL GT2)
Number of cores: 8 (2 thread per core)
Amount of memory (RAM): 32G
More information
It was fine, until some days ago (I suspect it is an upgrade to 98/99 that made it this slow).
Here what I've tried: - I uninstalled firefox, and reinstalled it. - Removed the .mozilla folder and retried. - Tried safe-mode, - Refreshed firefox and cleared cache ...
Thanks so much for your help.
Comment 1•3 years ago
|
||
OS version: Arch Linux
GPU model: Intel(R) HD Graphics P630 (KBL GT2)
Number of cores: 8 (2 thread per core)
Amount of memory (RAM): 32G
Here is the about:support
information
https://0x0.st/obHY.txt
Here is the profiling report
https://0x0.st/obHW.json
Reporter | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
I think this is caused by the DBUS connection in the LookAndFeel constructor.
Comment 4•3 years ago
|
||
Yeah, your DBUS setup seems broken. However this seems like a slightly different issue from bug 1755419, and new_for_bus_sync
doesn't take a timeout value, so we can't just try to bail earlier...
journalctl -f
should give you hints on what is going wrong, or alternatively launching firefox with MOZ_LOG=LookAndFeel:5
in the environment as well.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 5•3 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)
Yeah, your DBUS setup seems broken. However this seems like a slightly different issue from bug 1755419, and
new_for_bus_sync
doesn't take a timeout value, so we can't just try to bail earlier...
journalctl -f
should give you hints on what is going wrong, or alternatively launching firefox withMOZ_LOG=LookAndFeel:5
in the environment as well.
The problem ended up to be about DBUS. After removing xdg-desktop-portal-wlr
FireFox is fast to start again.
thank you everyone!
Updated•3 years ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Don't autostart org.freedesktop.portal.Desktop if it's not running. That blocks Firefox start for 30~ seconds,
makes Firefox non-responsible and locks Firefox profile (another launch throws "Firefox is running but not responding" dialog).
Updated•1 year ago
|
Assignee | ||
Comment 7•1 year ago
|
||
I do see the bug after every login to Gnome session and it's very annoying.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 8•1 year ago
|
||
g_bus_watch_name() may be used to monitor the org.freedesktop.portal.Desktop interface and re-init preferences if it's available.
Assignee | ||
Comment 9•1 year ago
|
||
g_bus_watch_name() works so I'll do follow up to fetch color scheme when org.freedesktop.portal.Desktop is up.
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 10•1 year ago
|
||
Comment 12•1 year ago
•
|
||
Backed out changeset d160276b237a (Bug 1762816) for causing failures in nsLookAndFeel.cpp CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=434966917&repo=autoland&lineNumber=4922
https://treeherder.mozilla.org/logviewer?job_id=434967117&repo=autoland&lineNumber=4411
https://treeherder.mozilla.org/logviewer?job_id=434967646&repo=autoland&lineNumber=3248
https://treeherder.mozilla.org/logviewer?job_id=434975216&repo=autoland&lineNumber=3708
https://treeherder.mozilla.org/logviewer?job_id=434967900&repo=autoland&lineNumber=4135
https://treeherder.mozilla.org/logviewer?job_id=434967503&repo=autoland&lineNumber=4742
https://treeherder.mozilla.org/logviewer?job_id=434966916&repo=autoland&lineNumber=4745
https://treeherder.mozilla.org/logviewer?job_id=434967114&repo=autoland&lineNumber=4559
Backout: https://hg.mozilla.org/integration/autoland/rev/a435e95ef16dd0da9981a10109d1b5f7d55d8f7d
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
bugherder |
Updated•1 year ago
|
Description
•