Closed
Bug 1185667
Opened 9 years ago
Closed 2 years ago
[e10s] Spinner is shown when switching between tabs
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
e10s | - | --- |
People
(Reporter: alice0775, Unassigned)
References
Details
(Keywords: perf)
Steps To Reproduce:
1. Open link [1] in tab A
2. Open link [2] in tab B
3. Switch between tabs
[1] http://people.mozilla.org/~bgirard/cleopatra/#report=3116e22d6921407c7ffbecabfcc068671e970a47
[2] http://people.mozilla.org/~bgirard/cleopatra/#report=bb13dad4319806c7dcf9a677a2553ce310ef8095
Actual Results:
Spinner in contentarea is shown even even if loading have been completed.
Expected Results:
No spinner.
Comment 1•9 years ago
|
||
I don't see what the content process is doing in either profile - it's possible that the profiler started before the content process started.
In either case, it's clear that the parent is doing a ton of WebGL work in both of these profiles.
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #1)
> I don't see what the content process is doing in either profile - it's
> possible that the profiler started before the content process started.
>
> In either case, it's clear that the parent is doing a ton of WebGL work in
> both of these profiles.
You are misunderstood this.
The data of the links not concern this bug. Just a link of webpage.
And you should run Nightly without any addons(i,e newly created profile) to see the spinner.
Comment 3•9 years ago
|
||
Can you make sure the profiler is running when you switch tabs, and then dump the profile after you've seen the spinner? Also, make sure that you Start the Profiler _after_ the content process has started (so, if your content process crashes, you'll need to restart the Profiler).
The reason I ask this, is because there are no samples from the content process in the profiles you've supplied, which makes it difficult for me to know why it's being slow painting the content frame.
Flags: needinfo?(alice0775)
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #3)
> Can you make sure the profiler is running when you switch tabs, and then
> dump the profile after you've seen the spinner? Also, make sure that you
> Start the Profiler _after_ the content process has started (so, if your
> content process crashes, you'll need to restart the Profiler).
>
Not installed any addon, Gecho Profiler as well, just tested with newly created profice.
> The reason I ask this, is because there are no samples from the content
> process in the profiles you've supplied, which makes it difficult for me to
> know why it's being slow painting the content frame.
No, the data(profile) in these links did not related to this bug. just samples of web site.
Flags: needinfo?(alice0775)
Reporter | ||
Comment 5•9 years ago
|
||
You can see the spinner when switching tabs. This bug is affected to any webpages.
Comment 6•9 years ago
|
||
(In reply to Alice0775 White from comment #5)
> You can see the spinner when switching tabs. This bug is affected to any
> webpages.
I see. In order to diagnose what's occurring, I need profiles from the Gecko Profiler add-on, like what you supplied in comment 0, except that I need it to be running when you see the spinner.
So can you please install that add-on and dump those profiles for me? I'd like to see where the bottleneck is.
Flags: needinfo?(alice0775)
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #6)
> (In reply to Alice0775 White from comment #5)
> > You can see the spinner when switching tabs. This bug is affected to any
> > webpages.
>
> I see. In order to diagnose what's occurring, I need profiles from the Gecko
> Profiler add-on, like what you supplied in comment 0, except that I need it
> to be running when you see the spinner.
>
> So can you please install that add-on and dump those profiles for me? I'd
> like to see where the bottleneck is.
profile when Switch between tabs:
http://people.mozilla.org/~bgirard/cleopatra/#report=566cf388125405705b9345aba5cdade3fe7b64d6
Flags: needinfo?(alice0775)
Comment 8•9 years ago
|
||
Ok, this is better. I can definitely see some slow painting going on there. Unfortunately, I don't see symbols for anything in xul.pdb.
Can I assume you're using Nightly (42)?
Flags: needinfo?(alice0775)
Reporter | ||
Comment 9•9 years ago
|
||
Yes, i am using Nightly42.0a1.
https://hg.mozilla.org/mozilla-central/rev/3a4bfa5d2d02
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 ID:20150721030212
Flags: needinfo?(alice0775)
Comment 10•9 years ago
|
||
Hey BenWa, any idea why Alice isn't getting symbols here? The symbol server appears to be up...
Flags: needinfo?(bgirard)
Reporter | ||
Comment 11•9 years ago
|
||
Tried with yesterday Nightly42.0a1, and then Symbols are retrieved.
https://hg.mozilla.org/mozilla-central/rev/5df788c56ae7
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 ID:20150720030213
http://people.mozilla.org/~bgirard/cleopatra/#report=83998e788bae9beaadea38d2b286dd9cb5e658e8
So, the symbol server seems do not ready for today's Nightly42.0a1.
Comment 12•9 years ago
|
||
Ok, this is much clearer - thank you! I guess the symbols for the most recent Nightly haven't been posted to the symbol server yet.
There is some horifically slow painting going on here... I'll keep the needinfo on BenWa.
Blocks: e10s-spinner, e10s-perf
Comment 13•9 years ago
|
||
Alice0775, in single-process Firefox, does the browser jank when switching between these two tabs?
Flags: needinfo?(alice0775)
Reporter | ||
Comment 14•9 years ago
|
||
Tested with disabled e10s:
No spinner displays, but switching between the tabs is slow and laggy.
http://people.mozilla.org/~bgirard/cleopatra/#report=f9e6def4df446fee9d89c3226802eccb3bde8340
Flags: needinfo?(alice0775)
Comment 15•9 years ago
|
||
Ok, so from these profiles, this seems like a general slow painting bug, rather than an e10s bug.
Alice - are you using non-default font settings? I ask, because it looks like a lot of the slow painting samples seem to do with drawing font glyphs.
How long have you been seeing this?
And, to confirm, it doesn't matter which two sites you visit, they'll all cause the spinner like this?
Flags: needinfo?(alice0775)
Reporter | ||
Comment 16•9 years ago
|
||
(In reply to Mike Conley (:mconley) - Needinfo me! from comment #15)
> Ok, so from these profiles, this seems like a general slow painting bug,
> rather than an e10s bug.
>
> Alice - are you using non-default font settings? I ask, because it looks
> like a lot of the slow painting samples seem to do with drawing font glyphs.
>
I use Meiryo font insted of MS Gothic.(but Meiryo is Windows8.1 default)
> How long have you been seeing this?
Since default e10s enabled(approx 2-3 months).
>
> And, to confirm, it doesn't matter which two sites you visit, they'll all
> cause the spinner like this?
Steps to reproduce:
1. Open http://www.w3.org/TR/DOM-Level-3-Events/ in Tab A
wait to completion of loading
2. Open http://edition.cnn.com/videos/ in Tab B
wait to completion of loading
3. Wait for 10-20minitutes (Tab B is selected)
4. Attept to switch to Tab A
--- Spinner is shown
Steps to reproduce:
1. Restore Previous Session(10-15tabs)
2. Switch tabs between already restored tabs
--- Spinner is shown
Flags: needinfo?(alice0775)
Reporter | ||
Comment 17•9 years ago
|
||
Reproducible: not 100% but often
Updated•9 years ago
|
Flags: needinfo?(bgirard)
Comment 18•9 years ago
|
||
(In reply to Alice0775 White from comment #11)
> Tried with yesterday Nightly42.0a1, and then Symbols are retrieved.
> https://hg.mozilla.org/mozilla-central/rev/5df788c56ae7
> Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
> ID:20150720030213
>
> http://people.mozilla.org/~bgirard/cleopatra/
> #report=83998e788bae9beaadea38d2b286dd9cb5e658e8
>
> So, the symbol server seems do not ready for today's Nightly42.0a1.
This profiles show that we're spending ~3 seconds for a paint, the bottlenecks seems to be drawing text. When APZ gets enabled this might get worse because we will be painting some of the text that is slightly outside the screen.
The bottleneck is in D2D1. I'd suggest turning that off to see if it reproduces. If it does then we can morph this into 'D2D1 slow text drawing'. IIRC you want to change 'gfx.content.azure.backends;cairo' or something similar. Please collect another profile to double check that D2D1 is not being hit anymore.
Is it only slow on tab switch or is scrolling -very- janky on that page?
Updated•9 years ago
|
Flags: needinfo?(alice0775)
Reporter | ||
Comment 19•9 years ago
|
||
It is slightly improved by disabling the Direct2d.
gfx.canvas.azure.backends;direct2d,skia,cairo
gfx.content.azure.backends;direct2d,cairo
spinner is shown
http://people.mozilla.org/~bgirard/cleopatra/#report=66d48d5eb6fd311abb491da7971d658efdeeb200
gfx.canvas.azure.backends;cairo
gfx.content.azure.backends;cairo
spinner is shown but it is short period than default.
http://people.mozilla.org/~bgirard/cleopatra/#report=85e638abb201c16d6a717f08dcfd2d422037b0af
gfx.direct2d.use1_1;false
spinner is shown
http://people.mozilla.org/~bgirard/cleopatra/#report=0b649e8055909a98999777e36d7fa188421b8767
gfx.direct2d.disabled;true
spinner is shown but it is short period than default.
http://people.mozilla.org/~bgirard/cleopatra/#report=6163cf7372199cd9bedf1131204343250f45560f
> Is it only slow on tab switch or is scrolling -very- janky on that page?
The cleopatra sampler pane scrolling is janky, but it is allowable for me.
(Anyway, the spinner is ugly UX, because these pages are have already been loaded and rendered before.)
Flags: needinfo?(alice0775)
Comment 20•9 years ago
|
||
This doesn't sound e10s-specific, although the behavior is different. With e10s we show the spinner, while with non-e10s we just jank real hard
Reporter | ||
Comment 21•9 years ago
|
||
(In reply to Brad Lassey [:blassey] (use needinfo?) from comment #20)
> This doesn't sound e10s-specific, although the behavior is different. With
> e10s we show the spinner, while with non-e10s we just jank real hard
> we show the spinner
It feels stupid way. The Jank is BETTER line non-e10s
I must say "e10s must be abandon".
Comment 22•9 years ago
|
||
The problem isn't D2D specific. Alice can you get a profile of us scrolling that page quickly?
From the profile it doesn't seem to be specific to tab switch (just slow text draw performance) so I'd like to confirm if it is or isn't.
ni?jdaggett, this is a pretty severe amount of time spent in text drawing for a relatively simple looking page. Any idea what it would be so bad?
Flags: needinfo?(jdaggett)
Flags: needinfo?(alice0775)
Reporter | ||
Comment 23•9 years ago
|
||
Gecko Profiler cannot retrieve symbols now?
Anyway, when enabled Gecko Profiler, scrolling the samples pane is extremity slooooow
Flags: needinfo?(alice0775)
Comment 24•9 years ago
|
||
What about scrolling 'http://www.w3.org/TR/DOM-Level-3-Events/' with and without the gecko profiler?
Reporter | ||
Comment 25•9 years ago
|
||
http://www.w3.org/TR/DOM-Level-3-Events/
No problem, it is smoothly scrolled with/without gecko profiler.
Reporter | ||
Comment 26•9 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #22)
> The problem isn't D2D specific. Alice can you get a profile of us scrolling
> that page quickly?
>
Profile when I sroll samples pane of link [1] of comment#1
http://people.mozilla.org/~bgirard/cleopatra/#report=4db6621af0fc392e8be8e6f81b40685d4b52135e
Comment 27•9 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #22)
> ni?jdaggett, this is a pretty severe amount of time spent in text drawing
> for a relatively simple looking page. Any idea what it would be so bad?
I see all the text draw calls in the profile but could you point me at the precise testcase you're looking at? Does it require more than one tab to occur?
Flags: needinfo?(jdaggett)
Reporter | ||
Comment 28•9 years ago
|
||
STR
1. Open followings in new tabs
http://deadspace.wikia.com/wiki/The_Hunter.
http://deadspace.wikia.com/wiki/Wheezer
http://deadspace.wikia.com/wiki/Split_Face
http://deadspace.wikia.com/wiki/Exploder
2.Switch tabs
Actual Results:
Spinner in contentarea is shown even even if loading have been completed.
The problem does not happens if disabled e10s.
Expected Results:
No spinner.
status-firefox42:
affected → ---
status-firefox46:
--- → affected
Summary: [e10s] Spinner is shown when sitchng between tabs → [e10s] Spinner is shown when switchng between tabs
Whiteboard: [Dupe me]
Version: 42 Branch → Trunk
Reporter | ||
Comment 29•8 years ago
|
||
STR:
0. Open http://forums.mozillazine.org/viewtopic.php?f=23&t=2516363
1. Open http://www.nbcnews.com
2. Open http://www.cnn.com
3. Switch tabs
Comment 30•8 years ago
|
||
FWIW, I suspect this will be fixed once bug 1279086 (re)lands.
Depends on: 1279086
Bug 1279086 only helps if JS is slowing down tab switching. This seems to be caused by slow text drawing.
Summary: [e10s] Spinner is shown when switchng between tabs → [e10s] Spinner is shown when switching between tabs
Comment 33•7 years ago
|
||
I believe this may be closed now. I have been using Firefox 57 beta on a low-end laptop for the last weeks and have only seen the spinner very few times when pages were still being loaded.
Comment 34•6 years ago
|
||
Ok I just had it again, but for only 50-500 ms I'd say: Firefox 62.0.3, installed on my slow C: HDD drive, but the FF profile I'm using is on a fast PCI-e SSD (K:). I was doing something (strong C: i/o operations from another program) while FF was in background, "inactive". I Alt-tab back into FF (instantly, fine), then click another tab, then spinner came. My guess: FF is waiting for some I/O operation on the Firefox installation drive (slow C: HDD for me), because my active FF profile is on the superfast PCIe SSD K: .
Comment 35•6 years ago
|
||
Is it planned to soon narrow this down to the cause? (my theory in Comment 34 , which would mean that Firefox.exe waits until some Firefox related HDD-write-operation is completed, and only then loads the content of a new tab?)
We still have 29% of all users experiencing it since almost 5 months now. (since july, according to the statistics https://mikeconley.github.io/bug1310250/ )
Flags: needinfo?(mconley)
Comment 36•6 years ago
|
||
What does the "Lo-end Machine Adjust" mean, is there a bugzilla bug about this?
Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)
Updated•2 years ago
|
Severity: normal → S3
Comment 38•2 years ago
|
||
Are you still experiencing this?
Flags: needinfo?(mconley) → needinfo?(alice0775)
Reporter | ||
Comment 39•2 years ago
|
||
No longer reproduced on Firefox110-112.0a1 Windows10. Thanks.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(alice0775)
Resolution: --- → WORKSFORME
Reporter | ||
Updated•2 years ago
|
status-firefox46:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•