New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 789180 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

FontPlatformData objects leak outside the FontCache

Project Member Reported by drott@chromium.org, Nov 28 2017

Issue description

With counters on FontPlatformData and SimpleFontData objects we see that for example for loading http://sueddeutsche.de and resizing the window a few times we can get to a situation where the counts look as follows:

[1:1:1128/190314.140393:INFO:FontObjectsCount.h(51)] Num SimpleFontData objects: 396
[1:1:1128/190314.140630:INFO:FontObjectsCount.h(51)] Num FontPlatformData objects: 551
[1:1:1128/190314.140866:INFO:FontCache.cpp(105)] Num FontCache entries: 205

So there are 346 FontPlatformData objects that are not tracked in FontCache and likely not covered by FontCache purging mechanisms.




 

Comment 2 by drott@chromium.org, Nov 28 2017

Run for example like:
$ out/gndebug/content_shell --enable-logging=stderr --vmodule=FontObjectsCount=4,FontCache=4 http://sueddeutsche.de 2>&1 |egrep  \(FontPlatformData\|SimpleFontData\|FontCache\)

Comment 3 by drott@chromium.org, Nov 28 2017

Apart from the leakage, the numbers seem way too high - the number of unique font styles (including font sizes) on this page is probably way lover than 551 or 205.

Comment 4 by drott@chromium.org, Dec 1 2017

Cc: nainar@chromium.org dcheng@chromium.org

Comment 5 by drott@chromium.org, Dec 1 2017

Cc: -dcheng@chromium.org shend@chromium.org

Sign in to add a comment