Watching Facebook photos makes Firefox unusable due to painting

NEW
Unassigned

Status

()

Core
Graphics
4 years ago
a month ago

People

(Reporter: marco, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

([Snappy][platform-rel-Facebook])

Attachments

(2 attachments)

(Reporter)

Description

4 years ago
Created attachment 681202 [details]
about:memory report

Browsing on Facebook photo pages makes Firefox really slow. Memory usage rises and the browser becomes unresponsive.
Looks like this happens when you've scrolled a bit (and so there are a lot of photos on the page).
(Reporter)

Comment 1

4 years ago
Switching back to the Facebook photos tab takes nearly 4 seconds (FX_TAB_SWITCH_TOTAL_MS average = 3473.6).
(Reporter)

Comment 2

4 years ago
Created attachment 681215 [details]
Profiler report
(Reporter)

Updated

4 years ago
Whiteboard: [MemShrink][Snappy]

Comment 3

4 years ago
(In reply to Marco Castelluccio [:marco] from comment #1)
> Switching back to the Facebook photos tab takes nearly 4 seconds
> (FX_TAB_SWITCH_TOTAL_MS average = 3473.6).

what version of Firefox? Can you post the profiler link?

Comment 4

4 years ago
(In reply to Marco Castelluccio [:marco] from comment #0)
> Created attachment 681202 [details]
> about:memory report
> 
> Browsing on Facebook photo pages makes Firefox really slow. Memory usage
> rises and the browser becomes unresponsive.
> Looks like this happens when you've scrolled a bit (and so there are a lot
> of photos on the page).

what are facebook photo pages, can you provide a sample url?
(Reporter)

Comment 5

4 years ago
(In reply to Taras Glek (:taras) from comment #3)
> what version of Firefox? Can you post the profiler link?

I've uploaded the profiler report.

(In reply to Taras Glek (:taras) from comment #4)
> what are facebook photo pages, can you provide a sample url?

https://www.facebook.com/username/photos

Comment 6

4 years ago
(In reply to Marco Castelluccio [:marco] from comment #5)
> (In reply to Taras Glek (:taras) from comment #3)
> > what version of Firefox? Can you post the profiler link?
> 
> I've uploaded the profiler report.
> 
> (In reply to Taras Glek (:taras) from comment #4)
> > what are facebook photo pages, can you provide a sample url?
> 
> https://www.facebook.com/username/photos

there is an upload button in the profiler. use that instead and provide the link it gives you
(Reporter)

Comment 7

4 years ago
(In reply to Taras Glek (:taras) from comment #6)
> there is an upload button in the profiler. use that instead and provide the
> link it gives you

I couldn't, there was an error (maybe the report is too big?).

Comment 8

4 years ago
http://people.mozilla.com/~bgirard/cleopatra/#report=930ec3ba1e5031759786b8eb54ca0550636284b4 captured a profile of this
This sounds more Snappy-ish than MemShrink.  about:memory doesn't look all that unusual, and the profile indicates that painting is causing the jank.
Whiteboard: [MemShrink][Snappy] → [Snappy]
Component: Untriaged → Graphics
Product: Firefox → Core
Summary: Watching Facebook photos makes Firefox unusable → Watching Facebook photos makes Firefox unusable due to painting
That profile shows a lot of D2D PushGroup being slow.

Comment 11

4 years ago
(In reply to Robert O'Callahan (:roc) (Mozilla Corporation) from comment #10)
> That profile shows a lot of D2D PushGroup being slow.

We worked on this during the workweek, should be fixed. Marco, are ff20 nightlies still slow for you?
(Reporter)

Comment 12

4 years ago
Did you fix the general slowness while scrolling and watching photos or just the tab switching stuff?
The latter is fixed.

There's a new profile, looks like it's something related to Facebook js code:
https://people.mozilla.com/~bgirard/cleopatra/#report=b956d1e6fd52e7891c71d24e378b00129c7e815d&jankOnly=true&javascriptOnly=true

If I keep scrolling and watching photos (clicking on them to see the carousel), the browser hangs for a few seconds.
Whiteboard: [Snappy] → [Snappy][platform-rel-Facebook]

Updated

9 months ago
platform-rel: --- → ?
platform-rel: ? → ---
You need to log in before you can comment on or make changes to this bug.