Firefox UI hangs for a long time after moving the window [ GetScreenBounds() / gdk_window_get_root_origin()]
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox126 | --- | fixed |
People
(Reporter: mirh, Assigned: stransky)
References
(Regressed 1 open bug)
Details
(Keywords: perf-alert, perf:responsiveness)
Attachments
(3 files)
When I move the browser window on the desktop, the menus just get stuck.
And while webpages still proceed on their own, you cannot interact with them.
This can continue from.. I don't know, 15 to 60 seconds probably?
(I'm not sure what happened to the bugzilla form then - anyway I'm on Manjaro with the Nvidia 545.29.06 drivers. I'm also using the latest stable KDE under X11)
Updated•9 months ago
|
Of note that resizing the window (or enabling and disabling fullscreen) doesn't seem to have any particular performance hit, other than those normal few seconds to presumably recalculate the tab strip sizes and all.
Comment 2•9 months ago
|
||
This bug was moved into the Performance component.
:mirh, could you make sure the following information is on this bug?
- For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
- For memory usage issues, capture a memory dump from
about:memory
and attach it to this bug. - Troubleshooting information: Go to
about:support
, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.
If the requested information is already in the bug, please confirm it is recent.
Thank you.
https://share.firefox.dev/3T3osm4
Btw, after leaving the "just launched" browser open for a full night, and after having tried to simultaneously open like 20 Wikipedia pages.. I think I can rule out the amount of time elapsed or the amount alone of tabs loaded has anything to do with the problem.
Conversely after opening just a dozen Pixiv tabs, I could reproduce the slowdown immediately (even though it's like a few seconds now after a clean start, as opposed to the very bad numbers I mentioned in the OP). Bug 1855859 suggests this may not be so surprising (or who knows, perhaps it's a X11 bug?) but what I'm still missing is why this only happens after some "content" has been opened.
Comment 4•8 months ago
|
||
Thanks for the profile, mirh, and sorry for the delay in analysis.
This profile is very helpful - I can see the main thread being stuck for several seconds at a time. Firefox appears to be stuck waiting on a reply from the X server, and is polling until that reply comes in.
Moving to the Widget :: Gtk component so that our Gtk folk can take a look.
The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Impact on browser: Renders browser effectively unusable
Impact on site: Causes noticeable jank
Configuration: Specific but common
Websites affected: Rare
Assignee | ||
Comment 5•8 months ago
|
||
Looks like we're blocked at gdk_window_get_root_origin() call.
Assignee | ||
Comment 6•8 months ago
|
||
As a workaround you can use Wayland backend which implements gdk_window_get_root_origin() differently.
Assignee | ||
Comment 7•8 months ago
|
||
We may try to cache gdk_window_get_root_origin() values.
Assignee | ||
Comment 8•8 months ago
|
||
Updated•8 months ago
|
Assignee | ||
Comment 9•8 months ago
|
||
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Comment 10•8 months ago
|
||
Depends on D204191
Assignee | ||
Comment 11•8 months ago
|
||
Updated•8 months ago
|
Comment 12•8 months ago
|
||
Comment 13•8 months ago
|
||
Backed out for mochitest failures on test_popupReflowPos.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=451275482&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/cabbc2019918c81e8a1e046d9878f5b441a7040d
Updated•8 months ago
|
Assignee | ||
Updated•8 months ago
|
Assignee | ||
Updated•8 months ago
|
Comment 14•8 months ago
|
||
Comment 15•8 months ago
|
||
bugherder |
Comment 16•7 months ago
|
||
Comment 17•7 months ago
|
||
bugherder |
Comment 18•7 months ago
|
||
This has an impact on the console typing test (which display a popup). The first patch triggered alert #41988 (as of Sat, 23 Mar 2024 19:57:26 GMT) ==
Regressions:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
26% | damp console.typing | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 527.01 -> 666.08 |
21% | damp console.typing | linux1804-64-shippable-qr | e10s fission stylo webrender | 558.17 -> 676.15 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=41988
The second one mitigated this: == Change summary for alert #42022 (as of Wed, 27 Mar 2024 08:57:56 GMT) ==
Improvements:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
14% | damp console.typing | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 662.67 -> 567.51 |
13% | damp console.typing | linux1804-64-shippable-qr | e10s fission stylo webrender | 682.58 -> 592.58 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=42022
but overall, this regressed the test a bit
Comment 19•7 months ago
|
||
(In reply to Pulsebot from comment #14)
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/c34023ddb0a5
[Linux] Cache gdk_window_get_root_origin() window position at
nsWindow::GetScreenBounds() r=emilio
== Change summary for alert #42064 (as of Fri, 29 Mar 2024 13:01:51 GMT) ==
Improvements:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
7% | tresize | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 30.01 -> 27.80 |
7% | tresize | linux1804-64-shippable-qr | e10s fission stylo webrender | 30.14 -> 27.96 |
6% | tresize | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 29.87 -> 27.96 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=42064
Assignee | ||
Comment 20•7 months ago
|
||
mirh, can you try latest nightly and check if you see performance improvement?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries
Thanks.
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Updated•7 months ago
|
Assignee | ||
Updated•7 months ago
|
Updated•7 months ago
|
Reporter | ||
Comment 22•7 months ago
|
||
Btw do you think this should also be notified to the freedesktop guys?
Or is it not that concerning, and just a specific FF problem?
Assignee | ||
Comment 23•7 months ago
|
||
(In reply to mirh from comment #22)
Btw do you think this should also be notified to the freedesktop guys?
Or is it not that concerning, and just a specific FF problem?
It's known issue on X11.
Description
•