Page 1 of 1

VLC tries to build font cache every time it runs

Posted: 13 Apr 2012 05:19
by htroberts
I have VLC 2.01 on OS X 10.7.3. Every time I run VLC, I get a dialog saying it's building a font cache for a minute or two before the video will play.

~/Library/Cache/fontconfig exists but is empty, even after VLC starts playing, and I have permission to write files there.

od:~$ ls -ld ~/Library/Caches/fontconfig/
drwxr-xr-x 2 heath staff 68 Apr 12 23:12 /Network/Servers/[path obscured]/Library/Caches/fontconfig/
od:~$ ls -a ~/Library/Caches/fontconfig
. ..

How can I stop this?

Re: VLC tries to build font cache every time it runs

Posted: 13 Apr 2012 10:57
by whiterainbow
I get this as well whenever I open VLC cleanly (on OS X 10.5), however when VLC crashes and reopens, it doesn't happen.

Re: VLC tries to build font cache every time it runs

Posted: 13 Apr 2012 19:34
by aitte
VLC indeed stores its fontcache in the Caches folder, so if you have an application emptying that folder, you will lose the font cache. Likewise, if you lack permissions there could be errors. Try repairing disk permissions (go into Disk Utility, select the Macintosh HD partition, and Repair Permissions). Other than that I have no idea. No problems here on 10.7.3 lion with VLC 2.0.1.

Edit: I was reading through threads for an unrelated topic, and came across this possible answer:
viewtopic.php?f=12&t=98293

Re: VLC tries to build font cache every time it runs

Posted: 14 Apr 2012 23:38
by htroberts
Thanks. I can't _prove_ that nothing is emptying the directory, but I don't think there's anything that is. To me the problem appears to be that VLC isn't actually building a cache of fonts.

I do have permissions for this directory--I included the output of 'ls' in the original post to show that.

Re: VLC tries to build font cache every time it runs

Posted: 15 Apr 2012 00:15
by nkoriyama
Can you create a file to the directory?

Code: Select all

$ touch ~/Libarary/Caches/fontconfig/test.txt $ ls -l ~/Library/Caches/fontconfig/test.txt -rw-r--r-- 1 johndoe staff 0 4 15 07:46 /Users/johndoe/Library/Caches/fontconfig/test.txt
What is your $HOME?

Code: Select all

$ echo $HOME /Users/johndoe
VLC's process user is same as the owner of the directory?

Code: Select all

$ ls -ld ~/Library/Caches/fontconfig/ drwxr-xr-x 5 johndoe staff 170 3 22 04:27 /Users/johndoe/Library/Caches/fontconfig/ $ ps aux | grep -i vlc | grep -v grep johndoe 557 0.0 1.7 2789924 72604 ?? S 6:26AM 0:43.56 /Applications/VLC.app/Contents/MacOS/VLC -psn_0_6862475
If you launch VLC from terminal with setting HOME environmental variable, how does it work?
(Please replace "[path obscured]" properly!)

Code: Select all

$ HOME="/Network/Servers/[path obscured]" /Applications/VLC.app/Contents/MacOS/VLC