Open
Bug 1456581
Opened 6 years ago
Updated 2 years ago
Gmail Sent folder locks up browser for minutes
Categories
(Core :: Layout: Text and Fonts, enhancement, P3)
Tracking
()
NEW
Performance Impact | low |
People
(Reporter: gcp, Unassigned)
Details
Attachments
(2 files)
Clicking on some emails in my Gmail sent folder locks up the tab for over a minute. It looks like Thunderbird tried to save a GPG encoded draft (of a large mail with pictures) and it stuck there. Gmail displays the contents when opening the mail thread. Our rendering of such is...not fast. Profile is attached. Seems we lock up for 92 seconds in layout.
Reporter | ||
Comment 1•6 years ago
|
||
I tested Chrome, and while it's not exactly fast here, it displays the Gmail page (instead of a spinner) in about 5 seconds, and finishes in about 15 seconds.
Updated•6 years ago
|
Whiteboard: [qf]
Comment 2•6 years ago
|
||
The profile isn't very actionable... It shows PresShell::DoReflow takes 20s, but nothing about what's happening inside. It would be great if you have a profile which can show more details inside that.
Reporter | ||
Comment 3•6 years ago
|
||
Any advice how to do that?
Comment 4•6 years ago
|
||
I actually have no idea why your profile doesn't have anything inside. It normally should have deeper stack information unless everything happens in PresShell::DoReflow directly, which is unlikely. Could you probably try reproducing this on a nightly build and capture a profile?
Reporter | ||
Comment 5•6 years ago
|
||
The profile was captured on a Nightly build :-/
Comment 6•6 years ago
|
||
Hi gcp, thanks for reporting. Can you capture another profile, and upload it to perf.html please? It's kinda hard to work with profiles as bug attachments.
Flags: needinfo?(gpascutto)
Reporter | ||
Comment 7•6 years ago
|
||
Profile uploaded here: https://perfht.ml/2rsjZMg
Reporter | ||
Updated•6 years ago
|
Flags: needinfo?(gpascutto)
Updated•6 years ago
|
Flags: needinfo?(mconley)
Comment 8•6 years ago
|
||
The new profile shows 47s under reflow marker, in which nsLineBreaker::FlushCurrentWord takes 25.3s, nsLineBreaker::AppendText takes 7.6s. Sounds like we have some trouble with line breaker here. nsTextFrameUtils::TransformText also takes 2.2s. We are probably calling nsTextFrame::EnsureTextRun too much? The total time under nsTextFrame::EnsureTextRun is 46.7s, which is almost all of the sampled 47s, so it is probably an issue in text layout.
Component: Layout → Layout: Text
Comment 9•6 years ago
|
||
It would probably be useful if you can share the content of the email... the encrypted form is probably enough if that's what causing this issue. Probably upload the email as attachment here?
Updated•6 years ago
|
Priority: -- → P3
Reporter | ||
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
Trying to copy-paste it locked up Chrome, so clearly this isn't exactly an optimized path in any browser.
Updated•6 years ago
|
Whiteboard: [qf] → [qf:f64][qf:p3]
Updated•6 years ago
|
Whiteboard: [qf:f64][qf:p3] → [qf:p3:f64]
Updated•6 years ago
|
Whiteboard: [qf:p3:f64] → [qf:p3]
Updated•2 years ago
|
Performance Impact: --- → P3
Whiteboard: [qf:p3]
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•