New issue
Advanced search Search tips

Issue 600985 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 321406
Owner:
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Duplicate entries of webfont in sk_glyph_cache

Reported by as...@opera.com, Apr 6 2016

Issue description

Chrome Version: Cr-Commit-Position: refs/heads/master@{#385388} (51.0.2702.0)
OS: Linux

URL (if applicable) where the memory bloat occurred: https://www.w3.org/2010/09/web-on-tv/slides/1009-tv-web-chaals/demos/webfonts.htm 

Can you reproduce this memory bloat?
Yes

What steps will reproduce this memory bloat (or if it's not reproducible,
what were you doing until then)?
(1) Run content_shell with the following command: out/Default/content_shell --process-per-tab --enable-heap-profiling --trace-startup="disabled-by-default-memory-infra" --trace-startup-duration=60 --no-sandbox
(2)Input URL https://www.w3.org/2010/09/web-on-tv/slides/1009-tv-web-chaals/demos/webfonts.htm and load
(3) Input URL about:blank and load
(4) Repeat steps 2 and 3 several times during the trace duration
(5) Load the generated chrometrace.log in chrome://tracing (I've been using chrome beta)
(6) Observe skia memory usage on the renderer process: the sk_glyph_cache keep growing with sets of 2 glyphs

Expected result:
The web font stored in the glyph cache should either be removed between loads, or should be re-used instead of being re-added.

Additional information:
* This issue also reproduces using --single-process
* I have trouble seeing if this "leak" happens with every load of the web fonts page or not. Since I'm testing it manually I don't know how many loads I fit into the trace. But on a 120 sec trace I get 4 copies of the web fonts, which seems a bit low compared to the amount of loads I should have fit in during that time. Possibly, the glyphs are not "leaked" every time? Hard to say!
* I have chrometrace logs that I can share, but they are really big (even compressed) so I will do that on request. 
 

Comment 1 by brat...@opera.com, Apr 6 2016

Cc: f...@opera.com brat...@opera.com

Comment 2 by brat...@opera.com, Apr 6 2016

Cc: drott@chromium.org

Comment 3 by f...@opera.com, Apr 6 2016

Components: Internals>Skia Blink>Fonts
Labels: OS-Linux Type-Bug

Comment 4 by drott@chromium.org, Apr 6 2016

Cc: e...@chromium.org
eae@, could this be related to the Android mem issues?

Comment 5 by drott@chromium.org, Apr 6 2016

> * I have chrometrace logs that I can share, but they are really big (even compressed) so I will do that on request. 

asaka@, I'd like to take a look at those. Any chance you could upload them to Google Drive or on some webserver? Thanks.
Cc: bunge...@chromium.org

Comment 7 by e...@chromium.org, Apr 11 2016

Labels: -Pri-3 Pri-2

Comment 8 by drott@chromium.org, Apr 12 2016

asaka@, thanks, files received, will start to investigate.

Comment 9 by e...@chromium.org, Apr 18 2016

Owner: drott@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 10 by f...@opera.com, Apr 28 2016

I noticed  issue 321406 , that largely sounds like a dupe of this issue. It does have some additional analysis in it though.

Comment 11 by e...@chromium.org, Jun 19 2017

Mergedinto: 321406
Status: Duplicate (was: Assigned)

Sign in to add a comment