Last Comment Bug 811474 - Watching Facebook photos makes Firefox unusable due to painting
: Watching Facebook photos makes Firefox unusable due to painting
Status: NEW
[Snappy][platform-rel-Facebook]
:
Product: Core
Classification: Components
Component: Graphics (show other bugs)
: Trunk
: All All
: -- normal with 4 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-13 14:00 PST by Marco Castelluccio [:marco]
Modified: 2016-06-16 07:20 PDT (History)
14 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---
?


Attachments
about:memory report (196.50 KB, text/plain)
2012-11-13 14:00 PST, Marco Castelluccio [:marco]
no flags Details
Profiler report (284.84 KB, application/x-xz)
2012-11-13 14:23 PST, Marco Castelluccio [:marco]
no flags Details

Description Marco Castelluccio [:marco] 2012-11-13 14:00:42 PST
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).
Comment 1 Marco Castelluccio [:marco] 2012-11-13 14:02:19 PST
Switching back to the Facebook photos tab takes nearly 4 seconds (FX_TAB_SWITCH_TOTAL_MS average = 3473.6).
Comment 2 Marco Castelluccio [:marco] 2012-11-13 14:23:10 PST
Created attachment 681215 [details]
Profiler report
Comment 3 (dormant account) 2012-11-13 14:41:10 PST
(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 (dormant account) 2012-11-13 14:42:27 PST
(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?
Comment 5 Marco Castelluccio [:marco] 2012-11-13 14:46:27 PST
(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 (dormant account) 2012-11-13 14:50:09 PST
(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
Comment 7 Marco Castelluccio [:marco] 2012-11-13 15:01:55 PST
(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 (dormant account) 2012-11-13 18:45:09 PST
http://people.mozilla.com/~bgirard/cleopatra/#report=930ec3ba1e5031759786b8eb54ca0550636284b4 captured a profile of this
Comment 9 Nicholas Nethercote [:njn] 2012-11-27 14:27:20 PST
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.
Comment 10 Robert O'Callahan (:roc) (Exited; email my personal email if necessary) 2012-11-27 18:59:11 PST
That profile shows a lot of D2D PushGroup being slow.
Comment 11 (dormant account) 2012-11-27 20:35:50 PST
(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?
Comment 12 Marco Castelluccio [:marco] 2012-11-28 14:31:28 PST
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.

Note You need to log in before you can comment on or make changes to this bug.