[2.0RC1] Font cache constantly being rebuilt

macOS specific usage questions
Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

[2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 13 Feb 2012 21:29

Hi All,

I’m experiencing a problem very similar to what has been reported for the Windows version (http://trac.videolan.org/vlc/ticket/3950). In essence, every time I launch VLC 2.0RC1, I get a warning telling me the font cache is being rebuilt.

My user account is not in /Users (it’s on another volume, properly specified in the Advanced User System preferences and doubled-up with a symlink in /Users (just in case). With most apps, this works beautifully, but I’m wondering whether VLC could be affected here and having issues attempting to use Absolute paths instead of relative ones (/Users/<me> instead of ~/).

Anybody seeing anything similar? The fact that I don’t see other threads on the same topic in the forum might indicate it’s not a generalized issue, but I was curious…

Corentin

MacBook Pro, 2.66GHz Core i7, 8GB RAM, MacOS X 10.7.3
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 13 Feb 2012 21:32

To clarify one thing: it’s not rebuild when I launch the application, but it is when I attempt to open a movie (that doesn’t even have subtitles) with it.
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Jean-Baptiste Kempf » 13 Feb 2012 22:43

Can you share the log?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 13 Feb 2012 23:05

Can you share the log?

I would love to, but I'm not sure where to find it.
I looked in ~/Application Support/org.videlan.vlc and in ~/Logs and didn't find it. Could you give me a pointer?

Thanks :-)

Corentin
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

ovvldc
New Cone
New Cone
Posts: 7
Joined: 08 Feb 2012 16:50
Operating System: Mac OS X
Location: Europe

Re: [2.0RC1] Font cache constantly being rebuilt

Postby ovvldc » 13 Feb 2012 23:18

You can have my log: http://pastebin.com/RQyBLpmy

I also found the following in my console.log:
13-02-12 23:06:55 [0x0-0x1ed1ed].org.videolan.vlc[8505] [0x100284750] main xml reader error: XML reader not found
13-02-12 23:06:55 [0x0-0x1ed1ed].org.videolan.vlc[8505] [0x100202b70] main libvlc: Start vlc met standaardinterface. Gebruik 'cvlc' om vlc zonder interface te gebruiken.
13-02-12 23:07:02 [0x0-0x1ed1ed].org.videolan.vlc[8505] Fontconfig error: Cannot load default config file
13-02-12 23:07:43 [0x0-0x1ed1ed].org.videolan.vlc[8505] Fontconfig error: Cannot load default config file
13-02-12 23:08:37 com.apple.launchd.peruser.501[258] ([0x0-0x1ed1ed].org.videolan.vlc[8505]) Exited: Terminated

The one line that stands out:
freetype debug: Building font databases.

So Freetype has a problem. And since the CoreText subtitle systems doesn't work (see my other post on this), we are running out of options..

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Jean-Baptiste Kempf » 14 Feb 2012 00:14

this xml issue was fixed after the RC1
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 14 Feb 2012 05:01

Great!! Thnaks for letting us know Jean-Baptiste!

Corentin
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 14 Feb 2012 05:05

Font cache is generated only when you add a new font to the system, and it's stored to ~/Library/Caches/fontconfig.
You can check the cache files' time stamp.

A dialog appears and disappears instantly if you don't add any fonts or don't delete font caches.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 14 Feb 2012 05:21

Font cache is generated only when you add a new font to the system, and it's stored to ~/Library/Caches/fontconfig.
You can check the cache files' time stamp.
Well I sure haven't been adding fonts or installing any application that does. That's why I suspected there was something wrong with the VLC font cache.
A dialog appears and disappears instantly if you don't add any fonts or don't delete font caches.
That's my problem: The mesasge stays up far more than otherwise expected. It sometimes even takes a little while, but the duration isn't consistant.

Corentin
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 14 Feb 2012 05:26

Font cache is generated only when you add a new font to the system, and it's stored to ~/Library/Caches/fontconfig.
You can check the cache files' time stamp.
And I forgot to mention: the folder seems to be updated all the time. The timestamp reveals it was last updated the last time I played a video in VLC.

Corentin
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 14 Feb 2012 05:33

We can disappear the dialog.
But if the dialog doesn't appear, when user add a lot of fonts or delete the caches, VLC seem locks up without warning.
We can't estimate if the font cache will be regenerated or not, so we show this dialog every time.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 14 Feb 2012 05:37

And I forgot to mention: the folder seems to be updated all the time. The timestamp reveals it was last updated the last time I played a video in VLC.
Really? Can you check the timestamps on the terminal like "ls -l ~/Library/Cache/org.videolan.vlc/" ?
On my system, timestamps were updated only when I added or modified the fonts.

Code: Select all

anne:codec nkoriyama$ ls -lrt ~/Library/Caches/fontconfig/ total 2152 -rw-r--r-- 1 nkoriyama staff 217792 11 12 09:47 b0a71e6bf6a8a1a908413a823d76e21f-x86_64.cache-3 -rw-r--r-- 1 nkoriyama staff 568096 11 12 09:57 84c0f976e30e948e99073af70f4ae876-x86_64.cache-3 -rw-r--r-- 1 nkoriyama staff 3712 11 12 09:57 0d0b701a8a47f5e73b8c09017383460c-x86_64.cache-3 -rw-r--r-- 1 nkoriyama staff 157904 11 29 14:44 b0a71e6bf6a8a1a908413a823d76e21f-le32d4.cache-3 -rw-r--r-- 1 nkoriyama staff 2424 11 29 14:44 0d0b701a8a47f5e73b8c09017383460c-le32d4.cache-3 -rw-r--r-- 1 nkoriyama staff 423616 12 11 20:58 84c0f976e30e948e99073af70f4ae876-le32d4.cache-3 -rw-r--r-- 1 nkoriyama staff 567976 2 2 11:43 84c0f976e30e948e99073af70f4ae876-le64.cache-3 -rw-r--r-- 1 nkoriyama staff 217872 2 2 11:43 b0a71e6bf6a8a1a908413a823d76e21f-le64.cache-3 -rw-r--r-- 1 nkoriyama staff 27552 2 2 12:42 0d0b701a8a47f5e73b8c09017383460c-le64.cache-3
Last edited by nkoriyama on 14 Feb 2012 05:38, edited 1 time in total.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 14 Feb 2012 05:38

Interesting…
Just for the heck of it, I deleted the ~/Library/Caches/fontconfig folder and relaunched VLC. The font cache was rebuilt and since then the application has been fine.
I can not relaunch VLC and play a new video and the FOnt cache dialog barely flashes now!
Tremendous improvement.
I suspect something was awfully wrong with my fontconfig folder.
I might never know what it was but in any case I'm glad it's gone.

Corentin
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

Cortig
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2005 03:32
Location: St Louis, MO, USA
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Cortig » 14 Feb 2012 05:39

I'm fine with the warning appearing the way it does now (see my other post).
It sure wasn't like that before I deleted the fontcongif folder. The application was stuck for 20-30s at the time whenever I was attempting to play a movie.

Corentin
Last edited by Cortig on 14 Feb 2012 05:44, edited 1 time in total.
Noël aux Tisanes, Paco Rabanne - Pierre Desproges

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 14 Feb 2012 05:42

I'm glad to hear it :D
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

kdean
Big Cone-huna
Big Cone-huna
Posts: 629
Joined: 05 Dec 2007 17:47
VLC version: 2.2
Operating System: Mac OS
Location: Orlando, FL

Re: [2.0RC1] Font cache constantly being rebuilt

Postby kdean » 14 Feb 2012 07:07

We can disappear the dialog.
But if the dialog doesn't appear, when user add a lot of fonts or delete the caches, VLC seem locks up without warning.
We can't estimate if the font cache will be regenerated or not, so we show this dialog every time.
Instead of flashing the dialog everytime which is kind of annoying and may make people think something important is flashing by, is it possible to put a slight delay on the appearance of the dialog so that the instances where it would normally flash doesn't cause the dialog to appear, yet longer actual font cache rebuilds are the only things that actually trigger the appearance of the dialog. It'd be a much cleaner experience at that point.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: [2.0RC1] Font cache constantly being rebuilt

Postby Jean-Baptiste Kempf » 14 Feb 2012 08:56

We can disappear the dialog.
But if the dialog doesn't appear, when user add a lot of fonts or delete the caches, VLC seem locks up without warning.
We can't estimate if the font cache will be regenerated or not, so we show this dialog every time.
Instead of flashing the dialog everytime which is kind of annoying and may make people think something important is flashing by, is it possible to put a slight delay on the appearance of the dialog so that the instances where it would normally flash doesn't cause the dialog to appear, yet longer actual font cache rebuilds are the only things that actually trigger the appearance of the dialog. It'd be a much cleaner experience at that point.
Yes, that is waht we do on win32
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ovvldc
New Cone
New Cone
Posts: 7
Joined: 08 Feb 2012 16:50
Operating System: Mac OS X
Location: Europe

Re: [2.0RC1] Font cache constantly being rebuilt

Postby ovvldc » 18 Feb 2012 10:25

Not to rain on the parade, but clearing the fontconfig folder doesn't work for me in 17 Feb nightly. In fact, if I hit 'play' it will simply restart the process. Are there any plan of actually fixing the Freetype or CoreText subtitle renderers?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 18 Feb 2012 11:15

Not to rain on the parade, but clearing the fontconfig folder doesn't work for me in 17 Feb nightly. In fact, if I hit 'play' it will simply restart the process. Are there any plan of actually fixing the Freetype or CoreText subtitle renderers?
What's your problem?

We only plan to fix the problem that the dialog appears when font cache is not generated.
If it is fixed, the dialog will appear only when generating font cache.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ovvldc
New Cone
New Cone
Posts: 7
Joined: 08 Feb 2012 16:50
Operating System: Mac OS X
Location: Europe

Re: [2.0RC1] Font cache constantly being rebuilt

Postby ovvldc » 18 Feb 2012 17:08

What I seem to have got was a brief flash of a dialog and disc trashing and generating of a new font cache..

lostspirit
New Cone
New Cone
Posts: 1
Joined: 23 Feb 2012 15:06
Operating System: Linux, Mac
Location: Calgary, Alberta

Re: [2.0RC1] Font cache constantly being rebuilt

Postby lostspirit » 23 Feb 2012 15:08

I noticed on the Mac 2.0.0 version that the font cache dialog flashes briefly between each video in a playlist.

Since I'm using VLC as my kiosk, kind of a bummer.

Options?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: [2.0RC1] Font cache constantly being rebuilt

Postby nkoriyama » 23 Feb 2012 16:46

Already fixed in 2.0.1. Please wait a while.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests